remove generated libs

This commit is contained in:
OMGeeky
2024-05-12 22:15:06 +02:00
4862 changed files with 0 additions and 6416267 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,118 +0,0 @@
use super::*;
/// Central instance to access all CloudSupport related resource activities
///
/// # Examples
///
/// Instantiate a new hub
///
/// ```test_harness,no_run
/// extern crate hyper;
/// extern crate hyper_rustls;
/// extern crate google_cloudsupport2_beta as cloudsupport2_beta;
/// use cloudsupport2_beta::{Result, Error};
/// # async fn dox() {
/// use std::default::Default;
/// use cloudsupport2_beta::{CloudSupport, oauth2, hyper, hyper_rustls, chrono, FieldMask};
///
/// // Get an ApplicationSecret instance by some means. It contains the `client_id` and
/// // `client_secret`, among other things.
/// let secret: oauth2::ApplicationSecret = Default::default();
/// // Instantiate the authenticator. It will choose a suitable authentication flow for you,
/// // unless you replace `None` with the desired Flow.
/// // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
/// // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
/// // retrieve them from storage.
/// let auth = oauth2::InstalledFlowAuthenticator::builder(
/// secret,
/// oauth2::InstalledFlowReturnMethod::HTTPRedirect,
/// ).build().await.unwrap();
/// let mut hub = CloudSupport::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
/// // You can configure optional parameters by calling the respective setters at will, and
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.cases().list("parent")
/// .page_token("takimata")
/// .page_size(-52)
/// .filter("duo")
/// .doit().await;
///
/// match result {
/// Err(e) => match e {
/// // The Error enum provides details about what exactly happened.
/// // You can also just use its `Debug`, `Display` or `Error` traits
/// Error::HttpError(_)
/// |Error::Io(_)
/// |Error::MissingAPIKey
/// |Error::MissingToken(_)
/// |Error::Cancelled
/// |Error::UploadSizeLimitExceeded(_, _)
/// |Error::Failure(_)
/// |Error::BadRequest(_)
/// |Error::FieldClash(_)
/// |Error::JsonDecodeError(_, _) => println!("{}", e),
/// },
/// Ok(res) => println!("Success: {:?}", res),
/// }
/// # }
/// ```
#[derive(Clone)]
pub struct CloudSupport<S> {
pub client: hyper::Client<S, hyper::body::Body>,
pub auth: Box<dyn client::GetToken>,
pub(super) _user_agent: String,
pub(super) _base_url: String,
pub(super) _root_url: String,
}
impl<'a, S> client::Hub for CloudSupport<S> {}
impl<'a, S> CloudSupport<S> {
pub fn new<A: 'static + client::GetToken>(client: hyper::Client<S, hyper::body::Body>, auth: A) -> CloudSupport<S> {
CloudSupport {
client,
auth: Box::new(auth),
_user_agent: "google-api-rust-client/5.0.3".to_string(),
_base_url: "https://cloudsupport.googleapis.com/".to_string(),
_root_url: "https://cloudsupport.googleapis.com/".to_string(),
}
}
pub fn attachments(&'a self) -> AttachmentMethods<'a, S> {
AttachmentMethods { hub: &self }
}
pub fn case_classifications(&'a self) -> CaseClassificationMethods<'a, S> {
CaseClassificationMethods { hub: &self }
}
pub fn cases(&'a self) -> CaseMethods<'a, S> {
CaseMethods { hub: &self }
}
pub fn media(&'a self) -> MediaMethods<'a, S> {
MediaMethods { hub: &self }
}
/// Set the user-agent header field to use in all requests to the server.
/// It defaults to `google-api-rust-client/5.0.3`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {
mem::replace(&mut self._user_agent, agent_name)
}
/// Set the base url to use in all requests to the server.
/// It defaults to `https://cloudsupport.googleapis.com/`.
///
/// Returns the previously set base url.
pub fn base_url(&mut self, new_base_url: String) -> String {
mem::replace(&mut self._base_url, new_base_url)
}
/// Set the root url to use in all requests to the server.
/// It defaults to `https://cloudsupport.googleapis.com/`.
///
/// Returns the previously set root url.
pub fn root_url(&mut self, new_root_url: String) -> String {
mem::replace(&mut self._root_url, new_root_url)
}
}

View File

@@ -1,421 +0,0 @@
use super::*;
/// A builder providing access to all methods supported on *attachment* resources.
/// It is not used directly, but through the [`CloudSupport`] hub.
///
/// # Example
///
/// Instantiate a resource builder
///
/// ```test_harness,no_run
/// extern crate hyper;
/// extern crate hyper_rustls;
/// extern crate google_cloudsupport2_beta as cloudsupport2_beta;
///
/// # async fn dox() {
/// use std::default::Default;
/// use cloudsupport2_beta::{CloudSupport, 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 = CloudSupport::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 `create(...)`
/// // to build up your call.
/// let rb = hub.attachments();
/// # }
/// ```
pub struct AttachmentMethods<'a, S>
where S: 'a {
pub(super) hub: &'a CloudSupport<S>,
}
impl<'a, S> client::MethodsBuilder for AttachmentMethods<'a, S> {}
impl<'a, S> AttachmentMethods<'a, S> {
/// Create a builder to help you perform the following task:
///
/// Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `parent` - Required. The resource name of the case (or case parent) to which the attachment should be attached.
pub fn create(&self, request: CreateAttachmentRequest, parent: &str) -> AttachmentCreateCall<'a, S> {
AttachmentCreateCall {
hub: self.hub,
_request: request,
_parent: parent.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
}
/// A builder providing access to all methods supported on *caseClassification* resources.
/// It is not used directly, but through the [`CloudSupport`] hub.
///
/// # Example
///
/// Instantiate a resource builder
///
/// ```test_harness,no_run
/// extern crate hyper;
/// extern crate hyper_rustls;
/// extern crate google_cloudsupport2_beta as cloudsupport2_beta;
///
/// # async fn dox() {
/// use std::default::Default;
/// use cloudsupport2_beta::{CloudSupport, 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 = CloudSupport::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 `search(...)`
/// // to build up your call.
/// let rb = hub.case_classifications();
/// # }
/// ```
pub struct CaseClassificationMethods<'a, S>
where S: 'a {
pub(super) hub: &'a CloudSupport<S>,
}
impl<'a, S> client::MethodsBuilder for CaseClassificationMethods<'a, S> {}
impl<'a, S> CaseClassificationMethods<'a, S> {
/// Create a builder to help you perform the following task:
///
/// Retrieve valid classifications to be used when creating a support case. The classications are hierarchical, with each classification containing all levels of the hierarchy, separated by " > ". For example "Technical Issue > Compute > Compute Engine".
pub fn search(&self) -> CaseClassificationSearchCall<'a, S> {
CaseClassificationSearchCall {
hub: self.hub,
_query: Default::default(),
_page_token: Default::default(),
_page_size: Default::default(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
}
/// A builder providing access to all methods supported on *case* resources.
/// It is not used directly, but through the [`CloudSupport`] hub.
///
/// # Example
///
/// Instantiate a resource builder
///
/// ```test_harness,no_run
/// extern crate hyper;
/// extern crate hyper_rustls;
/// extern crate google_cloudsupport2_beta as cloudsupport2_beta;
///
/// # async fn dox() {
/// use std::default::Default;
/// use cloudsupport2_beta::{CloudSupport, 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 = CloudSupport::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 `attachments_list(...)`, `close(...)`, `comments_create(...)`, `comments_list(...)`, `create(...)`, `escalate(...)`, `get(...)`, `list(...)`, `patch(...)` and `search(...)`
/// // to build up your call.
/// let rb = hub.cases();
/// # }
/// ```
pub struct CaseMethods<'a, S>
where S: 'a {
pub(super) hub: &'a CloudSupport<S>,
}
impl<'a, S> client::MethodsBuilder for CaseMethods<'a, S> {}
impl<'a, S> CaseMethods<'a, S> {
/// Create a builder to help you perform the following task:
///
/// Retrieve all attachments associated with a support case.
///
/// # Arguments
///
/// * `parent` - Required. The resource name of Case object for which attachments should be listed.
pub fn attachments_list(&self, parent: &str) -> CaseAttachmentListCall<'a, S> {
CaseAttachmentListCall {
hub: self.hub,
_parent: parent.to_string(),
_page_token: Default::default(),
_page_size: Default::default(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Add a new comment to the specified Case. The comment object must have the following fields set: body.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `parent` - Required. The resource name of Case to which this comment should be added.
pub fn comments_create(&self, request: Comment, parent: &str) -> CaseCommentCreateCall<'a, S> {
CaseCommentCreateCall {
hub: self.hub,
_request: request,
_parent: parent.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Retrieve all Comments associated with the Case object.
///
/// # Arguments
///
/// * `parent` - Required. The resource name of Case object for which comments should be listed.
pub fn comments_list(&self, parent: &str) -> CaseCommentListCall<'a, S> {
CaseCommentListCall {
hub: self.hub,
_parent: parent.to_string(),
_page_token: Default::default(),
_page_size: Default::default(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Close the specified case.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `name` - Required. The fully qualified name of the case resource to be closed.
pub fn close(&self, request: CloseCaseRequest, name: &str) -> CaseCloseCall<'a, S> {
CaseCloseCall {
hub: self.hub,
_request: request,
_name: name.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Create a new case and associate it with the given Cloud resource. The case object must have the following fields set: display_name, description, classification, and severity.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `parent` - Required. The name of the Cloud resource under which the case should be created.
pub fn create(&self, request: Case, parent: &str) -> CaseCreateCall<'a, S> {
CaseCreateCall {
hub: self.hub,
_request: request,
_parent: parent.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Escalate a case. Escalating a case will initiate the Cloud Support escalation management process. This operation is only available to certain Customer Care tiers. Go to https://cloud.google.com/support and look for 'Technical support escalations' in the feature list to find out which tiers are able to perform escalations.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `name` - Required. The fully qualified name of the Case resource to be escalated.
pub fn escalate(&self, request: EscalateCaseRequest, name: &str) -> CaseEscalateCall<'a, S> {
CaseEscalateCall {
hub: self.hub,
_request: request,
_name: name.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Retrieve the specified case.
///
/// # Arguments
///
/// * `name` - Required. The fully qualified name of a case to be retrieved.
pub fn get(&self, name: &str) -> CaseGetCall<'a, S> {
CaseGetCall {
hub: self.hub,
_name: name.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Retrieve all cases under the specified parent. Note: Listing cases under an Organization returns only the cases directly parented by that organization. To retrieve all cases under an organization, including cases parented by projects under that organization, use `cases.search`.
///
/// # Arguments
///
/// * `parent` - Required. The fully qualified name of parent resource to list cases under.
pub fn list(&self, parent: &str) -> CaseListCall<'a, S> {
CaseListCall {
hub: self.hub,
_parent: parent.to_string(),
_page_token: Default::default(),
_page_size: Default::default(),
_filter: Default::default(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Update the specified case. Only a subset of fields can be updated.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `name` - The resource name for the case.
pub fn patch(&self, request: Case, name: &str) -> CasePatchCall<'a, S> {
CasePatchCall {
hub: self.hub,
_request: request,
_name: name.to_string(),
_update_mask: Default::default(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Search cases using the specified query.
pub fn search(&self) -> CaseSearchCall<'a, S> {
CaseSearchCall {
hub: self.hub,
_query: Default::default(),
_page_token: Default::default(),
_page_size: Default::default(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
}
/// A builder providing access to all methods supported on *media* resources.
/// It is not used directly, but through the [`CloudSupport`] hub.
///
/// # Example
///
/// Instantiate a resource builder
///
/// ```test_harness,no_run
/// extern crate hyper;
/// extern crate hyper_rustls;
/// extern crate google_cloudsupport2_beta as cloudsupport2_beta;
///
/// # async fn dox() {
/// use std::default::Default;
/// use cloudsupport2_beta::{CloudSupport, 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 = CloudSupport::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 `download(...)` and `upload(...)`
/// // to build up your call.
/// let rb = hub.media();
/// # }
/// ```
pub struct MediaMethods<'a, S>
where S: 'a {
pub(super) hub: &'a CloudSupport<S>,
}
impl<'a, S> client::MethodsBuilder for MediaMethods<'a, S> {}
impl<'a, S> MediaMethods<'a, S> {
/// Create a builder to help you perform the following task:
///
/// Download a file attachment on a case. Note: HTTP requests must append "?alt=media" to the URL.
///
/// # Arguments
///
/// * `name` - The resource name of the attachment to be downloaded.
pub fn download(&self, name: &str) -> MediaDownloadCall<'a, S> {
MediaDownloadCall {
hub: self.hub,
_name: name.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
/// Create a builder to help you perform the following task:
///
/// Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `parent` - Required. The resource name of the case (or case parent) to which the attachment should be attached.
pub fn upload(&self, request: CreateAttachmentRequest, parent: &str) -> MediaUploadCall<'a, S> {
MediaUploadCall {
hub: self.hub,
_request: request,
_parent: parent.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
}
}
}

View File

@@ -1,35 +0,0 @@
use std::collections::HashMap;
use std::cell::RefCell;
use std::default::Default;
use std::collections::BTreeSet;
use std::error::Error as StdError;
use serde_json as json;
use std::io;
use std::fs;
use std::mem;
use hyper::client::connect;
use tokio::io::{AsyncRead, AsyncWrite};
use tokio::time::sleep;
use tower_service;
use serde::{Serialize, Deserialize};
use crate::{client, client::GetToken, client::serde_with};
mod utilities;
pub use utilities::*;
mod hub;
pub use hub::*;
mod schemas;
pub use schemas::*;
mod method_builders;
pub use method_builders::*;
mod call_builders;
pub use call_builders::*;
mod enums;
pub use enums::*;

View File

@@ -1,811 +0,0 @@
use super::*;
/// An object containing information about the effective user and authenticated principal responsible for an action.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Actor {
/// The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
#[serde(rename="displayName")]
pub display_name: Option<String>,
/// The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
pub email: Option<String>,
/// Output only. Whether the actor is a Google support actor.
#[serde(rename="googleSupport")]
pub google_support: Option<bool>,
}
impl client::Part for Actor {}
/// Represents a file attached to a support case.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [create attachments](AttachmentCreateCall) (response)
/// * [upload media](MediaUploadCall) (response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Attachment {
/// Output only. The time at which the attachment was created.
#[serde(rename="createTime")]
pub create_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
/// Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
pub creator: Option<Actor>,
/// The filename of the attachment (e.g. `"graph.jpg"`).
pub filename: Option<String>,
/// Output only. The MIME type of the attachment (e.g. text/plain).
#[serde(rename="mimeType")]
pub mime_type: Option<String>,
/// Output only. The resource name of the attachment.
pub name: Option<String>,
/// Output only. The size of the attachment in bytes.
#[serde(rename="sizeBytes")]
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub size_bytes: Option<i64>,
}
impl client::Resource for Attachment {}
impl client::ResponseResult for Attachment {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Blobstore2Info {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="blobGeneration")]
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub blob_generation: Option<i64>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="blobId")]
pub blob_id: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="downloadReadHandle")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub download_read_handle: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="readToken")]
pub read_token: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="uploadMetadataContainer")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub upload_metadata_container: Option<Vec<u8>>,
}
impl client::Part for Blobstore2Info {}
/// A support case.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [attachments list cases](CaseAttachmentListCall) (none)
/// * [comments create cases](CaseCommentCreateCall) (none)
/// * [comments list cases](CaseCommentListCall) (none)
/// * [close cases](CaseCloseCall) (response)
/// * [create cases](CaseCreateCall) (request|response)
/// * [escalate cases](CaseEscalateCall) (response)
/// * [get cases](CaseGetCall) (response)
/// * [list cases](CaseListCall) (none)
/// * [patch cases](CasePatchCall) (request|response)
/// * [search cases](CaseSearchCall) (none)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Case {
/// The issue classification applicable to this case.
pub classification: Option<CaseClassification>,
/// Output only. The time this case was created.
#[serde(rename="createTime")]
pub create_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
/// The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
pub creator: Option<Actor>,
/// A broad description of the issue.
pub description: Option<String>,
/// The short summary of the issue reported in this case.
#[serde(rename="displayName")]
pub display_name: Option<String>,
/// Whether the case is currently escalated.
pub escalated: Option<bool>,
/// The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours
#[serde(rename="languageCode")]
pub language_code: Option<String>,
/// The resource name for the case.
pub name: Option<String>,
/// The priority of this case. If this is set, do not set severity.
pub priority: Option<CasePriorityEnum>,
/// The severity of this case. Deprecated. Use priority instead.
pub severity: Option<CaseSeverityEnum>,
/// Output only. The current status of the support case.
pub state: Option<CaseStateEnum>,
/// The email addresses to receive updates on this case.
#[serde(rename="subscriberEmailAddresses")]
pub subscriber_email_addresses: Option<Vec<String>>,
/// Whether this case was created for internal API testing and should not be acted on by the support team.
#[serde(rename="testCase")]
pub test_case: Option<bool>,
/// The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
#[serde(rename="timeZone")]
pub time_zone: Option<String>,
/// Output only. The time this case was last updated.
#[serde(rename="updateTime")]
pub update_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
}
impl client::RequestValue for Case {}
impl client::Resource for Case {}
impl client::ResponseResult for Case {}
/// A classification object with a product type and value.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [search case classifications](CaseClassificationSearchCall) (none)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct CaseClassification {
/// The display name of the classification.
#[serde(rename="displayName")]
pub display_name: Option<String>,
/// The unique ID for a classification. Must be specified for case creation. To retrieve valid classification IDs for case creation, use `caseClassifications.search`.
pub id: Option<String>,
}
impl client::Resource for CaseClassification {}
/// The request message for the CloseCase endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [close cases](CaseCloseCall) (request)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct CloseCaseRequest { _never_set: Option<bool> }
impl client::RequestValue for CloseCaseRequest {}
/// A comment associated with a support case.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [comments create cases](CaseCommentCreateCall) (request|response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Comment {
/// The full comment body. Maximum of 120000 characters. This can contain rich text syntax.
pub body: Option<String>,
/// Output only. The time when this comment was created.
#[serde(rename="createTime")]
pub create_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
/// Output only. The user or Google Support agent created this comment.
pub creator: Option<Actor>,
/// Output only. The resource name for the comment.
pub name: Option<String>,
/// Output only. An automatically generated plain text version of body with all rich text syntax stripped.
#[serde(rename="plainTextBody")]
pub plain_text_body: Option<String>,
}
impl client::RequestValue for Comment {}
impl client::ResponseResult for Comment {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct CompositeMedia {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="blobRef")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub blob_ref: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="blobstore2Info")]
pub blobstore2_info: Option<Blobstore2Info>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="cosmoBinaryReference")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub cosmo_binary_reference: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="crc32cHash")]
pub crc32c_hash: Option<u32>,
/// # gdata.* are outside protos with mising documentation
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub inline: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub length: Option<i64>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="md5Hash")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub md5_hash: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectId")]
pub object_id: Option<ObjectId>,
/// # gdata.* are outside protos with mising documentation
pub path: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="referenceType")]
pub reference_type: Option<CompositeMediaReferenceTypeEnum>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="sha1Hash")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub sha1_hash: Option<Vec<u8>>,
}
impl client::Part for CompositeMedia {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ContentTypeInfo {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="bestGuess")]
pub best_guess: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="fromBytes")]
pub from_bytes: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="fromFileName")]
pub from_file_name: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="fromHeader")]
pub from_header: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="fromUrlPath")]
pub from_url_path: Option<String>,
}
impl client::Part for ContentTypeInfo {}
/// The request message for the CreateAttachment endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [create attachments](AttachmentCreateCall) (request)
/// * [upload media](MediaUploadCall) (request)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct CreateAttachmentRequest {
/// Required. The attachment to be created.
pub attachment: Option<Attachment>,
}
impl client::RequestValue for CreateAttachmentRequest {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DiffChecksumsResponse {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="checksumsLocation")]
pub checksums_location: Option<CompositeMedia>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="chunkSizeBytes")]
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub chunk_size_bytes: Option<i64>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectLocation")]
pub object_location: Option<CompositeMedia>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectSizeBytes")]
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub object_size_bytes: Option<i64>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectVersion")]
pub object_version: Option<String>,
}
impl client::Part for DiffChecksumsResponse {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DiffDownloadResponse {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectLocation")]
pub object_location: Option<CompositeMedia>,
}
impl client::Part for DiffDownloadResponse {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DiffUploadRequest {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="checksumsInfo")]
pub checksums_info: Option<CompositeMedia>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectInfo")]
pub object_info: Option<CompositeMedia>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectVersion")]
pub object_version: Option<String>,
}
impl client::Part for DiffUploadRequest {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DiffUploadResponse {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectVersion")]
pub object_version: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="originalObject")]
pub original_object: Option<CompositeMedia>,
}
impl client::Part for DiffUploadResponse {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DiffVersionResponse {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectSizeBytes")]
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub object_size_bytes: Option<i64>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectVersion")]
pub object_version: Option<String>,
}
impl client::Part for DiffVersionResponse {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct DownloadParameters {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="allowGzipCompression")]
pub allow_gzip_compression: Option<bool>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="ignoreRange")]
pub ignore_range: Option<bool>,
}
impl client::Part for DownloadParameters {}
/// The request message for the EscalateCase endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [escalate cases](CaseEscalateCall) (request)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct EscalateCaseRequest {
/// The escalation object to be sent with the escalation request.
pub escalation: Option<Escalation>,
}
impl client::RequestValue for EscalateCaseRequest {}
/// An escalation of a support case.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Escalation {
/// Required. A free text description to accompany the `reason` field above. Provides additional context on why the case is being escalated.
pub justification: Option<String>,
/// Required. The reason why the Case is being escalated.
pub reason: Option<EscalationReasonEnum>,
}
impl client::Part for Escalation {}
/// The response message for the ListAttachments endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [attachments list cases](CaseAttachmentListCall) (response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ListAttachmentsResponse {
/// The list of attachments associated with the given case.
pub attachments: Option<Vec<Attachment>>,
/// A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `cases.attachments.list` requests. If unspecified, there are no more results to retrieve.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
}
impl client::ResponseResult for ListAttachmentsResponse {}
/// The response message for the ListCases endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [list cases](CaseListCall) (response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ListCasesResponse {
/// The list of cases associated with the cloud resource, after any filters have been applied.
pub cases: Option<Vec<Case>>,
/// A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `ListCasesRequest` message that is issued. If unspecified, there are no more results to retrieve.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
}
impl client::ResponseResult for ListCasesResponse {}
/// The response message for the ListComments endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [comments list cases](CaseCommentListCall) (response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ListCommentsResponse {
/// The list of Comments associated with the given Case.
pub comments: Option<Vec<Comment>>,
/// A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `ListCommentsRequest` message that is issued. If unspecified, there are no more results to retrieve.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
}
impl client::ResponseResult for ListCommentsResponse {}
/// # gdata.\* are outside protos with mising documentation
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [download media](MediaDownloadCall) (response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Media {
/// # gdata.* are outside protos with mising documentation
pub algorithm: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="bigstoreObjectRef")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub bigstore_object_ref: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="blobRef")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub blob_ref: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="blobstore2Info")]
pub blobstore2_info: Option<Blobstore2Info>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="compositeMedia")]
pub composite_media: Option<Vec<CompositeMedia>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="contentType")]
pub content_type: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="contentTypeInfo")]
pub content_type_info: Option<ContentTypeInfo>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="cosmoBinaryReference")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub cosmo_binary_reference: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="crc32cHash")]
pub crc32c_hash: Option<u32>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="diffChecksumsResponse")]
pub diff_checksums_response: Option<DiffChecksumsResponse>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="diffDownloadResponse")]
pub diff_download_response: Option<DiffDownloadResponse>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="diffUploadRequest")]
pub diff_upload_request: Option<DiffUploadRequest>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="diffUploadResponse")]
pub diff_upload_response: Option<DiffUploadResponse>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="diffVersionResponse")]
pub diff_version_response: Option<DiffVersionResponse>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="downloadParameters")]
pub download_parameters: Option<DownloadParameters>,
/// # gdata.* are outside protos with mising documentation
pub filename: Option<String>,
/// # gdata.* are outside protos with mising documentation
pub hash: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="hashVerified")]
pub hash_verified: Option<bool>,
/// # gdata.* are outside protos with mising documentation
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub inline: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="isPotentialRetry")]
pub is_potential_retry: Option<bool>,
/// # gdata.* are outside protos with mising documentation
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub length: Option<i64>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="md5Hash")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub md5_hash: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="mediaId")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub media_id: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectId")]
pub object_id: Option<ObjectId>,
/// # gdata.* are outside protos with mising documentation
pub path: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="referenceType")]
pub reference_type: Option<MediaReferenceTypeEnum>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="sha1Hash")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub sha1_hash: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="sha256Hash")]
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub sha256_hash: Option<Vec<u8>>,
/// # gdata.* are outside protos with mising documentation
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub timestamp: Option<u64>,
/// # gdata.* are outside protos with mising documentation
pub token: Option<String>,
}
impl client::ResponseResult for Media {}
/// # gdata.* are outside protos with mising documentation
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ObjectId {
/// # gdata.* are outside protos with mising documentation
#[serde(rename="bucketName")]
pub bucket_name: Option<String>,
/// # gdata.* are outside protos with mising documentation
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
pub generation: Option<i64>,
/// # gdata.* are outside protos with mising documentation
#[serde(rename="objectName")]
pub object_name: Option<String>,
}
impl client::Part for ObjectId {}
/// The response message for SearchCaseClassifications endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [search case classifications](CaseClassificationSearchCall) (response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct SearchCaseClassificationsResponse {
/// The classifications retrieved.
#[serde(rename="caseClassifications")]
pub case_classifications: Option<Vec<CaseClassification>>,
/// A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `SearchCaseClassificationsRequest` message that is issued. If unspecified, there are no more results to retrieve.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
}
impl client::ResponseResult for SearchCaseClassificationsResponse {}
/// The response message for the SearchCases endpoint.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [search cases](CaseSearchCall) (response)
#[serde_with::serde_as(crate = "::client::serde_with")]
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct SearchCasesResponse {
/// The list of Case associated with the cloud resource, after any filters have been applied.
pub cases: Option<Vec<Case>>,
/// A token to retrieve the next page of results. This should be set in the `page_token` field of subsequent `SearchCaseRequest` message that is issued. If unspecified, there are no more results to retrieve.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
}
impl client::ResponseResult for SearchCasesResponse {}

