/*
 * Ory APIs
 *
 * # Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.  ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages:  | Language       | Download SDK                                                     | Documentation                                                                        | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart           | [pub.dev](https://pub.dev/packages/ory_client)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md)       | | .NET           | [nuget.org](https://www.nuget.org/packages/Ory.Client/)          | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md)     | | Elixir         | [hex.pm](https://hex.pm/packages/ory_client)                     | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md)     | | Go             | [github.com](https://github.com/ory/client-go)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md)         | | Java           | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md)       | | JavaScript     | [npmjs.com](https://www.npmjs.com/package/@ory/client)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) |  | PHP            | [packagist.org](https://packagist.org/packages/ory/client)       | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md)        | | Python         | [pypi.org](https://pypi.org/project/ory-client/)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md)     | | Ruby           | [rubygems.org](https://rubygems.org/gems/ory-client)             | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md)       | | Rust           | [crates.io](https://crates.io/crates/ory-client)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md)       | 
 *
 * The version of the OpenAPI document: v1.22.56
 * Contact: support@ory.sh
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DeviceAuthnAndroidAuthorizationList : Schema: https://source.android.com/docs/security/features/keystore/attestation#schema
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeviceAuthnAndroidAuthorizationList {
    #[serde(rename = "active_date_time", skip_serializing_if = "Option::is_none")]
    pub active_date_time: Option<i64>,
    #[serde(rename = "algorithm", skip_serializing_if = "Option::is_none")]
    pub algorithm: Option<i64>,
    #[serde(rename = "application_id", skip_serializing_if = "Option::is_none")]
    pub application_id: Option<Vec<i32>>,
    #[serde(rename = "attestation_application_id", skip_serializing_if = "Option::is_none")]
    pub attestation_application_id: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_brand", skip_serializing_if = "Option::is_none")]
    pub attestation_id_brand: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_device", skip_serializing_if = "Option::is_none")]
    pub attestation_id_device: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_imei", skip_serializing_if = "Option::is_none")]
    pub attestation_id_imei: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_manufacturer", skip_serializing_if = "Option::is_none")]
    pub attestation_id_manufacturer: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_meid", skip_serializing_if = "Option::is_none")]
    pub attestation_id_meid: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_model", skip_serializing_if = "Option::is_none")]
    pub attestation_id_model: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_product", skip_serializing_if = "Option::is_none")]
    pub attestation_id_product: Option<Vec<i32>>,
    #[serde(rename = "attestation_id_serial", skip_serializing_if = "Option::is_none")]
    pub attestation_id_serial: Option<Vec<i32>>,
    #[serde(rename = "auth_timeout", skip_serializing_if = "Option::is_none")]
    pub auth_timeout: Option<i64>,
    #[serde(rename = "boot_patch_level", skip_serializing_if = "Option::is_none")]
    pub boot_patch_level: Option<i64>,
    #[serde(rename = "creation_date_time", skip_serializing_if = "Option::is_none")]
    pub creation_date_time: Option<i64>,
    #[serde(rename = "digest", skip_serializing_if = "Option::is_none")]
    pub digest: Option<Vec<i64>>,
    #[serde(rename = "ec_curve", skip_serializing_if = "Option::is_none")]
    pub ec_curve: Option<i64>,
    #[serde(rename = "key_size", skip_serializing_if = "Option::is_none")]
    pub key_size: Option<i64>,
    #[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
    pub origin: Option<i64>,
    #[serde(rename = "origination_expire_date_time", skip_serializing_if = "Option::is_none")]
    pub origination_expire_date_time: Option<i64>,
    #[serde(rename = "os_patch_level", skip_serializing_if = "Option::is_none")]
    pub os_patch_level: Option<i64>,
    #[serde(rename = "os_version", skip_serializing_if = "Option::is_none")]
    pub os_version: Option<i64>,
    #[serde(rename = "purpose", skip_serializing_if = "Option::is_none")]
    pub purpose: Option<Vec<i64>>,
    #[serde(rename = "root_of_trust", skip_serializing_if = "Option::is_none")]
    pub root_of_trust: Option<Box<models::DeviceAuthnAndroidRootOfTrust>>,
    #[serde(rename = "usage_expire_date_time", skip_serializing_if = "Option::is_none")]
    pub usage_expire_date_time: Option<i64>,
    #[serde(rename = "user_auth_type", skip_serializing_if = "Option::is_none")]
    pub user_auth_type: Option<i64>,
    #[serde(rename = "vendor_patch_level", skip_serializing_if = "Option::is_none")]
    pub vendor_patch_level: Option<i64>,
}

impl DeviceAuthnAndroidAuthorizationList {
    /// Schema: https://source.android.com/docs/security/features/keystore/attestation#schema
    pub fn new() -> DeviceAuthnAndroidAuthorizationList {
        DeviceAuthnAndroidAuthorizationList {
            active_date_time: None,
            algorithm: None,
            application_id: None,
            attestation_application_id: None,
            attestation_id_brand: None,
            attestation_id_device: None,
            attestation_id_imei: None,
            attestation_id_manufacturer: None,
            attestation_id_meid: None,
            attestation_id_model: None,
            attestation_id_product: None,
            attestation_id_serial: None,
            auth_timeout: None,
            boot_patch_level: None,
            creation_date_time: None,
            digest: None,
            ec_curve: None,
            key_size: None,
            origin: None,
            origination_expire_date_time: None,
            os_patch_level: None,
            os_version: None,
            purpose: None,
            root_of_trust: None,
            usage_expire_date_time: None,
            user_auth_type: None,
            vendor_patch_level: None,
        }
    }
}

