/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v1.0.0.0; DO NOT EDIT. */
#![allow(unused_imports)]

use std::collections::HashMap;

use chrono::{DateTime, Utc};
use derive_builder::Builder;
use iso8601_duration::Duration;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use super::super::common_types::{b64::Bytes, date_only::Date, decimal::Decimal, time_only::Time};
use super::deprecated_info::DeprecatedInfo;
use super::label::Label;

/// Request payload for creating or updating a Group.
#[derive(Serialize, Deserialize, Debug, Clone, Builder)]
pub struct GroupAttributes {
    /// Group identifier.
    #[serde(rename = "groupId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub group_id: Option<String>,

    /// Human-readable name.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub name: Option<String>,

    /// A human-readable summary of the purpose of the entity.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub description: Option<String>,

    /// A URL to additional information about this entity.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub documentation: Option<String>,

    /// A URL to a graphical icon for the owning entity.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub icon: Option<String>,

    /// A mechanism in which additional metadata about the entity can be stored without changing the model definition of the entity. Labels can be used for querying.
    #[builder(default)]
    pub labels: Vec<Label>,

    /// Information about deprecation status of the entity, if applicable.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub deprecated: Option<DeprecatedInfo>,

    /// Extension-specific attributes (e.g., `envelope`, `protocol` for message Groups).
    #[builder(default)]
    pub extensions: HashMap<String, Bytes>,
}
