Skip to main content

nautobot_openapi/models/
bulk_writable_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/// BulkWritableDeviceClusterAssignmentRequest : Serializer for DeviceClusterAssignment model.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BulkWritableDeviceClusterAssignmentRequest {
15    #[serde(rename = "id")]
16    pub id: 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 BulkWritableDeviceClusterAssignmentRequest {
24    /// Serializer for DeviceClusterAssignment model.
25    pub fn new(
26        id: uuid::Uuid,
27        device: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
28        cluster: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
29    ) -> BulkWritableDeviceClusterAssignmentRequest {
30        BulkWritableDeviceClusterAssignmentRequest {
31            id,
32            device: Box::new(device),
33            cluster: Box::new(cluster),
34        }
35    }
36}