// Code generated by oagen. DO NOT EDIT.
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateUserApiKey {
/// A descriptive name for the API key.
pub name: String,
/// The ID of the organization the user API key is associated with. The user must have an active membership in this organization.
pub organization_id: String,
/// The permission slugs to assign to the API key. Each permission must be enabled for user API keys.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub permissions: Option<Vec<String>>,
}