nautobot_openapi/models/
bulk_writable_cloud_service_request.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BulkWritableCloudServiceRequest {
15 #[serde(rename = "id")]
16 pub id: uuid::Uuid,
17 #[serde(
18 rename = "extra_config",
19 default,
20 with = "::serde_with::rust::double_option",
21 skip_serializing_if = "Option::is_none"
22 )]
23 pub extra_config: Option<Option<serde_json::Value>>,
24 #[serde(rename = "name")]
25 pub name: String,
26 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
27 pub description: Option<String>,
28 #[serde(rename = "cloud_resource_type")]
29 pub cloud_resource_type: Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>,
30 #[serde(
31 rename = "cloud_account",
32 default,
33 with = "::serde_with::rust::double_option",
34 skip_serializing_if = "Option::is_none"
35 )]
36 pub cloud_account: Option<Option<Box<crate::models::ApprovalWorkflowUser>>>,
37 #[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
38 pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
39 #[serde(rename = "relationships", skip_serializing_if = "Option::is_none")]
40 pub relationships: Option<
41 ::std::collections::HashMap<
42 String,
43 crate::models::ApprovalWorkflowDefinitionRequestRelationshipsValue,
44 >,
45 >,
46 #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
47 pub tags: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
48}
49
50impl BulkWritableCloudServiceRequest {
51 pub fn new(
53 id: uuid::Uuid,
54 name: String,
55 cloud_resource_type: crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage,
56 ) -> BulkWritableCloudServiceRequest {
57 BulkWritableCloudServiceRequest {
58 id,
59 extra_config: None,
60 name,
61 description: None,
62 cloud_resource_type: Box::new(cloud_resource_type),
63 cloud_account: None,
64 custom_fields: None,
65 relationships: None,
66 tags: None,
67 }
68 }
69}