/*
* 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 EndpointReq {
/// Connector names the stored credential to reach this endpoint with.
#[serde(rename = "connector", skip_serializing_if = "Option::is_none")]
pub connector: Option<String>,
/// Locator addresses the resource. For a git source it is the https clone URL on the provider's own host, with no embedded credentials; for a native target it is the repository name.
#[serde(rename = "locator", skip_serializing_if = "Option::is_none")]
pub locator: Option<String>,
/// Provider is the platform: github or gitlab for a source; a target defaults to the native Hanzo Git plane.
#[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
pub provider: Option<String>,
}
impl EndpointReq {
pub fn new() -> EndpointReq {
EndpointReq {
connector: None,
locator: None,
provider: None,
}
}
}