tapis-sk 0.3.0

The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
Documentation
/*
 * Tapis Security API
 *
 * The Tapis Security API provides for management of Security Kernel (SK) role-based authorization and secrets resources.
 *
 * The version of the OpenAPI document: 1.8.2
 * 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 ReqUpdateRoleOwner {
    #[serde(rename = "roleTenant")]
    pub role_tenant: String,
    #[serde(rename = "roleType", skip_serializing_if = "Option::is_none")]
    pub role_type: Option<models::RoleTypeEnum>,
    #[serde(rename = "newOwner")]
    pub new_owner: String,
    #[serde(rename = "newTenant", skip_serializing_if = "Option::is_none")]
    pub new_tenant: Option<String>,
}

impl ReqUpdateRoleOwner {
    pub fn new(role_tenant: String, new_owner: String) -> ReqUpdateRoleOwner {
        ReqUpdateRoleOwner {
            role_tenant,
            role_type: None,
            new_owner,
            new_tenant: None,
        }
    }
}