fastly_api/models/
tls_private_key_response_attributes.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 TlsPrivateKeyResponseAttributes {
13    /// Date and time in ISO 8601 format.
14    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
15    pub created_at: Option<String>,
16    /// Date and time in ISO 8601 format.
17    #[serde(rename = "deleted_at", skip_serializing_if = "Option::is_none")]
18    pub deleted_at: Option<String>,
19    /// Date and time in ISO 8601 format.
20    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
21    pub updated_at: Option<String>,
22    /// A customizable name for your private key.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// The key length used to generate the private key.
26    #[serde(rename = "key_length", skip_serializing_if = "Option::is_none")]
27    pub key_length: Option<i32>,
28    /// The algorithm used to generate the private key. Must be `RSA`.
29    #[serde(rename = "key_type", skip_serializing_if = "Option::is_none")]
30    pub key_type: Option<String>,
31    /// A recommendation from Fastly to replace this private key and all associated certificates.
32    #[serde(rename = "replace", skip_serializing_if = "Option::is_none")]
33    pub replace: Option<bool>,
34    /// Useful for safely identifying the key.
35    #[serde(rename = "public_key_sha1", skip_serializing_if = "Option::is_none")]
36    pub public_key_sha1: Option<String>,
37}
38
39impl TlsPrivateKeyResponseAttributes {
40    pub fn new() -> TlsPrivateKeyResponseAttributes {
41        TlsPrivateKeyResponseAttributes {
42            created_at: None,
43            deleted_at: None,
44            updated_at: None,
45            name: None,
46            key_length: None,
47            key_type: None,
48            replace: None,
49            public_key_sha1: None,
50        }
51    }
52}
53
54