Skip to main content

tapis_workflows/models/
req_github_identity.rs

1/*
2 * Tapis Workflows API
3 *
4 * Create and manage pipelines
5 *
6 * The version of the OpenAPI document: 1.6.0
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReqGithubIdentity {
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    #[serde(rename = "type")]
21    pub r#type: models::EnumIdentityType,
22    #[serde(rename = "credentials", skip_serializing_if = "Option::is_none")]
23    pub credentials: Option<Box<models::ReqGithubCred>>,
24}
25
26impl ReqGithubIdentity {
27    pub fn new(r#type: models::EnumIdentityType) -> ReqGithubIdentity {
28        ReqGithubIdentity {
29            name: None,
30            description: None,
31            r#type,
32            credentials: None,
33        }
34    }
35}