Struct google_dfareporting3::api::ReportMethods
source · pub struct ReportMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on report resources.
It is not used directly, but through the Dfareporting
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_dfareporting3 as dfareporting3;
use std::default::Default;
use dfareporting3::{Dfareporting, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Dfareporting::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `compatible_fields_query(...)`, `delete(...)`, `files_get(...)`, `files_list(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)`, `run(...)` and `update(...)`
// to build up your call.
let rb = hub.reports();
Implementations§
source§impl<'a, S> ReportMethods<'a, S>
impl<'a, S> ReportMethods<'a, S>
sourcepub fn compatible_fields_query(
&self,
request: Report,
profile_id: i64
) -> ReportCompatibleFieldQueryCall<'a, S>
pub fn compatible_fields_query( &self, request: Report, profile_id: i64 ) -> ReportCompatibleFieldQueryCall<'a, S>
Create a builder to help you perform the following task:
Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.
§Arguments
request
- No description provided.profileId
- The DFA user profile ID.
sourcepub fn files_get(
&self,
profile_id: i64,
report_id: i64,
file_id: i64
) -> ReportFileGetCall<'a, S>
pub fn files_get( &self, profile_id: i64, report_id: i64, file_id: i64 ) -> ReportFileGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a report file. This method supports media download.
§Arguments
profileId
- The DFA profile ID.reportId
- The ID of the report.fileId
- The ID of the report file.
sourcepub fn files_list(
&self,
profile_id: i64,
report_id: i64
) -> ReportFileListCall<'a, S>
pub fn files_list( &self, profile_id: i64, report_id: i64 ) -> ReportFileListCall<'a, S>
Create a builder to help you perform the following task:
Lists files for a report.
§Arguments
profileId
- The DFA profile ID.reportId
- The ID of the parent report.
sourcepub fn delete(&self, profile_id: i64, report_id: i64) -> ReportDeleteCall<'a, S>
pub fn delete(&self, profile_id: i64, report_id: i64) -> ReportDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a report by its ID.
§Arguments
profileId
- The DFA user profile ID.reportId
- The ID of the report.
sourcepub fn get(&self, profile_id: i64, report_id: i64) -> ReportGetCall<'a, S>
pub fn get(&self, profile_id: i64, report_id: i64) -> ReportGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a report by its ID.
§Arguments
profileId
- The DFA user profile ID.reportId
- The ID of the report.
sourcepub fn insert(
&self,
request: Report,
profile_id: i64
) -> ReportInsertCall<'a, S>
pub fn insert( &self, request: Report, profile_id: i64 ) -> ReportInsertCall<'a, S>
Create a builder to help you perform the following task:
Creates a report.
§Arguments
request
- No description provided.profileId
- The DFA user profile ID.
sourcepub fn list(&self, profile_id: i64) -> ReportListCall<'a, S>
pub fn list(&self, profile_id: i64) -> ReportListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves list of reports.
§Arguments
profileId
- The DFA user profile ID.
sourcepub fn patch(
&self,
request: Report,
profile_id: i64,
report_id: i64
) -> ReportPatchCall<'a, S>
pub fn patch( &self, request: Report, profile_id: i64, report_id: i64 ) -> ReportPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates a report. This method supports patch semantics.
§Arguments
request
- No description provided.profileId
- The DFA user profile ID.reportId
- The ID of the report.