harbor_api/models/
registry_ping.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RegistryPing {
16    /// The registry ID.
17    #[serde(rename = "id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub id: Option<Option<i64>>,
19    /// Type of the registry, e.g. 'harbor'.
20    #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub r#type: Option<Option<String>>,
22    /// The registry URL.
23    #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub url: Option<Option<String>>,
25    /// Credential type of the registry, e.g. 'basic'.
26    #[serde(rename = "credential_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub credential_type: Option<Option<String>>,
28    /// The registry access key.
29    #[serde(rename = "access_key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub access_key: Option<Option<String>>,
31    /// The registry access secret.
32    #[serde(rename = "access_secret", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
33    pub access_secret: Option<Option<String>>,
34    /// Whether or not the certificate will be verified when Harbor tries to access the server.
35    #[serde(rename = "insecure", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
36    pub insecure: Option<Option<bool>>,
37}
38
39impl RegistryPing {
40    pub fn new() -> RegistryPing {
41        RegistryPing {
42            id: None,
43            r#type: None,
44            url: None,
45            credential_type: None,
46            access_key: None,
47            access_secret: None,
48            insecure: None,
49        }
50    }
51}
52