/*
* 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 O11yPeriodO11yRoleCreateIn {
/// Description says what the role is for.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Name is the role's name: lowercase letters and hyphens, at most 50 characters, not starting with the reserved managed-role prefix. Required.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// TransactionGroups are the grants the role carries.
#[serde(rename = "transactionGroups", skip_serializing_if = "Option::is_none")]
pub transaction_groups: Option<Vec<models::O11yPeriodO11yTransactionGroup>>,
}
impl O11yPeriodO11yRoleCreateIn {
pub fn new() -> O11yPeriodO11yRoleCreateIn {
O11yPeriodO11yRoleCreateIn {
description: None,
name: None,
transaction_groups: None,
}
}
}