Skip to main content

nautobot_openapi/models/
bulk_operation_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/// BulkOperationRequest : Representation of bulk-DELETE request for most models; also used to validate required ID field for bulk-PATCH/PUT.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BulkOperationRequest {
15    #[serde(rename = "id")]
16    pub id: uuid::Uuid,
17}
18
19impl BulkOperationRequest {
20    /// Representation of bulk-DELETE request for most models; also used to validate required ID field for bulk-PATCH/PUT.
21    pub fn new(id: uuid::Uuid) -> BulkOperationRequest {
22        BulkOperationRequest { id }
23    }
24}