Skip to main content

netbox_openapi/models/
patched_bulk_fhrp_group_assignment_request.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.6.8 (4.6)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// PatchedBulkFhrpGroupAssignmentRequest : Adds support for custom fields and tags.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct PatchedBulkFhrpGroupAssignmentRequest {
15    #[serde(rename = "id")]
16    pub id: i32,
17    #[serde(rename = "group", skip_serializing_if = "Option::is_none")]
18    pub group: Option<Box<crate::models::BulkFhrpGroupAssignmentRequestGroup>>,
19    #[serde(rename = "interface_type", skip_serializing_if = "Option::is_none")]
20    pub interface_type: Option<String>,
21    #[serde(rename = "interface_id", skip_serializing_if = "Option::is_none")]
22    pub interface_id: Option<i64>,
23    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
24    pub priority: Option<i32>,
25}
26
27impl PatchedBulkFhrpGroupAssignmentRequest {
28    /// Adds support for custom fields and tags.
29    pub fn new(id: i32) -> PatchedBulkFhrpGroupAssignmentRequest {
30        PatchedBulkFhrpGroupAssignmentRequest {
31            id,
32            group: None,
33            interface_type: None,
34            interface_id: None,
35            priority: None,
36        }
37    }
38}