Class SavedQueriesResource
The "savedQueries" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudAsset.v1
Assembly: Google.Apis.CloudAsset.v1.dll
Syntax
public class SavedQueriesResource
Constructors
SavedQueriesResource(IClientService)
Constructs a new resource.
Declaration
public SavedQueriesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(SavedQuery, string)
Creates a saved query in a parent project/folder/organization.
Declaration
public virtual SavedQueriesResource.CreateRequest Create(SavedQuery body, string parent)
Parameters
Type | Name | Description |
---|---|---|
SavedQuery | body | The body of the request. |
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"). |
Returns
Type | Description |
---|---|
SavedQueriesResource.CreateRequest |
Delete(string)
Deletes a saved query.
Declaration
public virtual SavedQueriesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
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 |
Returns
Type | Description |
---|---|
SavedQueriesResource.DeleteRequest |
Get(string)
Gets details about a saved query.
Declaration
public virtual SavedQueriesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
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 |
Returns
Type | Description |
---|---|
SavedQueriesResource.GetRequest |
List(string)
Lists all saved queries in a parent project/folder/organization.
Declaration
public virtual SavedQueriesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
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"). |
Returns
Type | Description |
---|---|
SavedQueriesResource.ListRequest |
Patch(SavedQuery, string)
Updates a saved query.
Declaration
public virtual SavedQueriesResource.PatchRequest Patch(SavedQuery body, string name)
Parameters
Type | Name | Description |
---|---|---|
SavedQuery | body | The body of the request. |
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 |
Returns
Type | Description |
---|---|
SavedQueriesResource.PatchRequest |