Skip to main content

nautobot_openapi/models/
device_cluster_assignment_request.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// DeviceClusterAssignmentRequest : Serializer for DeviceClusterAssignment model.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct DeviceClusterAssignmentRequest {
15    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
16    pub id: Option<uuid::Uuid>,
17    #[serde(rename = "device")]
18    pub device: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
19    #[serde(rename = "cluster")]
20    pub cluster: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
21}
22
23impl DeviceClusterAssignmentRequest {
24    /// Serializer for DeviceClusterAssignment model.
25    pub fn new(
26        device: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
27        cluster: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
28    ) -> DeviceClusterAssignmentRequest {
29        DeviceClusterAssignmentRequest {
30            id: None,
31            device: Box::new(device),
32            cluster: Box::new(cluster),
33        }
34    }
35}