class SavedQueries extends Resource (View source)

The "savedQueries" collection of methods.

Typical usage is:

 $cloudassetService = new Google\Service\CloudAsset(...);
 $savedQueries = $cloudassetService->savedQueries;

Methods

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

Creates a saved query in a parent project/folder/organization.

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

Deletes a saved query. (savedQueries.delete)

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

Gets details about a saved query. (savedQueries.get)

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

Lists all saved queries in a parent project/folder/organization.

patch(string $name, SavedQuery $postBody, array $optParams = [])

Updates a saved query. (savedQueries.patch)

Details

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

Creates a saved query in a parent project/folder/organization.

(savedQueries.create)

Parameters

string $parent

Required. The name of the project/folder/organization where this saved_query should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345").

SavedQuery $postBody
array $optParams

Optional parameters.

Return Value

SavedQuery

Exceptions

Exception

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

Deletes a saved query. (savedQueries.delete)

Parameters

string $name

Required. The name of the saved query to delete. It must be in the format of: projects/project_number/savedQueries/saved_query_id folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id

array $optParams

Optional parameters.

Return Value

CloudassetEmpty

Exceptions

Exception

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

Gets details about a saved query. (savedQueries.get)

Parameters

string $name

Required. The name of the saved query and it must be in the format of: projects/project_number/savedQueries/saved_query_id folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id

array $optParams

Optional parameters.

Return Value

SavedQuery

Exceptions

Exception

ListSavedQueriesResponse listSavedQueries(string $parent, array $optParams = [])

Lists all saved queries in a parent project/folder/organization.

(savedQueries.listSavedQueries)

Parameters

string $parent

Required. The parent project/folder/organization whose savedQueries are to be listed. It can only be using project/folder/organization number (such as "folders/12345")", or a project ID (such as "projects/my-project-id").

array $optParams

Optional parameters.

Return Value

ListSavedQueriesResponse

Exceptions

Exception

SavedQuery patch(string $name, SavedQuery $postBody, array $optParams = [])

Updates a saved query. (savedQueries.patch)

Parameters

string $name

The resource name of the saved query. The format must be:

  • projects/project_number/savedQueries/saved_query_id folders/folder_number/savedQueries/saved_query_id organizations/organization_number/savedQueries/saved_query_id
SavedQuery $postBody
array $optParams

Optional parameters.

Return Value

SavedQuery

Exceptions

Exception