View File

@@ -1,24 +0,0 @@
use super::*;
/// Identifies the an OAuth2 authorization scope.
/// A scope is needed when requesting an
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
#[derive(PartialEq, Eq, Hash, Debug, Clone)]
pub enum Scope {
/// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
CloudPlatform,
}
impl AsRef<str> for Scope {
fn as_ref(&self) -> &str {
match *self {
Scope::CloudPlatform => "https://www.googleapis.com/auth/cloud-platform",
}
}
}
impl Default for Scope {
fn default() -> Scope {
Scope::CloudPlatform
}
}

View File

@@ -1,222 +0,0 @@
// DO NOT EDIT !
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *Cloud Support* crate version *5.0.4+20240304*, where *20240304* is the exact revision of the *cloudsupport:v2beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.4*.
//!
//! Everything else about the *Cloud Support* *v2_beta* API can be found at the
//! [official documentation site](https://cloud.google.com/support/docs/apis).
//! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/main/gen/cloudsupport2_beta).
//! # Features
//!
//! Handle the following *Resources* with ease from the central [hub](CloudSupport) ...
//!
//! * [case classifications](api::CaseClassification)
//! * [*search*](api::CaseClassificationSearchCall)
//! * [cases](api::Case)
//! * [*attachments list*](api::CaseAttachmentListCall), [*close*](api::CaseCloseCall), [*comments create*](api::CaseCommentCreateCall), [*comments list*](api::CaseCommentListCall), [*create*](api::CaseCreateCall), [*escalate*](api::CaseEscalateCall), [*get*](api::CaseGetCall), [*list*](api::CaseListCall), [*patch*](api::CasePatchCall) and [*search*](api::CaseSearchCall)
//! * [media](api::Media)
//! * [*download*](api::MediaDownloadCall) and [*upload*](api::MediaUploadCall)
//!
//!
//! Upload supported by ...
//!
//! * [*upload media*](api::MediaUploadCall)
//!
//! Download supported by ...
//!
//! * [*download media*](api::MediaDownloadCall)
//!
//!
//!
//! Not what you are looking for ? Find all other Google APIs in their Rust [documentation index](http://byron.github.io/google-apis-rs).
//!
//! # Structure of this Library
//!
//! The API is structured into the following primary items:
//!
//! * **[Hub](CloudSupport)**
//! * a central object to maintain state and allow accessing all *Activities*
//! * creates [*Method Builders*](client::MethodsBuilder) which in turn
//! allow access to individual [*Call Builders*](client::CallBuilder)
//! * **[Resources](client::Resource)**
//! * primary types that you can apply *Activities* to
//! * a collection of properties and *Parts*
//! * **[Parts](client::Part)**
//! * a collection of properties
//! * never directly used in *Activities*
//! * **[Activities](client::CallBuilder)**
//! * operations to apply to *Resources*
//!
//! All *structures* are marked with applicable traits to further categorize them and ease browsing.
//!
//! Generally speaking, you can invoke *Activities* like this:
//!
//! ```Rust,ignore
//! let r = hub.resource().activity(...).doit().await
//! ```
//!
//! Or specifically ...
//!
//! ```ignore
//! let r = hub.cases().attachments_list(...).doit().await
//! let r = hub.cases().comments_create(...).doit().await
//! let r = hub.cases().comments_list(...).doit().await
//! let r = hub.cases().close(...).doit().await
//! let r = hub.cases().create(...).doit().await
//! let r = hub.cases().escalate(...).doit().await
//! let r = hub.cases().get(...).doit().await
//! let r = hub.cases().list(...).doit().await
//! let r = hub.cases().patch(...).doit().await
//! let r = hub.cases().search(...).doit().await
//! ```
//!
//! The `resource()` and `activity(...)` calls create [builders][builder-pattern]. The second one dealing with `Activities`
//! supports various methods to configure the impending operation (not shown here). It is made such that all required arguments have to be
//! specified right away (i.e. `(...)`), whereas all optional ones can be [build up][builder-pattern] as desired.
//! The `doit()` method performs the actual communication with the server and returns the respective result.
//!
//! # Usage
//!
//! ## Setting up your Project
//!
//! To use this library, you would put the following lines into your `Cargo.toml` file:
//!
//! ```toml
//! [dependencies]
//! google-cloudsupport2_beta = "*"
//! serde = "^1.0"
//! serde_json = "^1.0"
//! ```
//!
//! ## A complete example
//!
//! ```test_harness,no_run
//! extern crate hyper;
//! extern crate hyper_rustls;
//! extern crate google_cloudsupport2_beta as cloudsupport2_beta;
//! use cloudsupport2_beta::{Result, Error};
//! # async fn dox() {
//! use std::default::Default;
//! use cloudsupport2_beta::{CloudSupport, oauth2, hyper, hyper_rustls, chrono, FieldMask};
//!
//! // Get an ApplicationSecret instance by some means. It contains the `client_id` and
//! // `client_secret`, among other things.
//! let secret: oauth2::ApplicationSecret = Default::default();
//! // Instantiate the authenticator. It will choose a suitable authentication flow for you,
//! // unless you replace `None` with the desired Flow.
//! // Provide your own `AuthenticatorDelegate` to adjust the way it operates and get feedback about
//! // what's going on. You probably want to bring in your own `TokenStorage` to persist tokens and
//! // retrieve them from storage.
//! let auth = oauth2::InstalledFlowAuthenticator::builder(
//! secret,
//! oauth2::InstalledFlowReturnMethod::HTTPRedirect,
//! ).build().await.unwrap();
//! let mut hub = CloudSupport::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
//! // You can configure optional parameters by calling the respective setters at will, and
//! // execute the final call using `doit()`.
//! // Values shown here are possibly random and not representative !
//! let result = hub.cases().list("parent")
//! .product_line("sanctus")
//! .page_token("sed")
//! .page_size(-2)
//! .filter("takimata")
//! .doit().await;
//!
//! match result {
//! Err(e) => match e {
//! // The Error enum provides details about what exactly happened.
//! // You can also just use its `Debug`, `Display` or `Error` traits
//! Error::HttpError(_)
//! |Error::Io(_)
//! |Error::MissingAPIKey
//! |Error::MissingToken(_)
//! |Error::Cancelled
//! |Error::UploadSizeLimitExceeded(_, _)
//! |Error::Failure(_)
//! |Error::BadRequest(_)
//! |Error::FieldClash(_)
//! |Error::JsonDecodeError(_, _) => println!("{}", e),
//! },
//! Ok(res) => println!("Success: {:?}", res),
//! }
//! # }
//! ```
//! ## Handling Errors
//!
//! All errors produced by the system are provided either as [Result](client::Result) enumeration as return value of
//! the doit() methods, or handed as possibly intermediate results to either the
//! [Hub Delegate](client::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
//!
//! When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
//! makes the system potentially resilient to all kinds of errors.
//!
//! ## Uploads and Downloads
//! If a method supports downloads, the response body, which is part of the [Result](client::Result), should be
//! read by you to obtain the media.
//! If such a method also supports a [Response Result](client::ResponseResult), it will return that by default.
//! You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
//! this call: `.param("alt", "media")`.
//!
//! Methods supporting uploads can do so using up to 2 different protocols:
//! *simple* and *resumable*. The distinctiveness of each is represented by customized
//! `doit(...)` methods, which are then named `upload(...)` and `upload_resumable(...)` respectively.
//!
//! ## Customization and Callbacks
//!
//! You may alter the way an `doit()` method is called by providing a [delegate](client::Delegate) to the
//! [Method Builder](client::CallBuilder) before making the final `doit()` call.
//! Respective methods will be called to provide progress information, as well as determine whether the system should
//! retry on failure.
//!
//! The [delegate trait](client::Delegate) is default-implemented, allowing you to customize it with minimal effort.
//!
//! ## Optional Parts in Server-Requests
//!
//! All structures provided by this library are made to be [encodable](client::RequestValue) and
//! [decodable](client::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
//! are valid.
//! Most optionals are are considered [Parts](client::Part) which are identifiable by name, which will be sent to
//! the server to indicate either the set parts of the request or the desired parts in the response.
//!
//! ## Builder Arguments
//!
//! Using [method builders](client::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
//! These will always take a single argument, for which the following statements are true.
//!
//! * [PODs][wiki-pod] are handed by copy
//! * strings are passed as `&str`
//! * [request values](client::RequestValue) are moved
//!
//! Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
//!
//! [wiki-pod]: http://en.wikipedia.org/wiki/Plain_old_data_structure
//! [builder-pattern]: http://en.wikipedia.org/wiki/Builder_pattern
//! [google-go-api]: https://github.com/google/google-api-go-client
//!
//!
// Unused attributes happen thanks to defined, but unused structures
// We don't warn about this, as depending on the API, some data structures or facilities are never used.
// Instead of pre-determining this, we just disable the lint. It's manually tuned to not have any
// unused imports in fully featured APIs. Same with unused_mut ... .
#![allow(unused_imports, unused_mut, dead_code)]
// DO NOT EDIT !
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
// DO NOT EDIT !
// Re-export the hyper and hyper_rustls crate, they are required to build the hub
pub use hyper;
pub use hyper_rustls;
pub extern crate google_apis_common as client;
pub use client::chrono;
pub mod api;
// Re-export the hub type and some basic client structs
pub use api::CloudSupport;
pub use client::{Result, Error, Delegate, FieldMask};
// Re-export the yup_oauth2 crate, that is required to call some methods of the hub and the client
#[cfg(feature = "yup-oauth2")]
pub use client::oauth2;