/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EndpointView {
/// Connector names a connected account from the org's connector registry, when the endpoint reaches its provider through one. Absent means the locator stands on its own; the pair below is always sufficient either way.
#[serde(rename = "connector", skip_serializing_if = "Option::is_none")]
pub connector: Option<String>,
/// Locator addresses the thing INSIDE that provider, in the provider's own terms — an https clone URL for a hosted forge, a bare repository name for hanzo-git. It never carries a credential.
#[serde(rename = "locator", skip_serializing_if = "Option::is_none")]
pub locator: Option<String>,
/// Provider is the concrete integration: \"github\", \"gitlab\" or \"hanzo-git\".
#[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
pub provider: Option<String>,
}
impl EndpointView {
pub fn new() -> EndpointView {
EndpointView {
connector: None,
locator: None,
provider: None,
}
}
}