nautobot_openapi/models/
patched_config_context_request.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct PatchedConfigContextRequest {
15 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
16 pub id: Option<uuid::Uuid>,
17 #[serde(
18 rename = "owner_content_type",
19 default,
20 with = "::serde_with::rust::double_option",
21 skip_serializing_if = "Option::is_none"
22 )]
23 pub owner_content_type: Option<Option<String>>,
24 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25 pub name: Option<String>,
26 #[serde(
27 rename = "owner_object_id",
28 default,
29 with = "::serde_with::rust::double_option",
30 skip_serializing_if = "Option::is_none"
31 )]
32 pub owner_object_id: Option<Option<uuid::Uuid>>,
33 #[serde(rename = "weight", skip_serializing_if = "Option::is_none")]
34 pub weight: Option<i32>,
35 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
36 pub description: Option<String>,
37 #[serde(rename = "is_active", skip_serializing_if = "Option::is_none")]
38 pub is_active: Option<bool>,
39 #[serde(
40 rename = "data",
41 default,
42 with = "::serde_with::rust::double_option",
43 skip_serializing_if = "Option::is_none"
44 )]
45 pub data: Option<Option<serde_json::Value>>,
46 #[serde(
47 rename = "config_context_schema",
48 default,
49 with = "::serde_with::rust::double_option",
50 skip_serializing_if = "Option::is_none"
51 )]
52 pub config_context_schema:
53 Option<Option<Box<crate::models::BulkWritableConfigContextRequestConfigContextSchema>>>,
54 #[serde(rename = "locations", skip_serializing_if = "Option::is_none")]
55 pub locations: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
56 #[serde(rename = "roles", skip_serializing_if = "Option::is_none")]
57 pub roles: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
58 #[serde(rename = "device_types", skip_serializing_if = "Option::is_none")]
59 pub device_types:
60 Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
61 #[serde(
62 rename = "device_redundancy_groups",
63 skip_serializing_if = "Option::is_none"
64 )]
65 pub device_redundancy_groups:
66 Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
67 #[serde(rename = "platforms", skip_serializing_if = "Option::is_none")]
68 pub platforms: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
69 #[serde(rename = "cluster_groups", skip_serializing_if = "Option::is_none")]
70 pub cluster_groups:
71 Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
72 #[serde(rename = "clusters", skip_serializing_if = "Option::is_none")]
73 pub clusters: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
74 #[serde(rename = "tenant_groups", skip_serializing_if = "Option::is_none")]
75 pub tenant_groups:
76 Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
77 #[serde(rename = "tenants", skip_serializing_if = "Option::is_none")]
78 pub tenants: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
79 #[serde(rename = "device_families", skip_serializing_if = "Option::is_none")]
80 pub device_families:
81 Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
82 #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
83 pub tags: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
84}
85
86impl PatchedConfigContextRequest {
87 pub fn new() -> PatchedConfigContextRequest {
89 PatchedConfigContextRequest {
90 id: None,
91 owner_content_type: None,
92 name: None,
93 owner_object_id: None,
94 weight: None,
95 description: None,
96 is_active: None,
97 data: None,
98 config_context_schema: None,
99 locations: None,
100 roles: None,
101 device_types: None,
102 device_redundancy_groups: None,
103 platforms: None,
104 cluster_groups: None,
105 clusters: None,
106 tenant_groups: None,
107 tenants: None,
108 device_families: None,
109 tags: None,
110 }
111 }
112}