/*
 * Tapis Applications API
 *
 * The Tapis Applications API provides for management of Tapis applications including permissions.
 *
 * The version of the OpenAPI document: 26Q1.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SkShareRecord {
    #[serde(rename = "tenant", skip_serializing_if = "Option::is_none")]
    pub tenant: Option<String>,
    #[serde(rename = "grantor", skip_serializing_if = "Option::is_none")]
    pub grantor: Option<String>,
    #[serde(rename = "grantee", skip_serializing_if = "Option::is_none")]
    pub grantee: Option<String>,
    #[serde(rename = "resourceType", skip_serializing_if = "Option::is_none")]
    pub resource_type: Option<String>,
    #[serde(rename = "resourceId1", skip_serializing_if = "Option::is_none")]
    pub resource_id1: Option<String>,
    #[serde(rename = "resourceId2", skip_serializing_if = "Option::is_none")]
    pub resource_id2: Option<String>,
    #[serde(rename = "privilege", skip_serializing_if = "Option::is_none")]
    pub privilege: Option<String>,
    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
    pub created: Option<String>,
    #[serde(rename = "createdBy", skip_serializing_if = "Option::is_none")]
    pub created_by: Option<String>,
    #[serde(rename = "createdByTenant", skip_serializing_if = "Option::is_none")]
    pub created_by_tenant: Option<String>,
}

impl SkShareRecord {
    pub fn new() -> SkShareRecord {
        SkShareRecord {
            tenant: None,
            grantor: None,
            grantee: None,
            resource_type: None,
            resource_id1: None,
            resource_id2: None,
            privilege: None,
            created: None,
            created_by: None,
            created_by_tenant: None,
        }
    }
}
