fastly_api/models/
automation_token_response_all_of.rs

1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) 
5 *
6 */
7
8
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct AutomationTokenResponseAllOf {
13    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
14    pub id: Option<Box<crate::models::ReadOnlyId>>,
15    #[serde(rename = "customer_id", skip_serializing_if = "Option::is_none")]
16    pub customer_id: Option<Box<crate::models::ReadOnlyCustomerId>>,
17    #[serde(rename = "role", skip_serializing_if = "Option::is_none")]
18    pub role: Option<String>,
19    /// The IP address of the client that last used the token.
20    #[serde(rename = "ip", skip_serializing_if = "Option::is_none")]
21    pub ip: Option<String>,
22    /// The User-Agent header of the client that last used the token.
23    #[serde(rename = "user_agent", skip_serializing_if = "Option::is_none")]
24    pub user_agent: Option<String>,
25    /// Indicates whether TLS access is enabled for the token.
26    #[serde(rename = "tls_access", skip_serializing_if = "Option::is_none")]
27    pub tls_access: Option<bool>,
28    /// A UTC timestamp of when the token was last used.
29    #[serde(rename = "last_used_at", skip_serializing_if = "Option::is_none")]
30    pub last_used_at: Option<String>,
31    /// A UTC timestamp of when the token was created.
32    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
33    pub created_at: Option<String>,
34    /// (optional) A UTC timestamp of when the token will expire.
35    #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
36    pub expires_at: Option<String>,
37}
38
39impl AutomationTokenResponseAllOf {
40    pub fn new() -> AutomationTokenResponseAllOf {
41        AutomationTokenResponseAllOf {
42            id: None,
43            customer_id: None,
44            role: None,
45            ip: None,
46            user_agent: None,
47            tls_access: None,
48            last_used_at: None,
49            created_at: None,
50            expires_at: None,
51        }
52    }
53}
54
55