harbor-api 2.0.0

These APIs provide services for manipulating Harbor project.
Documentation
/*
 * Harbor API
 *
 * These APIs provide services for manipulating Harbor project.
 *
 * The version of the OpenAPI document: 2.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RegistryUpdate {
    /// The registry name.
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
    /// Description of the registry.
    #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub description: Option<Option<String>>,
    /// The registry URL.
    #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub url: Option<Option<String>>,
    /// Credential type of the registry, e.g. 'basic'.
    #[serde(rename = "credential_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub credential_type: Option<Option<String>>,
    /// The registry access key.
    #[serde(rename = "access_key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub access_key: Option<Option<String>>,
    /// The registry access secret.
    #[serde(rename = "access_secret", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub access_secret: Option<Option<String>>,
    /// Whether or not the certificate will be verified when Harbor tries to access the server.
    #[serde(rename = "insecure", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub insecure: Option<Option<bool>>,
}

impl RegistryUpdate {
    pub fn new() -> RegistryUpdate {
        RegistryUpdate {
            name: None,
            description: None,
            url: None,
            credential_type: None,
            access_key: None,
            access_secret: None,
            insecure: None,
        }
    }
}