Class ProjectsResource.LocationsResource.SavedQueriesResource
The "savedQueries" collection of methods.
Inherited Members
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ProjectsResource.LocationsResource.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 new SavedQuery for the user making the request.
Declaration
public virtual ProjectsResource.LocationsResource.SavedQueriesResource.CreateRequest Create(SavedQuery body, string parent)
Parameters
Type | Name | Description |
---|---|---|
SavedQuery | body | The body of the request. |
string | parent | Required. The parent resource in which to create the saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/global" "organizations/123456789/locations/us-central1" |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SavedQueriesResource.CreateRequest |
Delete(string)
Deletes an existing SavedQuery that was created by the user making the request.
Declaration
public virtual ProjectsResource.LocationsResource.SavedQueriesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The full resource name of the saved query to delete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query" |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SavedQueriesResource.DeleteRequest |
Get(string)
Returns all data associated with the requested query.
Declaration
public virtual ProjectsResource.LocationsResource.SavedQueriesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the saved query. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For example: "projects/my-project/locations/global/savedQueries/my-saved-query" |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SavedQueriesResource.GetRequest |
List(string)
Lists the SavedQueries that were created by the user making the request.
Declaration
public virtual ProjectsResource.LocationsResource.SavedQueriesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource to which the listed queries belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-project/locations/us-central1" Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example: "projects/my-project/locations/-" |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SavedQueriesResource.ListRequest |
Patch(SavedQuery, string)
Updates an existing SavedQuery.
Declaration
public virtual ProjectsResource.LocationsResource.SavedQueriesResource.PatchRequest Patch(SavedQuery body, string name)
Parameters
Type | Name | Description |
---|---|---|
SavedQuery | body | The body of the request. |
string | name | Output only. Resource name of the saved query.In the format: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn't provide a QUERY_ID, the system will generate an alphanumeric ID. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SavedQueriesResource.PatchRequest |