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};

/// RegistryProviderEndpointPattern : The registry endpoint pattern
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RegistryProviderEndpointPattern {
    /// The endpoint type
    #[serde(rename = "endpoint_type", skip_serializing_if = "Option::is_none")]
    pub endpoint_type: Option<String>,
    /// The endpoint list
    #[serde(rename = "endpoints", skip_serializing_if = "Option::is_none")]
    pub endpoints: Option<Vec<models::RegistryEndpoint>>,
}

impl RegistryProviderEndpointPattern {
    /// The registry endpoint pattern
    pub fn new() -> RegistryProviderEndpointPattern {
        RegistryProviderEndpointPattern {
            endpoint_type: None,
            endpoints: None,
        }
    }
}