Struct google_clouderrorreporting1_beta1::api::ProjectMethods [−][src]
pub struct ProjectMethods<'a> { /* fields omitted */ }
Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the Clouderrorreporting
hub.
Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_clouderrorreporting1_beta1 as clouderrorreporting1_beta1;
use std::default::Default;
use oauth2;
use clouderrorreporting1_beta1::Clouderrorreporting;
let secret: oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Clouderrorreporting::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `delete_events(...)`, `events_list(...)`, `events_report(...)`, `group_stats_list(...)`, `groups_get(...)` and `groups_update(...)`
// to build up your call.
let rb = hub.projects();
Implementations
Create a builder to help you perform the following task:
Lists the specified events.
Arguments
projectName
- Required. The resource name of the Google Cloud Platform project. Written asprojects/{projectID}
, where{projectID}
is the Google Cloud Platform project ID. Example:projects/my-project-123
.
pub fn events_report(
&self,
request: ReportedErrorEvent,
project_name: &str
) -> ProjectEventReportCall<'a>
pub fn events_report(
&self,
request: ReportedErrorEvent,
project_name: &str
) -> ProjectEventReportCall<'a>
Create a builder to help you perform the following task:
Report an individual error event and record the event to a log. This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key
parameter. For example: POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456
Note: Error Reporting is a global service built on Cloud Logging and doesn’t analyze logs stored in regional log buckets or logs routed to other Google Cloud projects. For more information, see Using Error Reporting with regionalized logs.
Arguments
request
- No description provided.projectName
- Required. The resource name of the Google Cloud Platform project. Written asprojects/{projectId}
, where{projectId}
is the Google Cloud Platform project ID. Example: //projects/my-project-123
.
Create a builder to help you perform the following task:
Lists the specified groups.
Arguments
projectName
- Required. The resource name of the Google Cloud Platform project. Written asprojects/{projectID}
orprojects/{projectNumber}
, where{projectID}
and{projectNumber}
can be found in the Google Cloud Console. Examples:projects/my-project-123
,projects/5551234
.
Create a builder to help you perform the following task:
Get the specified group.
Arguments
groupName
- Required. The group resource name. Written asprojects/{projectID}/groups/{group_name}
. CallgroupStats.list
to return a list of groups belonging to this project. Example:projects/my-project-123/groups/my-group
Create a builder to help you perform the following task:
Replace the data for the specified group. Fails if the group does not exist.
Arguments
request
- No description provided.name
- The group resource name. Example: projects/my-project-123/groups/CNSgkpnppqKCUw
Create a builder to help you perform the following task:
Deletes all error events of a given project.
Arguments
projectName
- Required. The resource name of the Google Cloud Platform project. Written asprojects/{projectID}
, where{projectID}
is the Google Cloud Platform project ID. Example:projects/my-project-123
.