update all code after version update

This commit is contained in:
Sebastian Thiel
2020-07-10 09:41:44 +08:00
parent c949124df5
commit d1ffa68287
1798 changed files with 692798 additions and 59942 deletions

View File

@@ -2,7 +2,7 @@
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *Android Management* crate version *1.0.13+20200330*, where *20200330* is the exact revision of the *androidmanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.13*.
//! This documentation was generated from *Android Management* crate version *1.0.14+20200701*, where *20200701* is the exact revision of the *androidmanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.14*.
//!
//! Everything else about the *Android Management* *v1* API can be found at the
//! [official documentation site](https://developers.google.com/android/management).
@@ -361,7 +361,7 @@ impl<'a, C, A> AndroidManagement<C, A>
AndroidManagement {
client: RefCell::new(client),
auth: RefCell::new(authenticator),
_user_agent: "google-api-rust-client/1.0.13".to_string(),
_user_agent: "google-api-rust-client/1.0.14".to_string(),
_base_url: "https://androidmanagement.googleapis.com/".to_string(),
_root_url: "https://androidmanagement.googleapis.com/".to_string(),
}
@@ -375,7 +375,7 @@ impl<'a, C, A> AndroidManagement<C, A>
}
/// Set the user-agent header field to use in all requests to the server.
/// It defaults to `google-api-rust-client/1.0.13`.
/// It defaults to `google-api-rust-client/1.0.14`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {
@@ -403,6 +403,35 @@ impl<'a, C, A> AndroidManagement<C, A>
// ############
// SCHEMAS ###
// ##########
/// Policies controlling personal usage on a Corporate Owned Personally Enabled device.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct PersonalUsagePolicies {
/// Controls how apps on the personal profile are allowed or blocked.
#[serde(rename="personalPlayStoreMode")]
pub personal_play_store_mode: Option<String>,
/// Policy applied to applications on the personal profile.
#[serde(rename="personalApplications")]
pub personal_applications: Option<Vec<PersonalApplicationPolicy>>,
/// Account types that can't be managed by the user.
#[serde(rename="accountTypesWithManagementDisabled")]
pub account_types_with_management_disabled: Option<Vec<String>>,
/// Controls how long the work profile can stay off.
#[serde(rename="maxDaysWithWorkOff")]
pub max_days_with_work_off: Option<i32>,
/// Whether camera is disabled.
#[serde(rename="cameraDisabled")]
pub camera_disabled: Option<bool>,
/// Whether screen capture is disabled.
#[serde(rename="screenCaptureDisabled")]
pub screen_capture_disabled: Option<bool>,
}
impl Part for PersonalUsagePolicies {}
/// Provides detail about non-compliance with a policy setting.
///
/// This type is not used in any activity, and only used as *part* of another schema.
@@ -466,6 +495,9 @@ pub struct EnrollmentToken {
/// The expiration time of the token. This is a read-only field generated by the server.
#[serde(rename="expirationTimestamp")]
pub expiration_timestamp: Option<String>,
/// Controls personal usage on devices provisioned using this enrollment token.
#[serde(rename="allowPersonalUsage")]
pub allow_personal_usage: Option<String>,
}
impl RequestValue for EnrollmentToken {}
@@ -741,9 +773,8 @@ pub struct Device {
pub enrollment_token_name: Option<String>,
/// The user who owns the device.
pub user: Option<User>,
/// Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy.
#[serde(rename="hardwareStatusSamples")]
pub hardware_status_samples: Option<Vec<HardwareStatus>>,
/// Ownership of the managed device.
pub ownership: Option<String>,
/// The version of the policy currently applied to the device.
#[serde(rename="appliedPolicyVersion")]
pub applied_policy_version: Option<String>,
@@ -767,6 +798,9 @@ pub struct Device {
/// Memory information. This information is only available if memoryInfoEnabled is true in the device's policy.
#[serde(rename="memoryInfo")]
pub memory_info: Option<MemoryInfo>,
/// Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy.
#[serde(rename="hardwareStatusSamples")]
pub hardware_status_samples: Option<Vec<HardwareStatus>>,
/// The time of device enrollment.
#[serde(rename="enrollmentTime")]
pub enrollment_time: Option<String>,
@@ -808,6 +842,13 @@ pub struct SigninDetail {
/// Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The sign-in endpoint should finish authentication flow with a URL in the form of https://enterprise.google.com/android/enroll?et=<token> for a successful login, or https://enterprise.google.com/android/enroll/invalid for a failed login.
#[serde(rename="signinUrl")]
pub signin_url: Option<String>,
/// Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices:
/// Enabling personal usage allows the user to set up a work profile on the device.
/// Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices:
/// Enabling personal usage allows the user to set up a work profile on the device.
/// Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.
#[serde(rename="allowPersonalUsage")]
pub allow_personal_usage: Option<String>,
}
impl Part for SigninDetail {}
@@ -1686,6 +1727,9 @@ pub struct Policy {
/// Whether rebooting the device into safe boot is disabled.
#[serde(rename="safeBootDisabled")]
pub safe_boot_disabled: Option<bool>,
/// Policies managing personal usage on a company-owned device.
#[serde(rename="personalUsagePolicies")]
pub personal_usage_policies: Option<PersonalUsagePolicies>,
/// Whether removing other users is disabled.
#[serde(rename="removeUserDisabled")]
pub remove_user_disabled: Option<bool>,
@@ -1789,6 +1833,9 @@ pub struct BlockAction {
/// Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays.
#[serde(rename="blockAfterDays")]
pub block_after_days: Option<i32>,
/// Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.
#[serde(rename="blockScope")]
pub block_scope: Option<String>,
}
impl Part for BlockAction {}
@@ -1999,6 +2046,22 @@ pub struct UserFacingMessage {
impl Part for UserFacingMessage {}
/// Data hosted at an external location. The data is to be downloaded by Android Device Policy and verified against the hash.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ExternalData {
/// The absolute URL to the data, which must use either the http or https scheme. Android Device Policy doesn't provide any credentials in the GET request, so the URL must be publicly accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL.
pub url: Option<String>,
/// The base-64 encoded SHA-256 hash of the content hosted at url. If the content doesn't match this hash, Android Device Policy won't use the data.
#[serde(rename="sha256Hash")]
pub sha256_hash: Option<String>,
}
impl Part for ExternalData {}
/// An action to launch an app.
///
/// This type is not used in any activity, and only used as *part* of another schema.
@@ -2195,20 +2258,21 @@ pub struct ManagedProperty {
impl Part for ManagedProperty {}
/// Data hosted at an external location. The data is to be downloaded by Android Device Policy and verified against the hash.
/// Policies for apps on the personal profile of a Corporate Owned Personally Enabled device.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ExternalData {
/// The absolute URL to the data, which must use either the http or https scheme. Android Device Policy doesn't provide any credentials in the GET request, so the URL must be publicly accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL.
pub url: Option<String>,
/// The base-64 encoded SHA-256 hash of the content hosted at url. If the content doesn't match this hash, Android Device Policy won't use the data.
#[serde(rename="sha256Hash")]
pub sha256_hash: Option<String>,
pub struct PersonalApplicationPolicy {
/// The type of installation to perform.
#[serde(rename="installType")]
pub install_type: Option<String>,
/// The package name of the application.
#[serde(rename="packageName")]
pub package_name: Option<String>,
}
impl Part for ExternalData {}
impl Part for PersonalApplicationPolicy {}
/// Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field.