harbor_api/models/
registry_provider_endpoint_pattern.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/// RegistryProviderEndpointPattern : The registry endpoint pattern
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RegistryProviderEndpointPattern {
17    /// The endpoint type
18    #[serde(rename = "endpoint_type", skip_serializing_if = "Option::is_none")]
19    pub endpoint_type: Option<String>,
20    /// The endpoint list
21    #[serde(rename = "endpoints", skip_serializing_if = "Option::is_none")]
22    pub endpoints: Option<Vec<models::RegistryEndpoint>>,
23}
24
25impl RegistryProviderEndpointPattern {
26    /// The registry endpoint pattern
27    pub fn new() -> RegistryProviderEndpointPattern {
28        RegistryProviderEndpointPattern {
29            endpoint_type: None,
30            endpoints: None,
31        }
32    }
33}
34