Skip to main content

nautobot_openapi/models/
patched_software_image_file_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/// PatchedSoftwareImageFileRequest : Base class to use for serializers based on OrganizationalModel or PrimaryModel.  Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct PatchedSoftwareImageFileRequest {
15    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
16    pub id: Option<uuid::Uuid>,
17    #[serde(rename = "image_file_name", skip_serializing_if = "Option::is_none")]
18    pub image_file_name: Option<String>,
19    #[serde(
20        rename = "image_file_checksum",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub image_file_checksum: Option<String>,
24    #[serde(rename = "hashing_algorithm", skip_serializing_if = "Option::is_none")]
25    pub hashing_algorithm:
26        Option<Box<crate::models::BulkWritableSoftwareImageFileRequestHashingAlgorithm>>,
27    /// Image file size in bytes
28    #[serde(
29        rename = "image_file_size",
30        default,
31        with = "::serde_with::rust::double_option",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub image_file_size: Option<Option<i64>>,
35    #[serde(rename = "download_url", skip_serializing_if = "Option::is_none")]
36    pub download_url: Option<String>,
37    /// Is the default image for this software version
38    #[serde(rename = "default_image", skip_serializing_if = "Option::is_none")]
39    pub default_image: Option<bool>,
40    #[serde(rename = "software_version", skip_serializing_if = "Option::is_none")]
41    pub software_version:
42        Option<Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
43    #[serde(
44        rename = "external_integration",
45        default,
46        with = "::serde_with::rust::double_option",
47        skip_serializing_if = "Option::is_none"
48    )]
49    pub external_integration: Option<Option<Box<crate::models::ApprovalWorkflowUser>>>,
50    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
51    pub status: Option<Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
52    #[serde(rename = "custom_fields", skip_serializing_if = "Option::is_none")]
53    pub custom_fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
54    #[serde(rename = "relationships", skip_serializing_if = "Option::is_none")]
55    pub relationships: Option<
56        ::std::collections::HashMap<
57            String,
58            crate::models::ApprovalWorkflowDefinitionRequestRelationshipsValue,
59        >,
60    >,
61    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
62    pub tags: Option<Vec<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
63}
64
65impl PatchedSoftwareImageFileRequest {
66    /// Base class to use for serializers based on OrganizationalModel or PrimaryModel.  Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
67    pub fn new() -> PatchedSoftwareImageFileRequest {
68        PatchedSoftwareImageFileRequest {
69            id: None,
70            image_file_name: None,
71            image_file_checksum: None,
72            hashing_algorithm: None,
73            image_file_size: None,
74            download_url: None,
75            default_image: None,
76            software_version: None,
77            external_integration: None,
78            status: None,
79            custom_fields: None,
80            relationships: None,
81            tags: None,
82        }
83    }
84}