class OrganizationsEnvironmentsQueries extends Resource (View source)

The "queries" collection of methods.

Typical usage is:

 $apigeeService = new Google\Service\Apigee(...);
 $queries = $apigeeService->organizations_environments_queries;

Methods

create(string $parent, GoogleCloudApigeeV1Query $postBody, array $optParams = [])

Submit a query to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the state of "enqueued" means that the request succeeded. (queries.create)

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

Get query status If the query is still in progress, the state is set to "running" After the query has completed successfully, state is set to "completed" (queries.get)

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

After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip (queries.getResult)

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

After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is sent to the client as a list of urls to JSON files. (queries.getResulturl)

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

Return a list of Asynchronous Queries (queries.listOrganizationsEnvironmentsQueries)

Details

GoogleCloudApigeeV1AsyncQuery create(string $parent, GoogleCloudApigeeV1Query $postBody, array $optParams = [])

Submit a query to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the state of "enqueued" means that the request succeeded. (queries.create)

Parameters

string $parent

Required. The parent resource name. Must be of the form organizations/{org}/environments/{env}.

GoogleCloudApigeeV1Query $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1AsyncQuery

Exceptions

Exception

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

Get query status If the query is still in progress, the state is set to "running" After the query has completed successfully, state is set to "completed" (queries.get)

Parameters

string $name

Required. Name of the asynchronous query to get. Must be of the form organizations/{org}/environments/{env}/queries/{queryId}.

array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1AsyncQuery

Exceptions

Exception

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

After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip (queries.getResult)

Parameters

string $name

Required. Name of the asynchronous query result to get. Must be of the form organizations/{org}/environments/{env}/queries/{queryId}/result.

array $optParams

Optional parameters.

Return Value

GoogleApiHttpBody

Exceptions

Exception

GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse getResulturl(string $name, array $optParams = [])

After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is sent to the client as a list of urls to JSON files. (queries.getResulturl)

Parameters

string $name

Required. Name of the asynchronous query result to get. Must be of the form organizations/{org}/environments/{env}/queries/{queryId}/resulturl.

array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse

Exceptions

Exception

GoogleCloudApigeeV1ListAsyncQueriesResponse listOrganizationsEnvironmentsQueries(string $parent, array $optParams = [])

Return a list of Asynchronous Queries (queries.listOrganizationsEnvironmentsQueries)

Parameters

string $parent

Required. The parent resource name. Must be of the form organizations/{org}/environments/{env}.

array $optParams

Optional parameters.

Return Value

GoogleCloudApigeeV1ListAsyncQueriesResponse

Exceptions

Exception