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 as projects/{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:

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 as projects/{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 as projects/{projectID} or projects/{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 as projects/{projectID}/groups/{group_name}. Call groupStats.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 as projects/{projectID}, where {projectID} is the Google Cloud Platform project ID. Example: projects/my-project-123.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.