diff --git a/services/autorust/codegen/src/cargo_toml.rs b/services/autorust/codegen/src/cargo_toml.rs index 9c4f9c2a092..893c445c451 100644 --- a/services/autorust/codegen/src/cargo_toml.rs +++ b/services/autorust/codegen/src/cargo_toml.rs @@ -38,12 +38,12 @@ serde = {{ version = "1.0", features = ["derive"] }} serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = {{ path = "../../../sdk/identity" }} tokio = {{ version = "1.0", features = ["macros"] }} env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/autorust/codegen/src/codegen.rs b/services/autorust/codegen/src/codegen.rs index 4d40eecce74..291cdb294ae 100644 --- a/services/autorust/codegen/src/codegen.rs +++ b/services/autorust/codegen/src/codegen.rs @@ -86,7 +86,7 @@ fn id_models() -> Ident { } pub fn type_name_gen(type_name: &TypeName) -> Result { - Ok(match type_name { + let mut type_name_code = match type_name { TypeName::Reference(name) => { let idt = parse_ident(&name.to_pascal_case())?; TypeNameCode::from(idt).allow_qualify_models(true) @@ -100,7 +100,11 @@ pub fn type_name_gen(type_name: &TypeName) -> Result { TypeName::Float64 => TypeNameCode::from(tp_f64()).allow_impl_into(false), TypeName::Boolean => TypeNameCode::from(tp_bool()).allow_impl_into(false), TypeName::String => TypeNameCode::from(tp_string()), - }) + TypeName::DateTime => TypeNameCode::from(tp_date_time()), + TypeName::DateTimeRfc1123 => TypeNameCode::from(tp_date_time()), + }; + type_name_code.type_name = Some(type_name.clone()); + Ok(type_name_code) } pub fn create_mod() -> TokenStream { @@ -145,15 +149,23 @@ pub struct TypeNameCode { boxed: bool, qualify_models: bool, allow_qualify_models: bool, + type_name: Option, } impl TypeNameCode { pub fn is_string(&self) -> bool { - self.type_path.to_token_stream().to_string() == TP_STRING + self.type_name == Some(TypeName::String) + } + pub fn is_date_time(&self) -> bool { + self.type_name == Some(TypeName::DateTime) + } + pub fn is_date_time_rfc1123(&self) -> bool { + self.type_name == Some(TypeName::DateTimeRfc1123) } pub fn is_vec(&self) -> bool { self.vec_count > 0 && !self.force_value } + /// Forces the type to be `serde_json::Value` pub fn force_value(mut self, force_value: bool) -> Self { self.force_value = force_value; self @@ -272,6 +284,7 @@ impl From for TypeNameCode { boxed: false, qualify_models: false, allow_qualify_models: false, + type_name: None, } } } @@ -372,15 +385,18 @@ fn tp_bool() -> TypePath { parse_type_path("bool").unwrap() } -const TP_STRING: &str = "String"; fn tp_string() -> TypePath { - parse_type_path(TP_STRING).unwrap() // std::string::String + parse_type_path("String").unwrap() // std::string::String } fn tp_box() -> TypePath { parse_type_path("Box").unwrap() // std::boxed::Box } +fn tp_date_time() -> TypePath { + parse_type_path("time::OffsetDateTime").unwrap() +} + #[cfg(test)] mod tests { use super::*; @@ -457,7 +473,8 @@ mod tests { #[test] fn test_tp_string() -> Result<()> { - let tp = TypeNameCode::from(tp_string()); + let mut tp = TypeNameCode::from(tp_string()); + tp.type_name = Some(TypeName::String); assert!(tp.is_string()); Ok(()) } diff --git a/services/autorust/codegen/src/codegen_models.rs b/services/autorust/codegen/src/codegen_models.rs index 44a7f2bb1f0..1962dadf75c 100644 --- a/services/autorust/codegen/src/codegen_models.rs +++ b/services/autorust/codegen/src/codegen_models.rs @@ -633,8 +633,19 @@ fn create_struct(cg: &CodeGen, schema: &SchemaGen, struct_name: &str, pageable: if field_name != property_name { serde_attrs.push(quote! { rename = #property_name }); } - if !is_required { - if type_name.is_vec() { + #[allow(clippy::collapsible_else_if)] + if is_required { + if type_name.is_date_time() { + serde_attrs.push(quote! { with = "azure_core::date::rfc3339"}); + } else if type_name.is_date_time_rfc1123() { + serde_attrs.push(quote! { with = "azure_core::date::rfc1123"}); + } + } else { + if type_name.is_date_time() { + serde_attrs.push(quote! { with = "azure_core::date::rfc3339::option"}); + } else if type_name.is_date_time_rfc1123() { + serde_attrs.push(quote! { with = "azure_core::date::rfc1123::option"}); + } else if type_name.is_vec() { serde_attrs.push(quote! { default, skip_serializing_if = "Vec::is_empty"}); } else { serde_attrs.push(quote! { default, skip_serializing_if = "Option::is_none"}); diff --git a/services/autorust/codegen/src/spec.rs b/services/autorust/codegen/src/spec.rs index 81249f9845f..5bed27645f2 100644 --- a/services/autorust/codegen/src/spec.rs +++ b/services/autorust/codegen/src/spec.rs @@ -684,6 +684,7 @@ fn add_references_for_schema(list: &mut Vec, schema: &Schema) { } } +#[derive(Clone, Debug, PartialEq)] pub enum TypeName { Reference(String), Array(Box), @@ -695,6 +696,8 @@ pub enum TypeName { Float64, Boolean, String, + DateTime, + DateTimeRfc1123, } pub fn get_type_name_for_schema(schema: &SchemaCommon) -> Result { @@ -720,7 +723,15 @@ pub fn get_type_name_for_schema(schema: &SchemaCommon) -> Result { TypeName::Float64 } } - DataType::String => TypeName::String, + DataType::String => { + if format == Some("date-time") { + TypeName::DateTime + } else if format == Some("date-time-rfc1123") { + TypeName::DateTimeRfc1123 + } else { + TypeName::String + } + } DataType::Boolean => TypeName::Boolean, DataType::Object => TypeName::Value, DataType::File => TypeName::Bytes, diff --git a/services/mgmt/activedirectory/Cargo.toml b/services/mgmt/activedirectory/Cargo.toml index 488f3239108..797985a80aa 100644 --- a/services/mgmt/activedirectory/Cargo.toml +++ b/services/mgmt/activedirectory/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/addons/Cargo.toml b/services/mgmt/addons/Cargo.toml index 12fa1d0e3aa..47bcb57cb94 100644 --- a/services/mgmt/addons/Cargo.toml +++ b/services/mgmt/addons/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/adhybridhealthservice/Cargo.toml b/services/mgmt/adhybridhealthservice/Cargo.toml index e1c19dc9dcb..6a7c98be3d3 100644 --- a/services/mgmt/adhybridhealthservice/Cargo.toml +++ b/services/mgmt/adhybridhealthservice/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs b/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs index f3fa9066320..99ebd2ec1f3 100644 --- a/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs +++ b/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs @@ -95,8 +95,8 @@ pub struct AddsServiceMember { #[serde(rename = "additionalInformation", default, skip_serializing_if = "Option::is_none")] pub additional_information: Option, #[doc = "The date time , in UTC, when the server was onboarded to Azure Active Directory Connect Health."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The server specific configuration related dimensions."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub dimensions: Vec, @@ -110,21 +110,17 @@ pub struct AddsServiceMember { #[serde(rename = "installedQfes", default, skip_serializing_if = "Vec::is_empty")] pub installed_qfes: Vec, #[doc = "The date and time , in UTC, when the server was last disabled."] - #[serde(rename = "lastDisabled", default, skip_serializing_if = "Option::is_none")] - pub last_disabled: Option, + #[serde(rename = "lastDisabled", with = "azure_core::date::rfc3339::option")] + pub last_disabled: Option, #[doc = "The date and time, in UTC, when the server was last rebooted."] - #[serde(rename = "lastReboot", default, skip_serializing_if = "Option::is_none")] - pub last_reboot: Option, + #[serde(rename = "lastReboot", with = "azure_core::date::rfc3339::option")] + pub last_reboot: Option, #[doc = "The date and time, in UTC, when the server's data monitoring configuration was last changed."] - #[serde( - rename = "lastServerReportedMonitoringLevelChange", - default, - skip_serializing_if = "Option::is_none" - )] - pub last_server_reported_monitoring_level_change: Option, + #[serde(rename = "lastServerReportedMonitoringLevelChange", with = "azure_core::date::rfc3339::option")] + pub last_server_reported_monitoring_level_change: Option, #[doc = "The date and time, in UTC, when the server properties were last updated."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The id of the machine."] #[serde(rename = "machineId", default, skip_serializing_if = "Option::is_none")] pub machine_id: Option, @@ -223,8 +219,8 @@ pub struct Agent { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The date and time, in UTC, when the agent was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = " The connector hash key."] #[serde(default, skip_serializing_if = "Option::is_none")] pub key: Option, @@ -268,14 +264,14 @@ pub struct Alert { #[serde(rename = "additionalInformation", default, skip_serializing_if = "Vec::is_empty")] pub additional_information: Vec, #[doc = "The date and time,in UTC,when the alert was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The date and time, in UTC, when the alert was resolved."] - #[serde(rename = "resolvedDate", default, skip_serializing_if = "Option::is_none")] - pub resolved_date: Option, + #[serde(rename = "resolvedDate", with = "azure_core::date::rfc3339::option")] + pub resolved_date: Option, #[doc = "The date and time, in UTC, when the alert was last updated."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The monitoring role type for which the alert was raised."] #[serde(rename = "monitorRoleType", default, skip_serializing_if = "Option::is_none")] pub monitor_role_type: Option, @@ -410,8 +406,8 @@ pub struct AlertFeedback { #[serde(rename = "serviceMemberId", default, skip_serializing_if = "Option::is_none")] pub service_member_id: Option, #[doc = "The date and time,in UTC,when the alert was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, } impl AlertFeedback { pub fn new() -> Self { @@ -473,8 +469,8 @@ pub struct AssociatedObject { #[serde(rename = "distinguishedName", default, skip_serializing_if = "Option::is_none")] pub distinguished_name: Option, #[doc = "The last dirSync time."] - #[serde(rename = "lastDirSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_dir_sync_time: Option, + #[serde(rename = "lastDirSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_dir_sync_time: Option, #[doc = "The email of the object."] #[serde(default, skip_serializing_if = "Option::is_none")] pub mail: Option, @@ -497,8 +493,8 @@ pub struct AssociatedObject { #[serde(rename = "sourceOfAuthority", default, skip_serializing_if = "Option::is_none")] pub source_of_authority: Option, #[doc = " The time of the error."] - #[serde(rename = "timeOccurred", default, skip_serializing_if = "Option::is_none")] - pub time_occurred: Option, + #[serde(rename = "timeOccurred", with = "azure_core::date::rfc3339::option")] + pub time_occurred: Option, #[doc = " The UPN."] #[serde(rename = "userPrincipalName", default, skip_serializing_if = "Option::is_none")] pub user_principal_name: Option, @@ -858,11 +854,11 @@ pub struct Connector { #[serde(rename = "passwordHashSyncConfiguration", default, skip_serializing_if = "Option::is_none")] pub password_hash_sync_configuration: Option, #[doc = "The date and time when this connector was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The date and time when this connector was last modified."] - #[serde(rename = "timeLastModified", default, skip_serializing_if = "Option::is_none")] - pub time_last_modified: Option, + #[serde(rename = "timeLastModified", with = "azure_core::date::rfc3339::option")] + pub time_last_modified: Option, #[doc = "The partitions of the connector."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub partitions: Vec, @@ -903,8 +899,8 @@ pub struct ConnectorConnectionError { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time when the connection error occurred."] - #[serde(rename = "timeOccured", default, skip_serializing_if = "Option::is_none")] - pub time_occured: Option, + #[serde(rename = "timeOccured", with = "azure_core::date::rfc3339::option")] + pub time_occured: Option, #[doc = "The server where the connection error happened."] #[serde(default, skip_serializing_if = "Option::is_none")] pub server: Option, @@ -1107,8 +1103,8 @@ pub struct Dimension { #[serde(rename = "additionalInformation", default, skip_serializing_if = "Option::is_none")] pub additional_information: Option, #[doc = "The date or time , in UTC, when the service properties were last updated."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The display name of the service."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -1306,8 +1302,8 @@ pub struct ErrorReportUsersEntry { #[serde(rename = "ipAddress", default, skip_serializing_if = "Option::is_none")] pub ip_address: Option, #[doc = "The date and time when the last error event was logged."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The list of unique IP addresses."] #[serde(rename = "uniqueIpAddresses", default, skip_serializing_if = "Option::is_none")] pub unique_ip_addresses: Option, @@ -1345,8 +1341,8 @@ pub struct ExportError { #[serde(rename = "serverErrorDetail", default, skip_serializing_if = "Option::is_none")] pub server_error_detail: Option, #[doc = "The date and time when the export error first occurred."] - #[serde(rename = "timeFirstOccured", default, skip_serializing_if = "Option::is_none")] - pub time_first_occured: Option, + #[serde(rename = "timeFirstOccured", with = "azure_core::date::rfc3339::option")] + pub time_first_occured: Option, #[doc = "The retry count."] #[serde(rename = "retryCount", default, skip_serializing_if = "Option::is_none")] pub retry_count: Option, @@ -1405,8 +1401,8 @@ pub struct ExportError { #[serde(rename = "adMail", default, skip_serializing_if = "Option::is_none")] pub ad_mail: Option, #[doc = "The date and time of occurrence."] - #[serde(rename = "timeOccured", default, skip_serializing_if = "Option::is_none")] - pub time_occured: Option, + #[serde(rename = "timeOccured", with = "azure_core::date::rfc3339::option")] + pub time_occured: Option, #[doc = "The AAD side object type."] #[serde(rename = "aadObjectType", default, skip_serializing_if = "Option::is_none")] pub aad_object_type: Option, @@ -1429,8 +1425,8 @@ pub struct ExportError { #[serde(rename = "aadMail", default, skip_serializing_if = "Option::is_none")] pub aad_mail: Option, #[doc = "The date and time of last sync run."] - #[serde(rename = "lastDirSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_dir_sync_time: Option, + #[serde(rename = "lastDirSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_dir_sync_time: Option, #[doc = "The modified attribute value."] #[serde(rename = "modifiedAttributeValue", default, skip_serializing_if = "Option::is_none")] pub modified_attribute_value: Option, @@ -1462,8 +1458,8 @@ pub struct ExportStatus { #[serde(rename = "serviceMemberId", default, skip_serializing_if = "Option::is_none")] pub service_member_id: Option, #[doc = "The date and time when the export ended."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The run step result Id."] #[serde(rename = "runStepResultId", default, skip_serializing_if = "Option::is_none")] pub run_step_result_id: Option, @@ -1615,8 +1611,8 @@ pub struct Hotfix { #[serde(default, skip_serializing_if = "Option::is_none")] pub link: Option, #[doc = "The date and time, in UTC, when the KB was installed in the server."] - #[serde(rename = "installedDate", default, skip_serializing_if = "Option::is_none")] - pub installed_date: Option, + #[serde(rename = "installedDate", with = "azure_core::date::rfc3339::option")] + pub installed_date: Option, } impl Hotfix { pub fn new() -> Self { @@ -1773,11 +1769,11 @@ pub struct ImportError { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "The time when the import error occurred."] - #[serde(rename = "timeOccurred", default, skip_serializing_if = "Option::is_none")] - pub time_occurred: Option, + #[serde(rename = "timeOccurred", with = "azure_core::date::rfc3339::option")] + pub time_occurred: Option, #[doc = "The time when the import error first occurred."] - #[serde(rename = "timeFirstOccurred", default, skip_serializing_if = "Option::is_none")] - pub time_first_occurred: Option, + #[serde(rename = "timeFirstOccurred", with = "azure_core::date::rfc3339::option")] + pub time_first_occurred: Option, #[doc = "The retry count."] #[serde(rename = "retryCount", default, skip_serializing_if = "Option::is_none")] pub retry_count: Option, @@ -1895,11 +1891,11 @@ pub struct InboundReplicationNeighbor { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The last time a sync was attempted on the domain controller."] - #[serde(rename = "lastAttemptedSync", default, skip_serializing_if = "Option::is_none")] - pub last_attempted_sync: Option, + #[serde(rename = "lastAttemptedSync", with = "azure_core::date::rfc3339::option")] + pub last_attempted_sync: Option, #[doc = "The last time when a successful sync happened."] - #[serde(rename = "lastSuccessfulSync", default, skip_serializing_if = "Option::is_none")] - pub last_successful_sync: Option, + #[serde(rename = "lastSuccessfulSync", with = "azure_core::date::rfc3339::option")] + pub last_successful_sync: Option, #[doc = "The last error code."] #[serde(rename = "lastErrorCode", default, skip_serializing_if = "Option::is_none")] pub last_error_code: Option, @@ -1997,11 +1993,11 @@ pub struct MergedExportError { #[serde(rename = "attributeValue", default, skip_serializing_if = "Option::is_none")] pub attribute_value: Option, #[doc = "The date and time when the error occurred."] - #[serde(rename = "timeOccurred", default, skip_serializing_if = "Option::is_none")] - pub time_occurred: Option, + #[serde(rename = "timeOccurred", with = "azure_core::date::rfc3339::option")] + pub time_occurred: Option, #[doc = "The time when the error first occurred."] - #[serde(rename = "timeFirstOccurred", default, skip_serializing_if = "Option::is_none")] - pub time_first_occurred: Option, + #[serde(rename = "timeFirstOccurred", with = "azure_core::date::rfc3339::option")] + pub time_first_occurred: Option, #[doc = " the cs object Id."] #[serde(rename = "csObjectId", default, skip_serializing_if = "Option::is_none")] pub cs_object_id: Option, @@ -2036,8 +2032,8 @@ pub struct MergedExportError { #[serde(rename = "mergedEntityId", default, skip_serializing_if = "Option::is_none")] pub merged_entity_id: Option, #[doc = "The date and time, in UTC, when the error was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The export error status."] #[serde(rename = "exportErrorStatus", default, skip_serializing_if = "Option::is_none")] pub export_error_status: Option, @@ -2175,7 +2171,7 @@ pub struct MetricSets { pub sets: Vec, #[doc = "The list of timestamps for each metric in the metric set."] #[serde(rename = "timeStamps", default, skip_serializing_if = "Vec::is_empty")] - pub time_stamps: Vec, + pub time_stamps: Vec, } impl MetricSets { pub fn new() -> Self { @@ -2282,8 +2278,8 @@ pub struct ObjectWithSyncError { #[serde(default, skip_serializing_if = "Option::is_none")] pub mail: Option, #[doc = "The date and time of occurrence."] - #[serde(rename = "timeOccured", default, skip_serializing_if = "Option::is_none")] - pub time_occured: Option, + #[serde(rename = "timeOccured", with = "azure_core::date::rfc3339::option")] + pub time_occured: Option, #[doc = "The error type."] #[serde(rename = "errorType", default, skip_serializing_if = "Option::is_none")] pub error_type: Option, @@ -2351,11 +2347,11 @@ pub struct Partition { #[serde(default, skip_serializing_if = "Option::is_none")] pub enabled: Option, #[doc = "The date and time when the partition is created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The time and date when the partition was last modified."] - #[serde(rename = "timeLastModified", default, skip_serializing_if = "Option::is_none")] - pub time_last_modified: Option, + #[serde(rename = "timeLastModified", with = "azure_core::date::rfc3339::option")] + pub time_last_modified: Option, #[doc = "The connector partition scope."] #[serde(rename = "partitionScope", default, skip_serializing_if = "Option::is_none")] pub partition_scope: Option, @@ -2552,11 +2548,11 @@ pub struct ReplicationSummary { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The last time when a sync was attempted for a given domain controller."] - #[serde(rename = "lastAttemptedSync", default, skip_serializing_if = "Option::is_none")] - pub last_attempted_sync: Option, + #[serde(rename = "lastAttemptedSync", with = "azure_core::date::rfc3339::option")] + pub last_attempted_sync: Option, #[doc = "The time when the last successful sync happened for a given domain controller."] - #[serde(rename = "lastSuccessfulSync", default, skip_serializing_if = "Option::is_none")] - pub last_successful_sync: Option, + #[serde(rename = "lastSuccessfulSync", with = "azure_core::date::rfc3339::option")] + pub last_successful_sync: Option, #[doc = "List of individual domain controller neighbor's inbound replication status."] #[serde(rename = "inboundNeighborCollection", default, skip_serializing_if = "Vec::is_empty")] pub inbound_neighbor_collection: Vec, @@ -2609,11 +2605,11 @@ pub struct RiskyIpBlobUri { #[serde(rename = "resultSasUri", default, skip_serializing_if = "Option::is_none")] pub result_sas_uri: Option, #[doc = "Time at which the new Risky IP report was requested."] - #[serde(rename = "blobCreateDateTime", default, skip_serializing_if = "Option::is_none")] - pub blob_create_date_time: Option, + #[serde(rename = "blobCreateDateTime", with = "azure_core::date::rfc3339::option")] + pub blob_create_date_time: Option, #[doc = "Time at which the blob creation job for the new Risky IP report was completed."] - #[serde(rename = "jobCompletionTime", default, skip_serializing_if = "Option::is_none")] - pub job_completion_time: Option, + #[serde(rename = "jobCompletionTime", with = "azure_core::date::rfc3339::option")] + pub job_completion_time: Option, #[doc = "Status of the Risky IP report generation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2780,8 +2776,8 @@ pub struct ServiceMember { #[serde(rename = "additionalInformation", default, skip_serializing_if = "Option::is_none")] pub additional_information: Option, #[doc = "The date time , in UTC, when the server was onboarded to Azure Active Directory Connect Health."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The server specific configuration related dimensions."] #[serde(default, skip_serializing_if = "Option::is_none")] pub dimensions: Option, @@ -2795,21 +2791,17 @@ pub struct ServiceMember { #[serde(rename = "installedQfes", default, skip_serializing_if = "Option::is_none")] pub installed_qfes: Option, #[doc = "The date and time , in UTC, when the server was last disabled."] - #[serde(rename = "lastDisabled", default, skip_serializing_if = "Option::is_none")] - pub last_disabled: Option, + #[serde(rename = "lastDisabled", with = "azure_core::date::rfc3339::option")] + pub last_disabled: Option, #[doc = "The date and time, in UTC, when the server was last rebooted."] - #[serde(rename = "lastReboot", default, skip_serializing_if = "Option::is_none")] - pub last_reboot: Option, + #[serde(rename = "lastReboot", with = "azure_core::date::rfc3339::option")] + pub last_reboot: Option, #[doc = "The date and time, in UTC, when the server's data monitoring configuration was last changed."] - #[serde( - rename = "lastServerReportedMonitoringLevelChange", - default, - skip_serializing_if = "Option::is_none" - )] - pub last_server_reported_monitoring_level_change: Option, + #[serde(rename = "lastServerReportedMonitoringLevelChange", with = "azure_core::date::rfc3339::option")] + pub last_server_reported_monitoring_level_change: Option, #[doc = "The date and time, in UTC, when the server properties were last updated."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The id of the machine."] #[serde(rename = "machineId", default, skip_serializing_if = "Option::is_none")] pub machine_id: Option, @@ -2902,8 +2894,8 @@ pub struct ServiceProperties { #[serde(rename = "additionalInformation", default, skip_serializing_if = "Option::is_none")] pub additional_information: Option, #[doc = "The date and time, in UTC, when the service was onboarded to Azure Active Directory Connect Health."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The list of additional emails that are configured to receive notifications about the service."] #[serde(rename = "customNotificationEmails", default, skip_serializing_if = "Vec::is_empty")] pub custom_notification_emails: Vec, @@ -2917,11 +2909,11 @@ pub struct ServiceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, #[doc = "The date and time, in UTC, when the service was last disabled."] - #[serde(rename = "lastDisabled", default, skip_serializing_if = "Option::is_none")] - pub last_disabled: Option, + #[serde(rename = "lastDisabled", with = "azure_core::date::rfc3339::option")] + pub last_disabled: Option, #[doc = "The date or time , in UTC, when the service properties were last updated."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The monitoring configuration of the service which determines what activities are monitored by Azure Active Directory Connect Health."] #[serde(rename = "monitoringConfigurationsComputed", default, skip_serializing_if = "Option::is_none")] pub monitoring_configurations_computed: Option, @@ -3051,11 +3043,11 @@ pub struct Tenant { #[serde(rename = "countryLetterCode", default, skip_serializing_if = "Option::is_none")] pub country_letter_code: Option, #[doc = "The date, in UTC, when the tenant was onboarded to Azure Active Directory Connect Health."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The date and time, in UTC, till when the tenant data can be seen by Microsoft through Azure portal."] - #[serde(rename = "devOpsTtl", default, skip_serializing_if = "Option::is_none")] - pub dev_ops_ttl: Option, + #[serde(rename = "devOpsTtl", with = "azure_core::date::rfc3339::option")] + pub dev_ops_ttl: Option, #[doc = "Indicates if the tenant is disabled in Azure Active Directory Connect Health."] #[serde(default, skip_serializing_if = "Option::is_none")] pub disabled: Option, @@ -3069,11 +3061,11 @@ pub struct Tenant { #[serde(rename = "initialDomain", default, skip_serializing_if = "Option::is_none")] pub initial_domain: Option, #[doc = "The date and time, in UTC, when the tenant was last disabled in Azure Active Directory Connect Health."] - #[serde(rename = "lastDisabled", default, skip_serializing_if = "Option::is_none")] - pub last_disabled: Option, + #[serde(rename = "lastDisabled", with = "azure_core::date::rfc3339::option")] + pub last_disabled: Option, #[doc = "The date and time, in UTC, when the tenant onboarding status in Azure Active Directory Connect Health was last verified."] - #[serde(rename = "lastVerified", default, skip_serializing_if = "Option::is_none")] - pub last_verified: Option, + #[serde(rename = "lastVerified", with = "azure_core::date::rfc3339::option")] + pub last_verified: Option, #[doc = "Indicates if the tenant is allowed to onboard to Azure Active Directory Connect Health."] #[serde(rename = "onboardingAllowed", default, skip_serializing_if = "Option::is_none")] pub onboarding_allowed: Option, diff --git a/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs b/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs index 222ae10cfaf..8f9723598ec 100644 --- a/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs +++ b/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs @@ -1012,8 +1012,8 @@ pub mod adds_services { pub(crate) metric_name: String, pub(crate) group_name: String, pub(crate) group_key: Option, - pub(crate) from_date: Option, - pub(crate) to_date: Option, + pub(crate) from_date: Option, + pub(crate) to_date: Option, } impl Builder { #[doc = "The group key"] @@ -1022,12 +1022,12 @@ pub mod adds_services { self } #[doc = "The start date."] - pub fn from_date(mut self, from_date: impl Into) -> Self { + pub fn from_date(mut self, from_date: impl Into) -> Self { self.from_date = Some(from_date.into()); self } #[doc = "The end date."] - pub fn to_date(mut self, to_date: impl Into) -> Self { + pub fn to_date(mut self, to_date: impl Into) -> Self { self.to_date = Some(to_date.into()); self } @@ -1056,10 +1056,10 @@ pub mod adds_services { req.url_mut().query_pairs_mut().append_pair("groupKey", group_key); } if let Some(from_date) = &this.from_date { - req.url_mut().query_pairs_mut().append_pair("fromDate", from_date); + req.url_mut().query_pairs_mut().append_pair("fromDate", &from_date.to_string()); } if let Some(to_date) = &this.to_date { - req.url_mut().query_pairs_mut().append_pair("toDate", to_date); + req.url_mut().query_pairs_mut().append_pair("toDate", &to_date.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -1241,8 +1241,8 @@ pub mod adds_services { pub(crate) service_name: String, pub(crate) filter: Option, pub(crate) state: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, } impl Builder { #[doc = "The alert property filter to apply."] @@ -1256,12 +1256,12 @@ pub mod adds_services { self } #[doc = "The start date to query for."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "The end date till when to query for."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -1315,10 +1315,10 @@ pub mod adds_services { req.url_mut().query_pairs_mut().append_pair("state", state); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("from", from); + req.url_mut().query_pairs_mut().append_pair("from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("to", to); + req.url_mut().query_pairs_mut().append_pair("to", &to.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -1480,8 +1480,8 @@ pub mod alerts { pub(crate) service_name: String, pub(crate) filter: Option, pub(crate) state: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, } impl Builder { #[doc = "The alert property filter to apply."] @@ -1495,12 +1495,12 @@ pub mod alerts { self } #[doc = "The start date to query for."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "The end date till when to query for."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -1553,10 +1553,10 @@ pub mod alerts { req.url_mut().query_pairs_mut().append_pair("state", state); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("from", from); + req.url_mut().query_pairs_mut().append_pair("from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("to", to); + req.url_mut().query_pairs_mut().append_pair("to", &to.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -2601,8 +2601,8 @@ pub mod adds_service { pub(crate) metric_name: String, pub(crate) group_name: String, pub(crate) group_key: Option, - pub(crate) from_date: Option, - pub(crate) to_date: Option, + pub(crate) from_date: Option, + pub(crate) to_date: Option, } impl Builder { #[doc = "The group key"] @@ -2611,12 +2611,12 @@ pub mod adds_service { self } #[doc = "The start date."] - pub fn from_date(mut self, from_date: impl Into) -> Self { + pub fn from_date(mut self, from_date: impl Into) -> Self { self.from_date = Some(from_date.into()); self } #[doc = "The end date."] - pub fn to_date(mut self, to_date: impl Into) -> Self { + pub fn to_date(mut self, to_date: impl Into) -> Self { self.to_date = Some(to_date.into()); self } @@ -2645,10 +2645,10 @@ pub mod adds_service { req.url_mut().query_pairs_mut().append_pair("groupKey", group_key); } if let Some(from_date) = &this.from_date { - req.url_mut().query_pairs_mut().append_pair("fromDate", from_date); + req.url_mut().query_pairs_mut().append_pair("fromDate", &from_date.to_string()); } if let Some(to_date) = &this.to_date { - req.url_mut().query_pairs_mut().append_pair("toDate", to_date); + req.url_mut().query_pairs_mut().append_pair("toDate", &to_date.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -3803,8 +3803,8 @@ pub mod services { pub(crate) service_name: String, pub(crate) filter: Option, pub(crate) state: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, } impl Builder { #[doc = "The alert property filter to apply."] @@ -3818,12 +3818,12 @@ pub mod services { self } #[doc = "The start date to query for."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "The end date till when to query for."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3876,10 +3876,10 @@ pub mod services { req.url_mut().query_pairs_mut().append_pair("state", state); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("from", from); + req.url_mut().query_pairs_mut().append_pair("from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("to", to); + req.url_mut().query_pairs_mut().append_pair("to", &to.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -4540,8 +4540,8 @@ pub mod services { pub(crate) metric_name: String, pub(crate) group_name: String, pub(crate) group_key: Option, - pub(crate) from_date: Option, - pub(crate) to_date: Option, + pub(crate) from_date: Option, + pub(crate) to_date: Option, } impl Builder { #[doc = "The group key"] @@ -4550,12 +4550,12 @@ pub mod services { self } #[doc = "The start date."] - pub fn from_date(mut self, from_date: impl Into) -> Self { + pub fn from_date(mut self, from_date: impl Into) -> Self { self.from_date = Some(from_date.into()); self } #[doc = "The end date."] - pub fn to_date(mut self, to_date: impl Into) -> Self { + pub fn to_date(mut self, to_date: impl Into) -> Self { self.to_date = Some(to_date.into()); self } @@ -4584,10 +4584,10 @@ pub mod services { req.url_mut().query_pairs_mut().append_pair("groupKey", group_key); } if let Some(from_date) = &this.from_date { - req.url_mut().query_pairs_mut().append_pair("fromDate", from_date); + req.url_mut().query_pairs_mut().append_pair("fromDate", &from_date.to_string()); } if let Some(to_date) = &this.to_date { - req.url_mut().query_pairs_mut().append_pair("toDate", to_date); + req.url_mut().query_pairs_mut().append_pair("toDate", &to_date.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -4949,8 +4949,8 @@ pub mod service { pub(crate) metric_name: String, pub(crate) group_name: String, pub(crate) group_key: Option, - pub(crate) from_date: Option, - pub(crate) to_date: Option, + pub(crate) from_date: Option, + pub(crate) to_date: Option, } impl Builder { #[doc = "The group key"] @@ -4959,12 +4959,12 @@ pub mod service { self } #[doc = "The start date."] - pub fn from_date(mut self, from_date: impl Into) -> Self { + pub fn from_date(mut self, from_date: impl Into) -> Self { self.from_date = Some(from_date.into()); self } #[doc = "The end date."] - pub fn to_date(mut self, to_date: impl Into) -> Self { + pub fn to_date(mut self, to_date: impl Into) -> Self { self.to_date = Some(to_date.into()); self } @@ -4993,10 +4993,10 @@ pub mod service { req.url_mut().query_pairs_mut().append_pair("groupKey", group_key); } if let Some(from_date) = &this.from_date { - req.url_mut().query_pairs_mut().append_pair("fromDate", from_date); + req.url_mut().query_pairs_mut().append_pair("fromDate", &from_date.to_string()); } if let Some(to_date) = &this.to_date { - req.url_mut().query_pairs_mut().append_pair("toDate", to_date); + req.url_mut().query_pairs_mut().append_pair("toDate", &to_date.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -5503,8 +5503,8 @@ pub mod service_members { pub(crate) service_name: String, pub(crate) filter: Option, pub(crate) state: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, } impl Builder { #[doc = "The alert property filter to apply."] @@ -5518,12 +5518,12 @@ pub mod service_members { self } #[doc = "The start date to query for."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "The end date till when to query for."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5577,10 +5577,10 @@ pub mod service_members { req.url_mut().query_pairs_mut().append_pair("state", state); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("from", from); + req.url_mut().query_pairs_mut().append_pair("from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("to", to); + req.url_mut().query_pairs_mut().append_pair("to", &to.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -5951,8 +5951,8 @@ pub mod service_members { pub(crate) group_name: String, pub(crate) service_member_id: String, pub(crate) group_key: Option, - pub(crate) from_date: Option, - pub(crate) to_date: Option, + pub(crate) from_date: Option, + pub(crate) to_date: Option, } impl Builder { #[doc = "The group key"] @@ -5961,12 +5961,12 @@ pub mod service_members { self } #[doc = "The start date."] - pub fn from_date(mut self, from_date: impl Into) -> Self { + pub fn from_date(mut self, from_date: impl Into) -> Self { self.from_date = Some(from_date.into()); self } #[doc = "The end date."] - pub fn to_date(mut self, to_date: impl Into) -> Self { + pub fn to_date(mut self, to_date: impl Into) -> Self { self.to_date = Some(to_date.into()); self } @@ -5996,10 +5996,10 @@ pub mod service_members { req.url_mut().query_pairs_mut().append_pair("groupKey", group_key); } if let Some(from_date) = &this.from_date { - req.url_mut().query_pairs_mut().append_pair("fromDate", from_date); + req.url_mut().query_pairs_mut().append_pair("fromDate", &from_date.to_string()); } if let Some(to_date) = &this.to_date { - req.url_mut().query_pairs_mut().append_pair("toDate", to_date); + req.url_mut().query_pairs_mut().append_pair("toDate", &to_date.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/adp/Cargo.toml b/services/mgmt/adp/Cargo.toml index 4481f55bb9b..1f03bd6a75e 100644 --- a/services/mgmt/adp/Cargo.toml +++ b/services/mgmt/adp/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/adp/src/package_2020_07_01_preview/models.rs b/services/mgmt/adp/src/package_2020_07_01_preview/models.rs index 5351215cc46..dae8cfa0cca 100644 --- a/services/mgmt/adp/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/adp/src/package_2020_07_01_preview/models.rs @@ -526,8 +526,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -535,8 +535,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/adp/src/package_2021_02_01_preview/models.rs b/services/mgmt/adp/src/package_2021_02_01_preview/models.rs index 3eea7d5d37d..55243de56be 100644 --- a/services/mgmt/adp/src/package_2021_02_01_preview/models.rs +++ b/services/mgmt/adp/src/package_2021_02_01_preview/models.rs @@ -668,8 +668,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -677,8 +677,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/adp/src/package_2021_11_01_preview/models.rs b/services/mgmt/adp/src/package_2021_11_01_preview/models.rs index b177d7471f5..0506566de77 100644 --- a/services/mgmt/adp/src/package_2021_11_01_preview/models.rs +++ b/services/mgmt/adp/src/package_2021_11_01_preview/models.rs @@ -753,8 +753,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -762,8 +762,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/advisor/Cargo.toml b/services/mgmt/advisor/Cargo.toml index 24cace5e45b..10c92acd44e 100644 --- a/services/mgmt/advisor/Cargo.toml +++ b/services/mgmt/advisor/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/advisor/src/package_2017_03/models.rs b/services/mgmt/advisor/src/package_2017_03/models.rs index 25a5f833b8c..651d80e4da5 100644 --- a/services/mgmt/advisor/src/package_2017_03/models.rs +++ b/services/mgmt/advisor/src/package_2017_03/models.rs @@ -77,8 +77,8 @@ pub struct RecommendationProperties { #[serde(rename = "impactedValue", default, skip_serializing_if = "Option::is_none")] pub impacted_value: Option, #[doc = "The most recent time that Advisor checked the validity of the recommendation."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The recommendation metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, diff --git a/services/mgmt/advisor/src/package_2017_04/models.rs b/services/mgmt/advisor/src/package_2017_04/models.rs index da01e7d9a9e..38e6c800221 100644 --- a/services/mgmt/advisor/src/package_2017_04/models.rs +++ b/services/mgmt/advisor/src/package_2017_04/models.rs @@ -230,8 +230,8 @@ pub struct RecommendationProperties { #[serde(rename = "impactedValue", default, skip_serializing_if = "Option::is_none")] pub impacted_value: Option, #[doc = "The most recent time that Advisor checked the validity of the recommendation."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The recommendation metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, diff --git a/services/mgmt/advisor/src/package_2020_01/models.rs b/services/mgmt/advisor/src/package_2020_01/models.rs index 3f9977a13e6..ed618859b98 100644 --- a/services/mgmt/advisor/src/package_2020_01/models.rs +++ b/services/mgmt/advisor/src/package_2020_01/models.rs @@ -355,8 +355,8 @@ pub struct RecommendationProperties { #[serde(rename = "impactedValue", default, skip_serializing_if = "Option::is_none")] pub impacted_value: Option, #[doc = "The most recent time that Advisor checked the validity of the recommendation."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The recommendation metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -666,8 +666,8 @@ pub struct SuppressionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub ttl: Option, #[doc = "Gets or sets the expiration time stamp."] - #[serde(rename = "expirationTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_stamp: Option, + #[serde(rename = "expirationTimeStamp", with = "azure_core::date::rfc3339::option")] + pub expiration_time_stamp: Option, } impl SuppressionProperties { pub fn new() -> Self { diff --git a/services/mgmt/advisor/src/package_2022_02_preview/models.rs b/services/mgmt/advisor/src/package_2022_02_preview/models.rs index 2fa3be842e5..fccadc73fca 100644 --- a/services/mgmt/advisor/src/package_2022_02_preview/models.rs +++ b/services/mgmt/advisor/src/package_2022_02_preview/models.rs @@ -278,8 +278,8 @@ pub struct PredictionResponseProperties { #[serde(rename = "impactedField", default, skip_serializing_if = "Option::is_none")] pub impacted_field: Option, #[doc = "The most recent time that Advisor checked the validity of the recommendation."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "A summary of the recommendation."] #[serde(rename = "shortDescription", default, skip_serializing_if = "Option::is_none")] pub short_description: Option, diff --git a/services/mgmt/agrifood/Cargo.toml b/services/mgmt/agrifood/Cargo.toml index 324f60aa52b..35163fbe17a 100644 --- a/services/mgmt/agrifood/Cargo.toml +++ b/services/mgmt/agrifood/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs b/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs index 9bbd10f0be6..c7b9a9ebee2 100644 --- a/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs +++ b/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs @@ -630,8 +630,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -639,8 +639,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs b/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs index 350600df489..f08837f299e 100644 --- a/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs +++ b/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs @@ -504,11 +504,13 @@ pub mod extensions { .append_pair(azure_core::query_param::API_VERSION, "2020-05-12-preview"); let extension_ids = &this.extension_ids; for value in &this.extension_ids { - req.url_mut().query_pairs_mut().append_pair("extensionIds", value); + req.url_mut().query_pairs_mut().append_pair("extensionIds", &value.to_string()); } let extension_categories = &this.extension_categories; for value in &this.extension_categories { - req.url_mut().query_pairs_mut().append_pair("extensionCategories", value); + req.url_mut() + .query_pairs_mut() + .append_pair("extensionCategories", &value.to_string()); } if let Some(max_page_size) = &this.max_page_size { req.url_mut() @@ -649,19 +651,25 @@ pub mod farm_beats_extensions { .append_pair(azure_core::query_param::API_VERSION, "2020-05-12-preview"); let farm_beats_extension_ids = &this.farm_beats_extension_ids; for value in &this.farm_beats_extension_ids { - req.url_mut().query_pairs_mut().append_pair("farmBeatsExtensionIds", value); + req.url_mut() + .query_pairs_mut() + .append_pair("farmBeatsExtensionIds", &value.to_string()); } let farm_beats_extension_names = &this.farm_beats_extension_names; for value in &this.farm_beats_extension_names { - req.url_mut().query_pairs_mut().append_pair("farmBeatsExtensionNames", value); + req.url_mut() + .query_pairs_mut() + .append_pair("farmBeatsExtensionNames", &value.to_string()); } let extension_categories = &this.extension_categories; for value in &this.extension_categories { - req.url_mut().query_pairs_mut().append_pair("extensionCategories", value); + req.url_mut() + .query_pairs_mut() + .append_pair("extensionCategories", &value.to_string()); } let publisher_ids = &this.publisher_ids; for value in &this.publisher_ids { - req.url_mut().query_pairs_mut().append_pair("publisherIds", value); + req.url_mut().query_pairs_mut().append_pair("publisherIds", &value.to_string()); } if let Some(max_page_size) = &this.max_page_size { req.url_mut() diff --git a/services/mgmt/alertsmanagement/Cargo.toml b/services/mgmt/alertsmanagement/Cargo.toml index c4197fc2961..46733a74e78 100644 --- a/services/mgmt/alertsmanagement/Cargo.toml +++ b/services/mgmt/alertsmanagement/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs b/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs index 2d81ac77f53..9e73e4bf159 100644 --- a/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs +++ b/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs @@ -73,11 +73,11 @@ pub struct ActionRuleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Creation time of action rule. Date-Time in ISO-8601 format."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Last updated time of action rule. Date-Time in ISO-8601 format."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, #[doc = "Created by user name."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -1346,14 +1346,14 @@ pub struct Essentials { #[serde(rename = "smartGroupingReason", default, skip_serializing_if = "Option::is_none")] pub smart_grouping_reason: Option, #[doc = "Creation time(ISO-8601 format) of alert instance."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last modification time(ISO-8601 format) of alert instance."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Resolved time(ISO-8601 format) of alert instance. This will be updated when monitor service resolves the alert instance because the rule condition is no longer met."] - #[serde(rename = "monitorConditionResolvedDateTime", default, skip_serializing_if = "Option::is_none")] - pub monitor_condition_resolved_date_time: Option, + #[serde(rename = "monitorConditionResolvedDateTime", with = "azure_core::date::rfc3339::option")] + pub monitor_condition_resolved_date_time: Option, #[doc = "User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, @@ -1777,11 +1777,11 @@ pub struct SmartGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Creation time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last updated time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Last modified by user name."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, diff --git a/services/mgmt/alertsmanagement/src/package_2021_08/models.rs b/services/mgmt/alertsmanagement/src/package_2021_08/models.rs index c5134866ffc..8b554bc0e12 100644 --- a/services/mgmt/alertsmanagement/src/package_2021_08/models.rs +++ b/services/mgmt/alertsmanagement/src/package_2021_08/models.rs @@ -897,14 +897,14 @@ pub struct Essentials { #[serde(rename = "smartGroupingReason", default, skip_serializing_if = "Option::is_none")] pub smart_grouping_reason: Option, #[doc = "Creation time(ISO-8601 format) of alert instance."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last modification time(ISO-8601 format) of alert instance."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Resolved time(ISO-8601 format) of alert instance. This will be updated when monitor service resolves the alert instance because the rule condition is no longer met."] - #[serde(rename = "monitorConditionResolvedDateTime", default, skip_serializing_if = "Option::is_none")] - pub monitor_condition_resolved_date_time: Option, + #[serde(rename = "monitorConditionResolvedDateTime", with = "azure_core::date::rfc3339::option")] + pub monitor_condition_resolved_date_time: Option, #[doc = "User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, @@ -1328,11 +1328,11 @@ pub struct SmartGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Creation time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last updated time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Last modified by user name."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, @@ -1482,8 +1482,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1491,8 +1491,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs index 5bd2332592f..ab7086446f9 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs @@ -51,11 +51,11 @@ pub struct ActionRuleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Creation time of action rule. Date-Time in ISO-8601 format."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Last updated time of action rule. Date-Time in ISO-8601 format."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, #[doc = "Created by user name."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -938,14 +938,14 @@ pub struct Essentials { #[serde(rename = "smartGroupingReason", default, skip_serializing_if = "Option::is_none")] pub smart_grouping_reason: Option, #[doc = "Creation time(ISO-8601 format) of alert instance."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last modification time(ISO-8601 format) of alert instance."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Resolved time(ISO-8601 format) of alert instance. This will be updated when monitor service resolves the alert instance because the rule condition is no longer met."] - #[serde(rename = "monitorConditionResolvedDateTime", default, skip_serializing_if = "Option::is_none")] - pub monitor_condition_resolved_date_time: Option, + #[serde(rename = "monitorConditionResolvedDateTime", with = "azure_core::date::rfc3339::option")] + pub monitor_condition_resolved_date_time: Option, #[doc = "User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, @@ -1369,11 +1369,11 @@ pub struct SmartGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Creation time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last updated time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Last modified by user name."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, diff --git a/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs index c5134866ffc..8b554bc0e12 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs @@ -897,14 +897,14 @@ pub struct Essentials { #[serde(rename = "smartGroupingReason", default, skip_serializing_if = "Option::is_none")] pub smart_grouping_reason: Option, #[doc = "Creation time(ISO-8601 format) of alert instance."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last modification time(ISO-8601 format) of alert instance."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Resolved time(ISO-8601 format) of alert instance. This will be updated when monitor service resolves the alert instance because the rule condition is no longer met."] - #[serde(rename = "monitorConditionResolvedDateTime", default, skip_serializing_if = "Option::is_none")] - pub monitor_condition_resolved_date_time: Option, + #[serde(rename = "monitorConditionResolvedDateTime", with = "azure_core::date::rfc3339::option")] + pub monitor_condition_resolved_date_time: Option, #[doc = "User who last modified the alert, in case of monitor service updates user would be 'system', otherwise name of the user."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, @@ -1328,11 +1328,11 @@ pub struct SmartGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Creation time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Last updated time of smart group. Date-Time in ISO-8601 format."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Last modified by user name."] #[serde(rename = "lastModifiedUserName", default, skip_serializing_if = "Option::is_none")] pub last_modified_user_name: Option, @@ -1482,8 +1482,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1491,8 +1491,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/analysisservices/Cargo.toml b/services/mgmt/analysisservices/Cargo.toml index ac64127a210..bb5bf606751 100644 --- a/services/mgmt/analysisservices/Cargo.toml +++ b/services/mgmt/analysisservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/apimanagement/Cargo.toml b/services/mgmt/apimanagement/Cargo.toml index 5181e3721b4..adbac2f7af6 100644 --- a/services/mgmt/apimanagement/Cargo.toml +++ b/services/mgmt/apimanagement/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs b/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs index 15ff7230f3c..8463bbbdc81 100644 --- a/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs @@ -556,8 +556,8 @@ pub struct ApiManagementServiceBaseProperties { #[serde(rename = "targetProvisioningState", default, skip_serializing_if = "Option::is_none")] pub target_provisioning_state: Option, #[doc = "Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "createdAtUtc", default, skip_serializing_if = "Option::is_none")] - pub created_at_utc: Option, + #[serde(rename = "createdAtUtc", with = "azure_core::date::rfc3339::option")] + pub created_at_utc: Option, #[doc = "Gateway URL of the API Management service."] #[serde(rename = "gatewayUrl", default, skip_serializing_if = "Option::is_none")] pub gateway_url: Option, @@ -996,11 +996,11 @@ pub struct ApiReleaseContractProperties { #[serde(rename = "apiId", default, skip_serializing_if = "Option::is_none")] pub api_id: Option, #[doc = "The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API release was updated."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Release Notes"] #[serde(default, skip_serializing_if = "Option::is_none")] pub notes: Option, @@ -1041,11 +1041,11 @@ pub struct ApiRevisionContract { #[serde(rename = "apiRevision", default, skip_serializing_if = "Option::is_none")] pub api_revision: Option, #[doc = "The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Description of the API Revision."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -2149,11 +2149,11 @@ pub struct CertificateContractProperties { #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate")] - pub expiration_date: String, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339")] + pub expiration_date: time::OffsetDateTime, } impl CertificateContractProperties { - pub fn new(subject: String, thumbprint: String, expiration_date: String) -> Self { + pub fn new(subject: String, thumbprint: String, expiration_date: time::OffsetDateTime) -> Self { Self { subject, thumbprint, @@ -2190,14 +2190,15 @@ impl CertificateCreateOrUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateInformation { #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Subject of the certificate."] pub subject: String, } impl CertificateInformation { - pub fn new(expiry: String, thumbprint: String, subject: String) -> Self { + pub fn new(expiry: time::OffsetDateTime, thumbprint: String, subject: String) -> Self { Self { expiry, thumbprint, @@ -2228,14 +2229,19 @@ pub struct ConnectivityStatusContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastUpdated")] - pub last_updated: String, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339")] + pub last_updated: time::OffsetDateTime, #[doc = "The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastStatusChange")] - pub last_status_change: String, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339")] + pub last_status_change: time::OffsetDateTime, } impl ConnectivityStatusContract { - pub fn new(name: String, status: connectivity_status_contract::Status, last_updated: String, last_status_change: String) -> Self { + pub fn new( + name: String, + status: connectivity_status_contract::Status, + last_updated: time::OffsetDateTime, + last_status_change: time::OffsetDateTime, + ) -> Self { Self { name, status, @@ -2849,10 +2855,11 @@ pub struct GatewayTokenRequestContract { #[serde(rename = "keyType")] pub key_type: gateway_token_request_contract::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl GatewayTokenRequestContract { - pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: String) -> Self { + pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } @@ -3486,8 +3493,8 @@ pub struct IssueCommentContractProperties { #[doc = "Comment text."] pub text: String, #[doc = "Date and time when the comment was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "A resource identifier for the user who left the comment."] #[serde(rename = "userId")] pub user_id: String, @@ -3519,8 +3526,8 @@ impl IssueContract { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContractBaseProperties { #[doc = "Date and time when the issue was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Status of the issue."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -4336,11 +4343,11 @@ pub struct OperationResultContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub started: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub started: Option, #[doc = "Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub updated: Option, #[doc = "Optional result info."] #[serde(rename = "resultInfo", default, skip_serializing_if = "Option::is_none")] pub result_info: Option, @@ -4916,17 +4923,22 @@ pub struct QuotaCounterContract { #[serde(rename = "periodKey")] pub period_key: String, #[doc = "The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodStartTime")] - pub period_start_time: String, + #[serde(rename = "periodStartTime", with = "azure_core::date::rfc3339")] + pub period_start_time: time::OffsetDateTime, #[doc = "The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodEndTime")] - pub period_end_time: String, + #[serde(rename = "periodEndTime", with = "azure_core::date::rfc3339")] + pub period_end_time: time::OffsetDateTime, #[doc = "Quota counter value details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub value: Option, } impl QuotaCounterContract { - pub fn new(counter_key: String, period_key: String, period_start_time: String, period_end_time: String) -> Self { + pub fn new( + counter_key: String, + period_key: String, + period_start_time: time::OffsetDateTime, + period_end_time: time::OffsetDateTime, + ) -> Self { Self { counter_key, period_key, @@ -5145,8 +5157,8 @@ pub struct ReportRecordContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -5331,8 +5343,8 @@ pub struct RequestReportRecordContract { #[serde(rename = "responseSize", default, skip_serializing_if = "Option::is_none")] pub response_size: Option, #[doc = "The date and time when this request was received by the gateway in ISO 8601 format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cache: Option, @@ -5788,20 +5800,20 @@ pub struct SubscriptionContractProperties { #[doc = "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated."] pub state: subscription_contract_properties::State, #[doc = "Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "notificationDate", default, skip_serializing_if = "Option::is_none")] - pub notification_date: Option, + #[serde(rename = "notificationDate", with = "azure_core::date::rfc3339::option")] + pub notification_date: Option, #[doc = "Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value."] #[serde(rename = "primaryKey", default, skip_serializing_if = "Option::is_none")] pub primary_key: Option, @@ -5961,8 +5973,8 @@ pub struct SubscriptionUpdateParameterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Subscription name."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -6251,11 +6263,11 @@ pub struct TenantConfigurationSyncStateContract { #[serde(rename = "isGitEnabled", default, skip_serializing_if = "Option::is_none")] pub is_git_enabled: Option, #[doc = "The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "syncDate", default, skip_serializing_if = "Option::is_none")] - pub sync_date: Option, + #[serde(rename = "syncDate", with = "azure_core::date::rfc3339::option")] + pub sync_date: Option, #[doc = "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "configurationChangeDate", default, skip_serializing_if = "Option::is_none")] - pub configuration_change_date: Option, + #[serde(rename = "configurationChangeDate", with = "azure_core::date::rfc3339::option")] + pub configuration_change_date: Option, } impl TenantConfigurationSyncStateContract { pub fn new() -> Self { @@ -6343,8 +6355,8 @@ pub struct UserContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, #[doc = "Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "registrationDate", default, skip_serializing_if = "Option::is_none")] - pub registration_date: Option, + #[serde(rename = "registrationDate", with = "azure_core::date::rfc3339::option")] + pub registration_date: Option, #[doc = "Collection of groups user is part of."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, @@ -6611,10 +6623,11 @@ pub struct UserTokenParameterProperties { #[serde(rename = "keyType")] pub key_type: user_token_parameter_properties::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl UserTokenParameterProperties { - pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: String) -> Self { + pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } diff --git a/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs b/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs index f731f5c9f72..85635877968 100644 --- a/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs @@ -652,8 +652,8 @@ pub struct ApiManagementServiceBaseProperties { #[serde(rename = "targetProvisioningState", default, skip_serializing_if = "Option::is_none")] pub target_provisioning_state: Option, #[doc = "Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "createdAtUtc", default, skip_serializing_if = "Option::is_none")] - pub created_at_utc: Option, + #[serde(rename = "createdAtUtc", with = "azure_core::date::rfc3339::option")] + pub created_at_utc: Option, #[doc = "Gateway URL of the API Management service."] #[serde(rename = "gatewayUrl", default, skip_serializing_if = "Option::is_none")] pub gateway_url: Option, @@ -1329,11 +1329,11 @@ pub struct ApiReleaseContractProperties { #[serde(rename = "apiId", default, skip_serializing_if = "Option::is_none")] pub api_id: Option, #[doc = "The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API release was updated."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Release Notes"] #[serde(default, skip_serializing_if = "Option::is_none")] pub notes: Option, @@ -1377,11 +1377,11 @@ pub struct ApiRevisionContract { #[serde(rename = "apiRevision", default, skip_serializing_if = "Option::is_none")] pub api_revision: Option, #[doc = "The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Description of the API Revision."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -2529,14 +2529,14 @@ pub struct CertificateContractProperties { #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate")] - pub expiration_date: String, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339")] + pub expiration_date: time::OffsetDateTime, #[doc = "KeyVault contract details."] #[serde(rename = "keyVault", default, skip_serializing_if = "Option::is_none")] pub key_vault: Option, } impl CertificateContractProperties { - pub fn new(subject: String, thumbprint: String, expiration_date: String) -> Self { + pub fn new(subject: String, thumbprint: String, expiration_date: time::OffsetDateTime) -> Self { Self { subject, thumbprint, @@ -2579,14 +2579,15 @@ impl CertificateCreateOrUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateInformation { #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Subject of the certificate."] pub subject: String, } impl CertificateInformation { - pub fn new(expiry: String, thumbprint: String, subject: String) -> Self { + pub fn new(expiry: time::OffsetDateTime, thumbprint: String, subject: String) -> Self { Self { expiry, thumbprint, @@ -2617,11 +2618,11 @@ pub struct ConnectivityStatusContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastUpdated")] - pub last_updated: String, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339")] + pub last_updated: time::OffsetDateTime, #[doc = "The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastStatusChange")] - pub last_status_change: String, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339")] + pub last_status_change: time::OffsetDateTime, #[doc = "Resource Type."] #[serde(rename = "resourceType")] pub resource_type: String, @@ -2633,8 +2634,8 @@ impl ConnectivityStatusContract { pub fn new( name: String, status: connectivity_status_contract::Status, - last_updated: String, - last_status_change: String, + last_updated: time::OffsetDateTime, + last_status_change: time::OffsetDateTime, resource_type: String, is_optional: bool, ) -> Self { @@ -2882,11 +2883,11 @@ pub struct DeletedServiceContractProperties { #[serde(rename = "serviceId", default, skip_serializing_if = "Option::is_none")] pub service_id: Option, #[doc = "UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, } impl DeletedServiceContractProperties { pub fn new() -> Self { @@ -3583,10 +3584,11 @@ pub struct GatewayTokenRequestContract { #[serde(rename = "keyType")] pub key_type: gateway_token_request_contract::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl GatewayTokenRequestContract { - pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: String) -> Self { + pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } @@ -4241,8 +4243,8 @@ pub struct IssueCommentContractProperties { #[doc = "Comment text."] pub text: String, #[doc = "Date and time when the comment was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "A resource identifier for the user who left the comment."] #[serde(rename = "userId")] pub user_id: String, @@ -4274,8 +4276,8 @@ impl IssueContract { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContractBaseProperties { #[doc = "Date and time when the issue was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Status of the issue."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -4433,8 +4435,8 @@ pub struct KeyVaultLastAccessStatusContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "Last time secret was accessed. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "timeStampUtc", default, skip_serializing_if = "Option::is_none")] - pub time_stamp_utc: Option, + #[serde(rename = "timeStampUtc", with = "azure_core::date::rfc3339::option")] + pub time_stamp_utc: Option, } impl KeyVaultLastAccessStatusContractProperties { pub fn new() -> Self { @@ -5181,11 +5183,11 @@ pub struct OperationResultContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub started: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub started: Option, #[doc = "Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub updated: Option, #[doc = "Optional result info."] #[serde(rename = "resultInfo", default, skip_serializing_if = "Option::is_none")] pub result_info: Option, @@ -5570,11 +5572,11 @@ pub struct PortalRevisionContractProperties { #[serde(rename = "isCurrent", default, skip_serializing_if = "Option::is_none")] pub is_current: Option, #[doc = "Portal revision creation date and time."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "Last updated date and time."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, } impl PortalRevisionContractProperties { pub fn new() -> Self { @@ -5919,17 +5921,22 @@ pub struct QuotaCounterContract { #[serde(rename = "periodKey")] pub period_key: String, #[doc = "The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodStartTime")] - pub period_start_time: String, + #[serde(rename = "periodStartTime", with = "azure_core::date::rfc3339")] + pub period_start_time: time::OffsetDateTime, #[doc = "The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodEndTime")] - pub period_end_time: String, + #[serde(rename = "periodEndTime", with = "azure_core::date::rfc3339")] + pub period_end_time: time::OffsetDateTime, #[doc = "Quota counter value details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub value: Option, } impl QuotaCounterContract { - pub fn new(counter_key: String, period_key: String, period_start_time: String, period_end_time: String) -> Self { + pub fn new( + counter_key: String, + period_key: String, + period_start_time: time::OffsetDateTime, + period_end_time: time::OffsetDateTime, + ) -> Self { Self { counter_key, period_key, @@ -6166,8 +6173,8 @@ pub struct ReportRecordContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -6352,8 +6359,8 @@ pub struct RequestReportRecordContract { #[serde(rename = "responseSize", default, skip_serializing_if = "Option::is_none")] pub response_size: Option, #[doc = "The date and time when this request was received by the gateway in ISO 8601 format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cache: Option, @@ -6817,20 +6824,20 @@ pub struct SubscriptionContractProperties { #[doc = "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated."] pub state: subscription_contract_properties::State, #[doc = "Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "notificationDate", default, skip_serializing_if = "Option::is_none")] - pub notification_date: Option, + #[serde(rename = "notificationDate", with = "azure_core::date::rfc3339::option")] + pub notification_date: Option, #[doc = "Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value."] #[serde(rename = "primaryKey", default, skip_serializing_if = "Option::is_none")] pub primary_key: Option, @@ -6990,8 +6997,8 @@ pub struct SubscriptionUpdateParameterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Subscription name."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -7289,11 +7296,11 @@ pub struct TenantConfigurationSyncStateContract { #[serde(rename = "isGitEnabled", default, skip_serializing_if = "Option::is_none")] pub is_git_enabled: Option, #[doc = "The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "syncDate", default, skip_serializing_if = "Option::is_none")] - pub sync_date: Option, + #[serde(rename = "syncDate", with = "azure_core::date::rfc3339::option")] + pub sync_date: Option, #[doc = "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "configurationChangeDate", default, skip_serializing_if = "Option::is_none")] - pub configuration_change_date: Option, + #[serde(rename = "configurationChangeDate", with = "azure_core::date::rfc3339::option")] + pub configuration_change_date: Option, } impl TenantConfigurationSyncStateContract { pub fn new() -> Self { @@ -7431,8 +7438,8 @@ pub struct UserContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, #[doc = "Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "registrationDate", default, skip_serializing_if = "Option::is_none")] - pub registration_date: Option, + #[serde(rename = "registrationDate", with = "azure_core::date::rfc3339::option")] + pub registration_date: Option, #[doc = "Collection of groups user is part of."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, @@ -7702,10 +7709,11 @@ pub struct UserTokenParameterProperties { #[serde(rename = "keyType")] pub key_type: user_token_parameter_properties::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl UserTokenParameterProperties { - pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: String) -> Self { + pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } diff --git a/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs b/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs index 16f665f7af0..b2c81630426 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs @@ -707,8 +707,8 @@ pub struct ApiManagementServiceBaseProperties { #[serde(rename = "targetProvisioningState", default, skip_serializing_if = "Option::is_none")] pub target_provisioning_state: Option, #[doc = "Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "createdAtUtc", default, skip_serializing_if = "Option::is_none")] - pub created_at_utc: Option, + #[serde(rename = "createdAtUtc", with = "azure_core::date::rfc3339::option")] + pub created_at_utc: Option, #[doc = "Gateway URL of the API Management service."] #[serde(rename = "gatewayUrl", default, skip_serializing_if = "Option::is_none")] pub gateway_url: Option, @@ -1390,11 +1390,11 @@ pub struct ApiReleaseContractProperties { #[serde(rename = "apiId", default, skip_serializing_if = "Option::is_none")] pub api_id: Option, #[doc = "The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API release was updated."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Release Notes"] #[serde(default, skip_serializing_if = "Option::is_none")] pub notes: Option, @@ -1438,11 +1438,11 @@ pub struct ApiRevisionContract { #[serde(rename = "apiRevision", default, skip_serializing_if = "Option::is_none")] pub api_revision: Option, #[doc = "The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Description of the API Revision."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -2590,14 +2590,14 @@ pub struct CertificateContractProperties { #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate")] - pub expiration_date: String, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339")] + pub expiration_date: time::OffsetDateTime, #[doc = "KeyVault contract details."] #[serde(rename = "keyVault", default, skip_serializing_if = "Option::is_none")] pub key_vault: Option, } impl CertificateContractProperties { - pub fn new(subject: String, thumbprint: String, expiration_date: String) -> Self { + pub fn new(subject: String, thumbprint: String, expiration_date: time::OffsetDateTime) -> Self { Self { subject, thumbprint, @@ -2640,14 +2640,15 @@ impl CertificateCreateOrUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateInformation { #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Subject of the certificate."] pub subject: String, } impl CertificateInformation { - pub fn new(expiry: String, thumbprint: String, subject: String) -> Self { + pub fn new(expiry: time::OffsetDateTime, thumbprint: String, subject: String) -> Self { Self { expiry, thumbprint, @@ -2678,11 +2679,11 @@ pub struct ConnectivityStatusContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastUpdated")] - pub last_updated: String, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339")] + pub last_updated: time::OffsetDateTime, #[doc = "The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastStatusChange")] - pub last_status_change: String, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339")] + pub last_status_change: time::OffsetDateTime, #[doc = "Resource Type."] #[serde(rename = "resourceType")] pub resource_type: String, @@ -2694,8 +2695,8 @@ impl ConnectivityStatusContract { pub fn new( name: String, status: connectivity_status_contract::Status, - last_updated: String, - last_status_change: String, + last_updated: time::OffsetDateTime, + last_status_change: time::OffsetDateTime, resource_type: String, is_optional: bool, ) -> Self { @@ -2943,11 +2944,11 @@ pub struct DeletedServiceContractProperties { #[serde(rename = "serviceId", default, skip_serializing_if = "Option::is_none")] pub service_id: Option, #[doc = "UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, } impl DeletedServiceContractProperties { pub fn new() -> Self { @@ -3644,10 +3645,11 @@ pub struct GatewayTokenRequestContract { #[serde(rename = "keyType")] pub key_type: gateway_token_request_contract::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl GatewayTokenRequestContract { - pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: String) -> Self { + pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } @@ -4390,8 +4392,8 @@ pub struct IssueCommentContractProperties { #[doc = "Comment text."] pub text: String, #[doc = "Date and time when the comment was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "A resource identifier for the user who left the comment."] #[serde(rename = "userId")] pub user_id: String, @@ -4423,8 +4425,8 @@ impl IssueContract { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContractBaseProperties { #[doc = "Date and time when the issue was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Status of the issue."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -4582,8 +4584,8 @@ pub struct KeyVaultLastAccessStatusContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "Last time secret was accessed. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "timeStampUtc", default, skip_serializing_if = "Option::is_none")] - pub time_stamp_utc: Option, + #[serde(rename = "timeStampUtc", with = "azure_core::date::rfc3339::option")] + pub time_stamp_utc: Option, } impl KeyVaultLastAccessStatusContractProperties { pub fn new() -> Self { @@ -5344,11 +5346,11 @@ pub struct OperationResultContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub started: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub started: Option, #[doc = "Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub updated: Option, #[doc = "Optional result info."] #[serde(rename = "resultInfo", default, skip_serializing_if = "Option::is_none")] pub result_info: Option, @@ -5774,11 +5776,11 @@ pub struct PortalRevisionContractProperties { #[serde(rename = "isCurrent", default, skip_serializing_if = "Option::is_none")] pub is_current: Option, #[doc = "Portal's revision creation date and time."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "Last updated date and time."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, } impl PortalRevisionContractProperties { pub fn new() -> Self { @@ -6123,17 +6125,22 @@ pub struct QuotaCounterContract { #[serde(rename = "periodKey")] pub period_key: String, #[doc = "The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodStartTime")] - pub period_start_time: String, + #[serde(rename = "periodStartTime", with = "azure_core::date::rfc3339")] + pub period_start_time: time::OffsetDateTime, #[doc = "The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodEndTime")] - pub period_end_time: String, + #[serde(rename = "periodEndTime", with = "azure_core::date::rfc3339")] + pub period_end_time: time::OffsetDateTime, #[doc = "Quota counter value details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub value: Option, } impl QuotaCounterContract { - pub fn new(counter_key: String, period_key: String, period_start_time: String, period_end_time: String) -> Self { + pub fn new( + counter_key: String, + period_key: String, + period_start_time: time::OffsetDateTime, + period_end_time: time::OffsetDateTime, + ) -> Self { Self { counter_key, period_key, @@ -6370,8 +6377,8 @@ pub struct ReportRecordContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -6552,8 +6559,8 @@ pub struct RequestReportRecordContract { #[serde(rename = "responseSize", default, skip_serializing_if = "Option::is_none")] pub response_size: Option, #[doc = "The date and time when this request was received by the gateway in ISO 8601 format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cache: Option, @@ -7010,20 +7017,20 @@ pub struct SubscriptionContractProperties { #[doc = "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated."] pub state: subscription_contract_properties::State, #[doc = "Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "notificationDate", default, skip_serializing_if = "Option::is_none")] - pub notification_date: Option, + #[serde(rename = "notificationDate", with = "azure_core::date::rfc3339::option")] + pub notification_date: Option, #[doc = "Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value."] #[serde(rename = "primaryKey", default, skip_serializing_if = "Option::is_none")] pub primary_key: Option, @@ -7183,8 +7190,8 @@ pub struct SubscriptionUpdateParameterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Subscription name."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -7494,11 +7501,11 @@ pub struct TenantConfigurationSyncStateContractProperties { #[serde(rename = "isGitEnabled", default, skip_serializing_if = "Option::is_none")] pub is_git_enabled: Option, #[doc = "The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "syncDate", default, skip_serializing_if = "Option::is_none")] - pub sync_date: Option, + #[serde(rename = "syncDate", with = "azure_core::date::rfc3339::option")] + pub sync_date: Option, #[doc = "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "configurationChangeDate", default, skip_serializing_if = "Option::is_none")] - pub configuration_change_date: Option, + #[serde(rename = "configurationChangeDate", with = "azure_core::date::rfc3339::option")] + pub configuration_change_date: Option, #[doc = "Most recent tenant configuration operation identifier"] #[serde(rename = "lastOperationId", default, skip_serializing_if = "Option::is_none")] pub last_operation_id: Option, @@ -7639,8 +7646,8 @@ pub struct UserContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, #[doc = "Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "registrationDate", default, skip_serializing_if = "Option::is_none")] - pub registration_date: Option, + #[serde(rename = "registrationDate", with = "azure_core::date::rfc3339::option")] + pub registration_date: Option, #[doc = "Collection of groups user is part of."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, @@ -7910,10 +7917,11 @@ pub struct UserTokenParameterProperties { #[serde(rename = "keyType")] pub key_type: user_token_parameter_properties::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl UserTokenParameterProperties { - pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: String) -> Self { + pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } diff --git a/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs b/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs index 18a0f943bce..2928b538f26 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs @@ -825,8 +825,8 @@ pub struct ApiManagementServiceBaseProperties { #[serde(rename = "targetProvisioningState", default, skip_serializing_if = "Option::is_none")] pub target_provisioning_state: Option, #[doc = "Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "createdAtUtc", default, skip_serializing_if = "Option::is_none")] - pub created_at_utc: Option, + #[serde(rename = "createdAtUtc", with = "azure_core::date::rfc3339::option")] + pub created_at_utc: Option, #[doc = "Gateway URL of the API Management service."] #[serde(rename = "gatewayUrl", default, skip_serializing_if = "Option::is_none")] pub gateway_url: Option, @@ -1603,11 +1603,11 @@ pub struct ApiReleaseContractProperties { #[serde(rename = "apiId", default, skip_serializing_if = "Option::is_none")] pub api_id: Option, #[doc = "The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API release was updated."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Release Notes"] #[serde(default, skip_serializing_if = "Option::is_none")] pub notes: Option, @@ -1651,11 +1651,11 @@ pub struct ApiRevisionContract { #[serde(rename = "apiRevision", default, skip_serializing_if = "Option::is_none")] pub api_revision: Option, #[doc = "The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Description of the API Revision."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -2888,14 +2888,14 @@ pub struct CertificateContractProperties { #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate")] - pub expiration_date: String, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339")] + pub expiration_date: time::OffsetDateTime, #[doc = "KeyVault contract details."] #[serde(rename = "keyVault", default, skip_serializing_if = "Option::is_none")] pub key_vault: Option, } impl CertificateContractProperties { - pub fn new(subject: String, thumbprint: String, expiration_date: String) -> Self { + pub fn new(subject: String, thumbprint: String, expiration_date: time::OffsetDateTime) -> Self { Self { subject, thumbprint, @@ -2938,14 +2938,15 @@ impl CertificateCreateOrUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateInformation { #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Subject of the certificate."] pub subject: String, } impl CertificateInformation { - pub fn new(expiry: String, thumbprint: String, subject: String) -> Self { + pub fn new(expiry: time::OffsetDateTime, thumbprint: String, subject: String) -> Self { Self { expiry, thumbprint, @@ -3438,11 +3439,11 @@ pub struct ConnectivityStatusContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastUpdated")] - pub last_updated: String, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339")] + pub last_updated: time::OffsetDateTime, #[doc = "The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastStatusChange")] - pub last_status_change: String, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339")] + pub last_status_change: time::OffsetDateTime, #[doc = "Resource Type."] #[serde(rename = "resourceType")] pub resource_type: String, @@ -3454,8 +3455,8 @@ impl ConnectivityStatusContract { pub fn new( name: String, status: connectivity_status_contract::Status, - last_updated: String, - last_status_change: String, + last_updated: time::OffsetDateTime, + last_status_change: time::OffsetDateTime, resource_type: String, is_optional: bool, ) -> Self { @@ -3703,11 +3704,11 @@ pub struct DeletedServiceContractProperties { #[serde(rename = "serviceId", default, skip_serializing_if = "Option::is_none")] pub service_id: Option, #[doc = "UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, } impl DeletedServiceContractProperties { pub fn new() -> Self { @@ -4434,10 +4435,11 @@ pub struct GatewayTokenRequestContract { #[serde(rename = "keyType")] pub key_type: gateway_token_request_contract::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl GatewayTokenRequestContract { - pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: String) -> Self { + pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } @@ -5193,8 +5195,8 @@ pub struct IssueCommentContractProperties { #[doc = "Comment text."] pub text: String, #[doc = "Date and time when the comment was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "A resource identifier for the user who left the comment."] #[serde(rename = "userId")] pub user_id: String, @@ -5234,8 +5236,8 @@ impl IssueContract { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContractBaseProperties { #[doc = "Date and time when the issue was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Status of the issue."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5393,8 +5395,8 @@ pub struct KeyVaultLastAccessStatusContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "Last time secret was accessed. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "timeStampUtc", default, skip_serializing_if = "Option::is_none")] - pub time_stamp_utc: Option, + #[serde(rename = "timeStampUtc", with = "azure_core::date::rfc3339::option")] + pub time_stamp_utc: Option, } impl KeyVaultLastAccessStatusContractProperties { pub fn new() -> Self { @@ -6155,11 +6157,11 @@ pub struct OperationResultContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub started: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub started: Option, #[doc = "Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub updated: Option, #[doc = "Optional result info."] #[serde(rename = "resultInfo", default, skip_serializing_if = "Option::is_none")] pub result_info: Option, @@ -6614,11 +6616,11 @@ pub struct PortalRevisionContractProperties { #[serde(rename = "isCurrent", default, skip_serializing_if = "Option::is_none")] pub is_current: Option, #[doc = "Portal's revision creation date and time."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "Last updated date and time."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, } impl PortalRevisionContractProperties { pub fn new() -> Self { @@ -7227,17 +7229,22 @@ pub struct QuotaCounterContract { #[serde(rename = "periodKey")] pub period_key: String, #[doc = "The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodStartTime")] - pub period_start_time: String, + #[serde(rename = "periodStartTime", with = "azure_core::date::rfc3339")] + pub period_start_time: time::OffsetDateTime, #[doc = "The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodEndTime")] - pub period_end_time: String, + #[serde(rename = "periodEndTime", with = "azure_core::date::rfc3339")] + pub period_end_time: time::OffsetDateTime, #[doc = "Quota counter value details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub value: Option, } impl QuotaCounterContract { - pub fn new(counter_key: String, period_key: String, period_start_time: String, period_end_time: String) -> Self { + pub fn new( + counter_key: String, + period_key: String, + period_start_time: time::OffsetDateTime, + period_end_time: time::OffsetDateTime, + ) -> Self { Self { counter_key, period_key, @@ -7495,8 +7502,8 @@ pub struct ReportRecordContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -7681,8 +7688,8 @@ pub struct RequestReportRecordContract { #[serde(rename = "responseSize", default, skip_serializing_if = "Option::is_none")] pub response_size: Option, #[doc = "The date and time when this request was received by the gateway in ISO 8601 format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cache: Option, @@ -8189,20 +8196,20 @@ pub struct SubscriptionContractProperties { #[doc = "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated."] pub state: subscription_contract_properties::State, #[doc = "Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "notificationDate", default, skip_serializing_if = "Option::is_none")] - pub notification_date: Option, + #[serde(rename = "notificationDate", with = "azure_core::date::rfc3339::option")] + pub notification_date: Option, #[doc = "Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value."] #[serde(rename = "primaryKey", default, skip_serializing_if = "Option::is_none")] pub primary_key: Option, @@ -8362,8 +8369,8 @@ pub struct SubscriptionUpdateParameterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Subscription name."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -8675,11 +8682,11 @@ pub struct TenantConfigurationSyncStateContractProperties { #[serde(rename = "isGitEnabled", default, skip_serializing_if = "Option::is_none")] pub is_git_enabled: Option, #[doc = "The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "syncDate", default, skip_serializing_if = "Option::is_none")] - pub sync_date: Option, + #[serde(rename = "syncDate", with = "azure_core::date::rfc3339::option")] + pub sync_date: Option, #[doc = "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "configurationChangeDate", default, skip_serializing_if = "Option::is_none")] - pub configuration_change_date: Option, + #[serde(rename = "configurationChangeDate", with = "azure_core::date::rfc3339::option")] + pub configuration_change_date: Option, #[doc = "Most recent tenant configuration operation identifier"] #[serde(rename = "lastOperationId", default, skip_serializing_if = "Option::is_none")] pub last_operation_id: Option, @@ -8820,8 +8827,8 @@ pub struct UserContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, #[doc = "Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "registrationDate", default, skip_serializing_if = "Option::is_none")] - pub registration_date: Option, + #[serde(rename = "registrationDate", with = "azure_core::date::rfc3339::option")] + pub registration_date: Option, #[doc = "Collection of groups user is part of."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, @@ -9091,10 +9098,11 @@ pub struct UserTokenParameterProperties { #[serde(rename = "keyType")] pub key_type: user_token_parameter_properties::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl UserTokenParameterProperties { - pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: String) -> Self { + pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } @@ -9216,8 +9224,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -9225,8 +9233,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs b/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs index 03aba7778d7..0a7bff19c5f 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs @@ -825,8 +825,8 @@ pub struct ApiManagementServiceBaseProperties { #[serde(rename = "targetProvisioningState", default, skip_serializing_if = "Option::is_none")] pub target_provisioning_state: Option, #[doc = "Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "createdAtUtc", default, skip_serializing_if = "Option::is_none")] - pub created_at_utc: Option, + #[serde(rename = "createdAtUtc", with = "azure_core::date::rfc3339::option")] + pub created_at_utc: Option, #[doc = "Gateway URL of the API Management service."] #[serde(rename = "gatewayUrl", default, skip_serializing_if = "Option::is_none")] pub gateway_url: Option, @@ -1603,11 +1603,11 @@ pub struct ApiReleaseContractProperties { #[serde(rename = "apiId", default, skip_serializing_if = "Option::is_none")] pub api_id: Option, #[doc = "The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API release was updated."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Release Notes"] #[serde(default, skip_serializing_if = "Option::is_none")] pub notes: Option, @@ -1651,11 +1651,11 @@ pub struct ApiRevisionContract { #[serde(rename = "apiRevision", default, skip_serializing_if = "Option::is_none")] pub api_revision: Option, #[doc = "The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, #[doc = "Description of the API Revision."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -2814,14 +2814,14 @@ pub struct CertificateContractProperties { #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate")] - pub expiration_date: String, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339")] + pub expiration_date: time::OffsetDateTime, #[doc = "KeyVault contract details."] #[serde(rename = "keyVault", default, skip_serializing_if = "Option::is_none")] pub key_vault: Option, } impl CertificateContractProperties { - pub fn new(subject: String, thumbprint: String, expiration_date: String) -> Self { + pub fn new(subject: String, thumbprint: String, expiration_date: time::OffsetDateTime) -> Self { Self { subject, thumbprint, @@ -2864,14 +2864,15 @@ impl CertificateCreateOrUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateInformation { #[doc = "Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, #[doc = "Thumbprint of the certificate."] pub thumbprint: String, #[doc = "Subject of the certificate."] pub subject: String, } impl CertificateInformation { - pub fn new(expiry: String, thumbprint: String, subject: String) -> Self { + pub fn new(expiry: time::OffsetDateTime, thumbprint: String, subject: String) -> Self { Self { expiry, thumbprint, @@ -3364,11 +3365,11 @@ pub struct ConnectivityStatusContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastUpdated")] - pub last_updated: String, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339")] + pub last_updated: time::OffsetDateTime, #[doc = "The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "lastStatusChange")] - pub last_status_change: String, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339")] + pub last_status_change: time::OffsetDateTime, #[doc = "Resource Type."] #[serde(rename = "resourceType")] pub resource_type: String, @@ -3380,8 +3381,8 @@ impl ConnectivityStatusContract { pub fn new( name: String, status: connectivity_status_contract::Status, - last_updated: String, - last_status_change: String, + last_updated: time::OffsetDateTime, + last_status_change: time::OffsetDateTime, resource_type: String, is_optional: bool, ) -> Self { @@ -3629,11 +3630,11 @@ pub struct DeletedServiceContractProperties { #[serde(rename = "serviceId", default, skip_serializing_if = "Option::is_none")] pub service_id: Option, #[doc = "UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, } impl DeletedServiceContractProperties { pub fn new() -> Self { @@ -4360,10 +4361,11 @@ pub struct GatewayTokenRequestContract { #[serde(rename = "keyType")] pub key_type: gateway_token_request_contract::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl GatewayTokenRequestContract { - pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: String) -> Self { + pub fn new(key_type: gateway_token_request_contract::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } @@ -5236,8 +5238,8 @@ pub struct IssueCommentContractProperties { #[doc = "Comment text."] pub text: String, #[doc = "Date and time when the comment was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "A resource identifier for the user who left the comment."] #[serde(rename = "userId")] pub user_id: String, @@ -5277,8 +5279,8 @@ impl IssueContract { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContractBaseProperties { #[doc = "Date and time when the issue was created."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Status of the issue."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5436,8 +5438,8 @@ pub struct KeyVaultLastAccessStatusContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "Last time secret was accessed. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "timeStampUtc", default, skip_serializing_if = "Option::is_none")] - pub time_stamp_utc: Option, + #[serde(rename = "timeStampUtc", with = "azure_core::date::rfc3339::option")] + pub time_stamp_utc: Option, } impl KeyVaultLastAccessStatusContractProperties { pub fn new() -> Self { @@ -6198,11 +6200,11 @@ pub struct OperationResultContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub started: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub started: Option, #[doc = "Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub updated: Option, #[doc = "Optional result info."] #[serde(rename = "resultInfo", default, skip_serializing_if = "Option::is_none")] pub result_info: Option, @@ -6950,11 +6952,11 @@ pub struct PortalRevisionContractProperties { #[serde(rename = "isCurrent", default, skip_serializing_if = "Option::is_none")] pub is_current: Option, #[doc = "Portal's revision creation date and time."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "Last updated date and time."] - #[serde(rename = "updatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub updated_date_time: Option, + #[serde(rename = "updatedDateTime", with = "azure_core::date::rfc3339::option")] + pub updated_date_time: Option, } impl PortalRevisionContractProperties { pub fn new() -> Self { @@ -7563,17 +7565,22 @@ pub struct QuotaCounterContract { #[serde(rename = "periodKey")] pub period_key: String, #[doc = "The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodStartTime")] - pub period_start_time: String, + #[serde(rename = "periodStartTime", with = "azure_core::date::rfc3339")] + pub period_start_time: time::OffsetDateTime, #[doc = "The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "periodEndTime")] - pub period_end_time: String, + #[serde(rename = "periodEndTime", with = "azure_core::date::rfc3339")] + pub period_end_time: time::OffsetDateTime, #[doc = "Quota counter value details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub value: Option, } impl QuotaCounterContract { - pub fn new(counter_key: String, period_key: String, period_start_time: String, period_end_time: String) -> Self { + pub fn new( + counter_key: String, + period_key: String, + period_start_time: time::OffsetDateTime, + period_end_time: time::OffsetDateTime, + ) -> Self { Self { counter_key, period_key, @@ -7831,8 +7838,8 @@ pub struct ReportRecordContract { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -8017,8 +8024,8 @@ pub struct RequestReportRecordContract { #[serde(rename = "responseSize", default, skip_serializing_if = "Option::is_none")] pub response_size: Option, #[doc = "The date and time when this request was received by the gateway in ISO 8601 format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fulfilled by the backend."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cache: Option, @@ -8503,20 +8510,20 @@ pub struct SubscriptionContractProperties { #[doc = "Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated."] pub state: subscription_contract_properties::State, #[doc = "Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "notificationDate", default, skip_serializing_if = "Option::is_none")] - pub notification_date: Option, + #[serde(rename = "notificationDate", with = "azure_core::date::rfc3339::option")] + pub notification_date: Option, #[doc = "Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value."] #[serde(rename = "primaryKey", default, skip_serializing_if = "Option::is_none")] pub primary_key: Option, @@ -8676,8 +8683,8 @@ pub struct SubscriptionUpdateParameterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Subscription name."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -8989,11 +8996,11 @@ pub struct TenantConfigurationSyncStateContractProperties { #[serde(rename = "isGitEnabled", default, skip_serializing_if = "Option::is_none")] pub is_git_enabled: Option, #[doc = "The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "syncDate", default, skip_serializing_if = "Option::is_none")] - pub sync_date: Option, + #[serde(rename = "syncDate", with = "azure_core::date::rfc3339::option")] + pub sync_date: Option, #[doc = "The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "configurationChangeDate", default, skip_serializing_if = "Option::is_none")] - pub configuration_change_date: Option, + #[serde(rename = "configurationChangeDate", with = "azure_core::date::rfc3339::option")] + pub configuration_change_date: Option, #[doc = "Most recent tenant configuration operation identifier"] #[serde(rename = "lastOperationId", default, skip_serializing_if = "Option::is_none")] pub last_operation_id: Option, @@ -9134,8 +9141,8 @@ pub struct UserContractProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, #[doc = "Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - #[serde(rename = "registrationDate", default, skip_serializing_if = "Option::is_none")] - pub registration_date: Option, + #[serde(rename = "registrationDate", with = "azure_core::date::rfc3339::option")] + pub registration_date: Option, #[doc = "Collection of groups user is part of."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, @@ -9405,10 +9412,11 @@ pub struct UserTokenParameterProperties { #[serde(rename = "keyType")] pub key_type: user_token_parameter_properties::KeyType, #[doc = "The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"] - pub expiry: String, + #[serde(with = "azure_core::date::rfc3339")] + pub expiry: time::OffsetDateTime, } impl UserTokenParameterProperties { - pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: String) -> Self { + pub fn new(key_type: user_token_parameter_properties::KeyType, expiry: time::OffsetDateTime) -> Self { Self { key_type, expiry } } } @@ -9530,8 +9538,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -9539,8 +9547,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/app/Cargo.toml b/services/mgmt/app/Cargo.toml index e9152d7fdca..f89b8c17606 100644 --- a/services/mgmt/app/Cargo.toml +++ b/services/mgmt/app/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/app/src/package_2022_01_01_preview/models.rs b/services/mgmt/app/src/package_2022_01_01_preview/models.rs index 98e32494b38..9691deb28fc 100644 --- a/services/mgmt/app/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/app/src/package_2022_01_01_preview/models.rs @@ -426,11 +426,11 @@ pub mod certificate { #[serde(default, skip_serializing_if = "Option::is_none")] pub issuer: Option, #[doc = "Certificate issue Date."] - #[serde(rename = "issueDate", default, skip_serializing_if = "Option::is_none")] - pub issue_date: Option, + #[serde(rename = "issueDate", with = "azure_core::date::rfc3339::option")] + pub issue_date: Option, #[doc = "Certificate expiration date."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Certificate thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -2219,8 +2219,8 @@ pub mod replica { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Timestamp describing when the pod was created by controller"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The containers collection under a replica."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub containers: Vec, @@ -2307,8 +2307,8 @@ pub mod revision { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Timestamp describing when the revision was created\nby controller"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Fully qualified domain name of the revision"] #[serde(default, skip_serializing_if = "Option::is_none")] pub fqdn: Option, @@ -2849,8 +2849,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2858,8 +2858,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/app/src/package_2022_03/models.rs b/services/mgmt/app/src/package_2022_03/models.rs index 26ea9d85352..c1f334db881 100644 --- a/services/mgmt/app/src/package_2022_03/models.rs +++ b/services/mgmt/app/src/package_2022_03/models.rs @@ -426,11 +426,11 @@ pub mod certificate { #[serde(default, skip_serializing_if = "Option::is_none")] pub issuer: Option, #[doc = "Certificate issue Date."] - #[serde(rename = "issueDate", default, skip_serializing_if = "Option::is_none")] - pub issue_date: Option, + #[serde(rename = "issueDate", with = "azure_core::date::rfc3339::option")] + pub issue_date: Option, #[doc = "Certificate expiration date."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Certificate thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -2291,8 +2291,8 @@ pub mod replica { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Timestamp describing when the pod was created by controller"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The containers collection under a replica."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub containers: Vec, @@ -2379,8 +2379,8 @@ pub mod revision { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Timestamp describing when the revision was created\nby controller"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Fully qualified domain name of the revision"] #[serde(default, skip_serializing_if = "Option::is_none")] pub fqdn: Option, @@ -2924,8 +2924,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2933,8 +2933,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appconfiguration/Cargo.toml b/services/mgmt/appconfiguration/Cargo.toml index 7488282d11f..97c7e82a945 100644 --- a/services/mgmt/appconfiguration/Cargo.toml +++ b/services/mgmt/appconfiguration/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs b/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs index 518e365230f..5f56255c83f 100644 --- a/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs @@ -20,8 +20,8 @@ pub struct ApiKey { #[serde(rename = "connectionString", default, skip_serializing_if = "Option::is_none")] pub connection_string: Option, #[doc = "The last time any of the key's properties were modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "Whether this key can only be used for read operations."] #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")] pub read_only: Option, @@ -159,8 +159,8 @@ pub struct ConfigurationStoreProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of configuration store."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The DNS endpoint where the configuration store API will be available."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -421,8 +421,8 @@ pub struct KeyValueProperties { #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, #[doc = "The last time a modifying operation was performed on the given key-value."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked."] #[serde(default, skip_serializing_if = "Option::is_none")] pub locked: Option, diff --git a/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs b/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs index 1562ec62b33..74da4e3063e 100644 --- a/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs +++ b/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs @@ -20,8 +20,8 @@ pub struct ApiKey { #[serde(rename = "connectionString", default, skip_serializing_if = "Option::is_none")] pub connection_string: Option, #[doc = "The last time any of the key's properties were modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "Whether this key can only be used for read operations."] #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")] pub read_only: Option, @@ -163,8 +163,8 @@ pub struct ConfigurationStoreProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of configuration store."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The DNS endpoint where the configuration store API will be available."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -474,8 +474,8 @@ pub struct KeyValueProperties { #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, #[doc = "The last time a modifying operation was performed on the given key-value."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked."] #[serde(default, skip_serializing_if = "Option::is_none")] pub locked: Option, @@ -1139,8 +1139,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1148,8 +1148,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs b/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs index bc686e56bb2..22bab027def 100644 --- a/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs +++ b/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs @@ -20,8 +20,8 @@ pub struct ApiKey { #[serde(rename = "connectionString", default, skip_serializing_if = "Option::is_none")] pub connection_string: Option, #[doc = "The last time any of the key's properties were modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "Whether this key can only be used for read operations."] #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")] pub read_only: Option, @@ -163,8 +163,8 @@ pub struct ConfigurationStoreProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of configuration store."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The DNS endpoint where the configuration store API will be available."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -420,11 +420,11 @@ pub struct DeletedConfigurationStoreProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original configuration store."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -561,8 +561,8 @@ pub struct KeyValueProperties { #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, #[doc = "The last time a modifying operation was performed on the given key-value."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked."] #[serde(default, skip_serializing_if = "Option::is_none")] pub locked: Option, @@ -1226,8 +1226,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1235,8 +1235,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appconfiguration/src/package_2022_03_01_preview/models.rs b/services/mgmt/appconfiguration/src/package_2022_03_01_preview/models.rs index 8fc1990a446..25fb1e5ae1b 100644 --- a/services/mgmt/appconfiguration/src/package_2022_03_01_preview/models.rs +++ b/services/mgmt/appconfiguration/src/package_2022_03_01_preview/models.rs @@ -20,8 +20,8 @@ pub struct ApiKey { #[serde(rename = "connectionString", default, skip_serializing_if = "Option::is_none")] pub connection_string: Option, #[doc = "The last time any of the key's properties were modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "Whether this key can only be used for read operations."] #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")] pub read_only: Option, @@ -163,8 +163,8 @@ pub struct ConfigurationStoreProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of configuration store."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The DNS endpoint where the configuration store API will be available."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -417,11 +417,11 @@ pub struct DeletedConfigurationStoreProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original configuration store."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -558,8 +558,8 @@ pub struct KeyValueProperties { #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, #[doc = "The last time a modifying operation was performed on the given key-value."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked."] #[serde(default, skip_serializing_if = "Option::is_none")] pub locked: Option, @@ -1332,8 +1332,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1341,8 +1341,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs b/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs index bc686e56bb2..22bab027def 100644 --- a/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs +++ b/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs @@ -20,8 +20,8 @@ pub struct ApiKey { #[serde(rename = "connectionString", default, skip_serializing_if = "Option::is_none")] pub connection_string: Option, #[doc = "The last time any of the key's properties were modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "Whether this key can only be used for read operations."] #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")] pub read_only: Option, @@ -163,8 +163,8 @@ pub struct ConfigurationStoreProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of configuration store."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The DNS endpoint where the configuration store API will be available."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -420,11 +420,11 @@ pub struct DeletedConfigurationStoreProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original configuration store."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -561,8 +561,8 @@ pub struct KeyValueProperties { #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, #[doc = "The last time a modifying operation was performed on the given key-value."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked."] #[serde(default, skip_serializing_if = "Option::is_none")] pub locked: Option, @@ -1226,8 +1226,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1235,8 +1235,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/applicationinsights/Cargo.toml b/services/mgmt/applicationinsights/Cargo.toml index 0a88d425183..74993bec312 100644 --- a/services/mgmt/applicationinsights/Cargo.toml +++ b/services/mgmt/applicationinsights/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs b/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs index 8c7804395a6..ed0578fbd19 100644 --- a/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs @@ -32,8 +32,8 @@ pub struct Annotation { #[serde(rename = "Category", default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Time when event occurred"] - #[serde(rename = "EventTime", default, skip_serializing_if = "Option::is_none")] - pub event_time: Option, + #[serde(rename = "EventTime", with = "azure_core::date::rfc3339::option")] + pub event_time: Option, #[doc = "Unique Id for annotation"] #[serde(rename = "Id", default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -734,8 +734,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "InstrumentationKey", default, skip_serializing_if = "Option::is_none")] pub instrumentation_key: Option, #[doc = "Creation Date for the Application Insights component, in ISO 8601 format."] - #[serde(rename = "CreationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "CreationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure Tenant Id."] #[serde(rename = "TenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -767,8 +767,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "WorkspaceResourceId", default, skip_serializing_if = "Option::is_none")] pub workspace_resource_id: Option, #[doc = "The date which the component got migrated to LA, in ISO 8601 format."] - #[serde(rename = "LaMigrationDate", default, skip_serializing_if = "Option::is_none")] - pub la_migration_date: Option, + #[serde(rename = "LaMigrationDate", with = "azure_core::date::rfc3339::option")] + pub la_migration_date: Option, #[doc = "List of linked private link scope resources."] #[serde(rename = "PrivateLinkScopedResources", default, skip_serializing_if = "Vec::is_empty")] pub private_link_scoped_resources: Vec, @@ -1307,8 +1307,8 @@ pub struct InnerError { #[serde(default, skip_serializing_if = "Option::is_none")] pub diagnosticcontext: Option, #[doc = "Request time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InnerError { pub fn new() -> Self { @@ -2222,8 +2222,8 @@ pub struct WorkbookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date and time in UTC of the last modification that was made to this workbook definition."] - #[serde(rename = "timeModified", default, skip_serializing_if = "Option::is_none")] - pub time_modified: Option, + #[serde(rename = "timeModified", with = "azure_core::date::rfc3339::option")] + pub time_modified: Option, #[doc = "Workbook category, as defined by the user at creation time."] pub category: String, #[doc = "Being deprecated, please use the other tags field"] @@ -2647,8 +2647,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2656,8 +2656,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs b/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs index 8c7804395a6..ed0578fbd19 100644 --- a/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs @@ -32,8 +32,8 @@ pub struct Annotation { #[serde(rename = "Category", default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Time when event occurred"] - #[serde(rename = "EventTime", default, skip_serializing_if = "Option::is_none")] - pub event_time: Option, + #[serde(rename = "EventTime", with = "azure_core::date::rfc3339::option")] + pub event_time: Option, #[doc = "Unique Id for annotation"] #[serde(rename = "Id", default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -734,8 +734,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "InstrumentationKey", default, skip_serializing_if = "Option::is_none")] pub instrumentation_key: Option, #[doc = "Creation Date for the Application Insights component, in ISO 8601 format."] - #[serde(rename = "CreationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "CreationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure Tenant Id."] #[serde(rename = "TenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -767,8 +767,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "WorkspaceResourceId", default, skip_serializing_if = "Option::is_none")] pub workspace_resource_id: Option, #[doc = "The date which the component got migrated to LA, in ISO 8601 format."] - #[serde(rename = "LaMigrationDate", default, skip_serializing_if = "Option::is_none")] - pub la_migration_date: Option, + #[serde(rename = "LaMigrationDate", with = "azure_core::date::rfc3339::option")] + pub la_migration_date: Option, #[doc = "List of linked private link scope resources."] #[serde(rename = "PrivateLinkScopedResources", default, skip_serializing_if = "Vec::is_empty")] pub private_link_scoped_resources: Vec, @@ -1307,8 +1307,8 @@ pub struct InnerError { #[serde(default, skip_serializing_if = "Option::is_none")] pub diagnosticcontext: Option, #[doc = "Request time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InnerError { pub fn new() -> Self { @@ -2222,8 +2222,8 @@ pub struct WorkbookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date and time in UTC of the last modification that was made to this workbook definition."] - #[serde(rename = "timeModified", default, skip_serializing_if = "Option::is_none")] - pub time_modified: Option, + #[serde(rename = "timeModified", with = "azure_core::date::rfc3339::option")] + pub time_modified: Option, #[doc = "Workbook category, as defined by the user at creation time."] pub category: String, #[doc = "Being deprecated, please use the other tags field"] @@ -2647,8 +2647,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2656,8 +2656,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs b/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs index 4200e7023ab..10d7b812782 100644 --- a/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs @@ -32,8 +32,8 @@ pub struct Annotation { #[serde(rename = "Category", default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Time when event occurred"] - #[serde(rename = "EventTime", default, skip_serializing_if = "Option::is_none")] - pub event_time: Option, + #[serde(rename = "EventTime", with = "azure_core::date::rfc3339::option")] + pub event_time: Option, #[doc = "Unique Id for annotation"] #[serde(rename = "Id", default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -734,8 +734,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "InstrumentationKey", default, skip_serializing_if = "Option::is_none")] pub instrumentation_key: Option, #[doc = "Creation Date for the Application Insights component, in ISO 8601 format."] - #[serde(rename = "CreationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "CreationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure Tenant Id."] #[serde(rename = "TenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -767,8 +767,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "WorkspaceResourceId", default, skip_serializing_if = "Option::is_none")] pub workspace_resource_id: Option, #[doc = "The date which the component got migrated to LA, in ISO 8601 format."] - #[serde(rename = "LaMigrationDate", default, skip_serializing_if = "Option::is_none")] - pub la_migration_date: Option, + #[serde(rename = "LaMigrationDate", with = "azure_core::date::rfc3339::option")] + pub la_migration_date: Option, #[doc = "List of linked private link scope resources."] #[serde(rename = "PrivateLinkScopedResources", default, skip_serializing_if = "Vec::is_empty")] pub private_link_scoped_resources: Vec, @@ -1307,8 +1307,8 @@ pub struct InnerError { #[serde(default, skip_serializing_if = "Option::is_none")] pub diagnosticcontext: Option, #[doc = "Request time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InnerError { pub fn new() -> Self { @@ -2222,8 +2222,8 @@ pub struct WorkbookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date and time in UTC of the last modification that was made to this workbook definition."] - #[serde(rename = "timeModified", default, skip_serializing_if = "Option::is_none")] - pub time_modified: Option, + #[serde(rename = "timeModified", with = "azure_core::date::rfc3339::option")] + pub time_modified: Option, #[doc = "Workbook category, as defined by the user at creation time."] pub category: String, #[doc = "Being deprecated, please use the other tags field"] @@ -2641,8 +2641,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2650,8 +2650,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs b/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs index 6b4058f7112..cbbb13c3ffa 100644 --- a/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs @@ -32,8 +32,8 @@ pub struct Annotation { #[serde(rename = "Category", default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Time when event occurred"] - #[serde(rename = "EventTime", default, skip_serializing_if = "Option::is_none")] - pub event_time: Option, + #[serde(rename = "EventTime", with = "azure_core::date::rfc3339::option")] + pub event_time: Option, #[doc = "Unique Id for annotation"] #[serde(rename = "Id", default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -734,8 +734,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "InstrumentationKey", default, skip_serializing_if = "Option::is_none")] pub instrumentation_key: Option, #[doc = "Creation Date for the Application Insights component, in ISO 8601 format."] - #[serde(rename = "CreationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "CreationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure Tenant Id."] #[serde(rename = "TenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -767,8 +767,8 @@ pub struct ApplicationInsightsComponentProperties { #[serde(rename = "WorkspaceResourceId", default, skip_serializing_if = "Option::is_none")] pub workspace_resource_id: Option, #[doc = "The date which the component got migrated to LA, in ISO 8601 format."] - #[serde(rename = "LaMigrationDate", default, skip_serializing_if = "Option::is_none")] - pub la_migration_date: Option, + #[serde(rename = "LaMigrationDate", with = "azure_core::date::rfc3339::option")] + pub la_migration_date: Option, #[doc = "List of linked private link scope resources."] #[serde(rename = "PrivateLinkScopedResources", default, skip_serializing_if = "Vec::is_empty")] pub private_link_scoped_resources: Vec, @@ -1343,8 +1343,8 @@ pub struct InnerError { #[serde(default, skip_serializing_if = "Option::is_none")] pub diagnosticcontext: Option, #[doc = "Request time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InnerError { pub fn new() -> Self { @@ -2342,8 +2342,8 @@ pub struct WorkbookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date and time in UTC of the last modification that was made to this workbook definition."] - #[serde(rename = "timeModified", default, skip_serializing_if = "Option::is_none")] - pub time_modified: Option, + #[serde(rename = "timeModified", with = "azure_core::date::rfc3339::option")] + pub time_modified: Option, #[doc = "Workbook category, as defined by the user at creation time."] pub category: String, #[doc = "Being deprecated, please use the other tags field"] @@ -2761,8 +2761,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2770,8 +2770,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appplatform/Cargo.toml b/services/mgmt/appplatform/Cargo.toml index 07e900d6a33..4587fb7120e 100644 --- a/services/mgmt/appplatform/Cargo.toml +++ b/services/mgmt/appplatform/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/appplatform/src/package_preview_2021_06/models.rs b/services/mgmt/appplatform/src/package_preview_2021_06/models.rs index 470601a8447..4fd08c3bd88 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_06/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_06/models.rs @@ -67,8 +67,8 @@ pub struct AppResourceProperties { #[serde(rename = "httpsOnly", default, skip_serializing_if = "Option::is_none")] pub https_only: Option, #[doc = "Date time when the resource is created"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Temporary disk payload"] #[serde(rename = "temporaryDisk", default, skip_serializing_if = "Option::is_none")] pub temporary_disk: Option, @@ -786,8 +786,8 @@ pub struct DeploymentResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub active: Option, #[doc = "Date time when the resource is created"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Collection of instances belong to the Deployment"] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub instances: Vec, diff --git a/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs b/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs index 63c6d7e2d9b..e151afd3488 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs @@ -4043,7 +4043,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2021-06-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -4131,7 +4131,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2021-06-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/appplatform/src/package_preview_2021_09/models.rs b/services/mgmt/appplatform/src/package_preview_2021_09/models.rs index fd8ab437206..4ba0d9e005b 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_09/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_09/models.rs @@ -67,8 +67,8 @@ pub struct AppResourceProperties { #[serde(rename = "httpsOnly", default, skip_serializing_if = "Option::is_none")] pub https_only: Option, #[doc = "Date time when the resource is created"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Temporary disk payload"] #[serde(rename = "temporaryDisk", default, skip_serializing_if = "Option::is_none")] pub temporary_disk: Option, @@ -945,8 +945,8 @@ pub struct DeploymentResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub active: Option, #[doc = "Date time when the resource is created"] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Collection of instances belong to the Deployment"] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub instances: Vec, @@ -2600,8 +2600,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2609,8 +2609,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs b/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs index 318c09e16a1..7f3351192f2 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs @@ -4624,7 +4624,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2021-09-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -4712,7 +4712,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2021-09-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/appplatform/src/package_preview_2022_01/models.rs b/services/mgmt/appplatform/src/package_preview_2022_01/models.rs index 50fdc539e12..341a6e8e8c8 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_01/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_01/models.rs @@ -4368,8 +4368,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4377,8 +4377,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs b/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs index eea9295d8ac..5e62f1bf829 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs @@ -7588,7 +7588,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2022-01-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -7676,7 +7676,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2022-01-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/appplatform/src/package_preview_2022_03/models.rs b/services/mgmt/appplatform/src/package_preview_2022_03/models.rs index 1df3fed6d74..e0b679ec638 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_03/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_03/models.rs @@ -4374,8 +4374,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4383,8 +4383,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs b/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs index 9d0f2236b60..8a6391ebce4 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs @@ -7588,7 +7588,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2022-03-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -7676,7 +7676,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2022-03-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/appplatform/src/package_preview_2022_05/models.rs b/services/mgmt/appplatform/src/package_preview_2022_05/models.rs index cfe44cedd46..04c00bea8fc 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_05/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_05/models.rs @@ -4761,8 +4761,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4770,8 +4770,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs b/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs index da93ba56815..2001baae84d 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs @@ -7588,7 +7588,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2022-05-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -7676,7 +7676,7 @@ pub mod deployments { .append_pair(azure_core::query_param::API_VERSION, "2022-05-01-preview"); let version = &this.version; for value in &this.version { - req.url_mut().query_pairs_mut().append_pair("version", value); + req.url_mut().query_pairs_mut().append_pair("version", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/arcdata/Cargo.toml b/services/mgmt/arcdata/Cargo.toml index 98dc6e76b12..467c84c3a8a 100644 --- a/services/mgmt/arcdata/Cargo.toml +++ b/services/mgmt/arcdata/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/arcdata/src/package_2021_08_01/models.rs b/services/mgmt/arcdata/src/package_2021_08_01/models.rs index bb5878c428d..53bd67c6c14 100644 --- a/services/mgmt/arcdata/src/package_2021_08_01/models.rs +++ b/services/mgmt/arcdata/src/package_2021_08_01/models.rs @@ -64,8 +64,8 @@ pub struct DataControllerProperties { #[serde(rename = "uploadWatermark", default, skip_serializing_if = "Option::is_none")] pub upload_watermark: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[doc = "Username and password for basic login authentication."] #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, @@ -696,8 +696,8 @@ pub struct SqlManagedInstanceProperties { #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The license type to apply for this managed instance."] @@ -875,8 +875,8 @@ pub struct SqlServerInstanceProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "Timestamp of last Azure Defender status update."] - #[serde(rename = "azureDefenderStatusLastUpdated", default, skip_serializing_if = "Option::is_none")] - pub azure_defender_status_last_updated: Option, + #[serde(rename = "azureDefenderStatusLastUpdated", with = "azure_core::date::rfc3339::option")] + pub azure_defender_status_last_updated: Option, #[doc = "Status of Azure Defender."] #[serde(rename = "azureDefenderStatus", default, skip_serializing_if = "Option::is_none")] pub azure_defender_status: Option, @@ -1138,8 +1138,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1147,8 +1147,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -1204,14 +1204,14 @@ impl UploadServicePrincipal { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UploadWatermark { #[doc = "Last uploaded date for metrics from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metrics: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub metrics: Option, #[doc = "Last uploaded date for logs from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub logs: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub logs: Option, #[doc = "Last uploaded date for usages from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub usages: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub usages: Option, } impl UploadWatermark { pub fn new() -> Self { diff --git a/services/mgmt/arcdata/src/package_2021_11_01/models.rs b/services/mgmt/arcdata/src/package_2021_11_01/models.rs index c94c7cca7a4..622b4a4c7ce 100644 --- a/services/mgmt/arcdata/src/package_2021_11_01/models.rs +++ b/services/mgmt/arcdata/src/package_2021_11_01/models.rs @@ -35,8 +35,8 @@ pub struct DataControllerProperties { #[serde(rename = "uploadWatermark", default, skip_serializing_if = "Option::is_none")] pub upload_watermark: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[doc = "Username and password for basic login authentication."] #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, @@ -533,8 +533,8 @@ pub struct SqlManagedInstanceProperties { #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The license type to apply for this managed instance."] @@ -745,8 +745,8 @@ pub struct SqlServerInstanceProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "Timestamp of last Azure Defender status update."] - #[serde(rename = "azureDefenderStatusLastUpdated", default, skip_serializing_if = "Option::is_none")] - pub azure_defender_status_last_updated: Option, + #[serde(rename = "azureDefenderStatusLastUpdated", with = "azure_core::date::rfc3339::option")] + pub azure_defender_status_last_updated: Option, #[doc = "Status of Azure Defender."] #[serde(rename = "azureDefenderStatus", default, skip_serializing_if = "Option::is_none")] pub azure_defender_status: Option, @@ -1043,14 +1043,14 @@ impl UploadServicePrincipal { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UploadWatermark { #[doc = "Last uploaded date for metrics from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metrics: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub metrics: Option, #[doc = "Last uploaded date for logs from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub logs: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub logs: Option, #[doc = "Last uploaded date for usages from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub usages: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub usages: Option, } impl UploadWatermark { pub fn new() -> Self { @@ -1067,8 +1067,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1076,8 +1076,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs b/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs index 4545168f32e..70a651ea082 100644 --- a/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs @@ -61,8 +61,8 @@ pub struct DataControllerProperties { #[serde(rename = "uploadWatermark", default, skip_serializing_if = "Option::is_none")] pub upload_watermark: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[doc = "Username and password for basic login authentication."] #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, @@ -545,8 +545,8 @@ pub struct PostgresInstanceProperties { #[serde(rename = "k8sRaw", default, skip_serializing_if = "Option::is_none")] pub k8s_raw: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, } @@ -710,8 +710,8 @@ pub struct SqlManagedInstanceProperties { #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, } @@ -888,8 +888,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -897,8 +897,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -954,14 +954,14 @@ impl UploadServicePrincipal { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UploadWatermark { #[doc = "Last uploaded date for metrics from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metrics: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub metrics: Option, #[doc = "Last uploaded date for logs from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub logs: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub logs: Option, #[doc = "Last uploaded date for usages from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub usages: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub usages: Option, } impl UploadWatermark { pub fn new() -> Self { diff --git a/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs b/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs index 04da415ead4..0d83d63d553 100644 --- a/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs @@ -64,8 +64,8 @@ pub struct DataControllerProperties { #[serde(rename = "uploadWatermark", default, skip_serializing_if = "Option::is_none")] pub upload_watermark: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[doc = "Username and password for basic login authentication."] #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, @@ -572,8 +572,8 @@ pub struct PostgresInstanceProperties { #[serde(rename = "k8sRaw", default, skip_serializing_if = "Option::is_none")] pub k8s_raw: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, } @@ -737,8 +737,8 @@ pub struct SqlManagedInstanceProperties { #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The license type to apply for this managed instance."] @@ -910,8 +910,8 @@ pub struct SqlServerInstanceProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "Timestamp of last Azure Defender status update."] - #[serde(rename = "azureDefenderStatusLastUpdated", default, skip_serializing_if = "Option::is_none")] - pub azure_defender_status_last_updated: Option, + #[serde(rename = "azureDefenderStatusLastUpdated", with = "azure_core::date::rfc3339::option")] + pub azure_defender_status_last_updated: Option, #[doc = "Status of Azure Defender."] #[serde(rename = "azureDefenderStatus", default, skip_serializing_if = "Option::is_none")] pub azure_defender_status: Option, @@ -963,8 +963,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -972,8 +972,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -1029,14 +1029,14 @@ impl UploadServicePrincipal { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UploadWatermark { #[doc = "Last uploaded date for metrics from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metrics: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub metrics: Option, #[doc = "Last uploaded date for logs from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub logs: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub logs: Option, #[doc = "Last uploaded date for usages from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub usages: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub usages: Option, } impl UploadWatermark { pub fn new() -> Self { diff --git a/services/mgmt/arcdata/src/package_preview_2022_03/models.rs b/services/mgmt/arcdata/src/package_preview_2022_03/models.rs index e9f8c12c2af..a946d149a56 100644 --- a/services/mgmt/arcdata/src/package_preview_2022_03/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2022_03/models.rs @@ -299,8 +299,8 @@ pub struct DataControllerProperties { #[serde(rename = "uploadWatermark", default, skip_serializing_if = "Option::is_none")] pub upload_watermark: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[doc = "Username and password for basic login authentication."] #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, @@ -761,8 +761,8 @@ pub struct PostgresInstanceProperties { #[serde(rename = "k8sRaw", default, skip_serializing_if = "Option::is_none")] pub k8s_raw: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[doc = "The provisioning state of the Azure Arc-enabled PostgreSQL instance."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -940,8 +940,8 @@ pub struct SqlManagedInstanceProperties { #[serde(rename = "basicLoginInformation", default, skip_serializing_if = "Option::is_none")] pub basic_login_information: Option, #[doc = "Last uploaded date from Kubernetes cluster. Defaults to current date time"] - #[serde(rename = "lastUploadedDate", default, skip_serializing_if = "Option::is_none")] - pub last_uploaded_date: Option, + #[serde(rename = "lastUploadedDate", with = "azure_core::date::rfc3339::option")] + pub last_uploaded_date: Option, #[doc = "The provisioning state of the Arc-enabled SQL Managed Instance resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1158,8 +1158,8 @@ pub struct SqlServerInstanceProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "Timestamp of last Azure Defender status update."] - #[serde(rename = "azureDefenderStatusLastUpdated", default, skip_serializing_if = "Option::is_none")] - pub azure_defender_status_last_updated: Option, + #[serde(rename = "azureDefenderStatusLastUpdated", with = "azure_core::date::rfc3339::option")] + pub azure_defender_status_last_updated: Option, #[doc = "Status of Azure Defender."] #[serde(rename = "azureDefenderStatus", default, skip_serializing_if = "Option::is_none")] pub azure_defender_status: Option, @@ -1521,14 +1521,14 @@ impl UploadServicePrincipal { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UploadWatermark { #[doc = "Last uploaded date for metrics from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub metrics: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub metrics: Option, #[doc = "Last uploaded date for logs from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub logs: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub logs: Option, #[doc = "Last uploaded date for usages from kubernetes cluster. Defaults to current date time"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub usages: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub usages: Option, } impl UploadWatermark { pub fn new() -> Self { @@ -1545,8 +1545,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1554,8 +1554,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/attestation/Cargo.toml b/services/mgmt/attestation/Cargo.toml index 264a69da48f..70b70e7d13e 100644 --- a/services/mgmt/attestation/Cargo.toml +++ b/services/mgmt/attestation/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/attestation/src/package_2020_10_01/models.rs b/services/mgmt/attestation/src/package_2020_10_01/models.rs index ebe7f019cba..99a096bd152 100644 --- a/services/mgmt/attestation/src/package_2020_10_01/models.rs +++ b/services/mgmt/attestation/src/package_2020_10_01/models.rs @@ -529,8 +529,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -538,8 +538,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/attestation/src/package_2021_06_01/models.rs b/services/mgmt/attestation/src/package_2021_06_01/models.rs index 96c6a421312..6ffc5dc71d7 100644 --- a/services/mgmt/attestation/src/package_2021_06_01/models.rs +++ b/services/mgmt/attestation/src/package_2021_06_01/models.rs @@ -636,8 +636,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -645,8 +645,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/authorization/Cargo.toml b/services/mgmt/authorization/Cargo.toml index 148c6a5129b..c7253307320 100644 --- a/services/mgmt/authorization/Cargo.toml +++ b/services/mgmt/authorization/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/authorization/src/package_2020_04_01_preview/models.rs b/services/mgmt/authorization/src/package_2020_04_01_preview/models.rs index e06827f0877..d5ec336abf9 100644 --- a/services/mgmt/authorization/src/package_2020_04_01_preview/models.rs +++ b/services/mgmt/authorization/src/package_2020_04_01_preview/models.rs @@ -596,11 +596,11 @@ pub struct RoleAssignmentPropertiesWithScope { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "Time it was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Time it was updated"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[doc = "Id of the user who created the assignment"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, diff --git a/services/mgmt/authorization/src/package_2020_08_01_preview/models.rs b/services/mgmt/authorization/src/package_2020_08_01_preview/models.rs index e297efd7e08..3ee32535937 100644 --- a/services/mgmt/authorization/src/package_2020_08_01_preview/models.rs +++ b/services/mgmt/authorization/src/package_2020_08_01_preview/models.rs @@ -499,11 +499,11 @@ pub struct RoleAssignmentProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "Time it was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Time it was updated"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[doc = "Id of the user who created the assignment"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, diff --git a/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs b/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs index 1e4efaced54..ad908ffddc1 100644 --- a/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs @@ -125,8 +125,8 @@ pub struct AccessReviewDecisionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub justification: Option, #[doc = "Date Time when a decision was taken."] - #[serde(rename = "reviewedDateTime", default, skip_serializing_if = "Option::is_none")] - pub reviewed_date_time: Option, + #[serde(rename = "reviewedDateTime", with = "azure_core::date::rfc3339::option")] + pub reviewed_date_time: Option, #[doc = "Details of the actor identity"] #[serde(rename = "reviewedBy", default, skip_serializing_if = "Option::is_none")] pub reviewed_by: Option, @@ -134,8 +134,8 @@ pub struct AccessReviewDecisionProperties { #[serde(rename = "applyResult", default, skip_serializing_if = "Option::is_none")] pub apply_result: Option, #[doc = "The date and time when the review decision was applied."] - #[serde(rename = "appliedDateTime", default, skip_serializing_if = "Option::is_none")] - pub applied_date_time: Option, + #[serde(rename = "appliedDateTime", with = "azure_core::date::rfc3339::option")] + pub applied_date_time: Option, #[doc = "Details of the actor identity"] #[serde(rename = "appliedBy", default, skip_serializing_if = "Option::is_none")] pub applied_by: Option, @@ -401,11 +401,11 @@ pub struct AccessReviewInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The DateTime when the review instance is scheduled to be start."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The DateTime when the review instance is scheduled to end."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, } impl AccessReviewInstanceProperties { pub fn new() -> Self { @@ -537,11 +537,11 @@ pub struct AccessReviewRecurrenceRange { #[serde(rename = "numberOfOccurrences", default, skip_serializing_if = "Option::is_none")] pub number_of_occurrences: Option, #[doc = "The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The DateTime when the review is scheduled to end. Required if type is endDate"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, } impl AccessReviewRecurrenceRange { pub fn new() -> Self { @@ -1600,8 +1600,8 @@ pub mod policy_assignment_properties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "The last modified date time."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, } impl Policy { pub fn new() -> Self { @@ -1866,11 +1866,11 @@ pub struct RoleAssignmentProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "Time it was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Time it was updated"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[doc = "Id of the user who created the assignment"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -2077,11 +2077,11 @@ pub struct RoleAssignmentScheduleInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The startDateTime of the role assignment schedule instance"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The endDateTime of the role assignment schedule instance"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "roleEligibilityScheduleId used to activate"] #[serde(rename = "linkedRoleEligibilityScheduleId", default, skip_serializing_if = "Option::is_none")] pub linked_role_eligibility_schedule_id: Option, @@ -2105,8 +2105,8 @@ pub struct RoleAssignmentScheduleInstanceProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role assignment schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -2366,11 +2366,11 @@ pub struct RoleAssignmentScheduleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start DateTime when role assignment schedule"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "End DateTime when role assignment schedule"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'"] #[serde(default, skip_serializing_if = "Option::is_none")] pub condition: Option, @@ -2378,11 +2378,11 @@ pub struct RoleAssignmentScheduleProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role assignment schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "DateTime when role assignment schedule was modified"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -2706,8 +2706,8 @@ pub struct RoleAssignmentScheduleRequestProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role assignment schedule request was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Id of the user who created this request"] #[serde(rename = "requestorId", default, skip_serializing_if = "Option::is_none")] pub requestor_id: Option, @@ -2919,8 +2919,8 @@ pub mod role_assignment_schedule_request_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleInfo { #[doc = "Start DateTime of the role assignment schedule."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Expiration of the role assignment schedule"] #[serde(default, skip_serializing_if = "Option::is_none")] pub expiration: Option, @@ -2939,8 +2939,8 @@ pub mod role_assignment_schedule_request_properties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "End DateTime of the role assignment schedule."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "Duration of the role assignment schedule in TimeSpan."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -3214,11 +3214,11 @@ pub struct RoleEligibilityScheduleInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The startDateTime of the role eligibility schedule instance"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The endDateTime of the role eligibility schedule instance"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "Membership type of the role eligibility schedule"] #[serde(rename = "memberType", default, skip_serializing_if = "Option::is_none")] pub member_type: Option, @@ -3229,8 +3229,8 @@ pub struct RoleEligibilityScheduleInstanceProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role eligibility schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -3447,11 +3447,11 @@ pub struct RoleEligibilityScheduleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start DateTime when role eligibility schedule"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "End DateTime when role eligibility schedule"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'"] #[serde(default, skip_serializing_if = "Option::is_none")] pub condition: Option, @@ -3459,11 +3459,11 @@ pub struct RoleEligibilityScheduleProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role eligibility schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "DateTime when role eligibility schedule was modified"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -3747,8 +3747,8 @@ pub struct RoleEligibilityScheduleRequestProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role eligibility schedule request was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Id of the user who created this request"] #[serde(rename = "requestorId", default, skip_serializing_if = "Option::is_none")] pub requestor_id: Option, @@ -3959,8 +3959,8 @@ pub mod role_eligibility_schedule_request_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleInfo { #[doc = "Start DateTime of the role eligibility schedule."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Expiration of the role eligibility schedule"] #[serde(default, skip_serializing_if = "Option::is_none")] pub expiration: Option, @@ -3979,8 +3979,8 @@ pub mod role_eligibility_schedule_request_properties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "End DateTime of the role eligibility schedule."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "Duration of the role eligibility schedule in TimeSpan."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -4397,8 +4397,8 @@ pub struct RoleManagementPolicyProperties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "The last modified date time."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "The rule applied to the policy."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub rules: Vec, diff --git a/services/mgmt/authorization/src/package_2022_04_01/models.rs b/services/mgmt/authorization/src/package_2022_04_01/models.rs index 1a862bcb561..af080a84d49 100644 --- a/services/mgmt/authorization/src/package_2022_04_01/models.rs +++ b/services/mgmt/authorization/src/package_2022_04_01/models.rs @@ -590,8 +590,8 @@ pub mod policy_assignment_properties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "The last modified date time."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, } impl Policy { pub fn new() -> Self { @@ -836,11 +836,11 @@ pub struct RoleAssignmentProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "Time it was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Time it was updated"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[doc = "Id of the user who created the assignment"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -1047,11 +1047,11 @@ pub struct RoleAssignmentScheduleInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The startDateTime of the role assignment schedule instance"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The endDateTime of the role assignment schedule instance"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "roleEligibilityScheduleId used to activate"] #[serde(rename = "linkedRoleEligibilityScheduleId", default, skip_serializing_if = "Option::is_none")] pub linked_role_eligibility_schedule_id: Option, @@ -1075,8 +1075,8 @@ pub struct RoleAssignmentScheduleInstanceProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role assignment schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -1336,11 +1336,11 @@ pub struct RoleAssignmentScheduleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start DateTime when role assignment schedule"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "End DateTime when role assignment schedule"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'"] #[serde(default, skip_serializing_if = "Option::is_none")] pub condition: Option, @@ -1348,11 +1348,11 @@ pub struct RoleAssignmentScheduleProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role assignment schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "DateTime when role assignment schedule was modified"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -1676,8 +1676,8 @@ pub struct RoleAssignmentScheduleRequestProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role assignment schedule request was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Id of the user who created this request"] #[serde(rename = "requestorId", default, skip_serializing_if = "Option::is_none")] pub requestor_id: Option, @@ -1889,8 +1889,8 @@ pub mod role_assignment_schedule_request_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleInfo { #[doc = "Start DateTime of the role assignment schedule."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Expiration of the role assignment schedule"] #[serde(default, skip_serializing_if = "Option::is_none")] pub expiration: Option, @@ -1909,8 +1909,8 @@ pub mod role_assignment_schedule_request_properties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "End DateTime of the role assignment schedule."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "Duration of the role assignment schedule in TimeSpan."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -2184,11 +2184,11 @@ pub struct RoleEligibilityScheduleInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The startDateTime of the role eligibility schedule instance"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The endDateTime of the role eligibility schedule instance"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "Membership type of the role eligibility schedule"] #[serde(rename = "memberType", default, skip_serializing_if = "Option::is_none")] pub member_type: Option, @@ -2199,8 +2199,8 @@ pub struct RoleEligibilityScheduleInstanceProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role eligibility schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -2417,11 +2417,11 @@ pub struct RoleEligibilityScheduleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start DateTime when role eligibility schedule"] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "End DateTime when role eligibility schedule"] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'"] #[serde(default, skip_serializing_if = "Option::is_none")] pub condition: Option, @@ -2429,11 +2429,11 @@ pub struct RoleEligibilityScheduleProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role eligibility schedule was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "DateTime when role eligibility schedule was modified"] - #[serde(rename = "updatedOn", default, skip_serializing_if = "Option::is_none")] - pub updated_on: Option, + #[serde(rename = "updatedOn", with = "azure_core::date::rfc3339::option")] + pub updated_on: Option, #[serde(rename = "expandedProperties", default, skip_serializing_if = "Option::is_none")] pub expanded_properties: Option, } @@ -2717,8 +2717,8 @@ pub struct RoleEligibilityScheduleRequestProperties { #[serde(rename = "conditionVersion", default, skip_serializing_if = "Option::is_none")] pub condition_version: Option, #[doc = "DateTime when role eligibility schedule request was created"] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Id of the user who created this request"] #[serde(rename = "requestorId", default, skip_serializing_if = "Option::is_none")] pub requestor_id: Option, @@ -2930,8 +2930,8 @@ pub mod role_eligibility_schedule_request_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleInfo { #[doc = "Start DateTime of the role eligibility schedule."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Expiration of the role eligibility schedule"] #[serde(default, skip_serializing_if = "Option::is_none")] pub expiration: Option, @@ -2950,8 +2950,8 @@ pub mod role_eligibility_schedule_request_properties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "End DateTime of the role eligibility schedule."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "Duration of the role eligibility schedule in TimeSpan."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -3372,8 +3372,8 @@ pub struct RoleManagementPolicyProperties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "The last modified date time."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "The rule applied to the policy."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub rules: Vec, diff --git a/services/mgmt/authorization/src/package_preview_2021_11/models.rs b/services/mgmt/authorization/src/package_preview_2021_11/models.rs index efd7d55f078..c7e1dac7d33 100644 --- a/services/mgmt/authorization/src/package_preview_2021_11/models.rs +++ b/services/mgmt/authorization/src/package_preview_2021_11/models.rs @@ -119,8 +119,8 @@ pub struct AccessReviewContactedReviewerProperties { #[serde(rename = "userPrincipalName", default, skip_serializing_if = "Option::is_none")] pub user_principal_name: Option, #[doc = "Date Time when the reviewer was contacted."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, } impl AccessReviewContactedReviewerProperties { pub fn new() -> Self { @@ -252,8 +252,8 @@ pub struct AccessReviewDecisionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub justification: Option, #[doc = "Date Time when a decision was taken."] - #[serde(rename = "reviewedDateTime", default, skip_serializing_if = "Option::is_none")] - pub reviewed_date_time: Option, + #[serde(rename = "reviewedDateTime", with = "azure_core::date::rfc3339::option")] + pub reviewed_date_time: Option, #[doc = "Details of the actor identity"] #[serde(rename = "reviewedBy", default, skip_serializing_if = "Option::is_none")] pub reviewed_by: Option, @@ -261,8 +261,8 @@ pub struct AccessReviewDecisionProperties { #[serde(rename = "applyResult", default, skip_serializing_if = "Option::is_none")] pub apply_result: Option, #[doc = "The date and time when the review decision was applied."] - #[serde(rename = "appliedDateTime", default, skip_serializing_if = "Option::is_none")] - pub applied_date_time: Option, + #[serde(rename = "appliedDateTime", with = "azure_core::date::rfc3339::option")] + pub applied_date_time: Option, #[doc = "Details of the actor identity"] #[serde(rename = "appliedBy", default, skip_serializing_if = "Option::is_none")] pub applied_by: Option, @@ -607,11 +607,11 @@ pub struct AccessReviewHistoryDefinitionProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "Date time used when selecting review data, all reviews included in data start on or after this date. For use only with one-time/non-recurring reports."] - #[serde(rename = "reviewHistoryPeriodStartDateTime", default, skip_serializing_if = "Option::is_none")] - pub review_history_period_start_date_time: Option, + #[serde(rename = "reviewHistoryPeriodStartDateTime", with = "azure_core::date::rfc3339::option")] + pub review_history_period_start_date_time: Option, #[doc = "Date time used when selecting review data, all reviews included in data end on or before this date. For use only with one-time/non-recurring reports."] - #[serde(rename = "reviewHistoryPeriodEndDateTime", default, skip_serializing_if = "Option::is_none")] - pub review_history_period_end_date_time: Option, + #[serde(rename = "reviewHistoryPeriodEndDateTime", with = "azure_core::date::rfc3339::option")] + pub review_history_period_end_date_time: Option, #[doc = "Collection of review decisions which the history data should be filtered on. For example if Approve and Deny are supplied the data will only contain review results in which the decision maker approved or denied a review request."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub decisions: Vec, @@ -619,8 +619,8 @@ pub struct AccessReviewHistoryDefinitionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Date time when history definition was created"] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "Details of the actor identity"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -708,11 +708,11 @@ impl AccessReviewHistoryInstance { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccessReviewHistoryInstanceProperties { #[doc = "Date time used when selecting review data, all reviews included in data start on or after this date. For use only with one-time/non-recurring reports."] - #[serde(rename = "reviewHistoryPeriodStartDateTime", default, skip_serializing_if = "Option::is_none")] - pub review_history_period_start_date_time: Option, + #[serde(rename = "reviewHistoryPeriodStartDateTime", with = "azure_core::date::rfc3339::option")] + pub review_history_period_start_date_time: Option, #[doc = "Date time used when selecting review data, all reviews included in data end on or before this date. For use only with one-time/non-recurring reports."] - #[serde(rename = "reviewHistoryPeriodEndDateTime", default, skip_serializing_if = "Option::is_none")] - pub review_history_period_end_date_time: Option, + #[serde(rename = "reviewHistoryPeriodEndDateTime", with = "azure_core::date::rfc3339::option")] + pub review_history_period_end_date_time: Option, #[doc = "The display name for the parent history definition."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -720,17 +720,17 @@ pub struct AccessReviewHistoryInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Date time when the history data report is scheduled to be generated."] - #[serde(rename = "runDateTime", default, skip_serializing_if = "Option::is_none")] - pub run_date_time: Option, + #[serde(rename = "runDateTime", with = "azure_core::date::rfc3339::option")] + pub run_date_time: Option, #[doc = "Date time when the history data report is scheduled to be generated."] - #[serde(rename = "fulfilledDateTime", default, skip_serializing_if = "Option::is_none")] - pub fulfilled_date_time: Option, + #[serde(rename = "fulfilledDateTime", with = "azure_core::date::rfc3339::option")] + pub fulfilled_date_time: Option, #[doc = "Uri which can be used to retrieve review history data. To generate this Uri, generateDownloadUri() must be called for a specific accessReviewHistoryDefinitionInstance. The link expires after a 24 hour period. Callers can see the expiration date time by looking at the 'se' parameter in the generated uri."] #[serde(rename = "downloadUri", default, skip_serializing_if = "Option::is_none")] pub download_uri: Option, #[doc = "Date time when history data report expires and the associated data is deleted."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiration: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiration: Option, } impl AccessReviewHistoryInstanceProperties { pub fn new() -> Self { @@ -845,11 +845,11 @@ pub struct AccessReviewInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The DateTime when the review instance is scheduled to be start."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The DateTime when the review instance is scheduled to end."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "This is the collection of reviewers."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub reviewers: Vec, @@ -1030,11 +1030,11 @@ pub struct AccessReviewRecurrenceRange { #[serde(rename = "numberOfOccurrences", default, skip_serializing_if = "Option::is_none")] pub number_of_occurrences: Option, #[doc = "The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The DateTime when the review is scheduled to end. Required if type is endDate"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, } impl AccessReviewRecurrenceRange { pub fn new() -> Self { diff --git a/services/mgmt/automanage/Cargo.toml b/services/mgmt/automanage/Cargo.toml index 0757c5b5679..c5ed560a2fc 100644 --- a/services/mgmt/automanage/Cargo.toml +++ b/services/mgmt/automanage/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs b/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs index 6a3a3391732..bc4589f0a48 100644 --- a/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs +++ b/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs @@ -609,8 +609,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -618,8 +618,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/automanage/src/package_2022_05/models.rs b/services/mgmt/automanage/src/package_2022_05/models.rs index c1f507734be..48e12ac6244 100644 --- a/services/mgmt/automanage/src/package_2022_05/models.rs +++ b/services/mgmt/automanage/src/package_2022_05/models.rs @@ -598,8 +598,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -607,8 +607,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/automation/Cargo.toml b/services/mgmt/automation/Cargo.toml index 6fadf545d81..6925832f385 100644 --- a/services/mgmt/automation/Cargo.toml +++ b/services/mgmt/automation/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/automation/src/package_2019_06/models.rs b/services/mgmt/automation/src/package_2019_06/models.rs index c461e9adf94..54408dd0fed 100644 --- a/services/mgmt/automation/src/package_2019_06/models.rs +++ b/services/mgmt/automation/src/package_2019_06/models.rs @@ -137,11 +137,11 @@ pub struct ActivityProperties { #[serde(rename = "outputTypes", default, skip_serializing_if = "Vec::is_empty")] pub output_types: Vec, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -408,11 +408,11 @@ pub struct AutomationAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -596,17 +596,17 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Gets the expiry time of the certificate."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets the is exportable flag of the certificate."] #[serde(rename = "isExportable", default, skip_serializing_if = "Option::is_none")] pub is_exportable: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -723,11 +723,11 @@ pub struct ConnectionProperties { #[serde(rename = "fieldDefinitionValues", default, skip_serializing_if = "Option::is_none")] pub field_definition_values: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -832,11 +832,11 @@ pub struct ConnectionTypeProperties { #[serde(rename = "fieldDefinitions", default, skip_serializing_if = "Option::is_none")] pub field_definitions: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1046,11 +1046,11 @@ pub struct CredentialProperties { #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1187,8 +1187,8 @@ pub struct DscCompilationJobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1202,20 +1202,20 @@ pub struct DscCompilationJobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -1437,11 +1437,11 @@ pub struct DscConfigurationProperties { #[serde(rename = "logVerbose", default, skip_serializing_if = "Option::is_none")] pub log_verbose: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the number of compiled node configurations."] #[serde(rename = "nodeConfigurationCount", default, skip_serializing_if = "Option::is_none")] pub node_configuration_count: Option, @@ -1655,11 +1655,11 @@ impl DscNodeConfigurationListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfigurationProperties { #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Dsc configuration property associated with the entity."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configuration: Option, @@ -1721,11 +1721,11 @@ impl DscNodeListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeProperties { #[doc = "Gets or sets the last seen time of the node."] - #[serde(rename = "lastSeen", default, skip_serializing_if = "Option::is_none")] - pub last_seen: Option, + #[serde(rename = "lastSeen", with = "azure_core::date::rfc3339::option")] + pub last_seen: Option, #[doc = "Gets or sets the registration time of the node."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Gets or sets the ip of the node."] #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, @@ -1760,14 +1760,14 @@ impl DscNodeProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeReport { #[doc = "Gets or sets the end time of the node report."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the lastModifiedTime of the node report."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the start time of the node report."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the type of the node report."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -1929,8 +1929,8 @@ pub struct DscReportResource { #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, #[doc = "Gets or sets the start date of the resource."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, } impl DscReportResource { pub fn new() -> Self { @@ -2002,11 +2002,11 @@ pub struct HybridRunbookWorker { #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, #[doc = "Gets or sets the registration time of the worker machine."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Last Heartbeat from the Worker"] - #[serde(rename = "lastSeenDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_seen_date_time: Option, + #[serde(rename = "lastSeenDateTime", with = "azure_core::date::rfc3339::option")] + pub last_seen_date_time: Option, } impl HybridRunbookWorker { pub fn new() -> Self { @@ -2150,20 +2150,20 @@ pub struct JobCollectionItemProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The provisioning state of a resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2302,8 +2302,8 @@ pub struct JobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2311,20 +2311,20 @@ pub struct JobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets or sets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -2584,8 +2584,8 @@ pub struct JobStreamProperties { #[serde(rename = "jobStreamId", default, skip_serializing_if = "Option::is_none")] pub job_stream_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "Gets or sets the stream type."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -2952,11 +2952,11 @@ pub struct ModuleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3461,11 +3461,11 @@ pub struct RunbookDraft { #[serde(rename = "draftContentLink", default, skip_serializing_if = "Option::is_none")] pub draft_content_link: Option, #[doc = "Gets or sets the creation time of the runbook draft."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time of the runbook draft."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the runbook draft parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -3704,11 +3704,11 @@ pub struct RunbookProperties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3860,14 +3860,14 @@ impl RunbookUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SucScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -3875,8 +3875,8 @@ pub struct SucScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -3893,11 +3893,11 @@ pub struct SucScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3953,11 +3953,11 @@ pub struct ScheduleCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the interval of the schedule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -3971,7 +3971,7 @@ pub struct ScheduleCreateOrUpdateProperties { pub advanced_schedule: Option, } impl ScheduleCreateOrUpdateProperties { - pub fn new(start_time: String, frequency: ScheduleFrequency) -> Self { + pub fn new(start_time: time::OffsetDateTime, frequency: ScheduleFrequency) -> Self { Self { description: None, start_time, @@ -4008,14 +4008,14 @@ impl ScheduleListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4023,8 +4023,8 @@ pub struct ScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4041,11 +4041,11 @@ pub struct ScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4291,11 +4291,11 @@ pub struct SourceControlProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl SourceControlProperties { pub fn new() -> Self { @@ -4444,17 +4444,17 @@ pub struct SourceControlSyncJobByIdProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -4597,17 +4597,17 @@ pub struct SourceControlSyncJobProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -4736,8 +4736,8 @@ pub struct SourceControlSyncJobStreamByIdProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -4803,8 +4803,8 @@ pub struct SourceControlSyncJobStreamProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -4923,11 +4923,11 @@ pub struct Statistics { #[serde(rename = "counterValue", default, skip_serializing_if = "Option::is_none")] pub counter_value: Option, #[doc = "Gets the startTime of the statistic."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the endTime of the statistic."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the id."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -4998,8 +4998,8 @@ impl TargetProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TestJob { #[doc = "Gets or sets the creation time of the test job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5010,20 +5010,20 @@ pub struct TestJob { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the start time of the test job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the test job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the test job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the test job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5237,11 +5237,11 @@ pub struct VariableProperties { #[serde(rename = "isEncrypted", default, skip_serializing_if = "Option::is_none")] pub is_encrypted: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -5344,11 +5344,11 @@ pub struct WatcherProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the watcher."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5424,8 +5424,8 @@ pub struct WebhookCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5472,11 +5472,11 @@ pub struct WebhookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the last invoked time."] - #[serde(rename = "lastInvokedTime", default, skip_serializing_if = "Option::is_none")] - pub last_invoked_time: Option, + #[serde(rename = "lastInvokedTime", with = "azure_core::date::rfc3339::option")] + pub last_invoked_time: Option, #[doc = "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5487,11 +5487,11 @@ pub struct WebhookProperties { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the Webhook"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5737,20 +5737,20 @@ pub struct SoftwareUpdateConfigurationCollectionItemProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub frequency: Option, #[doc = "the start time of the update."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Creation time of the software update configuration, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time software update configuration was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Provisioning state for the software update configuration, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "ext run time of the update."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, } impl SoftwareUpdateConfigurationCollectionItemProperties { pub fn new() -> Self { @@ -5818,14 +5818,14 @@ pub struct SoftwareUpdateConfigurationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5897,11 +5897,11 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "Start time of the software update configuration run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Number of computers in the software update configuration run."] #[serde(rename = "computerCount", default, skip_serializing_if = "Option::is_none")] pub computer_count: Option, @@ -5909,14 +5909,14 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "failedCount", default, skip_serializing_if = "Option::is_none")] pub failed_count: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6055,11 +6055,11 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(rename = "sourceComputerId", default, skip_serializing_if = "Option::is_none")] pub source_computer_id: Option, #[doc = "Start time of the software update configuration machine run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration machine run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "configured duration for the software update configuration run."] #[serde(rename = "configuredDuration", default, skip_serializing_if = "Option::is_none")] pub configured_duration: Option, @@ -6067,14 +6067,14 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub job: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "createdBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "lastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/automation/src/package_2020_01_13_preview/models.rs b/services/mgmt/automation/src/package_2020_01_13_preview/models.rs index ce6c49aeaf6..a7f5182fca7 100644 --- a/services/mgmt/automation/src/package_2020_01_13_preview/models.rs +++ b/services/mgmt/automation/src/package_2020_01_13_preview/models.rs @@ -137,11 +137,11 @@ pub struct ActivityProperties { #[serde(rename = "outputTypes", default, skip_serializing_if = "Vec::is_empty")] pub output_types: Vec, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -420,11 +420,11 @@ pub struct AutomationAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -626,17 +626,17 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Gets the expiry time of the certificate."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets the is exportable flag of the certificate."] #[serde(rename = "isExportable", default, skip_serializing_if = "Option::is_none")] pub is_exportable: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -753,11 +753,11 @@ pub struct ConnectionProperties { #[serde(rename = "fieldDefinitionValues", default, skip_serializing_if = "Option::is_none")] pub field_definition_values: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -862,11 +862,11 @@ pub struct ConnectionTypeProperties { #[serde(rename = "fieldDefinitions", default, skip_serializing_if = "Option::is_none")] pub field_definitions: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1076,11 +1076,11 @@ pub struct CredentialProperties { #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1217,8 +1217,8 @@ pub struct DscCompilationJobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1232,20 +1232,20 @@ pub struct DscCompilationJobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -1467,11 +1467,11 @@ pub struct DscConfigurationProperties { #[serde(rename = "logVerbose", default, skip_serializing_if = "Option::is_none")] pub log_verbose: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the number of compiled node configurations."] #[serde(rename = "nodeConfigurationCount", default, skip_serializing_if = "Option::is_none")] pub node_configuration_count: Option, @@ -1685,11 +1685,11 @@ impl DscNodeConfigurationListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfigurationProperties { #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Dsc configuration property associated with the entity."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configuration: Option, @@ -1751,11 +1751,11 @@ impl DscNodeListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeProperties { #[doc = "Gets or sets the last seen time of the node."] - #[serde(rename = "lastSeen", default, skip_serializing_if = "Option::is_none")] - pub last_seen: Option, + #[serde(rename = "lastSeen", with = "azure_core::date::rfc3339::option")] + pub last_seen: Option, #[doc = "Gets or sets the registration time of the node."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Gets or sets the ip of the node."] #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, @@ -1790,14 +1790,14 @@ impl DscNodeProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeReport { #[doc = "Gets or sets the end time of the node report."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the lastModifiedTime of the node report."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the start time of the node report."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the type of the node report."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -1959,8 +1959,8 @@ pub struct DscReportResource { #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, #[doc = "Gets or sets the start date of the resource."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, } impl DscReportResource { pub fn new() -> Self { @@ -2074,11 +2074,11 @@ pub struct HybridRunbookWorker { #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, #[doc = "Gets or sets the registration time of the worker machine."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Last Heartbeat from the Worker"] - #[serde(rename = "lastSeenDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_seen_date_time: Option, + #[serde(rename = "lastSeenDateTime", with = "azure_core::date::rfc3339::option")] + pub last_seen_date_time: Option, } impl HybridRunbookWorker { pub fn new() -> Self { @@ -2255,20 +2255,20 @@ pub struct JobCollectionItemProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The provisioning state of a resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2407,8 +2407,8 @@ pub struct JobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2416,20 +2416,20 @@ pub struct JobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets or sets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -2689,8 +2689,8 @@ pub struct JobStreamProperties { #[serde(rename = "jobStreamId", default, skip_serializing_if = "Option::is_none")] pub job_stream_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "Gets or sets the stream type."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -3075,11 +3075,11 @@ pub struct ModuleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3711,11 +3711,11 @@ pub struct RunbookDraft { #[serde(rename = "draftContentLink", default, skip_serializing_if = "Option::is_none")] pub draft_content_link: Option, #[doc = "Gets or sets the creation time of the runbook draft."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time of the runbook draft."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the runbook draft parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -3954,11 +3954,11 @@ pub struct RunbookProperties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4110,14 +4110,14 @@ impl RunbookUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SucScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4125,8 +4125,8 @@ pub struct SucScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4143,11 +4143,11 @@ pub struct SucScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4203,11 +4203,11 @@ pub struct ScheduleCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the interval of the schedule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -4221,7 +4221,7 @@ pub struct ScheduleCreateOrUpdateProperties { pub advanced_schedule: Option, } impl ScheduleCreateOrUpdateProperties { - pub fn new(start_time: String, frequency: ScheduleFrequency) -> Self { + pub fn new(start_time: time::OffsetDateTime, frequency: ScheduleFrequency) -> Self { Self { description: None, start_time, @@ -4258,14 +4258,14 @@ impl ScheduleListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4273,8 +4273,8 @@ pub struct ScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4291,11 +4291,11 @@ pub struct ScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4541,11 +4541,11 @@ pub struct SourceControlProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl SourceControlProperties { pub fn new() -> Self { @@ -4694,17 +4694,17 @@ pub struct SourceControlSyncJobByIdProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -4847,17 +4847,17 @@ pub struct SourceControlSyncJobProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -4986,8 +4986,8 @@ pub struct SourceControlSyncJobStreamByIdProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5053,8 +5053,8 @@ pub struct SourceControlSyncJobStreamProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5173,11 +5173,11 @@ pub struct Statistics { #[serde(rename = "counterValue", default, skip_serializing_if = "Option::is_none")] pub counter_value: Option, #[doc = "Gets the startTime of the statistic."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the endTime of the statistic."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the id."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -5248,8 +5248,8 @@ impl TargetProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TestJob { #[doc = "Gets or sets the creation time of the test job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5260,20 +5260,20 @@ pub struct TestJob { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the start time of the test job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the test job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the test job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the test job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5487,11 +5487,11 @@ pub struct VariableProperties { #[serde(rename = "isEncrypted", default, skip_serializing_if = "Option::is_none")] pub is_encrypted: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -5594,11 +5594,11 @@ pub struct WatcherProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the watcher."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5674,8 +5674,8 @@ pub struct WebhookCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5722,11 +5722,11 @@ pub struct WebhookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the last invoked time."] - #[serde(rename = "lastInvokedTime", default, skip_serializing_if = "Option::is_none")] - pub last_invoked_time: Option, + #[serde(rename = "lastInvokedTime", with = "azure_core::date::rfc3339::option")] + pub last_invoked_time: Option, #[doc = "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5737,11 +5737,11 @@ pub struct WebhookProperties { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the Webhook"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5987,20 +5987,20 @@ pub struct SoftwareUpdateConfigurationCollectionItemProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub frequency: Option, #[doc = "the start time of the update."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Creation time of the software update configuration, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time software update configuration was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Provisioning state for the software update configuration, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "ext run time of the update."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, } impl SoftwareUpdateConfigurationCollectionItemProperties { pub fn new() -> Self { @@ -6068,14 +6068,14 @@ pub struct SoftwareUpdateConfigurationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6147,11 +6147,11 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "Start time of the software update configuration run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Number of computers in the software update configuration run."] #[serde(rename = "computerCount", default, skip_serializing_if = "Option::is_none")] pub computer_count: Option, @@ -6159,14 +6159,14 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "failedCount", default, skip_serializing_if = "Option::is_none")] pub failed_count: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6305,11 +6305,11 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(rename = "sourceComputerId", default, skip_serializing_if = "Option::is_none")] pub source_computer_id: Option, #[doc = "Start time of the software update configuration machine run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration machine run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "configured duration for the software update configuration run."] #[serde(rename = "configuredDuration", default, skip_serializing_if = "Option::is_none")] pub configured_duration: Option, @@ -6317,14 +6317,14 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub job: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "createdBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "lastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/automation/src/package_2021_06_22/models.rs b/services/mgmt/automation/src/package_2021_06_22/models.rs index f602dbd4c7b..aa649592b19 100644 --- a/services/mgmt/automation/src/package_2021_06_22/models.rs +++ b/services/mgmt/automation/src/package_2021_06_22/models.rs @@ -137,11 +137,11 @@ pub struct ActivityProperties { #[serde(rename = "outputTypes", default, skip_serializing_if = "Vec::is_empty")] pub output_types: Vec, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -426,11 +426,11 @@ pub struct AutomationAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -641,17 +641,17 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Gets the expiry time of the certificate."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets the is exportable flag of the certificate."] #[serde(rename = "isExportable", default, skip_serializing_if = "Option::is_none")] pub is_exportable: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -768,11 +768,11 @@ pub struct ConnectionProperties { #[serde(rename = "fieldDefinitionValues", default, skip_serializing_if = "Option::is_none")] pub field_definition_values: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -877,11 +877,11 @@ pub struct ConnectionTypeProperties { #[serde(rename = "fieldDefinitions", default, skip_serializing_if = "Option::is_none")] pub field_definitions: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1091,11 +1091,11 @@ pub struct CredentialProperties { #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1232,8 +1232,8 @@ pub struct DscCompilationJobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1247,20 +1247,20 @@ pub struct DscCompilationJobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -1482,11 +1482,11 @@ pub struct DscConfigurationProperties { #[serde(rename = "logVerbose", default, skip_serializing_if = "Option::is_none")] pub log_verbose: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the number of compiled node configurations."] #[serde(rename = "nodeConfigurationCount", default, skip_serializing_if = "Option::is_none")] pub node_configuration_count: Option, @@ -1700,11 +1700,11 @@ impl DscNodeConfigurationListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfigurationProperties { #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Dsc configuration property associated with the entity."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configuration: Option, @@ -1766,11 +1766,11 @@ impl DscNodeListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeProperties { #[doc = "Gets or sets the last seen time of the node."] - #[serde(rename = "lastSeen", default, skip_serializing_if = "Option::is_none")] - pub last_seen: Option, + #[serde(rename = "lastSeen", with = "azure_core::date::rfc3339::option")] + pub last_seen: Option, #[doc = "Gets or sets the registration time of the node."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Gets or sets the ip of the node."] #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, @@ -1805,14 +1805,14 @@ impl DscNodeProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeReport { #[doc = "Gets or sets the end time of the node report."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the lastModifiedTime of the node report."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the start time of the node report."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the type of the node report."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -1974,8 +1974,8 @@ pub struct DscReportResource { #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, #[doc = "Gets or sets the start date of the resource."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, } impl DscReportResource { pub fn new() -> Self { @@ -2262,11 +2262,11 @@ pub struct HybridRunbookWorkerLegacy { #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, #[doc = "Gets or sets the registration time of the worker machine."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Last Heartbeat from the Worker"] - #[serde(rename = "lastSeenDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_seen_date_time: Option, + #[serde(rename = "lastSeenDateTime", with = "azure_core::date::rfc3339::option")] + pub last_seen_date_time: Option, } impl HybridRunbookWorkerLegacy { pub fn new() -> Self { @@ -2292,11 +2292,11 @@ pub struct HybridRunbookWorkerProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, #[doc = "Gets or sets the registration time of the worker machine."] - #[serde(rename = "registeredDateTime", default, skip_serializing_if = "Option::is_none")] - pub registered_date_time: Option, + #[serde(rename = "registeredDateTime", with = "azure_core::date::rfc3339::option")] + pub registered_date_time: Option, #[doc = "Last Heartbeat from the Worker"] - #[serde(rename = "lastSeenDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_seen_date_time: Option, + #[serde(rename = "lastSeenDateTime", with = "azure_core::date::rfc3339::option")] + pub last_seen_date_time: Option, #[doc = "Azure Resource Manager Id for a virtual machine."] #[serde(rename = "vmResourceId", default, skip_serializing_if = "Option::is_none")] pub vm_resource_id: Option, @@ -2446,20 +2446,20 @@ pub struct JobCollectionItemProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The provisioning state of a resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2598,8 +2598,8 @@ pub struct JobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2607,20 +2607,20 @@ pub struct JobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets or sets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -2880,8 +2880,8 @@ pub struct JobStreamProperties { #[serde(rename = "jobStreamId", default, skip_serializing_if = "Option::is_none")] pub job_stream_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "Gets or sets the stream type."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -3266,11 +3266,11 @@ pub struct ModuleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3960,11 +3960,11 @@ pub struct RunbookDraft { #[serde(rename = "draftContentLink", default, skip_serializing_if = "Option::is_none")] pub draft_content_link: Option, #[doc = "Gets or sets the creation time of the runbook draft."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time of the runbook draft."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the runbook draft parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -4203,11 +4203,11 @@ pub struct RunbookProperties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4359,14 +4359,14 @@ impl RunbookUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SucScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4374,8 +4374,8 @@ pub struct SucScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4392,11 +4392,11 @@ pub struct SucScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4452,11 +4452,11 @@ pub struct ScheduleCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the interval of the schedule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -4470,7 +4470,7 @@ pub struct ScheduleCreateOrUpdateProperties { pub advanced_schedule: Option, } impl ScheduleCreateOrUpdateProperties { - pub fn new(start_time: String, frequency: ScheduleFrequency) -> Self { + pub fn new(start_time: time::OffsetDateTime, frequency: ScheduleFrequency) -> Self { Self { description: None, start_time, @@ -4507,14 +4507,14 @@ impl ScheduleListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4522,8 +4522,8 @@ pub struct ScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4540,11 +4540,11 @@ pub struct ScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4790,11 +4790,11 @@ pub struct SourceControlProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl SourceControlProperties { pub fn new() -> Self { @@ -4943,17 +4943,17 @@ pub struct SourceControlSyncJobByIdProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -5096,17 +5096,17 @@ pub struct SourceControlSyncJobProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -5235,8 +5235,8 @@ pub struct SourceControlSyncJobStreamByIdProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5302,8 +5302,8 @@ pub struct SourceControlSyncJobStreamProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5422,11 +5422,11 @@ pub struct Statistics { #[serde(rename = "counterValue", default, skip_serializing_if = "Option::is_none")] pub counter_value: Option, #[doc = "Gets the startTime of the statistic."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the endTime of the statistic."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the id."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -5497,8 +5497,8 @@ impl TargetProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TestJob { #[doc = "Gets or sets the creation time of the test job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5509,20 +5509,20 @@ pub struct TestJob { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the start time of the test job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the test job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the test job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the test job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5736,11 +5736,11 @@ pub struct VariableProperties { #[serde(rename = "isEncrypted", default, skip_serializing_if = "Option::is_none")] pub is_encrypted: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -5843,11 +5843,11 @@ pub struct WatcherProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the watcher."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5923,8 +5923,8 @@ pub struct WebhookCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5971,11 +5971,11 @@ pub struct WebhookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the last invoked time."] - #[serde(rename = "lastInvokedTime", default, skip_serializing_if = "Option::is_none")] - pub last_invoked_time: Option, + #[serde(rename = "lastInvokedTime", with = "azure_core::date::rfc3339::option")] + pub last_invoked_time: Option, #[doc = "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5986,11 +5986,11 @@ pub struct WebhookProperties { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the Webhook"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6236,20 +6236,20 @@ pub struct SoftwareUpdateConfigurationCollectionItemProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub frequency: Option, #[doc = "the start time of the update."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Creation time of the software update configuration, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time software update configuration was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Provisioning state for the software update configuration, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "ext run time of the update."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, } impl SoftwareUpdateConfigurationCollectionItemProperties { pub fn new() -> Self { @@ -6317,14 +6317,14 @@ pub struct SoftwareUpdateConfigurationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6396,11 +6396,11 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "Start time of the software update configuration run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Number of computers in the software update configuration run."] #[serde(rename = "computerCount", default, skip_serializing_if = "Option::is_none")] pub computer_count: Option, @@ -6408,14 +6408,14 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "failedCount", default, skip_serializing_if = "Option::is_none")] pub failed_count: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6486,8 +6486,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6495,8 +6495,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6666,11 +6666,11 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(rename = "sourceComputerId", default, skip_serializing_if = "Option::is_none")] pub source_computer_id: Option, #[doc = "Start time of the software update configuration machine run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration machine run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "configured duration for the software update configuration run."] #[serde(rename = "configuredDuration", default, skip_serializing_if = "Option::is_none")] pub configured_duration: Option, @@ -6678,14 +6678,14 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub job: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "createdBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "lastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/automation/src/package_2022_01_31/models.rs b/services/mgmt/automation/src/package_2022_01_31/models.rs index b202629ec12..47a20da396e 100644 --- a/services/mgmt/automation/src/package_2022_01_31/models.rs +++ b/services/mgmt/automation/src/package_2022_01_31/models.rs @@ -137,11 +137,11 @@ pub struct ActivityProperties { #[serde(rename = "outputTypes", default, skip_serializing_if = "Vec::is_empty")] pub output_types: Vec, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -426,11 +426,11 @@ pub struct AutomationAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -641,17 +641,17 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Gets the expiry time of the certificate."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets the is exportable flag of the certificate."] #[serde(rename = "isExportable", default, skip_serializing_if = "Option::is_none")] pub is_exportable: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -768,11 +768,11 @@ pub struct ConnectionProperties { #[serde(rename = "fieldDefinitionValues", default, skip_serializing_if = "Option::is_none")] pub field_definition_values: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -877,11 +877,11 @@ pub struct ConnectionTypeProperties { #[serde(rename = "fieldDefinitions", default, skip_serializing_if = "Option::is_none")] pub field_definitions: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1091,11 +1091,11 @@ pub struct CredentialProperties { #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1187,8 +1187,8 @@ pub struct DeletedAutomationAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "Gets the deletion time."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, } impl DeletedAutomationAccountProperties { pub fn new() -> Self { @@ -1289,8 +1289,8 @@ pub struct DscCompilationJobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1304,20 +1304,20 @@ pub struct DscCompilationJobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -1539,11 +1539,11 @@ pub struct DscConfigurationProperties { #[serde(rename = "logVerbose", default, skip_serializing_if = "Option::is_none")] pub log_verbose: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the number of compiled node configurations."] #[serde(rename = "nodeConfigurationCount", default, skip_serializing_if = "Option::is_none")] pub node_configuration_count: Option, @@ -1757,11 +1757,11 @@ impl DscNodeConfigurationListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfigurationProperties { #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Dsc configuration property associated with the entity."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configuration: Option, @@ -1823,11 +1823,11 @@ impl DscNodeListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeProperties { #[doc = "Gets or sets the last seen time of the node."] - #[serde(rename = "lastSeen", default, skip_serializing_if = "Option::is_none")] - pub last_seen: Option, + #[serde(rename = "lastSeen", with = "azure_core::date::rfc3339::option")] + pub last_seen: Option, #[doc = "Gets or sets the registration time of the node."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Gets or sets the ip of the node."] #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, @@ -1862,14 +1862,14 @@ impl DscNodeProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeReport { #[doc = "Gets or sets the end time of the node report."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the lastModifiedTime of the node report."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the start time of the node report."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the type of the node report."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -2031,8 +2031,8 @@ pub struct DscReportResource { #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, #[doc = "Gets or sets the start date of the resource."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, } impl DscReportResource { pub fn new() -> Self { @@ -2319,11 +2319,11 @@ pub struct HybridRunbookWorkerLegacy { #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, #[doc = "Gets or sets the registration time of the worker machine."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Last Heartbeat from the Worker"] - #[serde(rename = "lastSeenDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_seen_date_time: Option, + #[serde(rename = "lastSeenDateTime", with = "azure_core::date::rfc3339::option")] + pub last_seen_date_time: Option, } impl HybridRunbookWorkerLegacy { pub fn new() -> Self { @@ -2349,11 +2349,11 @@ pub struct HybridRunbookWorkerProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, #[doc = "Gets or sets the registration time of the worker machine."] - #[serde(rename = "registeredDateTime", default, skip_serializing_if = "Option::is_none")] - pub registered_date_time: Option, + #[serde(rename = "registeredDateTime", with = "azure_core::date::rfc3339::option")] + pub registered_date_time: Option, #[doc = "Last Heartbeat from the Worker"] - #[serde(rename = "lastSeenDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_seen_date_time: Option, + #[serde(rename = "lastSeenDateTime", with = "azure_core::date::rfc3339::option")] + pub last_seen_date_time: Option, #[doc = "Azure Resource Manager Id for a virtual machine."] #[serde(rename = "vmResourceId", default, skip_serializing_if = "Option::is_none")] pub vm_resource_id: Option, @@ -2503,20 +2503,20 @@ pub struct JobCollectionItemProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The provisioning state of a resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2655,8 +2655,8 @@ pub struct JobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2664,20 +2664,20 @@ pub struct JobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets or sets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -2937,8 +2937,8 @@ pub struct JobStreamProperties { #[serde(rename = "jobStreamId", default, skip_serializing_if = "Option::is_none")] pub job_stream_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "Gets or sets the stream type."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -3323,11 +3323,11 @@ pub struct ModuleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4017,11 +4017,11 @@ pub struct RunbookDraft { #[serde(rename = "draftContentLink", default, skip_serializing_if = "Option::is_none")] pub draft_content_link: Option, #[doc = "Gets or sets the creation time of the runbook draft."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time of the runbook draft."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the runbook draft parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -4260,11 +4260,11 @@ pub struct RunbookProperties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4416,14 +4416,14 @@ impl RunbookUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SucScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4431,8 +4431,8 @@ pub struct SucScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4449,11 +4449,11 @@ pub struct SucScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4509,11 +4509,11 @@ pub struct ScheduleCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the interval of the schedule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -4527,7 +4527,7 @@ pub struct ScheduleCreateOrUpdateProperties { pub advanced_schedule: Option, } impl ScheduleCreateOrUpdateProperties { - pub fn new(start_time: String, frequency: ScheduleFrequency) -> Self { + pub fn new(start_time: time::OffsetDateTime, frequency: ScheduleFrequency) -> Self { Self { description: None, start_time, @@ -4564,14 +4564,14 @@ impl ScheduleListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4579,8 +4579,8 @@ pub struct ScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4597,11 +4597,11 @@ pub struct ScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4847,11 +4847,11 @@ pub struct SourceControlProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl SourceControlProperties { pub fn new() -> Self { @@ -5000,17 +5000,17 @@ pub struct SourceControlSyncJobByIdProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -5153,17 +5153,17 @@ pub struct SourceControlSyncJobProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -5292,8 +5292,8 @@ pub struct SourceControlSyncJobStreamByIdProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5359,8 +5359,8 @@ pub struct SourceControlSyncJobStreamProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5479,11 +5479,11 @@ pub struct Statistics { #[serde(rename = "counterValue", default, skip_serializing_if = "Option::is_none")] pub counter_value: Option, #[doc = "Gets the startTime of the statistic."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the endTime of the statistic."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the id."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -5554,8 +5554,8 @@ impl TargetProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TestJob { #[doc = "Gets or sets the creation time of the test job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5566,20 +5566,20 @@ pub struct TestJob { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the start time of the test job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the test job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the test job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the test job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5793,11 +5793,11 @@ pub struct VariableProperties { #[serde(rename = "isEncrypted", default, skip_serializing_if = "Option::is_none")] pub is_encrypted: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -5900,11 +5900,11 @@ pub struct WatcherProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the watcher."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5980,8 +5980,8 @@ pub struct WebhookCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -6028,11 +6028,11 @@ pub struct WebhookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the last invoked time."] - #[serde(rename = "lastInvokedTime", default, skip_serializing_if = "Option::is_none")] - pub last_invoked_time: Option, + #[serde(rename = "lastInvokedTime", with = "azure_core::date::rfc3339::option")] + pub last_invoked_time: Option, #[doc = "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -6043,11 +6043,11 @@ pub struct WebhookProperties { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the Webhook"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6293,20 +6293,20 @@ pub struct SoftwareUpdateConfigurationCollectionItemProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub frequency: Option, #[doc = "the start time of the update."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Creation time of the software update configuration, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time software update configuration was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Provisioning state for the software update configuration, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "ext run time of the update."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, } impl SoftwareUpdateConfigurationCollectionItemProperties { pub fn new() -> Self { @@ -6374,14 +6374,14 @@ pub struct SoftwareUpdateConfigurationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6453,11 +6453,11 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "Start time of the software update configuration run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Number of computers in the software update configuration run."] #[serde(rename = "computerCount", default, skip_serializing_if = "Option::is_none")] pub computer_count: Option, @@ -6465,14 +6465,14 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "failedCount", default, skip_serializing_if = "Option::is_none")] pub failed_count: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6543,8 +6543,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6552,8 +6552,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6723,11 +6723,11 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(rename = "sourceComputerId", default, skip_serializing_if = "Option::is_none")] pub source_computer_id: Option, #[doc = "Start time of the software update configuration machine run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration machine run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "configured duration for the software update configuration run."] #[serde(rename = "configuredDuration", default, skip_serializing_if = "Option::is_none")] pub configured_duration: Option, @@ -6735,14 +6735,14 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub job: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "createdBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "lastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/automation/src/package_2022_02_22/models.rs b/services/mgmt/automation/src/package_2022_02_22/models.rs index 07cd34bd89f..ce134e7aa29 100644 --- a/services/mgmt/automation/src/package_2022_02_22/models.rs +++ b/services/mgmt/automation/src/package_2022_02_22/models.rs @@ -137,11 +137,11 @@ pub struct ActivityProperties { #[serde(rename = "outputTypes", default, skip_serializing_if = "Vec::is_empty")] pub output_types: Vec, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -426,11 +426,11 @@ pub struct AutomationAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -641,17 +641,17 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Gets the expiry time of the certificate."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets the is exportable flag of the certificate."] #[serde(rename = "isExportable", default, skip_serializing_if = "Option::is_none")] pub is_exportable: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -768,11 +768,11 @@ pub struct ConnectionProperties { #[serde(rename = "fieldDefinitionValues", default, skip_serializing_if = "Option::is_none")] pub field_definition_values: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -877,11 +877,11 @@ pub struct ConnectionTypeProperties { #[serde(rename = "fieldDefinitions", default, skip_serializing_if = "Option::is_none")] pub field_definitions: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1091,11 +1091,11 @@ pub struct CredentialProperties { #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, #[doc = "Gets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1187,8 +1187,8 @@ pub struct DeletedAutomationAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "Gets the deletion time."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, } impl DeletedAutomationAccountProperties { pub fn new() -> Self { @@ -1289,8 +1289,8 @@ pub struct DscCompilationJobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1304,20 +1304,20 @@ pub struct DscCompilationJobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -1539,11 +1539,11 @@ pub struct DscConfigurationProperties { #[serde(rename = "logVerbose", default, skip_serializing_if = "Option::is_none")] pub log_verbose: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets the number of compiled node configurations."] #[serde(rename = "nodeConfigurationCount", default, skip_serializing_if = "Option::is_none")] pub node_configuration_count: Option, @@ -1757,11 +1757,11 @@ impl DscNodeConfigurationListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfigurationProperties { #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Dsc configuration property associated with the entity."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configuration: Option, @@ -1823,11 +1823,11 @@ impl DscNodeListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeProperties { #[doc = "Gets or sets the last seen time of the node."] - #[serde(rename = "lastSeen", default, skip_serializing_if = "Option::is_none")] - pub last_seen: Option, + #[serde(rename = "lastSeen", with = "azure_core::date::rfc3339::option")] + pub last_seen: Option, #[doc = "Gets or sets the registration time of the node."] - #[serde(rename = "registrationTime", default, skip_serializing_if = "Option::is_none")] - pub registration_time: Option, + #[serde(rename = "registrationTime", with = "azure_core::date::rfc3339::option")] + pub registration_time: Option, #[doc = "Gets or sets the ip of the node."] #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, @@ -1862,14 +1862,14 @@ impl DscNodeProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeReport { #[doc = "Gets or sets the end time of the node report."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the lastModifiedTime of the node report."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the start time of the node report."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the type of the node report."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -2031,8 +2031,8 @@ pub struct DscReportResource { #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, #[doc = "Gets or sets the start date of the resource."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, } impl DscReportResource { pub fn new() -> Self { @@ -2333,11 +2333,11 @@ pub struct HybridRunbookWorkerProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub ip: Option, #[doc = "Gets or sets the registration time of the worker machine."] - #[serde(rename = "registeredDateTime", default, skip_serializing_if = "Option::is_none")] - pub registered_date_time: Option, + #[serde(rename = "registeredDateTime", with = "azure_core::date::rfc3339::option")] + pub registered_date_time: Option, #[doc = "Last Heartbeat from the Worker"] - #[serde(rename = "lastSeenDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_seen_date_time: Option, + #[serde(rename = "lastSeenDateTime", with = "azure_core::date::rfc3339::option")] + pub last_seen_date_time: Option, #[doc = "Azure Resource Manager Id for a virtual machine."] #[serde(rename = "vmResourceId", default, skip_serializing_if = "Option::is_none")] pub vm_resource_id: Option, @@ -2487,20 +2487,20 @@ pub struct JobCollectionItemProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The provisioning state of a resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2639,8 +2639,8 @@ pub struct JobProperties { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2648,20 +2648,20 @@ pub struct JobProperties { #[serde(rename = "statusDetails", default, skip_serializing_if = "Option::is_none")] pub status_details: Option, #[doc = "Gets or sets the start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -2921,8 +2921,8 @@ pub struct JobStreamProperties { #[serde(rename = "jobStreamId", default, skip_serializing_if = "Option::is_none")] pub job_stream_id: Option, #[doc = "Gets or sets the creation time of the job."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "Gets or sets the stream type."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -3307,11 +3307,11 @@ pub struct ModuleProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4001,11 +4001,11 @@ pub struct RunbookDraft { #[serde(rename = "draftContentLink", default, skip_serializing_if = "Option::is_none")] pub draft_content_link: Option, #[doc = "Gets or sets the creation time of the runbook draft."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time of the runbook draft."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the runbook draft parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -4244,11 +4244,11 @@ pub struct RunbookProperties { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4400,14 +4400,14 @@ impl RunbookUpdateProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SucScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4415,8 +4415,8 @@ pub struct SucScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4433,11 +4433,11 @@ pub struct SucScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4493,11 +4493,11 @@ pub struct ScheduleCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the interval of the schedule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, @@ -4511,7 +4511,7 @@ pub struct ScheduleCreateOrUpdateProperties { pub advanced_schedule: Option, } impl ScheduleCreateOrUpdateProperties { - pub fn new(start_time: String, frequency: ScheduleFrequency) -> Self { + pub fn new(start_time: time::OffsetDateTime, frequency: ScheduleFrequency) -> Self { Self { description: None, start_time, @@ -4548,14 +4548,14 @@ impl ScheduleListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleProperties { #[doc = "Gets or sets the start time of the schedule."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the start time's offset in minutes."] #[serde(rename = "startTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub start_time_offset_minutes: Option, #[doc = "Gets or sets the end time of the schedule."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the expiry time's offset in minutes."] #[serde(rename = "expiryTimeOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub expiry_time_offset_minutes: Option, @@ -4563,8 +4563,8 @@ pub struct ScheduleProperties { #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")] pub is_enabled: Option, #[doc = "Gets or sets the next run time of the schedule."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, #[doc = "Gets or sets the next run time's offset in minutes."] #[serde(rename = "nextRunOffsetMinutes", default, skip_serializing_if = "Option::is_none")] pub next_run_offset_minutes: Option, @@ -4581,11 +4581,11 @@ pub struct ScheduleProperties { #[serde(rename = "advancedSchedule", default, skip_serializing_if = "Option::is_none")] pub advanced_schedule: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4831,11 +4831,11 @@ pub struct SourceControlProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl SourceControlProperties { pub fn new() -> Self { @@ -4984,17 +4984,17 @@ pub struct SourceControlSyncJobByIdProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -5137,17 +5137,17 @@ pub struct SourceControlSyncJobProperties { #[serde(rename = "sourceControlSyncJobId", default, skip_serializing_if = "Option::is_none")] pub source_control_sync_job_id: Option, #[doc = "The creation time of the job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The provisioning state of the job."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The sync type."] #[serde(rename = "syncType", default, skip_serializing_if = "Option::is_none")] pub sync_type: Option, @@ -5276,8 +5276,8 @@ pub struct SourceControlSyncJobStreamByIdProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5343,8 +5343,8 @@ pub struct SourceControlSyncJobStreamProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "The time of the sync job stream."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The type of the sync job stream."] #[serde(rename = "streamType", default, skip_serializing_if = "Option::is_none")] pub stream_type: Option, @@ -5463,11 +5463,11 @@ pub struct Statistics { #[serde(rename = "counterValue", default, skip_serializing_if = "Option::is_none")] pub counter_value: Option, #[doc = "Gets the startTime of the statistic."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the endTime of the statistic."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the id."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, @@ -5538,8 +5538,8 @@ impl TargetProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TestJob { #[doc = "Gets or sets the creation time of the test job."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the status of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5550,20 +5550,20 @@ pub struct TestJob { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the start time of the test job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the end time of the test job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets or sets the exception of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub exception: Option, #[doc = "Gets or sets the last modified time of the test job."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the last status modified time of the test job."] - #[serde(rename = "lastStatusModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_status_modified_time: Option, + #[serde(rename = "lastStatusModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_status_modified_time: Option, #[doc = "Gets or sets the parameters of the test job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -5777,11 +5777,11 @@ pub struct VariableProperties { #[serde(rename = "isEncrypted", default, skip_serializing_if = "Option::is_none")] pub is_encrypted: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Gets or sets the description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -5884,11 +5884,11 @@ pub struct WatcherProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the watcher."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5964,8 +5964,8 @@ pub struct WebhookCreateOrUpdateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the parameters of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -6012,11 +6012,11 @@ pub struct WebhookProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "Gets or sets the expiry time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "Gets or sets the last invoked time."] - #[serde(rename = "lastInvokedTime", default, skip_serializing_if = "Option::is_none")] - pub last_invoked_time: Option, + #[serde(rename = "lastInvokedTime", with = "azure_core::date::rfc3339::option")] + pub last_invoked_time: Option, #[doc = "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with."] #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, @@ -6027,11 +6027,11 @@ pub struct WebhookProperties { #[serde(rename = "runOn", default, skip_serializing_if = "Option::is_none")] pub run_on: Option, #[doc = "Gets or sets the creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Gets or sets the last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Details of the user who last modified the Webhook"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6277,20 +6277,20 @@ pub struct SoftwareUpdateConfigurationCollectionItemProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub frequency: Option, #[doc = "the start time of the update."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Creation time of the software update configuration, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time software update configuration was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Provisioning state for the software update configuration, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "ext run time of the update."] - #[serde(rename = "nextRun", default, skip_serializing_if = "Option::is_none")] - pub next_run: Option, + #[serde(rename = "nextRun", with = "azure_core::date::rfc3339::option")] + pub next_run: Option, } impl SoftwareUpdateConfigurationCollectionItemProperties { pub fn new() -> Self { @@ -6358,14 +6358,14 @@ pub struct SoftwareUpdateConfigurationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6437,11 +6437,11 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "Start time of the software update configuration run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Number of computers in the software update configuration run."] #[serde(rename = "computerCount", default, skip_serializing_if = "Option::is_none")] pub computer_count: Option, @@ -6449,14 +6449,14 @@ pub struct SoftwareUpdateConfigurationRunProperties { #[serde(rename = "failedCount", default, skip_serializing_if = "Option::is_none")] pub failed_count: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "CreatedBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "LastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6527,8 +6527,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6536,8 +6536,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6707,11 +6707,11 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(rename = "sourceComputerId", default, skip_serializing_if = "Option::is_none")] pub source_computer_id: Option, #[doc = "Start time of the software update configuration machine run."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the software update configuration machine run."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "configured duration for the software update configuration run."] #[serde(rename = "configuredDuration", default, skip_serializing_if = "Option::is_none")] pub configured_duration: Option, @@ -6719,14 +6719,14 @@ pub struct UpdateConfigurationMachineRunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub job: Option, #[doc = "Creation time of the resource, which only appears in the response."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "createdBy property, which only appears in the response."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, #[doc = "Last time resource was modified, which only appears in the response."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "lastModifiedBy property, which only appears in the response."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/baremetalinfrastructure/Cargo.toml b/services/mgmt/baremetalinfrastructure/Cargo.toml index be926440a58..8b6db63d9ff 100644 --- a/services/mgmt/baremetalinfrastructure/Cargo.toml +++ b/services/mgmt/baremetalinfrastructure/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs b/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs index 9f5636691cc..647b508dced 100644 --- a/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs +++ b/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs @@ -608,8 +608,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -617,8 +617,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/batch/Cargo.toml b/services/mgmt/batch/Cargo.toml index f8c08e3ff1a..c0131434c64 100644 --- a/services/mgmt/batch/Cargo.toml +++ b/services/mgmt/batch/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/batch/src/package_2020_09/models.rs b/services/mgmt/batch/src/package_2020_09/models.rs index 014d3551d8c..b03b5cd62c7 100644 --- a/services/mgmt/batch/src/package_2020_09/models.rs +++ b/services/mgmt/batch/src/package_2020_09/models.rs @@ -56,11 +56,11 @@ pub struct ApplicationPackageProperties { #[serde(rename = "storageUrl", default, skip_serializing_if = "Option::is_none")] pub storage_url: Option, #[doc = "The UTC time at which the Azure Storage URL will expire."] - #[serde(rename = "storageUrlExpiry", default, skip_serializing_if = "Option::is_none")] - pub storage_url_expiry: Option, + #[serde(rename = "storageUrlExpiry", with = "azure_core::date::rfc3339::option")] + pub storage_url_expiry: Option, #[doc = "The time at which the package was last activated, if the package is active."] - #[serde(rename = "lastActivationTime", default, skip_serializing_if = "Option::is_none")] - pub last_activation_time: Option, + #[serde(rename = "lastActivationTime", with = "azure_core::date::rfc3339::option")] + pub last_activation_time: Option, } impl ApplicationPackageProperties { pub fn new() -> Self { @@ -108,8 +108,8 @@ impl ApplicationProperties { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutoScaleRun { - #[serde(rename = "evaluationTime")] - pub evaluation_time: String, + #[serde(rename = "evaluationTime", with = "azure_core::date::rfc3339")] + pub evaluation_time: time::OffsetDateTime, #[doc = "Each variable value is returned in the form $variable=value, and variables are separated by semicolons."] #[serde(default, skip_serializing_if = "Option::is_none")] pub results: Option, @@ -117,7 +117,7 @@ pub struct AutoScaleRun { pub error: Option, } impl AutoScaleRun { - pub fn new(evaluation_time: String) -> Self { + pub fn new(evaluation_time: time::OffsetDateTime) -> Self { Self { evaluation_time, results: None, @@ -176,11 +176,11 @@ pub struct AutoStorageProperties { #[serde(flatten)] pub auto_storage_base_properties: AutoStorageBaseProperties, #[doc = "The UTC time at which storage keys were last synchronized with the Batch account."] - #[serde(rename = "lastKeySync")] - pub last_key_sync: String, + #[serde(rename = "lastKeySync", with = "azure_core::date::rfc3339")] + pub last_key_sync: time::OffsetDateTime, } impl AutoStorageProperties { - pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: String) -> Self { + pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: time::OffsetDateTime) -> Self { Self { auto_storage_base_properties, last_key_sync, @@ -641,17 +641,13 @@ pub struct CertificateProperties { pub certificate_base_properties: CertificateBaseProperties, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[doc = "The previous provisioned state of the resource"] #[serde(rename = "previousProvisioningState", default, skip_serializing_if = "Option::is_none")] pub previous_provisioning_state: Option, - #[serde( - rename = "previousProvisioningStateTransitionTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub previous_provisioning_state_transition_time: Option, + #[serde(rename = "previousProvisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub previous_provisioning_state_transition_time: Option, #[doc = "The public key of the certificate."] #[serde(rename = "publicData", default, skip_serializing_if = "Option::is_none")] pub public_data: Option, @@ -1429,18 +1425,18 @@ pub struct PoolProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)."] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1697,8 +1693,8 @@ pub struct ResizeOperationStatus { pub resize_timeout: Option, #[serde(rename = "nodeDeallocationOption", default, skip_serializing_if = "Option::is_none")] pub node_deallocation_option: Option, - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, diff --git a/services/mgmt/batch/src/package_2021_01/models.rs b/services/mgmt/batch/src/package_2021_01/models.rs index 8162d91bc33..623788e7af9 100644 --- a/services/mgmt/batch/src/package_2021_01/models.rs +++ b/services/mgmt/batch/src/package_2021_01/models.rs @@ -56,11 +56,11 @@ pub struct ApplicationPackageProperties { #[serde(rename = "storageUrl", default, skip_serializing_if = "Option::is_none")] pub storage_url: Option, #[doc = "The UTC time at which the Azure Storage URL will expire."] - #[serde(rename = "storageUrlExpiry", default, skip_serializing_if = "Option::is_none")] - pub storage_url_expiry: Option, + #[serde(rename = "storageUrlExpiry", with = "azure_core::date::rfc3339::option")] + pub storage_url_expiry: Option, #[doc = "The time at which the package was last activated, if the package is active."] - #[serde(rename = "lastActivationTime", default, skip_serializing_if = "Option::is_none")] - pub last_activation_time: Option, + #[serde(rename = "lastActivationTime", with = "azure_core::date::rfc3339::option")] + pub last_activation_time: Option, } impl ApplicationPackageProperties { pub fn new() -> Self { @@ -108,8 +108,8 @@ impl ApplicationProperties { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutoScaleRun { - #[serde(rename = "evaluationTime")] - pub evaluation_time: String, + #[serde(rename = "evaluationTime", with = "azure_core::date::rfc3339")] + pub evaluation_time: time::OffsetDateTime, #[doc = "Each variable value is returned in the form $variable=value, and variables are separated by semicolons."] #[serde(default, skip_serializing_if = "Option::is_none")] pub results: Option, @@ -117,7 +117,7 @@ pub struct AutoScaleRun { pub error: Option, } impl AutoScaleRun { - pub fn new(evaluation_time: String) -> Self { + pub fn new(evaluation_time: time::OffsetDateTime) -> Self { Self { evaluation_time, results: None, @@ -176,11 +176,11 @@ pub struct AutoStorageProperties { #[serde(flatten)] pub auto_storage_base_properties: AutoStorageBaseProperties, #[doc = "The UTC time at which storage keys were last synchronized with the Batch account."] - #[serde(rename = "lastKeySync")] - pub last_key_sync: String, + #[serde(rename = "lastKeySync", with = "azure_core::date::rfc3339")] + pub last_key_sync: time::OffsetDateTime, } impl AutoStorageProperties { - pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: String) -> Self { + pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: time::OffsetDateTime) -> Self { Self { auto_storage_base_properties, last_key_sync, @@ -673,17 +673,13 @@ pub struct CertificateProperties { pub certificate_base_properties: CertificateBaseProperties, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[doc = "The previous provisioned state of the resource"] #[serde(rename = "previousProvisioningState", default, skip_serializing_if = "Option::is_none")] pub previous_provisioning_state: Option, - #[serde( - rename = "previousProvisioningStateTransitionTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub previous_provisioning_state_transition_time: Option, + #[serde(rename = "previousProvisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub previous_provisioning_state_transition_time: Option, #[doc = "The public key of the certificate."] #[serde(rename = "publicData", default, skip_serializing_if = "Option::is_none")] pub public_data: Option, @@ -1482,18 +1478,18 @@ pub struct PoolProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)."] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1750,8 +1746,8 @@ pub struct ResizeOperationStatus { pub resize_timeout: Option, #[serde(rename = "nodeDeallocationOption", default, skip_serializing_if = "Option::is_none")] pub node_deallocation_option: Option, - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, diff --git a/services/mgmt/batch/src/package_2021_06/models.rs b/services/mgmt/batch/src/package_2021_06/models.rs index 3eed24f9eab..e2e884f3374 100644 --- a/services/mgmt/batch/src/package_2021_06/models.rs +++ b/services/mgmt/batch/src/package_2021_06/models.rs @@ -56,11 +56,11 @@ pub struct ApplicationPackageProperties { #[serde(rename = "storageUrl", default, skip_serializing_if = "Option::is_none")] pub storage_url: Option, #[doc = "The UTC time at which the Azure Storage URL will expire."] - #[serde(rename = "storageUrlExpiry", default, skip_serializing_if = "Option::is_none")] - pub storage_url_expiry: Option, + #[serde(rename = "storageUrlExpiry", with = "azure_core::date::rfc3339::option")] + pub storage_url_expiry: Option, #[doc = "The time at which the package was last activated, if the package is active."] - #[serde(rename = "lastActivationTime", default, skip_serializing_if = "Option::is_none")] - pub last_activation_time: Option, + #[serde(rename = "lastActivationTime", with = "azure_core::date::rfc3339::option")] + pub last_activation_time: Option, } impl ApplicationPackageProperties { pub fn new() -> Self { @@ -116,8 +116,8 @@ pub enum AuthenticationMode { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutoScaleRun { - #[serde(rename = "evaluationTime")] - pub evaluation_time: String, + #[serde(rename = "evaluationTime", with = "azure_core::date::rfc3339")] + pub evaluation_time: time::OffsetDateTime, #[doc = "Each variable value is returned in the form $variable=value, and variables are separated by semicolons."] #[serde(default, skip_serializing_if = "Option::is_none")] pub results: Option, @@ -125,7 +125,7 @@ pub struct AutoScaleRun { pub error: Option, } impl AutoScaleRun { - pub fn new(evaluation_time: String) -> Self { + pub fn new(evaluation_time: time::OffsetDateTime) -> Self { Self { evaluation_time, results: None, @@ -208,11 +208,11 @@ pub struct AutoStorageProperties { #[serde(flatten)] pub auto_storage_base_properties: AutoStorageBaseProperties, #[doc = "The UTC time at which storage keys were last synchronized with the Batch account."] - #[serde(rename = "lastKeySync")] - pub last_key_sync: String, + #[serde(rename = "lastKeySync", with = "azure_core::date::rfc3339")] + pub last_key_sync: time::OffsetDateTime, } impl AutoStorageProperties { - pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: String) -> Self { + pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: time::OffsetDateTime) -> Self { Self { auto_storage_base_properties, last_key_sync, @@ -719,17 +719,13 @@ pub struct CertificateProperties { pub certificate_base_properties: CertificateBaseProperties, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[doc = "The previous provisioned state of the resource"] #[serde(rename = "previousProvisioningState", default, skip_serializing_if = "Option::is_none")] pub previous_provisioning_state: Option, - #[serde( - rename = "previousProvisioningStateTransitionTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub previous_provisioning_state_transition_time: Option, + #[serde(rename = "previousProvisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub previous_provisioning_state_transition_time: Option, #[doc = "The public key of the certificate."] #[serde(rename = "publicData", default, skip_serializing_if = "Option::is_none")] pub public_data: Option, @@ -1636,18 +1632,18 @@ pub struct PoolProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)."] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1904,8 +1900,8 @@ pub struct ResizeOperationStatus { pub resize_timeout: Option, #[serde(rename = "nodeDeallocationOption", default, skip_serializing_if = "Option::is_none")] pub node_deallocation_option: Option, - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, diff --git a/services/mgmt/batch/src/package_2022_01/models.rs b/services/mgmt/batch/src/package_2022_01/models.rs index 5626b00a527..841be0434d5 100644 --- a/services/mgmt/batch/src/package_2022_01/models.rs +++ b/services/mgmt/batch/src/package_2022_01/models.rs @@ -56,11 +56,11 @@ pub struct ApplicationPackageProperties { #[serde(rename = "storageUrl", default, skip_serializing_if = "Option::is_none")] pub storage_url: Option, #[doc = "The UTC time at which the Azure Storage URL will expire."] - #[serde(rename = "storageUrlExpiry", default, skip_serializing_if = "Option::is_none")] - pub storage_url_expiry: Option, + #[serde(rename = "storageUrlExpiry", with = "azure_core::date::rfc3339::option")] + pub storage_url_expiry: Option, #[doc = "The time at which the package was last activated, if the package is active."] - #[serde(rename = "lastActivationTime", default, skip_serializing_if = "Option::is_none")] - pub last_activation_time: Option, + #[serde(rename = "lastActivationTime", with = "azure_core::date::rfc3339::option")] + pub last_activation_time: Option, } impl ApplicationPackageProperties { pub fn new() -> Self { @@ -116,8 +116,8 @@ pub enum AuthenticationMode { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutoScaleRun { - #[serde(rename = "evaluationTime")] - pub evaluation_time: String, + #[serde(rename = "evaluationTime", with = "azure_core::date::rfc3339")] + pub evaluation_time: time::OffsetDateTime, #[doc = "Each variable value is returned in the form $variable=value, and variables are separated by semicolons."] #[serde(default, skip_serializing_if = "Option::is_none")] pub results: Option, @@ -125,7 +125,7 @@ pub struct AutoScaleRun { pub error: Option, } impl AutoScaleRun { - pub fn new(evaluation_time: String) -> Self { + pub fn new(evaluation_time: time::OffsetDateTime) -> Self { Self { evaluation_time, results: None, @@ -208,11 +208,11 @@ pub struct AutoStorageProperties { #[serde(flatten)] pub auto_storage_base_properties: AutoStorageBaseProperties, #[doc = "The UTC time at which storage keys were last synchronized with the Batch account."] - #[serde(rename = "lastKeySync")] - pub last_key_sync: String, + #[serde(rename = "lastKeySync", with = "azure_core::date::rfc3339")] + pub last_key_sync: time::OffsetDateTime, } impl AutoStorageProperties { - pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: String) -> Self { + pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: time::OffsetDateTime) -> Self { Self { auto_storage_base_properties, last_key_sync, @@ -719,17 +719,13 @@ pub struct CertificateProperties { pub certificate_base_properties: CertificateBaseProperties, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[doc = "The previous provisioned state of the resource"] #[serde(rename = "previousProvisioningState", default, skip_serializing_if = "Option::is_none")] pub previous_provisioning_state: Option, - #[serde( - rename = "previousProvisioningStateTransitionTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub previous_provisioning_state_transition_time: Option, + #[serde(rename = "previousProvisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub previous_provisioning_state_transition_time: Option, #[doc = "The public key of the certificate."] #[serde(rename = "publicData", default, skip_serializing_if = "Option::is_none")] pub public_data: Option, @@ -1695,18 +1691,18 @@ pub struct PoolProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)."] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1963,8 +1959,8 @@ pub struct ResizeOperationStatus { pub resize_timeout: Option, #[serde(rename = "nodeDeallocationOption", default, skip_serializing_if = "Option::is_none")] pub node_deallocation_option: Option, - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, diff --git a/services/mgmt/batch/src/package_2022_06/models.rs b/services/mgmt/batch/src/package_2022_06/models.rs index 75fe29c2a43..62329e9179e 100644 --- a/services/mgmt/batch/src/package_2022_06/models.rs +++ b/services/mgmt/batch/src/package_2022_06/models.rs @@ -56,11 +56,11 @@ pub struct ApplicationPackageProperties { #[serde(rename = "storageUrl", default, skip_serializing_if = "Option::is_none")] pub storage_url: Option, #[doc = "The UTC time at which the Azure Storage URL will expire."] - #[serde(rename = "storageUrlExpiry", default, skip_serializing_if = "Option::is_none")] - pub storage_url_expiry: Option, + #[serde(rename = "storageUrlExpiry", with = "azure_core::date::rfc3339::option")] + pub storage_url_expiry: Option, #[doc = "The time at which the package was last activated, if the package is active."] - #[serde(rename = "lastActivationTime", default, skip_serializing_if = "Option::is_none")] - pub last_activation_time: Option, + #[serde(rename = "lastActivationTime", with = "azure_core::date::rfc3339::option")] + pub last_activation_time: Option, } impl ApplicationPackageProperties { pub fn new() -> Self { @@ -116,8 +116,8 @@ pub enum AuthenticationMode { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutoScaleRun { - #[serde(rename = "evaluationTime")] - pub evaluation_time: String, + #[serde(rename = "evaluationTime", with = "azure_core::date::rfc3339")] + pub evaluation_time: time::OffsetDateTime, #[doc = "Each variable value is returned in the form $variable=value, and variables are separated by semicolons."] #[serde(default, skip_serializing_if = "Option::is_none")] pub results: Option, @@ -125,7 +125,7 @@ pub struct AutoScaleRun { pub error: Option, } impl AutoScaleRun { - pub fn new(evaluation_time: String) -> Self { + pub fn new(evaluation_time: time::OffsetDateTime) -> Self { Self { evaluation_time, results: None, @@ -208,11 +208,11 @@ pub struct AutoStorageProperties { #[serde(flatten)] pub auto_storage_base_properties: AutoStorageBaseProperties, #[doc = "The UTC time at which storage keys were last synchronized with the Batch account."] - #[serde(rename = "lastKeySync")] - pub last_key_sync: String, + #[serde(rename = "lastKeySync", with = "azure_core::date::rfc3339")] + pub last_key_sync: time::OffsetDateTime, } impl AutoStorageProperties { - pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: String) -> Self { + pub fn new(auto_storage_base_properties: AutoStorageBaseProperties, last_key_sync: time::OffsetDateTime) -> Self { Self { auto_storage_base_properties, last_key_sync, @@ -734,17 +734,13 @@ pub struct CertificateProperties { pub certificate_base_properties: CertificateBaseProperties, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[doc = "The previous provisioned state of the resource"] #[serde(rename = "previousProvisioningState", default, skip_serializing_if = "Option::is_none")] pub previous_provisioning_state: Option, - #[serde( - rename = "previousProvisioningStateTransitionTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub previous_provisioning_state_transition_time: Option, + #[serde(rename = "previousProvisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub previous_provisioning_state_transition_time: Option, #[doc = "The public key of the certificate."] #[serde(rename = "publicData", default, skip_serializing_if = "Option::is_none")] pub public_data: Option, @@ -1773,18 +1769,18 @@ pub struct PoolProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, - #[serde(rename = "provisioningStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_state_transition_time: Option, + #[serde(rename = "provisioningStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_state_transition_time: Option, #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)."] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -2047,8 +2043,8 @@ pub struct ResizeOperationStatus { pub resize_timeout: Option, #[serde(rename = "nodeDeallocationOption", default, skip_serializing_if = "Option::is_none")] pub node_deallocation_option: Option, - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, diff --git a/services/mgmt/billing/Cargo.toml b/services/mgmt/billing/Cargo.toml index 33ffd0e3247..2d9a2b89533 100644 --- a/services/mgmt/billing/Cargo.toml +++ b/services/mgmt/billing/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/billing/src/package_2019_10_preview/models.rs b/services/mgmt/billing/src/package_2019_10_preview/models.rs index ed4a9d6dcdb..7860f8814c8 100644 --- a/services/mgmt/billing/src/package_2019_10_preview/models.rs +++ b/services/mgmt/billing/src/package_2019_10_preview/models.rs @@ -147,11 +147,11 @@ pub struct AgreementProperties { #[serde(rename = "acceptanceMode", default, skip_serializing_if = "Option::is_none")] pub acceptance_mode: Option, #[doc = "The date from which the agreement is effective."] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "The date when the agreement expires."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The list of participants that participates in acceptance of an agreement."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub participants: Vec, @@ -1609,8 +1609,8 @@ pub mod document { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DownloadUrl { #[doc = "The time in UTC when the download URL will expire."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "The URL to the PDF file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub url: Option, @@ -1663,11 +1663,11 @@ impl Serialize for EligibleProductType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Enrollment { #[doc = "The start date of the enrollment."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The billing currency for the enrollment."] #[serde(default, skip_serializing_if = "Option::is_none")] pub currency: Option, @@ -1716,11 +1716,11 @@ pub struct EnrollmentAccountContext { #[serde(rename = "costCenter", default, skip_serializing_if = "Option::is_none")] pub cost_center: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The ID of the enrollment account."] #[serde(rename = "enrollmentAccountName", default, skip_serializing_if = "Option::is_none")] pub enrollment_account_name: Option, @@ -1761,11 +1761,11 @@ pub struct EnrollmentAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "A department."] #[serde(default, skip_serializing_if = "Option::is_none")] pub department: Option, @@ -1936,17 +1936,17 @@ pub struct InstructionProperties { #[doc = "The amount budgeted for this billing instruction."] pub amount: f64, #[doc = "The date this billing instruction goes into effect."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The date this billing instruction is no longer in effect."] - #[serde(rename = "endDate")] - pub end_date: String, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339")] + pub end_date: time::OffsetDateTime, #[doc = "The date this billing instruction was created."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl InstructionProperties { - pub fn new(amount: f64, start_date: String, end_date: String) -> Self { + pub fn new(amount: f64, start_date: time::OffsetDateTime, end_date: time::OffsetDateTime) -> Self { Self { amount, start_date, @@ -1997,11 +1997,11 @@ impl InvoiceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct InvoiceProperties { #[doc = "The due date for the invoice."] - #[serde(rename = "dueDate", default, skip_serializing_if = "Option::is_none")] - pub due_date: Option, + #[serde(rename = "dueDate", with = "azure_core::date::rfc3339::option")] + pub due_date: Option, #[doc = "The date when the invoice was generated."] - #[serde(rename = "invoiceDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_date: Option, + #[serde(rename = "invoiceDate", with = "azure_core::date::rfc3339::option")] + pub invoice_date: Option, #[doc = "The current status of the invoice."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2030,11 +2030,11 @@ pub struct InvoiceProperties { #[serde(rename = "totalAmount", default, skip_serializing_if = "Option::is_none")] pub total_amount: Option, #[doc = "The start date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_start_date: Option, + #[serde(rename = "invoicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_start_date: Option, #[doc = "The end date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_end_date: Option, + #[serde(rename = "invoicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_end_date: Option, #[doc = "Invoice type."] #[serde(rename = "invoiceType", default, skip_serializing_if = "Option::is_none")] pub invoice_type: Option, @@ -2551,8 +2551,8 @@ pub struct Participants { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the status got changed."] - #[serde(rename = "statusDate", default, skip_serializing_if = "Option::is_none")] - pub status_date: Option, + #[serde(rename = "statusDate", with = "azure_core::date::rfc3339::option")] + pub status_date: Option, #[doc = "The email address of the participant."] #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, @@ -2668,8 +2668,8 @@ pub struct PaymentProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub amount: Option, #[doc = "The date when the payment was made."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "The family of payment method."] #[serde(rename = "paymentMethodFamily", default, skip_serializing_if = "Option::is_none")] pub payment_method_family: Option, @@ -2910,8 +2910,8 @@ pub struct ProductProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "The date when the product was purchased."] - #[serde(rename = "purchaseDate", default, skip_serializing_if = "Option::is_none")] - pub purchase_date: Option, + #[serde(rename = "purchaseDate", with = "azure_core::date::rfc3339::option")] + pub purchase_date: Option, #[doc = "The ID of the type of product."] #[serde(rename = "productTypeId", default, skip_serializing_if = "Option::is_none")] pub product_type_id: Option, @@ -2922,8 +2922,8 @@ pub struct ProductProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the product will be renewed or canceled."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The frequency at which the product will be billed."] #[serde(rename = "billingFrequency", default, skip_serializing_if = "Option::is_none")] pub billing_frequency: Option, @@ -2931,8 +2931,8 @@ pub struct ProductProperties { #[serde(rename = "lastCharge", default, skip_serializing_if = "Option::is_none")] pub last_charge: Option, #[doc = "The date of the last charge."] - #[serde(rename = "lastChargeDate", default, skip_serializing_if = "Option::is_none")] - pub last_charge_date: Option, + #[serde(rename = "lastChargeDate", with = "azure_core::date::rfc3339::option")] + pub last_charge_date: Option, #[doc = "The quantity purchased for the product."] #[serde(default, skip_serializing_if = "Option::is_none")] pub quantity: Option, @@ -3272,11 +3272,11 @@ impl RecipientTransferDetailsListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecipientTransferProperties { #[doc = "The time at which the transfer request was created."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the transfer request expires."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "Type of subscriptions that can be transferred."] #[serde(rename = "allowedProductType", default, skip_serializing_if = "Vec::is_empty")] pub allowed_product_type: Vec, @@ -3302,8 +3302,8 @@ pub struct RecipientTransferProperties { #[serde(rename = "canceledBy", default, skip_serializing_if = "Option::is_none")] pub canceled_by: Option, #[doc = "The time at which the transfer request was last modified."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Detailed transfer status."] #[serde(rename = "detailedTransferStatus", default, skip_serializing_if = "Vec::is_empty")] pub detailed_transfer_status: Vec, @@ -3541,8 +3541,8 @@ pub struct TransactionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub kind: Option, #[doc = "The date of transaction."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Invoice on which the transaction was billed or 'pending' if the transaction is not billed."] #[serde(default, skip_serializing_if = "Option::is_none")] pub invoice: Option, @@ -3619,11 +3619,11 @@ pub struct TransactionProperties { #[serde(rename = "pricingCurrency", default, skip_serializing_if = "Option::is_none")] pub pricing_currency: Option, #[doc = "The date of the purchase of the product, or the start date of the month in which usage started."] - #[serde(rename = "servicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_start_date: Option, + #[serde(rename = "servicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub service_period_start_date: Option, #[doc = "The end date of the product term, or the end date of the month in which usage ended."] - #[serde(rename = "servicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_end_date: Option, + #[serde(rename = "servicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub service_period_end_date: Option, #[doc = "The amount."] #[serde(rename = "subTotal", default, skip_serializing_if = "Option::is_none")] pub sub_total: Option, @@ -3828,11 +3828,11 @@ impl TransferProductRequestProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TransferProperties { #[doc = "The time at which the transfer request was created."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the transfer request expires."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The ID of the invoice section to which the product is billed after the transfer request is completed."] #[serde(rename = "invoiceSectionId", default, skip_serializing_if = "Option::is_none")] pub invoice_section_id: Option, @@ -3864,8 +3864,8 @@ pub struct TransferProperties { #[serde(rename = "canceledBy", default, skip_serializing_if = "Option::is_none")] pub canceled_by: Option, #[doc = "The time at which the transfer request was last modified."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Detailed transfer status."] #[serde(rename = "detailedTransferStatus", default, skip_serializing_if = "Vec::is_empty")] pub detailed_transfer_status: Vec, @@ -3938,8 +3938,8 @@ impl UpdateAutoRenewOperation { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UpdateAutoRenewOperationProperties { #[doc = "The date at which the product will be canceled."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, } impl UpdateAutoRenewOperationProperties { pub fn new() -> Self { diff --git a/services/mgmt/billing/src/package_2020_05/models.rs b/services/mgmt/billing/src/package_2020_05/models.rs index e4531213cad..603d64f6fd7 100644 --- a/services/mgmt/billing/src/package_2020_05/models.rs +++ b/services/mgmt/billing/src/package_2020_05/models.rs @@ -158,11 +158,11 @@ pub struct AgreementProperties { #[serde(rename = "billingProfileInfo", default, skip_serializing_if = "Option::is_none")] pub billing_profile_info: Option, #[doc = "The date from which the agreement is effective."] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "The date when the agreement expires."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The list of participants that participates in acceptance of an agreement."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub participants: Vec, @@ -1669,8 +1669,8 @@ pub mod document { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DownloadUrl { #[doc = "The time in UTC when the download URL will expire."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "The URL to the PDF file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub url: Option, @@ -1684,11 +1684,11 @@ impl DownloadUrl { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Enrollment { #[doc = "The start date of the enrollment."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The billing currency for the enrollment."] #[serde(default, skip_serializing_if = "Option::is_none")] pub currency: Option, @@ -1737,11 +1737,11 @@ pub struct EnrollmentAccountContext { #[serde(rename = "costCenter", default, skip_serializing_if = "Option::is_none")] pub cost_center: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The ID of the enrollment account."] #[serde(rename = "enrollmentAccountName", default, skip_serializing_if = "Option::is_none")] pub enrollment_account_name: Option, @@ -1791,11 +1791,11 @@ pub struct EnrollmentAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "A department."] #[serde(default, skip_serializing_if = "Option::is_none")] pub department: Option, @@ -1950,17 +1950,17 @@ pub struct InstructionProperties { #[doc = "The amount budgeted for this billing instruction."] pub amount: f64, #[doc = "The date this billing instruction goes into effect."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The date this billing instruction is no longer in effect."] - #[serde(rename = "endDate")] - pub end_date: String, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339")] + pub end_date: time::OffsetDateTime, #[doc = "The date this billing instruction was created."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl InstructionProperties { - pub fn new(amount: f64, start_date: String, end_date: String) -> Self { + pub fn new(amount: f64, start_date: time::OffsetDateTime, end_date: time::OffsetDateTime) -> Self { Self { amount, start_date, @@ -2011,11 +2011,11 @@ impl InvoiceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct InvoiceProperties { #[doc = "The due date for the invoice."] - #[serde(rename = "dueDate", default, skip_serializing_if = "Option::is_none")] - pub due_date: Option, + #[serde(rename = "dueDate", with = "azure_core::date::rfc3339::option")] + pub due_date: Option, #[doc = "The date when the invoice was generated."] - #[serde(rename = "invoiceDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_date: Option, + #[serde(rename = "invoiceDate", with = "azure_core::date::rfc3339::option")] + pub invoice_date: Option, #[doc = "The current status of the invoice."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -2044,11 +2044,11 @@ pub struct InvoiceProperties { #[serde(rename = "totalAmount", default, skip_serializing_if = "Option::is_none")] pub total_amount: Option, #[doc = "The start date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_start_date: Option, + #[serde(rename = "invoicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_start_date: Option, #[doc = "The end date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_end_date: Option, + #[serde(rename = "invoicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_end_date: Option, #[doc = "Invoice type."] #[serde(rename = "invoiceType", default, skip_serializing_if = "Option::is_none")] pub invoice_type: Option, @@ -2632,8 +2632,8 @@ pub struct Participants { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the status got changed."] - #[serde(rename = "statusDate", default, skip_serializing_if = "Option::is_none")] - pub status_date: Option, + #[serde(rename = "statusDate", with = "azure_core::date::rfc3339::option")] + pub status_date: Option, #[doc = "The email address of the participant."] #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, @@ -2653,8 +2653,8 @@ pub struct PaymentProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub amount: Option, #[doc = "The date when the payment was made."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "The family of payment method."] #[serde(rename = "paymentMethodFamily", default, skip_serializing_if = "Option::is_none")] pub payment_method_family: Option, @@ -2883,8 +2883,8 @@ pub struct ProductProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "The date when the product was purchased."] - #[serde(rename = "purchaseDate", default, skip_serializing_if = "Option::is_none")] - pub purchase_date: Option, + #[serde(rename = "purchaseDate", with = "azure_core::date::rfc3339::option")] + pub purchase_date: Option, #[doc = "The ID of the type of product."] #[serde(rename = "productTypeId", default, skip_serializing_if = "Option::is_none")] pub product_type_id: Option, @@ -2895,8 +2895,8 @@ pub struct ProductProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the product will be renewed or canceled."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The frequency at which the product will be billed."] #[serde(rename = "billingFrequency", default, skip_serializing_if = "Option::is_none")] pub billing_frequency: Option, @@ -2904,8 +2904,8 @@ pub struct ProductProperties { #[serde(rename = "lastCharge", default, skip_serializing_if = "Option::is_none")] pub last_charge: Option, #[doc = "The date of the last charge."] - #[serde(rename = "lastChargeDate", default, skip_serializing_if = "Option::is_none")] - pub last_charge_date: Option, + #[serde(rename = "lastChargeDate", with = "azure_core::date::rfc3339::option")] + pub last_charge_date: Option, #[doc = "The quantity purchased for the product."] #[serde(default, skip_serializing_if = "Option::is_none")] pub quantity: Option, @@ -3606,8 +3606,8 @@ pub struct TransactionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub kind: Option, #[doc = "The date of transaction."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Invoice on which the transaction was billed or 'pending' if the transaction is not billed."] #[serde(default, skip_serializing_if = "Option::is_none")] pub invoice: Option, @@ -3690,11 +3690,11 @@ pub struct TransactionProperties { #[serde(rename = "pricingCurrency", default, skip_serializing_if = "Option::is_none")] pub pricing_currency: Option, #[doc = "The date of the purchase of the product, or the start date of the month in which usage started."] - #[serde(rename = "servicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_start_date: Option, + #[serde(rename = "servicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub service_period_start_date: Option, #[doc = "The end date of the product term, or the end date of the month in which usage ended."] - #[serde(rename = "servicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_end_date: Option, + #[serde(rename = "servicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub service_period_end_date: Option, #[doc = "The amount."] #[serde(rename = "subTotal", default, skip_serializing_if = "Option::is_none")] pub sub_total: Option, diff --git a/services/mgmt/billing/src/package_2020_09_preview/models.rs b/services/mgmt/billing/src/package_2020_09_preview/models.rs index 78be109d977..856261a1b06 100644 --- a/services/mgmt/billing/src/package_2020_09_preview/models.rs +++ b/services/mgmt/billing/src/package_2020_09_preview/models.rs @@ -158,11 +158,11 @@ pub struct AgreementProperties { #[serde(rename = "billingProfileInfo", default, skip_serializing_if = "Option::is_none")] pub billing_profile_info: Option, #[doc = "The date from which the agreement is effective."] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "The date when the agreement expires."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The list of participants that participates in acceptance of an agreement."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub participants: Vec, @@ -1617,8 +1617,8 @@ pub mod document { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DownloadUrl { #[doc = "The time in UTC when the download URL will expire."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "The URL to the PDF file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub url: Option, @@ -1632,11 +1632,11 @@ impl DownloadUrl { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Enrollment { #[doc = "The start date of the enrollment."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The billing currency for the enrollment."] #[serde(default, skip_serializing_if = "Option::is_none")] pub currency: Option, @@ -1685,11 +1685,11 @@ pub struct EnrollmentAccountContext { #[serde(rename = "costCenter", default, skip_serializing_if = "Option::is_none")] pub cost_center: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The ID of the enrollment account."] #[serde(rename = "enrollmentAccountName", default, skip_serializing_if = "Option::is_none")] pub enrollment_account_name: Option, @@ -1718,11 +1718,11 @@ pub struct EnrollmentAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "A department."] #[serde(default, skip_serializing_if = "Option::is_none")] pub department: Option, @@ -1851,17 +1851,17 @@ pub struct InstructionProperties { #[doc = "The amount budgeted for this billing instruction."] pub amount: f64, #[doc = "The date this billing instruction goes into effect."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The date this billing instruction is no longer in effect."] - #[serde(rename = "endDate")] - pub end_date: String, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339")] + pub end_date: time::OffsetDateTime, #[doc = "The date this billing instruction was created."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl InstructionProperties { - pub fn new(amount: f64, start_date: String, end_date: String) -> Self { + pub fn new(amount: f64, start_date: time::OffsetDateTime, end_date: time::OffsetDateTime) -> Self { Self { amount, start_date, @@ -1912,11 +1912,11 @@ impl InvoiceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct InvoiceProperties { #[doc = "The due date for the invoice."] - #[serde(rename = "dueDate", default, skip_serializing_if = "Option::is_none")] - pub due_date: Option, + #[serde(rename = "dueDate", with = "azure_core::date::rfc3339::option")] + pub due_date: Option, #[doc = "The date when the invoice was generated."] - #[serde(rename = "invoiceDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_date: Option, + #[serde(rename = "invoiceDate", with = "azure_core::date::rfc3339::option")] + pub invoice_date: Option, #[doc = "The current status of the invoice."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1945,11 +1945,11 @@ pub struct InvoiceProperties { #[serde(rename = "totalAmount", default, skip_serializing_if = "Option::is_none")] pub total_amount: Option, #[doc = "The start date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_start_date: Option, + #[serde(rename = "invoicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_start_date: Option, #[doc = "The end date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_end_date: Option, + #[serde(rename = "invoicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_end_date: Option, #[doc = "Invoice type."] #[serde(rename = "invoiceType", default, skip_serializing_if = "Option::is_none")] pub invoice_type: Option, @@ -2533,8 +2533,8 @@ pub struct Participants { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the status got changed."] - #[serde(rename = "statusDate", default, skip_serializing_if = "Option::is_none")] - pub status_date: Option, + #[serde(rename = "statusDate", with = "azure_core::date::rfc3339::option")] + pub status_date: Option, #[doc = "The email address of the participant."] #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, @@ -2554,8 +2554,8 @@ pub struct PaymentProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub amount: Option, #[doc = "The date when the payment was made."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "The family of payment method."] #[serde(rename = "paymentMethodFamily", default, skip_serializing_if = "Option::is_none")] pub payment_method_family: Option, @@ -2784,8 +2784,8 @@ pub struct ProductProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "The date when the product was purchased."] - #[serde(rename = "purchaseDate", default, skip_serializing_if = "Option::is_none")] - pub purchase_date: Option, + #[serde(rename = "purchaseDate", with = "azure_core::date::rfc3339::option")] + pub purchase_date: Option, #[doc = "The ID of the type of product."] #[serde(rename = "productTypeId", default, skip_serializing_if = "Option::is_none")] pub product_type_id: Option, @@ -2796,8 +2796,8 @@ pub struct ProductProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the product will be renewed or canceled."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The frequency at which the product will be billed."] #[serde(rename = "billingFrequency", default, skip_serializing_if = "Option::is_none")] pub billing_frequency: Option, @@ -2805,8 +2805,8 @@ pub struct ProductProperties { #[serde(rename = "lastCharge", default, skip_serializing_if = "Option::is_none")] pub last_charge: Option, #[doc = "The date of the last charge."] - #[serde(rename = "lastChargeDate", default, skip_serializing_if = "Option::is_none")] - pub last_charge_date: Option, + #[serde(rename = "lastChargeDate", with = "azure_core::date::rfc3339::option")] + pub last_charge_date: Option, #[doc = "The quantity purchased for the product."] #[serde(default, skip_serializing_if = "Option::is_none")] pub quantity: Option, @@ -3204,11 +3204,11 @@ pub struct PromotionResponseProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the DateTime when the promotion would come in effect"] - #[serde(rename = "effectiveDateTime", default, skip_serializing_if = "Option::is_none")] - pub effective_date_time: Option, + #[serde(rename = "effectiveDateTime", with = "azure_core::date::rfc3339::option")] + pub effective_date_time: Option, #[doc = "Last update time of the promotion resource."] - #[serde(rename = "lastUpdatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_time: Option, + #[serde(rename = "lastUpdatedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -3663,8 +3663,8 @@ pub struct TransactionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub kind: Option, #[doc = "The date of transaction."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Invoice on which the transaction was billed or 'pending' if the transaction is not billed."] #[serde(default, skip_serializing_if = "Option::is_none")] pub invoice: Option, @@ -3747,11 +3747,11 @@ pub struct TransactionProperties { #[serde(rename = "pricingCurrency", default, skip_serializing_if = "Option::is_none")] pub pricing_currency: Option, #[doc = "The date of the purchase of the product, or the start date of the month in which usage started."] - #[serde(rename = "servicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_start_date: Option, + #[serde(rename = "servicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub service_period_start_date: Option, #[doc = "The end date of the product term, or the end date of the month in which usage ended."] - #[serde(rename = "servicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_end_date: Option, + #[serde(rename = "servicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub service_period_end_date: Option, #[doc = "The amount."] #[serde(rename = "subTotal", default, skip_serializing_if = "Option::is_none")] pub sub_total: Option, diff --git a/services/mgmt/billing/src/package_2020_11_preview/models.rs b/services/mgmt/billing/src/package_2020_11_preview/models.rs index 57cb7753cc2..c47f05cc30c 100644 --- a/services/mgmt/billing/src/package_2020_11_preview/models.rs +++ b/services/mgmt/billing/src/package_2020_11_preview/models.rs @@ -158,11 +158,11 @@ pub struct AgreementProperties { #[serde(rename = "billingProfileInfo", default, skip_serializing_if = "Option::is_none")] pub billing_profile_info: Option, #[doc = "The date from which the agreement is effective."] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "The date when the agreement expires."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The list of participants that participates in acceptance of an agreement."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub participants: Vec, @@ -1617,8 +1617,8 @@ pub mod document { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DownloadUrl { #[doc = "The time in UTC when the download URL will expire."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "The URL to the PDF file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub url: Option, @@ -1632,11 +1632,11 @@ impl DownloadUrl { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Enrollment { #[doc = "The start date of the enrollment."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The billing currency for the enrollment."] #[serde(default, skip_serializing_if = "Option::is_none")] pub currency: Option, @@ -1685,11 +1685,11 @@ pub struct EnrollmentAccountContext { #[serde(rename = "costCenter", default, skip_serializing_if = "Option::is_none")] pub cost_center: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The ID of the enrollment account."] #[serde(rename = "enrollmentAccountName", default, skip_serializing_if = "Option::is_none")] pub enrollment_account_name: Option, @@ -1718,11 +1718,11 @@ pub struct EnrollmentAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start date of the enrollment account."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The end date of the enrollment account."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "A department."] #[serde(default, skip_serializing_if = "Option::is_none")] pub department: Option, @@ -1851,17 +1851,17 @@ pub struct InstructionProperties { #[doc = "The amount budgeted for this billing instruction."] pub amount: f64, #[doc = "The date this billing instruction goes into effect."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The date this billing instruction is no longer in effect."] - #[serde(rename = "endDate")] - pub end_date: String, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339")] + pub end_date: time::OffsetDateTime, #[doc = "The date this billing instruction was created."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl InstructionProperties { - pub fn new(amount: f64, start_date: String, end_date: String) -> Self { + pub fn new(amount: f64, start_date: time::OffsetDateTime, end_date: time::OffsetDateTime) -> Self { Self { amount, start_date, @@ -1912,11 +1912,11 @@ impl InvoiceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct InvoiceProperties { #[doc = "The due date for the invoice."] - #[serde(rename = "dueDate", default, skip_serializing_if = "Option::is_none")] - pub due_date: Option, + #[serde(rename = "dueDate", with = "azure_core::date::rfc3339::option")] + pub due_date: Option, #[doc = "The date when the invoice was generated."] - #[serde(rename = "invoiceDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_date: Option, + #[serde(rename = "invoiceDate", with = "azure_core::date::rfc3339::option")] + pub invoice_date: Option, #[doc = "The current status of the invoice."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1945,11 +1945,11 @@ pub struct InvoiceProperties { #[serde(rename = "totalAmount", default, skip_serializing_if = "Option::is_none")] pub total_amount: Option, #[doc = "The start date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_start_date: Option, + #[serde(rename = "invoicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_start_date: Option, #[doc = "The end date of the billing period for which the invoice is generated."] - #[serde(rename = "invoicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub invoice_period_end_date: Option, + #[serde(rename = "invoicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub invoice_period_end_date: Option, #[doc = "Invoice type."] #[serde(rename = "invoiceType", default, skip_serializing_if = "Option::is_none")] pub invoice_type: Option, @@ -2533,8 +2533,8 @@ pub struct Participants { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the status got changed."] - #[serde(rename = "statusDate", default, skip_serializing_if = "Option::is_none")] - pub status_date: Option, + #[serde(rename = "statusDate", with = "azure_core::date::rfc3339::option")] + pub status_date: Option, #[doc = "The email address of the participant."] #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, @@ -2554,8 +2554,8 @@ pub struct PaymentProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub amount: Option, #[doc = "The date when the payment was made."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "The family of payment method."] #[serde(rename = "paymentMethodFamily", default, skip_serializing_if = "Option::is_none")] pub payment_method_family: Option, @@ -2784,8 +2784,8 @@ pub struct ProductProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "The date when the product was purchased."] - #[serde(rename = "purchaseDate", default, skip_serializing_if = "Option::is_none")] - pub purchase_date: Option, + #[serde(rename = "purchaseDate", with = "azure_core::date::rfc3339::option")] + pub purchase_date: Option, #[doc = "The ID of the type of product."] #[serde(rename = "productTypeId", default, skip_serializing_if = "Option::is_none")] pub product_type_id: Option, @@ -2796,8 +2796,8 @@ pub struct ProductProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The date when the product will be renewed or canceled."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The frequency at which the product will be billed."] #[serde(rename = "billingFrequency", default, skip_serializing_if = "Option::is_none")] pub billing_frequency: Option, @@ -2805,8 +2805,8 @@ pub struct ProductProperties { #[serde(rename = "lastCharge", default, skip_serializing_if = "Option::is_none")] pub last_charge: Option, #[doc = "The date of the last charge."] - #[serde(rename = "lastChargeDate", default, skip_serializing_if = "Option::is_none")] - pub last_charge_date: Option, + #[serde(rename = "lastChargeDate", with = "azure_core::date::rfc3339::option")] + pub last_charge_date: Option, #[doc = "The quantity purchased for the product."] #[serde(default, skip_serializing_if = "Option::is_none")] pub quantity: Option, @@ -3192,11 +3192,11 @@ pub struct PromotionResponseProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the DateTime when the promotion would come in effect"] - #[serde(rename = "effectiveDateTime", default, skip_serializing_if = "Option::is_none")] - pub effective_date_time: Option, + #[serde(rename = "effectiveDateTime", with = "azure_core::date::rfc3339::option")] + pub effective_date_time: Option, #[doc = "Last update time of the promotion resource."] - #[serde(rename = "lastUpdatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_time: Option, + #[serde(rename = "lastUpdatedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -3651,8 +3651,8 @@ pub struct TransactionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub kind: Option, #[doc = "The date of transaction."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Invoice on which the transaction was billed or 'pending' if the transaction is not billed."] #[serde(default, skip_serializing_if = "Option::is_none")] pub invoice: Option, @@ -3735,11 +3735,11 @@ pub struct TransactionProperties { #[serde(rename = "pricingCurrency", default, skip_serializing_if = "Option::is_none")] pub pricing_currency: Option, #[doc = "The date of the purchase of the product, or the start date of the month in which usage started."] - #[serde(rename = "servicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_start_date: Option, + #[serde(rename = "servicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub service_period_start_date: Option, #[doc = "The end date of the product term, or the end date of the month in which usage ended."] - #[serde(rename = "servicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_end_date: Option, + #[serde(rename = "servicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub service_period_end_date: Option, #[doc = "The amount."] #[serde(rename = "subTotal", default, skip_serializing_if = "Option::is_none")] pub sub_total: Option, diff --git a/services/mgmt/billing/src/package_2021_10/models.rs b/services/mgmt/billing/src/package_2021_10/models.rs index 466ddfa5365..fbb56aceb1b 100644 --- a/services/mgmt/billing/src/package_2021_10/models.rs +++ b/services/mgmt/billing/src/package_2021_10/models.rs @@ -173,8 +173,8 @@ pub struct BillingSubscriptionProperties { #[serde(rename = "productTypeId", default, skip_serializing_if = "Option::is_none")] pub product_type_id: Option, #[doc = "The purchase date of the subscription in UTC time."] - #[serde(rename = "purchaseDate", default, skip_serializing_if = "Option::is_none")] - pub purchase_date: Option, + #[serde(rename = "purchaseDate", with = "azure_core::date::rfc3339::option")] + pub purchase_date: Option, #[doc = "The number of licenses purchased for the subscription"] #[serde(default, skip_serializing_if = "Option::is_none")] pub quantity: Option, @@ -203,11 +203,11 @@ pub struct BillingSubscriptionProperties { #[serde(rename = "termDuration", default, skip_serializing_if = "Option::is_none")] pub term_duration: Option, #[doc = "The start date of the term in UTC time."] - #[serde(rename = "termStartDate", default, skip_serializing_if = "Option::is_none")] - pub term_start_date: Option, + #[serde(rename = "termStartDate", with = "azure_core::date::rfc3339::option")] + pub term_start_date: Option, #[doc = "The end date of the term in UTC time."] - #[serde(rename = "termEndDate", default, skip_serializing_if = "Option::is_none")] - pub term_end_date: Option, + #[serde(rename = "termEndDate", with = "azure_core::date::rfc3339::option")] + pub term_end_date: Option, } impl BillingSubscriptionProperties { pub fn new() -> Self { @@ -455,8 +455,8 @@ pub struct EnrollmentAccountSubscriptionDetails { #[serde(rename = "subscriptionEnrollmentAccountStatus", default, skip_serializing_if = "Option::is_none")] pub subscription_enrollment_account_status: Option, #[doc = "The enrollment Account and the subscription association start date. This field is available only for the Enterprise Agreement billing accounts."] - #[serde(rename = "enrollmentAccountStartDate", default, skip_serializing_if = "Option::is_none")] - pub enrollment_account_start_date: Option, + #[serde(rename = "enrollmentAccountStartDate", with = "azure_core::date::rfc3339::option")] + pub enrollment_account_start_date: Option, } impl EnrollmentAccountSubscriptionDetails { pub fn new() -> Self { diff --git a/services/mgmt/blockchain/Cargo.toml b/services/mgmt/blockchain/Cargo.toml index 70b73b8c2f5..9ea00a72149 100644 --- a/services/mgmt/blockchain/Cargo.toml +++ b/services/mgmt/blockchain/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs b/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs index 87fdf677107..220a5143a36 100644 --- a/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs +++ b/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs @@ -340,11 +340,11 @@ pub struct ConsortiumMember { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets the consortium member join date."] - #[serde(rename = "joinDate", default, skip_serializing_if = "Option::is_none")] - pub join_date: Option, + #[serde(rename = "joinDate", with = "azure_core::date::rfc3339::option")] + pub join_date: Option, #[doc = "Gets the consortium member modified date."] - #[serde(rename = "dateModified", default, skip_serializing_if = "Option::is_none")] - pub date_modified: Option, + #[serde(rename = "dateModified", with = "azure_core::date::rfc3339::option")] + pub date_modified: Option, } impl ConsortiumMember { pub fn new() -> Self { @@ -472,11 +472,11 @@ pub struct OperationResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Gets or sets the operation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets or sets the operation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl OperationResult { pub fn new() -> Self { diff --git a/services/mgmt/blueprint/Cargo.toml b/services/mgmt/blueprint/Cargo.toml index a2802f270b1..6378ccd03a7 100644 --- a/services/mgmt/blueprint/Cargo.toml +++ b/services/mgmt/blueprint/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/blueprint/src/package_2018_11_preview/models.rs b/services/mgmt/blueprint/src/package_2018_11_preview/models.rs index 5c15797c5a2..21afbe204ef 100644 --- a/services/mgmt/blueprint/src/package_2018_11_preview/models.rs +++ b/services/mgmt/blueprint/src/package_2018_11_preview/models.rs @@ -549,11 +549,11 @@ impl BlueprintResourcePropertiesBase { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BlueprintResourceStatusBase { #[doc = "Creation time of this blueprint definition."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "Last modified time of this blueprint definition."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl BlueprintResourceStatusBase { pub fn new() -> Self { diff --git a/services/mgmt/botservice/Cargo.toml b/services/mgmt/botservice/Cargo.toml index 9f2b87e6f9a..78cfc4628a8 100644 --- a/services/mgmt/botservice/Cargo.toml +++ b/services/mgmt/botservice/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/botservice/src/package_preview_2021_05/models.rs b/services/mgmt/botservice/src/package_preview_2021_05/models.rs index 53f71b3d717..c5d09f9a737 100644 --- a/services/mgmt/botservice/src/package_preview_2021_05/models.rs +++ b/services/mgmt/botservice/src/package_preview_2021_05/models.rs @@ -1118,8 +1118,8 @@ pub struct OperationResultsDescription { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time that the operation was started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl OperationResultsDescription { pub fn new() -> Self { diff --git a/services/mgmt/cdn/Cargo.toml b/services/mgmt/cdn/Cargo.toml index 6c4c48bb27f..9e72ee836b9 100644 --- a/services/mgmt/cdn/Cargo.toml +++ b/services/mgmt/cdn/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/cdn/src/package_2020_09/models.rs b/services/mgmt/cdn/src/package_2020_09/models.rs index d304859294b..c32aab40c27 100644 --- a/services/mgmt/cdn/src/package_2020_09/models.rs +++ b/services/mgmt/cdn/src/package_2020_09/models.rs @@ -3773,10 +3773,10 @@ pub mod match_condition { #[doc = "Metrics Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MetricsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub granularity: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] @@ -4612,10 +4612,10 @@ pub mod query_string_match_condition_parameters { #[doc = "Rankings Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RankingsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub tables: Vec, } @@ -6092,8 +6092,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6101,8 +6101,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -7139,10 +7139,10 @@ impl ValidationToken { #[doc = "Waf Metrics Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WafMetricsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub granularity: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] @@ -7168,10 +7168,10 @@ pub mod waf_metrics_response { #[doc = "Waf Rankings Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WafRankingsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, #[serde(default, skip_serializing_if = "Vec::is_empty")] diff --git a/services/mgmt/cdn/src/package_2020_09/operations.rs b/services/mgmt/cdn/src/package_2020_09/operations.rs index 32123fe73b0..c79f2d9fd68 100644 --- a/services/mgmt/cdn/src/package_2020_09/operations.rs +++ b/services/mgmt/cdn/src/package_2020_09/operations.rs @@ -8597,8 +8597,8 @@ pub mod log_analytics { resource_group_name: impl Into, profile_name: impl Into, metrics: Vec, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, granularity: impl Into, custom_domains: Vec, protocols: Vec, @@ -8633,8 +8633,8 @@ pub mod log_analytics { rankings: Vec, metrics: Vec, max_ranking: i32, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, ) -> get_log_analytics_rankings::Builder { get_log_analytics_rankings::Builder { client: self.0.clone(), @@ -8699,8 +8699,8 @@ pub mod log_analytics { resource_group_name: impl Into, profile_name: impl Into, metrics: Vec, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, granularity: impl Into, ) -> get_waf_log_analytics_metrics::Builder { get_waf_log_analytics_metrics::Builder { @@ -8729,8 +8729,8 @@ pub mod log_analytics { resource_group_name: impl Into, profile_name: impl Into, metrics: Vec, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, max_ranking: i32, rankings: Vec, ) -> get_waf_log_analytics_rankings::Builder { @@ -8759,8 +8759,8 @@ pub mod log_analytics { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) metrics: Vec, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) granularity: String, pub(crate) custom_domains: Vec, pub(crate) protocols: Vec, @@ -8804,33 +8804,37 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2020-09-01"); let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let granularity = &this.granularity; req.url_mut().query_pairs_mut().append_pair("granularity", granularity); let group_by = &this.group_by; for value in &this.group_by { - req.url_mut().query_pairs_mut().append_pair("groupBy", value); + req.url_mut().query_pairs_mut().append_pair("groupBy", &value.to_string()); } let continents = &this.continents; for value in &this.continents { - req.url_mut().query_pairs_mut().append_pair("continents", value); + req.url_mut().query_pairs_mut().append_pair("continents", &value.to_string()); } let country_or_regions = &this.country_or_regions; for value in &this.country_or_regions { - req.url_mut().query_pairs_mut().append_pair("countryOrRegions", value); + req.url_mut().query_pairs_mut().append_pair("countryOrRegions", &value.to_string()); } let custom_domains = &this.custom_domains; for value in &this.custom_domains { - req.url_mut().query_pairs_mut().append_pair("customDomains", value); + req.url_mut().query_pairs_mut().append_pair("customDomains", &value.to_string()); } let protocols = &this.protocols; for value in &this.protocols { - req.url_mut().query_pairs_mut().append_pair("protocols", value); + req.url_mut().query_pairs_mut().append_pair("protocols", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -8864,8 +8868,8 @@ pub mod log_analytics { pub(crate) rankings: Vec, pub(crate) metrics: Vec, pub(crate) max_ranking: i32, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) custom_domains: Vec, } impl Builder { @@ -8896,21 +8900,25 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2020-09-01"); let rankings = &this.rankings; for value in &this.rankings { - req.url_mut().query_pairs_mut().append_pair("rankings", value); + req.url_mut().query_pairs_mut().append_pair("rankings", &value.to_string()); } let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let max_ranking = &this.max_ranking; req.url_mut().query_pairs_mut().append_pair("maxRanking", &max_ranking.to_string()); let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let custom_domains = &this.custom_domains; for value in &this.custom_domains { - req.url_mut().query_pairs_mut().append_pair("customDomains", value); + req.url_mut().query_pairs_mut().append_pair("customDomains", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -9046,8 +9054,8 @@ pub mod log_analytics { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) metrics: Vec, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) granularity: String, pub(crate) actions: Vec, pub(crate) group_by: Vec, @@ -9089,25 +9097,29 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2020-09-01"); let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let granularity = &this.granularity; req.url_mut().query_pairs_mut().append_pair("granularity", granularity); let actions = &this.actions; for value in &this.actions { - req.url_mut().query_pairs_mut().append_pair("actions", value); + req.url_mut().query_pairs_mut().append_pair("actions", &value.to_string()); } let group_by = &this.group_by; for value in &this.group_by { - req.url_mut().query_pairs_mut().append_pair("groupBy", value); + req.url_mut().query_pairs_mut().append_pair("groupBy", &value.to_string()); } let rule_types = &this.rule_types; for value in &this.rule_types { - req.url_mut().query_pairs_mut().append_pair("ruleTypes", value); + req.url_mut().query_pairs_mut().append_pair("ruleTypes", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -9139,8 +9151,8 @@ pub mod log_analytics { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) metrics: Vec, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) max_ranking: i32, pub(crate) rankings: Vec, pub(crate) actions: Vec, @@ -9178,25 +9190,29 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2020-09-01"); let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let max_ranking = &this.max_ranking; req.url_mut().query_pairs_mut().append_pair("maxRanking", &max_ranking.to_string()); let rankings = &this.rankings; for value in &this.rankings { - req.url_mut().query_pairs_mut().append_pair("rankings", value); + req.url_mut().query_pairs_mut().append_pair("rankings", &value.to_string()); } let actions = &this.actions; for value in &this.actions { - req.url_mut().query_pairs_mut().append_pair("actions", value); + req.url_mut().query_pairs_mut().append_pair("actions", &value.to_string()); } let rule_types = &this.rule_types; for value in &this.rule_types { - req.url_mut().query_pairs_mut().append_pair("ruleTypes", value); + req.url_mut().query_pairs_mut().append_pair("ruleTypes", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/cdn/src/package_2021_06/models.rs b/services/mgmt/cdn/src/package_2021_06/models.rs index 53f2f081dec..357988e4b7d 100644 --- a/services/mgmt/cdn/src/package_2021_06/models.rs +++ b/services/mgmt/cdn/src/package_2021_06/models.rs @@ -4701,10 +4701,10 @@ impl MetricSpecification { #[doc = "Metrics Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MetricsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub granularity: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] @@ -5769,10 +5769,10 @@ pub mod query_string_match_condition_parameters { #[doc = "Rankings Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RankingsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub tables: Vec, } @@ -7679,8 +7679,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -7688,8 +7688,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -8679,10 +8679,10 @@ impl ValidationToken { #[doc = "Waf Metrics Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WafMetricsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub granularity: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] @@ -8708,10 +8708,10 @@ pub mod waf_metrics_response { #[doc = "Waf Rankings Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WafRankingsResponse { - #[serde(rename = "dateTimeBegin", default, skip_serializing_if = "Option::is_none")] - pub date_time_begin: Option, - #[serde(rename = "dateTimeEnd", default, skip_serializing_if = "Option::is_none")] - pub date_time_end: Option, + #[serde(rename = "dateTimeBegin", with = "azure_core::date::rfc3339::option")] + pub date_time_begin: Option, + #[serde(rename = "dateTimeEnd", with = "azure_core::date::rfc3339::option")] + pub date_time_end: Option, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, #[serde(default, skip_serializing_if = "Vec::is_empty")] diff --git a/services/mgmt/cdn/src/package_2021_06/operations.rs b/services/mgmt/cdn/src/package_2021_06/operations.rs index 425fa0f1677..01932b8e570 100644 --- a/services/mgmt/cdn/src/package_2021_06/operations.rs +++ b/services/mgmt/cdn/src/package_2021_06/operations.rs @@ -5115,8 +5115,8 @@ pub mod log_analytics { resource_group_name: impl Into, profile_name: impl Into, metrics: Vec, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, granularity: impl Into, custom_domains: Vec, protocols: Vec, @@ -5151,8 +5151,8 @@ pub mod log_analytics { rankings: Vec, metrics: Vec, max_ranking: i32, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, ) -> get_log_analytics_rankings::Builder { get_log_analytics_rankings::Builder { client: self.0.clone(), @@ -5217,8 +5217,8 @@ pub mod log_analytics { resource_group_name: impl Into, profile_name: impl Into, metrics: Vec, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, granularity: impl Into, ) -> get_waf_log_analytics_metrics::Builder { get_waf_log_analytics_metrics::Builder { @@ -5247,8 +5247,8 @@ pub mod log_analytics { resource_group_name: impl Into, profile_name: impl Into, metrics: Vec, - date_time_begin: impl Into, - date_time_end: impl Into, + date_time_begin: impl Into, + date_time_end: impl Into, max_ranking: i32, rankings: Vec, ) -> get_waf_log_analytics_rankings::Builder { @@ -5277,8 +5277,8 @@ pub mod log_analytics { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) metrics: Vec, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) granularity: String, pub(crate) custom_domains: Vec, pub(crate) protocols: Vec, @@ -5322,33 +5322,37 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2021-06-01"); let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let granularity = &this.granularity; req.url_mut().query_pairs_mut().append_pair("granularity", granularity); let group_by = &this.group_by; for value in &this.group_by { - req.url_mut().query_pairs_mut().append_pair("groupBy", value); + req.url_mut().query_pairs_mut().append_pair("groupBy", &value.to_string()); } let continents = &this.continents; for value in &this.continents { - req.url_mut().query_pairs_mut().append_pair("continents", value); + req.url_mut().query_pairs_mut().append_pair("continents", &value.to_string()); } let country_or_regions = &this.country_or_regions; for value in &this.country_or_regions { - req.url_mut().query_pairs_mut().append_pair("countryOrRegions", value); + req.url_mut().query_pairs_mut().append_pair("countryOrRegions", &value.to_string()); } let custom_domains = &this.custom_domains; for value in &this.custom_domains { - req.url_mut().query_pairs_mut().append_pair("customDomains", value); + req.url_mut().query_pairs_mut().append_pair("customDomains", &value.to_string()); } let protocols = &this.protocols; for value in &this.protocols { - req.url_mut().query_pairs_mut().append_pair("protocols", value); + req.url_mut().query_pairs_mut().append_pair("protocols", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -5382,8 +5386,8 @@ pub mod log_analytics { pub(crate) rankings: Vec, pub(crate) metrics: Vec, pub(crate) max_ranking: i32, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) custom_domains: Vec, } impl Builder { @@ -5414,21 +5418,25 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2021-06-01"); let rankings = &this.rankings; for value in &this.rankings { - req.url_mut().query_pairs_mut().append_pair("rankings", value); + req.url_mut().query_pairs_mut().append_pair("rankings", &value.to_string()); } let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let max_ranking = &this.max_ranking; req.url_mut().query_pairs_mut().append_pair("maxRanking", &max_ranking.to_string()); let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let custom_domains = &this.custom_domains; for value in &this.custom_domains { - req.url_mut().query_pairs_mut().append_pair("customDomains", value); + req.url_mut().query_pairs_mut().append_pair("customDomains", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -5564,8 +5572,8 @@ pub mod log_analytics { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) metrics: Vec, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) granularity: String, pub(crate) actions: Vec, pub(crate) group_by: Vec, @@ -5607,25 +5615,29 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2021-06-01"); let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let granularity = &this.granularity; req.url_mut().query_pairs_mut().append_pair("granularity", granularity); let actions = &this.actions; for value in &this.actions { - req.url_mut().query_pairs_mut().append_pair("actions", value); + req.url_mut().query_pairs_mut().append_pair("actions", &value.to_string()); } let group_by = &this.group_by; for value in &this.group_by { - req.url_mut().query_pairs_mut().append_pair("groupBy", value); + req.url_mut().query_pairs_mut().append_pair("groupBy", &value.to_string()); } let rule_types = &this.rule_types; for value in &this.rule_types { - req.url_mut().query_pairs_mut().append_pair("ruleTypes", value); + req.url_mut().query_pairs_mut().append_pair("ruleTypes", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); @@ -5657,8 +5669,8 @@ pub mod log_analytics { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) metrics: Vec, - pub(crate) date_time_begin: String, - pub(crate) date_time_end: String, + pub(crate) date_time_begin: time::OffsetDateTime, + pub(crate) date_time_end: time::OffsetDateTime, pub(crate) max_ranking: i32, pub(crate) rankings: Vec, pub(crate) actions: Vec, @@ -5696,25 +5708,29 @@ pub mod log_analytics { .append_pair(azure_core::query_param::API_VERSION, "2021-06-01"); let metrics = &this.metrics; for value in &this.metrics { - req.url_mut().query_pairs_mut().append_pair("metrics", value); + req.url_mut().query_pairs_mut().append_pair("metrics", &value.to_string()); } let date_time_begin = &this.date_time_begin; - req.url_mut().query_pairs_mut().append_pair("dateTimeBegin", date_time_begin); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeBegin", &date_time_begin.to_string()); let date_time_end = &this.date_time_end; - req.url_mut().query_pairs_mut().append_pair("dateTimeEnd", date_time_end); + req.url_mut() + .query_pairs_mut() + .append_pair("dateTimeEnd", &date_time_end.to_string()); let max_ranking = &this.max_ranking; req.url_mut().query_pairs_mut().append_pair("maxRanking", &max_ranking.to_string()); let rankings = &this.rankings; for value in &this.rankings { - req.url_mut().query_pairs_mut().append_pair("rankings", value); + req.url_mut().query_pairs_mut().append_pair("rankings", &value.to_string()); } let actions = &this.actions; for value in &this.actions { - req.url_mut().query_pairs_mut().append_pair("actions", value); + req.url_mut().query_pairs_mut().append_pair("actions", &value.to_string()); } let rule_types = &this.rule_types; for value in &this.rule_types { - req.url_mut().query_pairs_mut().append_pair("ruleTypes", value); + req.url_mut().query_pairs_mut().append_pair("ruleTypes", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/changeanalysis/Cargo.toml b/services/mgmt/changeanalysis/Cargo.toml index e64552a42d9..f49c09b8dc6 100644 --- a/services/mgmt/changeanalysis/Cargo.toml +++ b/services/mgmt/changeanalysis/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs index 5406e17bd21..868715db18b 100644 --- a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs +++ b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs @@ -372,8 +372,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "A string identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -381,8 +381,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs b/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs index 2d385bfc752..dd64c318097 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs @@ -46,8 +46,8 @@ pub struct ChangeProperties { #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, #[doc = "The time when the change is detected."] - #[serde(rename = "timeStamp", default, skip_serializing_if = "Option::is_none")] - pub time_stamp: Option, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339::option")] + pub time_stamp: Option, #[doc = "The list of identities who might initiated the change.\r\nThe identity could be user name (email address) or the object ID of the Service Principal."] #[serde(rename = "initiatedByList", default, skip_serializing_if = "Vec::is_empty")] pub initiated_by_list: Vec, diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs b/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs index c28d216c6da..0ba997de0a0 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs @@ -186,7 +186,12 @@ pub mod resource_changes { #[doc = "* `resource_id`: The identifier of the resource."] #[doc = "* `start_time`: Specifies the start time of the changes request."] #[doc = "* `end_time`: Specifies the end time of the changes request."] - pub fn list(&self, resource_id: impl Into, start_time: impl Into, end_time: impl Into) -> list::Builder { + pub fn list( + &self, + resource_id: impl Into, + start_time: impl Into, + end_time: impl Into, + ) -> list::Builder { list::Builder { client: self.0.clone(), resource_id: resource_id.into(), @@ -203,8 +208,8 @@ pub mod resource_changes { pub struct Builder { pub(crate) client: super::super::Client, pub(crate) resource_id: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, pub(crate) skip_token: Option, } impl Builder { @@ -256,9 +261,9 @@ pub mod resource_changes { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2021-04-01"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("$startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("$startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("$endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("$endTime", &end_time.to_string()); if let Some(skip_token) = &this.skip_token { req.url_mut().query_pairs_mut().append_pair("$skipToken", skip_token); } @@ -302,8 +307,8 @@ pub mod changes { &self, subscription_id: impl Into, resource_group_name: impl Into, - start_time: impl Into, - end_time: impl Into, + start_time: impl Into, + end_time: impl Into, ) -> list_changes_by_resource_group::Builder { list_changes_by_resource_group::Builder { client: self.0.clone(), @@ -323,8 +328,8 @@ pub mod changes { pub fn list_changes_by_subscription( &self, subscription_id: impl Into, - start_time: impl Into, - end_time: impl Into, + start_time: impl Into, + end_time: impl Into, ) -> list_changes_by_subscription::Builder { list_changes_by_subscription::Builder { client: self.0.clone(), @@ -343,8 +348,8 @@ pub mod changes { pub(crate) client: super::super::Client, pub(crate) subscription_id: String, pub(crate) resource_group_name: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, pub(crate) skip_token: Option, } impl Builder { @@ -397,9 +402,9 @@ pub mod changes { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2021-04-01"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("$startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("$startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("$endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("$endTime", &end_time.to_string()); if let Some(skip_token) = &this.skip_token { req.url_mut().query_pairs_mut().append_pair("$skipToken", skip_token); } @@ -433,8 +438,8 @@ pub mod changes { pub struct Builder { pub(crate) client: super::super::Client, pub(crate) subscription_id: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, pub(crate) skip_token: Option, } impl Builder { @@ -486,9 +491,9 @@ pub mod changes { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2021-04-01"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("$startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("$startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("$endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("$endTime", &end_time.to_string()); if let Some(skip_token) = &this.skip_token { req.url_mut().query_pairs_mut().append_pair("$skipToken", skip_token); } diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs index 93fc52640db..c19654462f0 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs @@ -46,8 +46,8 @@ pub struct ChangeProperties { #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, #[doc = "The time when the change is detected."] - #[serde(rename = "timeStamp", default, skip_serializing_if = "Option::is_none")] - pub time_stamp: Option, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339::option")] + pub time_stamp: Option, #[doc = "The list of identities who might initiated the change.\r\nThe identity could be user name (email address) or the object ID of the Service Principal."] #[serde(rename = "initiatedByList", default, skip_serializing_if = "Vec::is_empty")] pub initiated_by_list: Vec, @@ -343,13 +343,14 @@ pub struct ResourceGraphSnapshotData { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The time when the snapshot was created.\nThe snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed."] - pub timestamp: String, + #[serde(with = "azure_core::date::rfc3339")] + pub timestamp: time::OffsetDateTime, #[doc = "The resource snapshot content (in resourceChangeDetails response only)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, } impl ResourceGraphSnapshotData { - pub fn new(timestamp: String) -> Self { + pub fn new(timestamp: time::OffsetDateTime) -> Self { Self { snapshot_id: None, timestamp, diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs index 998f8a94fd8..4f0a6df8a18 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs @@ -189,7 +189,12 @@ pub mod resource_changes { #[doc = "* `resource_id`: The identifier of the resource."] #[doc = "* `start_time`: Specifies the start time of the changes request."] #[doc = "* `end_time`: Specifies the end time of the changes request."] - pub fn list(&self, resource_id: impl Into, start_time: impl Into, end_time: impl Into) -> list::Builder { + pub fn list( + &self, + resource_id: impl Into, + start_time: impl Into, + end_time: impl Into, + ) -> list::Builder { list::Builder { client: self.0.clone(), resource_id: resource_id.into(), @@ -207,8 +212,8 @@ pub mod resource_changes { pub struct Builder { pub(crate) client: super::super::Client, pub(crate) resource_id: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, pub(crate) skip_token: Option, pub(crate) scan_latest: Option, } @@ -266,9 +271,9 @@ pub mod resource_changes { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2021-04-01-preview"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("$startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("$startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("$endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("$endTime", &end_time.to_string()); if let Some(skip_token) = &this.skip_token { req.url_mut().query_pairs_mut().append_pair("$skipToken", skip_token); } @@ -315,8 +320,8 @@ pub mod changes { &self, subscription_id: impl Into, resource_group_name: impl Into, - start_time: impl Into, - end_time: impl Into, + start_time: impl Into, + end_time: impl Into, ) -> list_changes_by_resource_group::Builder { list_changes_by_resource_group::Builder { client: self.0.clone(), @@ -337,8 +342,8 @@ pub mod changes { pub fn list_changes_by_subscription( &self, subscription_id: impl Into, - start_time: impl Into, - end_time: impl Into, + start_time: impl Into, + end_time: impl Into, ) -> list_changes_by_subscription::Builder { list_changes_by_subscription::Builder { client: self.0.clone(), @@ -358,8 +363,8 @@ pub mod changes { pub(crate) client: super::super::Client, pub(crate) subscription_id: String, pub(crate) resource_group_name: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, pub(crate) skip_token: Option, pub(crate) filter: Option, } @@ -418,9 +423,9 @@ pub mod changes { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2021-04-01-preview"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("$startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("$startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("$endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("$endTime", &end_time.to_string()); if let Some(skip_token) = &this.skip_token { req.url_mut().query_pairs_mut().append_pair("$skipToken", skip_token); } @@ -457,8 +462,8 @@ pub mod changes { pub struct Builder { pub(crate) client: super::super::Client, pub(crate) subscription_id: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, pub(crate) skip_token: Option, pub(crate) filter: Option, } @@ -516,9 +521,9 @@ pub mod changes { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2021-04-01-preview"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("$startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("$startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("$endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("$endTime", &end_time.to_string()); if let Some(skip_token) = &this.skip_token { req.url_mut().query_pairs_mut().append_pair("$skipToken", skip_token); } diff --git a/services/mgmt/chaos/Cargo.toml b/services/mgmt/chaos/Cargo.toml index efa789b15d0..0f44112d600 100644 --- a/services/mgmt/chaos/Cargo.toml +++ b/services/mgmt/chaos/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs b/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs index 13198a27d42..c6e78536931 100644 --- a/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs +++ b/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs @@ -272,11 +272,11 @@ pub struct ActionStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "String that represents the start time of the action."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "String that represents the end time of the action."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The array of targets."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub targets: Vec, @@ -514,11 +514,11 @@ pub struct ExperimentExecutionActionTargetDetailsProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub target: Option, #[doc = "String that represents the failed date time."] - #[serde(rename = "targetFailedTime", default, skip_serializing_if = "Option::is_none")] - pub target_failed_time: Option, + #[serde(rename = "targetFailedTime", with = "azure_core::date::rfc3339::option")] + pub target_failed_time: Option, #[doc = "String that represents the completed date time."] - #[serde(rename = "targetCompletedTime", default, skip_serializing_if = "Option::is_none")] - pub target_completed_time: Option, + #[serde(rename = "targetCompletedTime", with = "azure_core::date::rfc3339::option")] + pub target_completed_time: Option, #[doc = "Model that represents the Experiment action target details error model."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -583,17 +583,17 @@ pub struct ExperimentExecutionDetailsProperties { #[serde(rename = "failureReason", default, skip_serializing_if = "Option::is_none")] pub failure_reason: Option, #[doc = "String that represents the created date time."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "String that represents the last action date time."] - #[serde(rename = "lastActionDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_action_date_time: Option, + #[serde(rename = "lastActionDateTime", with = "azure_core::date::rfc3339::option")] + pub last_action_date_time: Option, #[doc = "String that represents the start date time."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "String that represents the stop date time."] - #[serde(rename = "stopDateTime", default, skip_serializing_if = "Option::is_none")] - pub stop_date_time: Option, + #[serde(rename = "stopDateTime", with = "azure_core::date::rfc3339::option")] + pub stop_date_time: Option, #[doc = "The information of the experiment run."] #[serde(rename = "runInformation", default, skip_serializing_if = "Option::is_none")] pub run_information: Option, @@ -723,11 +723,11 @@ pub struct ExperimentStatusProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "String that represents the created date time of a Experiment."] - #[serde(rename = "createdDateUtc", default, skip_serializing_if = "Option::is_none")] - pub created_date_utc: Option, + #[serde(rename = "createdDateUtc", with = "azure_core::date::rfc3339::option")] + pub created_date_utc: Option, #[doc = "String that represents the end date time of a Experiment."] - #[serde(rename = "endDateUtc", default, skip_serializing_if = "Option::is_none")] - pub end_date_utc: Option, + #[serde(rename = "endDateUtc", with = "azure_core::date::rfc3339::option")] + pub end_date_utc: Option, } impl ExperimentStatusProperties { pub fn new() -> Self { @@ -836,8 +836,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -845,8 +845,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/chaos/src/package_2022_07_01_preview/models.rs b/services/mgmt/chaos/src/package_2022_07_01_preview/models.rs index 54552604588..f0847e0aca0 100644 --- a/services/mgmt/chaos/src/package_2022_07_01_preview/models.rs +++ b/services/mgmt/chaos/src/package_2022_07_01_preview/models.rs @@ -272,11 +272,11 @@ pub struct ActionStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "String that represents the start time of the action."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "String that represents the end time of the action."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The array of targets."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub targets: Vec, @@ -535,11 +535,11 @@ pub struct ExperimentExecutionActionTargetDetailsProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub target: Option, #[doc = "String that represents the failed date time."] - #[serde(rename = "targetFailedTime", default, skip_serializing_if = "Option::is_none")] - pub target_failed_time: Option, + #[serde(rename = "targetFailedTime", with = "azure_core::date::rfc3339::option")] + pub target_failed_time: Option, #[doc = "String that represents the completed date time."] - #[serde(rename = "targetCompletedTime", default, skip_serializing_if = "Option::is_none")] - pub target_completed_time: Option, + #[serde(rename = "targetCompletedTime", with = "azure_core::date::rfc3339::option")] + pub target_completed_time: Option, #[doc = "Model that represents the Experiment action target details error model."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -604,17 +604,17 @@ pub struct ExperimentExecutionDetailsProperties { #[serde(rename = "failureReason", default, skip_serializing_if = "Option::is_none")] pub failure_reason: Option, #[doc = "String that represents the created date time."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "String that represents the last action date time."] - #[serde(rename = "lastActionDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_action_date_time: Option, + #[serde(rename = "lastActionDateTime", with = "azure_core::date::rfc3339::option")] + pub last_action_date_time: Option, #[doc = "String that represents the start date time."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "String that represents the stop date time."] - #[serde(rename = "stopDateTime", default, skip_serializing_if = "Option::is_none")] - pub stop_date_time: Option, + #[serde(rename = "stopDateTime", with = "azure_core::date::rfc3339::option")] + pub stop_date_time: Option, #[doc = "The information of the experiment run."] #[serde(rename = "runInformation", default, skip_serializing_if = "Option::is_none")] pub run_information: Option, @@ -744,11 +744,11 @@ pub struct ExperimentStatusProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "String that represents the created date time of a Experiment."] - #[serde(rename = "createdDateUtc", default, skip_serializing_if = "Option::is_none")] - pub created_date_utc: Option, + #[serde(rename = "createdDateUtc", with = "azure_core::date::rfc3339::option")] + pub created_date_utc: Option, #[doc = "String that represents the end date time of a Experiment."] - #[serde(rename = "endDateUtc", default, skip_serializing_if = "Option::is_none")] - pub end_date_utc: Option, + #[serde(rename = "endDateUtc", with = "azure_core::date::rfc3339::option")] + pub end_date_utc: Option, } impl ExperimentStatusProperties { pub fn new() -> Self { @@ -857,8 +857,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -866,8 +866,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cloudshell/Cargo.toml b/services/mgmt/cloudshell/Cargo.toml index 9c96f50d2a7..6fc826dc990 100644 --- a/services/mgmt/cloudshell/Cargo.toml +++ b/services/mgmt/cloudshell/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/cognitiveservices/Cargo.toml b/services/mgmt/cognitiveservices/Cargo.toml index 6958d6b8291..d89c5e54ff2 100644 --- a/services/mgmt/cognitiveservices/Cargo.toml +++ b/services/mgmt/cognitiveservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/cognitiveservices/src/package_2021_04/models.rs b/services/mgmt/cognitiveservices/src/package_2021_04/models.rs index e4a5d742f55..ba49eb7b412 100644 --- a/services/mgmt/cognitiveservices/src/package_2021_04/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2021_04/models.rs @@ -1549,8 +1549,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1558,8 +1558,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cognitiveservices/src/package_2021_10/models.rs b/services/mgmt/cognitiveservices/src/package_2021_10/models.rs index f445d70c2c1..a99c2fe8b2b 100644 --- a/services/mgmt/cognitiveservices/src/package_2021_10/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2021_10/models.rs @@ -1965,8 +1965,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1974,8 +1974,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cognitiveservices/src/package_2022_03/models.rs b/services/mgmt/cognitiveservices/src/package_2022_03/models.rs index f37543c83f9..40a400d91a2 100644 --- a/services/mgmt/cognitiveservices/src/package_2022_03/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2022_03/models.rs @@ -2039,8 +2039,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2048,8 +2048,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/commerce/Cargo.toml b/services/mgmt/commerce/Cargo.toml index 5368ba59f64..6869a964a85 100644 --- a/services/mgmt/commerce/Cargo.toml +++ b/services/mgmt/commerce/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/commerce/src/package_2015_06_preview/models.rs b/services/mgmt/commerce/src/package_2015_06_preview/models.rs index 9b3757fd686..6ad202c85a5 100644 --- a/services/mgmt/commerce/src/package_2015_06_preview/models.rs +++ b/services/mgmt/commerce/src/package_2015_06_preview/models.rs @@ -65,8 +65,8 @@ pub struct MeterInfo { #[serde(rename = "MeterRates", default, skip_serializing_if = "Option::is_none")] pub meter_rates: Option, #[doc = "Indicates the date from which the meter rate is effective."] - #[serde(rename = "EffectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "EffectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged."] #[serde(rename = "IncludedQuantity", default, skip_serializing_if = "Option::is_none")] pub included_quantity: Option, @@ -125,8 +125,8 @@ pub struct OfferTermInfo { #[serde(rename = "Name")] pub name: offer_term_info::Name, #[doc = "Indicates the date from which the offer term is effective."] - #[serde(rename = "EffectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "EffectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, } impl OfferTermInfo { pub fn new(name: offer_term_info::Name) -> Self { @@ -268,11 +268,11 @@ pub struct UsageSample { #[serde(rename = "meterId", default, skip_serializing_if = "Option::is_none")] pub meter_id: Option, #[doc = "UTC start time for the usage bucket to which this usage aggregate belongs."] - #[serde(rename = "usageStartTime", default, skip_serializing_if = "Option::is_none")] - pub usage_start_time: Option, + #[serde(rename = "usageStartTime", with = "azure_core::date::rfc3339::option")] + pub usage_start_time: Option, #[doc = "UTC end time for the usage bucket to which this usage aggregate belongs."] - #[serde(rename = "usageEndTime", default, skip_serializing_if = "Option::is_none")] - pub usage_end_time: Option, + #[serde(rename = "usageEndTime", with = "azure_core::date::rfc3339::option")] + pub usage_end_time: Option, #[doc = "The amount of the resource consumption that occurred in this time frame."] #[serde(default, skip_serializing_if = "Option::is_none")] pub quantity: Option, diff --git a/services/mgmt/commerce/src/package_2015_06_preview/operations.rs b/services/mgmt/commerce/src/package_2015_06_preview/operations.rs index 476ed144d89..5528fd4c47b 100644 --- a/services/mgmt/commerce/src/package_2015_06_preview/operations.rs +++ b/services/mgmt/commerce/src/package_2015_06_preview/operations.rs @@ -93,8 +93,8 @@ pub mod usage_aggregates { #[doc = "* `subscription_id`: It uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."] pub fn list( &self, - reported_start_time: impl Into, - reported_end_time: impl Into, + reported_start_time: impl Into, + reported_end_time: impl Into, subscription_id: impl Into, ) -> list::Builder { list::Builder { @@ -114,8 +114,8 @@ pub mod usage_aggregates { #[derive(Clone)] pub struct Builder { pub(crate) client: super::super::Client, - pub(crate) reported_start_time: String, - pub(crate) reported_end_time: String, + pub(crate) reported_start_time: time::OffsetDateTime, + pub(crate) reported_end_time: time::OffsetDateTime, pub(crate) subscription_id: String, pub(crate) show_details: Option, pub(crate) aggregation_granularity: Option, @@ -182,9 +182,11 @@ pub mod usage_aggregates { let reported_start_time = &this.reported_start_time; req.url_mut() .query_pairs_mut() - .append_pair("reportedStartTime", reported_start_time); + .append_pair("reportedStartTime", &reported_start_time.to_string()); let reported_end_time = &this.reported_end_time; - req.url_mut().query_pairs_mut().append_pair("reportedEndTime", reported_end_time); + req.url_mut() + .query_pairs_mut() + .append_pair("reportedEndTime", &reported_end_time.to_string()); if let Some(show_details) = &this.show_details { req.url_mut() .query_pairs_mut() diff --git a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs index 9b3757fd686..6ad202c85a5 100644 --- a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs @@ -65,8 +65,8 @@ pub struct MeterInfo { #[serde(rename = "MeterRates", default, skip_serializing_if = "Option::is_none")] pub meter_rates: Option, #[doc = "Indicates the date from which the meter rate is effective."] - #[serde(rename = "EffectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "EffectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged."] #[serde(rename = "IncludedQuantity", default, skip_serializing_if = "Option::is_none")] pub included_quantity: Option, @@ -125,8 +125,8 @@ pub struct OfferTermInfo { #[serde(rename = "Name")] pub name: offer_term_info::Name, #[doc = "Indicates the date from which the offer term is effective."] - #[serde(rename = "EffectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "EffectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, } impl OfferTermInfo { pub fn new(name: offer_term_info::Name) -> Self { @@ -268,11 +268,11 @@ pub struct UsageSample { #[serde(rename = "meterId", default, skip_serializing_if = "Option::is_none")] pub meter_id: Option, #[doc = "UTC start time for the usage bucket to which this usage aggregate belongs."] - #[serde(rename = "usageStartTime", default, skip_serializing_if = "Option::is_none")] - pub usage_start_time: Option, + #[serde(rename = "usageStartTime", with = "azure_core::date::rfc3339::option")] + pub usage_start_time: Option, #[doc = "UTC end time for the usage bucket to which this usage aggregate belongs."] - #[serde(rename = "usageEndTime", default, skip_serializing_if = "Option::is_none")] - pub usage_end_time: Option, + #[serde(rename = "usageEndTime", with = "azure_core::date::rfc3339::option")] + pub usage_end_time: Option, #[doc = "The amount of the resource consumption that occurred in this time frame."] #[serde(default, skip_serializing_if = "Option::is_none")] pub quantity: Option, diff --git a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs index 476ed144d89..5528fd4c47b 100644 --- a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs @@ -93,8 +93,8 @@ pub mod usage_aggregates { #[doc = "* `subscription_id`: It uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."] pub fn list( &self, - reported_start_time: impl Into, - reported_end_time: impl Into, + reported_start_time: impl Into, + reported_end_time: impl Into, subscription_id: impl Into, ) -> list::Builder { list::Builder { @@ -114,8 +114,8 @@ pub mod usage_aggregates { #[derive(Clone)] pub struct Builder { pub(crate) client: super::super::Client, - pub(crate) reported_start_time: String, - pub(crate) reported_end_time: String, + pub(crate) reported_start_time: time::OffsetDateTime, + pub(crate) reported_end_time: time::OffsetDateTime, pub(crate) subscription_id: String, pub(crate) show_details: Option, pub(crate) aggregation_granularity: Option, @@ -182,9 +182,11 @@ pub mod usage_aggregates { let reported_start_time = &this.reported_start_time; req.url_mut() .query_pairs_mut() - .append_pair("reportedStartTime", reported_start_time); + .append_pair("reportedStartTime", &reported_start_time.to_string()); let reported_end_time = &this.reported_end_time; - req.url_mut().query_pairs_mut().append_pair("reportedEndTime", reported_end_time); + req.url_mut() + .query_pairs_mut() + .append_pair("reportedEndTime", &reported_end_time.to_string()); if let Some(show_details) = &this.show_details { req.url_mut() .query_pairs_mut() diff --git a/services/mgmt/communication/Cargo.toml b/services/mgmt/communication/Cargo.toml index dce6f9db35c..127c6b38bc8 100644 --- a/services/mgmt/communication/Cargo.toml +++ b/services/mgmt/communication/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/communication/src/package_2020_08_20/models.rs b/services/mgmt/communication/src/package_2020_08_20/models.rs index e7c7ab2badf..bf4bd9397d3 100644 --- a/services/mgmt/communication/src/package_2020_08_20/models.rs +++ b/services/mgmt/communication/src/package_2020_08_20/models.rs @@ -493,8 +493,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -502,8 +502,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/communication/src/package_2020_08_20_preview/models.rs b/services/mgmt/communication/src/package_2020_08_20_preview/models.rs index 6925585e2b7..8d2b0d7f391 100644 --- a/services/mgmt/communication/src/package_2020_08_20_preview/models.rs +++ b/services/mgmt/communication/src/package_2020_08_20_preview/models.rs @@ -447,11 +447,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Percent of the operation that is complete"] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, diff --git a/services/mgmt/communication/src/package_2021_10_01_preview/models.rs b/services/mgmt/communication/src/package_2021_10_01_preview/models.rs index bab6cc2631e..1cf978083c1 100644 --- a/services/mgmt/communication/src/package_2021_10_01_preview/models.rs +++ b/services/mgmt/communication/src/package_2021_10_01_preview/models.rs @@ -1166,8 +1166,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1175,8 +1175,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/communication/src/package_preview_2022_07/models.rs b/services/mgmt/communication/src/package_preview_2022_07/models.rs index 1d6ccbf2c96..1ebb5df7a63 100644 --- a/services/mgmt/communication/src/package_preview_2022_07/models.rs +++ b/services/mgmt/communication/src/package_preview_2022_07/models.rs @@ -1154,8 +1154,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1163,8 +1163,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/compute/Cargo.toml b/services/mgmt/compute/Cargo.toml index be7ff9cadd9..f76668683cf 100644 --- a/services/mgmt/compute/Cargo.toml +++ b/services/mgmt/compute/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/compute/src/package_2021_12_01/models.rs b/services/mgmt/compute/src/package_2021_12_01/models.rs index 341dc1b36b4..e9998c67d04 100644 --- a/services/mgmt/compute/src/package_2021_12_01/models.rs +++ b/services/mgmt/compute/src/package_2021_12_01/models.rs @@ -405,11 +405,11 @@ pub struct AvailablePatchSummary { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -694,8 +694,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "virtualMachinesAssociated", default, skip_serializing_if = "Vec::is_empty")] pub virtual_machines_associated: Vec, #[doc = "The date time when the capacity reservation was last updated."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -703,8 +703,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Capacity Reservation resource was created.

Minimum api-version: 2021-11-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl CapacityReservationProperties { pub fn new() -> Self { @@ -1185,8 +1185,8 @@ pub struct CommunityGalleryImageProperties { #[serde(rename = "osState")] pub os_state: community_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -1294,11 +1294,11 @@ impl CommunityGalleryImageVersion { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommunityGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, } impl CommunityGalleryImageVersionProperties { pub fn new() -> Self { @@ -1885,8 +1885,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "The date when the host was first provisioned."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1894,8 +1894,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Dedicated Host resource was created.

Minimum api-version: 2021-11-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DedicatedHostProperties { pub fn new() -> Self { @@ -2237,8 +2237,8 @@ pub struct DiskAccessProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time when the disk access was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DiskAccessProperties { pub fn new() -> Self { @@ -2461,8 +2461,8 @@ impl DiskList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DiskProperties { #[doc = "The time when the disk was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -2682,8 +2682,8 @@ impl DiskRestorePointList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiskRestorePointProperties { #[doc = "The timestamp of restorePoint creation"] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "arm id of source disk or source disk restore point."] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -3177,8 +3177,8 @@ pub struct EncryptionSetProperties { #[serde(rename = "rotationToLatestKeyVersionEnabled", default, skip_serializing_if = "Option::is_none")] pub rotation_to_latest_key_version_enabled: Option, #[doc = "The time when the active key of this disk encryption set was updated."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, #[doc = "Api error."] #[serde(rename = "autoKeyRotationError", default, skip_serializing_if = "Option::is_none")] pub auto_key_rotation_error: Option, @@ -3404,8 +3404,8 @@ pub struct GalleryApplicationProperties { #[serde(rename = "releaseNoteUri", default, skip_serializing_if = "Option::is_none")] pub release_note_uri: Option, #[doc = "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**"] #[serde(rename = "supportedOSType")] pub supported_os_type: gallery_application_properties::SupportedOsType, @@ -3567,11 +3567,11 @@ pub struct GalleryArtifactPublishingProfileBase { #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, #[doc = "The timestamp for when the gallery image version is published."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "Specifies the storage account type to be used to store the image. This property is not updatable."] #[serde(rename = "storageAccountType", default, skip_serializing_if = "Option::is_none")] pub storage_account_type: Option, @@ -3895,8 +3895,8 @@ pub struct GalleryImageProperties { #[serde(rename = "hyperVGeneration", default, skip_serializing_if = "Option::is_none")] pub hyper_v_generation: Option, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -5268,8 +5268,8 @@ pub struct InstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InstanceViewStatus { pub fn new() -> Self { @@ -5401,11 +5401,11 @@ pub struct LastPatchInstallationSummary { #[serde(rename = "failedPatchCount", default, skip_serializing_if = "Option::is_none")] pub failed_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -5682,11 +5682,11 @@ pub struct LogAnalyticsInputBase { #[serde(rename = "blobContainerSasUri")] pub blob_container_sas_uri: String, #[doc = "From time of the query"] - #[serde(rename = "fromTime")] - pub from_time: String, + #[serde(rename = "fromTime", with = "azure_core::date::rfc3339")] + pub from_time: time::OffsetDateTime, #[doc = "To time of the query"] - #[serde(rename = "toTime")] - pub to_time: String, + #[serde(rename = "toTime", with = "azure_core::date::rfc3339")] + pub to_time: time::OffsetDateTime, #[doc = "Group query result by Throttle Policy applied."] #[serde(rename = "groupByThrottlePolicy", default, skip_serializing_if = "Option::is_none")] pub group_by_throttle_policy: Option, @@ -5704,7 +5704,7 @@ pub struct LogAnalyticsInputBase { pub group_by_user_agent: Option, } impl LogAnalyticsInputBase { - pub fn new(blob_container_sas_uri: String, from_time: String, to_time: String) -> Self { + pub fn new(blob_container_sas_uri: String, from_time: time::OffsetDateTime, to_time: time::OffsetDateTime) -> Self { Self { blob_container_sas_uri, from_time, @@ -5748,17 +5748,17 @@ pub struct MaintenanceRedeployStatus { #[serde(rename = "isCustomerInitiatedMaintenanceAllowed", default, skip_serializing_if = "Option::is_none")] pub is_customer_initiated_maintenance_allowed: Option, #[doc = "Start Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_start_time: Option, + #[serde(rename = "preMaintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_start_time: Option, #[doc = "End Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_end_time: Option, + #[serde(rename = "preMaintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_end_time: Option, #[doc = "Start Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_start_time: Option, + #[serde(rename = "maintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_start_time: Option, #[doc = "End Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_end_time: Option, + #[serde(rename = "maintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_end_time: Option, #[doc = "The Last Maintenance Operation Result Code."] #[serde(rename = "lastOperationResultCode", default, skip_serializing_if = "Option::is_none")] pub last_operation_result_code: Option, @@ -7557,8 +7557,8 @@ pub struct ResourceInstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The level code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub level: Option, @@ -8006,8 +8006,8 @@ pub struct RestorePointProperties { #[serde(rename = "consistencyMode", default, skip_serializing_if = "Option::is_none")] pub consistency_mode: Option, #[doc = "Gets the creation time of the restore point."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The API entity reference."] #[serde(rename = "sourceRestorePoint", default, skip_serializing_if = "Option::is_none")] pub source_restore_point: Option, @@ -8397,14 +8397,14 @@ pub struct RollingUpgradeRunningStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The last action performed on the rolling upgrade."] #[serde(rename = "lastAction", default, skip_serializing_if = "Option::is_none")] pub last_action: Option, #[doc = "Last action time of the upgrade."] - #[serde(rename = "lastActionTime", default, skip_serializing_if = "Option::is_none")] - pub last_action_time: Option, + #[serde(rename = "lastActionTime", with = "azure_core::date::rfc3339::option")] + pub last_action_time: Option, } impl RollingUpgradeRunningStatus { pub fn new() -> Self { @@ -8775,8 +8775,8 @@ pub struct SharedGalleryImageProperties { #[serde(rename = "osState")] pub os_state: shared_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -8904,11 +8904,11 @@ impl SharedGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SharedGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, } impl SharedGalleryImageVersionProperties { pub fn new() -> Self { @@ -9240,8 +9240,8 @@ impl SnapshotList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SnapshotProperties { #[doc = "The time when the snapshot was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -10063,11 +10063,11 @@ pub struct UpgradeOperationHistoryStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the upgrade."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl UpgradeOperationHistoryStatus { pub fn new() -> Self { @@ -10420,8 +10420,8 @@ pub struct VirtualMachineAssessPatchesResult { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The list of patches that have been detected as available for installation."] #[serde(rename = "availablePatches", default, skip_serializing_if = "Vec::is_empty")] pub available_patches: Vec, @@ -10978,8 +10978,8 @@ pub struct VirtualMachineInstallPatchesResult { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub patches: Vec, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -11496,8 +11496,8 @@ pub struct VirtualMachineProperties { #[serde(rename = "applicationProfile", default, skip_serializing_if = "Option::is_none")] pub application_profile: Option, #[doc = "Specifies the time at which the Virtual Machine resource was created.

Minimum api-version: 2021-11-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineProperties { pub fn new() -> Self { @@ -11728,11 +11728,11 @@ pub struct VirtualMachineRunCommandInstanceView { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Script start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Script end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource status information."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub statuses: Vec, @@ -12688,8 +12688,8 @@ pub struct VirtualMachineScaleSetProperties { #[serde(rename = "spotRestorePolicy", default, skip_serializing_if = "Option::is_none")] pub spot_restore_policy: Option, #[doc = "Specifies the time at which the Virtual Machine Scale Set resource was created.

Minimum api-version: 2021-11-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineScaleSetProperties { pub fn new() -> Self { @@ -13802,11 +13802,11 @@ pub struct VirtualMachineSoftwarePatchProperties { #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, #[doc = "The UTC timestamp when the repository published this patch."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The UTC timestamp of the last update to this patch record."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Describes the availability of a given patch."] #[serde(rename = "assessmentState", default, skip_serializing_if = "Option::is_none")] pub assessment_state: Option, @@ -14014,8 +14014,8 @@ pub struct WindowsParameters { #[serde(rename = "excludeKbsRequiringReboot", default, skip_serializing_if = "Option::is_none")] pub exclude_kbs_requiring_reboot: Option, #[doc = "This is used to install patches that were published on or before this given max published date."] - #[serde(rename = "maxPatchPublishDate", default, skip_serializing_if = "Option::is_none")] - pub max_patch_publish_date: Option, + #[serde(rename = "maxPatchPublishDate", with = "azure_core::date::rfc3339::option")] + pub max_patch_publish_date: Option, } impl WindowsParameters { pub fn new() -> Self { diff --git a/services/mgmt/compute/src/package_2022_01_03/models.rs b/services/mgmt/compute/src/package_2022_01_03/models.rs index 481851495b0..824f5aad333 100644 --- a/services/mgmt/compute/src/package_2022_01_03/models.rs +++ b/services/mgmt/compute/src/package_2022_01_03/models.rs @@ -446,11 +446,11 @@ pub struct AvailablePatchSummary { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -735,8 +735,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "virtualMachinesAssociated", default, skip_serializing_if = "Vec::is_empty")] pub virtual_machines_associated: Vec, #[doc = "The date time when the capacity reservation was last updated."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -744,8 +744,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Capacity Reservation resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl CapacityReservationProperties { pub fn new() -> Self { @@ -1246,8 +1246,8 @@ pub struct CommunityGalleryImageProperties { #[serde(rename = "osState")] pub os_state: community_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -1387,11 +1387,11 @@ impl CommunityGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommunityGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version."] #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, @@ -2003,8 +2003,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "The date when the host was first provisioned."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2012,8 +2012,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Dedicated Host resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DedicatedHostProperties { pub fn new() -> Self { @@ -2355,8 +2355,8 @@ pub struct DiskAccessProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time when the disk access was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DiskAccessProperties { pub fn new() -> Self { @@ -2579,8 +2579,8 @@ impl DiskList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DiskProperties { #[doc = "The time when the disk was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -2800,8 +2800,8 @@ impl DiskRestorePointList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiskRestorePointProperties { #[doc = "The timestamp of restorePoint creation"] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "arm id of source disk or source disk restore point."] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -3298,8 +3298,8 @@ pub struct EncryptionSetProperties { #[serde(rename = "rotationToLatestKeyVersionEnabled", default, skip_serializing_if = "Option::is_none")] pub rotation_to_latest_key_version_enabled: Option, #[doc = "The time when the active key of this disk encryption set was updated."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, #[doc = "Api error."] #[serde(rename = "autoKeyRotationError", default, skip_serializing_if = "Option::is_none")] pub auto_key_rotation_error: Option, @@ -3525,8 +3525,8 @@ pub struct GalleryApplicationProperties { #[serde(rename = "releaseNoteUri", default, skip_serializing_if = "Option::is_none")] pub release_note_uri: Option, #[doc = "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**"] #[serde(rename = "supportedOSType")] pub supported_os_type: gallery_application_properties::SupportedOsType, @@ -3683,11 +3683,11 @@ pub struct GalleryArtifactPublishingProfileBase { #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, #[doc = "The timestamp for when the gallery image version is published."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "Specifies the storage account type to be used to store the image. This property is not updatable."] #[serde(rename = "storageAccountType", default, skip_serializing_if = "Option::is_none")] pub storage_account_type: Option, @@ -4011,8 +4011,8 @@ pub struct GalleryImageProperties { #[serde(rename = "hyperVGeneration", default, skip_serializing_if = "Option::is_none")] pub hyper_v_generation: Option, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -5355,8 +5355,8 @@ pub struct InstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InstanceViewStatus { pub fn new() -> Self { @@ -5488,11 +5488,11 @@ pub struct LastPatchInstallationSummary { #[serde(rename = "failedPatchCount", default, skip_serializing_if = "Option::is_none")] pub failed_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -5828,11 +5828,11 @@ pub struct LogAnalyticsInputBase { #[serde(rename = "blobContainerSasUri")] pub blob_container_sas_uri: String, #[doc = "From time of the query"] - #[serde(rename = "fromTime")] - pub from_time: String, + #[serde(rename = "fromTime", with = "azure_core::date::rfc3339")] + pub from_time: time::OffsetDateTime, #[doc = "To time of the query"] - #[serde(rename = "toTime")] - pub to_time: String, + #[serde(rename = "toTime", with = "azure_core::date::rfc3339")] + pub to_time: time::OffsetDateTime, #[doc = "Group query result by Throttle Policy applied."] #[serde(rename = "groupByThrottlePolicy", default, skip_serializing_if = "Option::is_none")] pub group_by_throttle_policy: Option, @@ -5850,7 +5850,7 @@ pub struct LogAnalyticsInputBase { pub group_by_user_agent: Option, } impl LogAnalyticsInputBase { - pub fn new(blob_container_sas_uri: String, from_time: String, to_time: String) -> Self { + pub fn new(blob_container_sas_uri: String, from_time: time::OffsetDateTime, to_time: time::OffsetDateTime) -> Self { Self { blob_container_sas_uri, from_time, @@ -5894,17 +5894,17 @@ pub struct MaintenanceRedeployStatus { #[serde(rename = "isCustomerInitiatedMaintenanceAllowed", default, skip_serializing_if = "Option::is_none")] pub is_customer_initiated_maintenance_allowed: Option, #[doc = "Start Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_start_time: Option, + #[serde(rename = "preMaintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_start_time: Option, #[doc = "End Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_end_time: Option, + #[serde(rename = "preMaintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_end_time: Option, #[doc = "Start Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_start_time: Option, + #[serde(rename = "maintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_start_time: Option, #[doc = "End Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_end_time: Option, + #[serde(rename = "maintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_end_time: Option, #[doc = "The Last Maintenance Operation Result Code."] #[serde(rename = "lastOperationResultCode", default, skip_serializing_if = "Option::is_none")] pub last_operation_result_code: Option, @@ -7725,8 +7725,8 @@ pub struct ResourceInstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The level code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub level: Option, @@ -8198,8 +8198,8 @@ pub struct RestorePointProperties { #[serde(rename = "consistencyMode", default, skip_serializing_if = "Option::is_none")] pub consistency_mode: Option, #[doc = "Gets the creation time of the restore point."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The API entity reference."] #[serde(rename = "sourceRestorePoint", default, skip_serializing_if = "Option::is_none")] pub source_restore_point: Option, @@ -8589,14 +8589,14 @@ pub struct RollingUpgradeRunningStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The last action performed on the rolling upgrade."] #[serde(rename = "lastAction", default, skip_serializing_if = "Option::is_none")] pub last_action: Option, #[doc = "Last action time of the upgrade."] - #[serde(rename = "lastActionTime", default, skip_serializing_if = "Option::is_none")] - pub last_action_time: Option, + #[serde(rename = "lastActionTime", with = "azure_core::date::rfc3339::option")] + pub last_action_time: Option, } impl RollingUpgradeRunningStatus { pub fn new() -> Self { @@ -9040,8 +9040,8 @@ pub struct SharedGalleryImageProperties { #[serde(rename = "osState")] pub os_state: shared_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -9173,11 +9173,11 @@ impl SharedGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SharedGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version."] #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, @@ -9541,8 +9541,8 @@ impl SnapshotList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SnapshotProperties { #[doc = "The time when the snapshot was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -10367,11 +10367,11 @@ pub struct UpgradeOperationHistoryStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the upgrade."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl UpgradeOperationHistoryStatus { pub fn new() -> Self { @@ -10755,8 +10755,8 @@ pub struct VirtualMachineAssessPatchesResult { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The list of patches that have been detected as available for installation."] #[serde(rename = "availablePatches", default, skip_serializing_if = "Vec::is_empty")] pub available_patches: Vec, @@ -11310,8 +11310,8 @@ pub struct VirtualMachineInstallPatchesResult { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub patches: Vec, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -11828,8 +11828,8 @@ pub struct VirtualMachineProperties { #[serde(rename = "applicationProfile", default, skip_serializing_if = "Option::is_none")] pub application_profile: Option, #[doc = "Specifies the time at which the Virtual Machine resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineProperties { pub fn new() -> Self { @@ -12060,11 +12060,11 @@ pub struct VirtualMachineRunCommandInstanceView { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Script start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Script end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource status information."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub statuses: Vec, @@ -13028,8 +13028,8 @@ pub struct VirtualMachineScaleSetProperties { #[serde(rename = "spotRestorePolicy", default, skip_serializing_if = "Option::is_none")] pub spot_restore_policy: Option, #[doc = "Specifies the time at which the Virtual Machine Scale Set resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineScaleSetProperties { pub fn new() -> Self { @@ -14149,11 +14149,11 @@ pub struct VirtualMachineSoftwarePatchProperties { #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, #[doc = "The UTC timestamp when the repository published this patch."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The UTC timestamp of the last update to this patch record."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Describes the availability of a given patch."] #[serde(rename = "assessmentState", default, skip_serializing_if = "Option::is_none")] pub assessment_state: Option, @@ -14376,8 +14376,8 @@ pub struct WindowsParameters { #[serde(rename = "excludeKbsRequiringReboot", default, skip_serializing_if = "Option::is_none")] pub exclude_kbs_requiring_reboot: Option, #[doc = "This is used to install patches that were published on or before this given max published date."] - #[serde(rename = "maxPatchPublishDate", default, skip_serializing_if = "Option::is_none")] - pub max_patch_publish_date: Option, + #[serde(rename = "maxPatchPublishDate", with = "azure_core::date::rfc3339::option")] + pub max_patch_publish_date: Option, } impl WindowsParameters { pub fn new() -> Self { diff --git a/services/mgmt/compute/src/package_2022_03_01/models.rs b/services/mgmt/compute/src/package_2022_03_01/models.rs index eabf07e93a3..4d95aeefabc 100644 --- a/services/mgmt/compute/src/package_2022_03_01/models.rs +++ b/services/mgmt/compute/src/package_2022_03_01/models.rs @@ -408,11 +408,11 @@ pub struct AvailablePatchSummary { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -697,8 +697,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "virtualMachinesAssociated", default, skip_serializing_if = "Vec::is_empty")] pub virtual_machines_associated: Vec, #[doc = "The date time when the capacity reservation was last updated."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -706,8 +706,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Capacity Reservation resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl CapacityReservationProperties { pub fn new() -> Self { @@ -1188,8 +1188,8 @@ pub struct CommunityGalleryImageProperties { #[serde(rename = "osState")] pub os_state: community_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -1297,11 +1297,11 @@ impl CommunityGalleryImageVersion { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommunityGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, } impl CommunityGalleryImageVersionProperties { pub fn new() -> Self { @@ -1907,8 +1907,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "The date when the host was first provisioned."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1916,8 +1916,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Dedicated Host resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DedicatedHostProperties { pub fn new() -> Self { @@ -2259,8 +2259,8 @@ pub struct DiskAccessProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time when the disk access was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DiskAccessProperties { pub fn new() -> Self { @@ -2483,8 +2483,8 @@ impl DiskList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DiskProperties { #[doc = "The time when the disk was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -2704,8 +2704,8 @@ impl DiskRestorePointList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiskRestorePointProperties { #[doc = "The timestamp of restorePoint creation"] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "arm id of source disk or source disk restore point."] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -3202,8 +3202,8 @@ pub struct EncryptionSetProperties { #[serde(rename = "rotationToLatestKeyVersionEnabled", default, skip_serializing_if = "Option::is_none")] pub rotation_to_latest_key_version_enabled: Option, #[doc = "The time when the active key of this disk encryption set was updated."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, #[doc = "Api error."] #[serde(rename = "autoKeyRotationError", default, skip_serializing_if = "Option::is_none")] pub auto_key_rotation_error: Option, @@ -3429,8 +3429,8 @@ pub struct GalleryApplicationProperties { #[serde(rename = "releaseNoteUri", default, skip_serializing_if = "Option::is_none")] pub release_note_uri: Option, #[doc = "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**"] #[serde(rename = "supportedOSType")] pub supported_os_type: gallery_application_properties::SupportedOsType, @@ -3592,11 +3592,11 @@ pub struct GalleryArtifactPublishingProfileBase { #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, #[doc = "The timestamp for when the gallery image version is published."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "Specifies the storage account type to be used to store the image. This property is not updatable."] #[serde(rename = "storageAccountType", default, skip_serializing_if = "Option::is_none")] pub storage_account_type: Option, @@ -3920,8 +3920,8 @@ pub struct GalleryImageProperties { #[serde(rename = "hyperVGeneration", default, skip_serializing_if = "Option::is_none")] pub hyper_v_generation: Option, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -5293,8 +5293,8 @@ pub struct InstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InstanceViewStatus { pub fn new() -> Self { @@ -5426,11 +5426,11 @@ pub struct LastPatchInstallationSummary { #[serde(rename = "failedPatchCount", default, skip_serializing_if = "Option::is_none")] pub failed_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -5766,11 +5766,11 @@ pub struct LogAnalyticsInputBase { #[serde(rename = "blobContainerSasUri")] pub blob_container_sas_uri: String, #[doc = "From time of the query"] - #[serde(rename = "fromTime")] - pub from_time: String, + #[serde(rename = "fromTime", with = "azure_core::date::rfc3339")] + pub from_time: time::OffsetDateTime, #[doc = "To time of the query"] - #[serde(rename = "toTime")] - pub to_time: String, + #[serde(rename = "toTime", with = "azure_core::date::rfc3339")] + pub to_time: time::OffsetDateTime, #[doc = "Group query result by Throttle Policy applied."] #[serde(rename = "groupByThrottlePolicy", default, skip_serializing_if = "Option::is_none")] pub group_by_throttle_policy: Option, @@ -5788,7 +5788,7 @@ pub struct LogAnalyticsInputBase { pub group_by_user_agent: Option, } impl LogAnalyticsInputBase { - pub fn new(blob_container_sas_uri: String, from_time: String, to_time: String) -> Self { + pub fn new(blob_container_sas_uri: String, from_time: time::OffsetDateTime, to_time: time::OffsetDateTime) -> Self { Self { blob_container_sas_uri, from_time, @@ -5832,17 +5832,17 @@ pub struct MaintenanceRedeployStatus { #[serde(rename = "isCustomerInitiatedMaintenanceAllowed", default, skip_serializing_if = "Option::is_none")] pub is_customer_initiated_maintenance_allowed: Option, #[doc = "Start Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_start_time: Option, + #[serde(rename = "preMaintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_start_time: Option, #[doc = "End Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_end_time: Option, + #[serde(rename = "preMaintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_end_time: Option, #[doc = "Start Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_start_time: Option, + #[serde(rename = "maintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_start_time: Option, #[doc = "End Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_end_time: Option, + #[serde(rename = "maintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_end_time: Option, #[doc = "The Last Maintenance Operation Result Code."] #[serde(rename = "lastOperationResultCode", default, skip_serializing_if = "Option::is_none")] pub last_operation_result_code: Option, @@ -7663,8 +7663,8 @@ pub struct ResourceInstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The level code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub level: Option, @@ -8136,8 +8136,8 @@ pub struct RestorePointProperties { #[serde(rename = "consistencyMode", default, skip_serializing_if = "Option::is_none")] pub consistency_mode: Option, #[doc = "Gets the creation time of the restore point."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The API entity reference."] #[serde(rename = "sourceRestorePoint", default, skip_serializing_if = "Option::is_none")] pub source_restore_point: Option, @@ -8527,14 +8527,14 @@ pub struct RollingUpgradeRunningStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The last action performed on the rolling upgrade."] #[serde(rename = "lastAction", default, skip_serializing_if = "Option::is_none")] pub last_action: Option, #[doc = "Last action time of the upgrade."] - #[serde(rename = "lastActionTime", default, skip_serializing_if = "Option::is_none")] - pub last_action_time: Option, + #[serde(rename = "lastActionTime", with = "azure_core::date::rfc3339::option")] + pub last_action_time: Option, } impl RollingUpgradeRunningStatus { pub fn new() -> Self { @@ -8905,8 +8905,8 @@ pub struct SharedGalleryImageProperties { #[serde(rename = "osState")] pub os_state: shared_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -9034,11 +9034,11 @@ impl SharedGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SharedGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, } impl SharedGalleryImageVersionProperties { pub fn new() -> Self { @@ -9370,8 +9370,8 @@ impl SnapshotList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SnapshotProperties { #[doc = "The time when the snapshot was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -10196,11 +10196,11 @@ pub struct UpgradeOperationHistoryStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the upgrade."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl UpgradeOperationHistoryStatus { pub fn new() -> Self { @@ -10569,8 +10569,8 @@ pub struct VirtualMachineAssessPatchesResult { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The list of patches that have been detected as available for installation."] #[serde(rename = "availablePatches", default, skip_serializing_if = "Vec::is_empty")] pub available_patches: Vec, @@ -11124,8 +11124,8 @@ pub struct VirtualMachineInstallPatchesResult { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub patches: Vec, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -11642,8 +11642,8 @@ pub struct VirtualMachineProperties { #[serde(rename = "applicationProfile", default, skip_serializing_if = "Option::is_none")] pub application_profile: Option, #[doc = "Specifies the time at which the Virtual Machine resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineProperties { pub fn new() -> Self { @@ -11874,11 +11874,11 @@ pub struct VirtualMachineRunCommandInstanceView { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Script start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Script end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource status information."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub statuses: Vec, @@ -12842,8 +12842,8 @@ pub struct VirtualMachineScaleSetProperties { #[serde(rename = "spotRestorePolicy", default, skip_serializing_if = "Option::is_none")] pub spot_restore_policy: Option, #[doc = "Specifies the time at which the Virtual Machine Scale Set resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineScaleSetProperties { pub fn new() -> Self { @@ -13963,11 +13963,11 @@ pub struct VirtualMachineSoftwarePatchProperties { #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, #[doc = "The UTC timestamp when the repository published this patch."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The UTC timestamp of the last update to this patch record."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Describes the availability of a given patch."] #[serde(rename = "assessmentState", default, skip_serializing_if = "Option::is_none")] pub assessment_state: Option, @@ -14190,8 +14190,8 @@ pub struct WindowsParameters { #[serde(rename = "excludeKbsRequiringReboot", default, skip_serializing_if = "Option::is_none")] pub exclude_kbs_requiring_reboot: Option, #[doc = "This is used to install patches that were published on or before this given max published date."] - #[serde(rename = "maxPatchPublishDate", default, skip_serializing_if = "Option::is_none")] - pub max_patch_publish_date: Option, + #[serde(rename = "maxPatchPublishDate", with = "azure_core::date::rfc3339::option")] + pub max_patch_publish_date: Option, } impl WindowsParameters { pub fn new() -> Self { diff --git a/services/mgmt/compute/src/package_2022_03_02/models.rs b/services/mgmt/compute/src/package_2022_03_02/models.rs index 0a42063dde0..71b16163a48 100644 --- a/services/mgmt/compute/src/package_2022_03_02/models.rs +++ b/services/mgmt/compute/src/package_2022_03_02/models.rs @@ -446,11 +446,11 @@ pub struct AvailablePatchSummary { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -735,8 +735,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "virtualMachinesAssociated", default, skip_serializing_if = "Vec::is_empty")] pub virtual_machines_associated: Vec, #[doc = "The date time when the capacity reservation was last updated."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -744,8 +744,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Capacity Reservation resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl CapacityReservationProperties { pub fn new() -> Self { @@ -1246,8 +1246,8 @@ pub struct CommunityGalleryImageProperties { #[serde(rename = "osState")] pub os_state: community_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -1387,11 +1387,11 @@ impl CommunityGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommunityGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version."] #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, @@ -2056,8 +2056,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "The date when the host was first provisioned."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2065,8 +2065,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Dedicated Host resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DedicatedHostProperties { pub fn new() -> Self { @@ -2408,8 +2408,8 @@ pub struct DiskAccessProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time when the disk access was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DiskAccessProperties { pub fn new() -> Self { @@ -2635,8 +2635,8 @@ impl DiskList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DiskProperties { #[doc = "The time when the disk was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -2856,8 +2856,8 @@ impl DiskRestorePointList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiskRestorePointProperties { #[doc = "The timestamp of restorePoint creation"] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "arm id of source disk or source disk restore point."] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -3368,8 +3368,8 @@ pub struct EncryptionSetProperties { #[serde(rename = "rotationToLatestKeyVersionEnabled", default, skip_serializing_if = "Option::is_none")] pub rotation_to_latest_key_version_enabled: Option, #[doc = "The time when the active key of this disk encryption set was updated."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, #[doc = "Api error."] #[serde(rename = "autoKeyRotationError", default, skip_serializing_if = "Option::is_none")] pub auto_key_rotation_error: Option, @@ -3598,8 +3598,8 @@ pub struct GalleryApplicationProperties { #[serde(rename = "releaseNoteUri", default, skip_serializing_if = "Option::is_none")] pub release_note_uri: Option, #[doc = "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**"] #[serde(rename = "supportedOSType")] pub supported_os_type: gallery_application_properties::SupportedOsType, @@ -3756,11 +3756,11 @@ pub struct GalleryArtifactPublishingProfileBase { #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, #[doc = "The timestamp for when the gallery image version is published."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "Specifies the storage account type to be used to store the image. This property is not updatable."] #[serde(rename = "storageAccountType", default, skip_serializing_if = "Option::is_none")] pub storage_account_type: Option, @@ -4084,8 +4084,8 @@ pub struct GalleryImageProperties { #[serde(rename = "hyperVGeneration", default, skip_serializing_if = "Option::is_none")] pub hyper_v_generation: Option, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -5435,8 +5435,8 @@ pub struct InstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InstanceViewStatus { pub fn new() -> Self { @@ -5568,11 +5568,11 @@ pub struct LastPatchInstallationSummary { #[serde(rename = "failedPatchCount", default, skip_serializing_if = "Option::is_none")] pub failed_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -5908,11 +5908,11 @@ pub struct LogAnalyticsInputBase { #[serde(rename = "blobContainerSasUri")] pub blob_container_sas_uri: String, #[doc = "From time of the query"] - #[serde(rename = "fromTime")] - pub from_time: String, + #[serde(rename = "fromTime", with = "azure_core::date::rfc3339")] + pub from_time: time::OffsetDateTime, #[doc = "To time of the query"] - #[serde(rename = "toTime")] - pub to_time: String, + #[serde(rename = "toTime", with = "azure_core::date::rfc3339")] + pub to_time: time::OffsetDateTime, #[doc = "Group query result by Throttle Policy applied."] #[serde(rename = "groupByThrottlePolicy", default, skip_serializing_if = "Option::is_none")] pub group_by_throttle_policy: Option, @@ -5930,7 +5930,7 @@ pub struct LogAnalyticsInputBase { pub group_by_user_agent: Option, } impl LogAnalyticsInputBase { - pub fn new(blob_container_sas_uri: String, from_time: String, to_time: String) -> Self { + pub fn new(blob_container_sas_uri: String, from_time: time::OffsetDateTime, to_time: time::OffsetDateTime) -> Self { Self { blob_container_sas_uri, from_time, @@ -5974,17 +5974,17 @@ pub struct MaintenanceRedeployStatus { #[serde(rename = "isCustomerInitiatedMaintenanceAllowed", default, skip_serializing_if = "Option::is_none")] pub is_customer_initiated_maintenance_allowed: Option, #[doc = "Start Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_start_time: Option, + #[serde(rename = "preMaintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_start_time: Option, #[doc = "End Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_end_time: Option, + #[serde(rename = "preMaintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_end_time: Option, #[doc = "Start Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_start_time: Option, + #[serde(rename = "maintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_start_time: Option, #[doc = "End Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_end_time: Option, + #[serde(rename = "maintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_end_time: Option, #[doc = "The Last Maintenance Operation Result Code."] #[serde(rename = "lastOperationResultCode", default, skip_serializing_if = "Option::is_none")] pub last_operation_result_code: Option, @@ -7805,8 +7805,8 @@ pub struct ResourceInstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The level code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub level: Option, @@ -8278,8 +8278,8 @@ pub struct RestorePointProperties { #[serde(rename = "consistencyMode", default, skip_serializing_if = "Option::is_none")] pub consistency_mode: Option, #[doc = "Gets the creation time of the restore point."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The API entity reference."] #[serde(rename = "sourceRestorePoint", default, skip_serializing_if = "Option::is_none")] pub source_restore_point: Option, @@ -8669,14 +8669,14 @@ pub struct RollingUpgradeRunningStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The last action performed on the rolling upgrade."] #[serde(rename = "lastAction", default, skip_serializing_if = "Option::is_none")] pub last_action: Option, #[doc = "Last action time of the upgrade."] - #[serde(rename = "lastActionTime", default, skip_serializing_if = "Option::is_none")] - pub last_action_time: Option, + #[serde(rename = "lastActionTime", with = "azure_core::date::rfc3339::option")] + pub last_action_time: Option, } impl RollingUpgradeRunningStatus { pub fn new() -> Self { @@ -9120,8 +9120,8 @@ pub struct SharedGalleryImageProperties { #[serde(rename = "osState")] pub os_state: shared_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -9253,11 +9253,11 @@ impl SharedGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SharedGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version."] #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, @@ -9621,8 +9621,8 @@ impl SnapshotList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SnapshotProperties { #[doc = "The time when the snapshot was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -10451,11 +10451,11 @@ pub struct UpgradeOperationHistoryStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the upgrade."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl UpgradeOperationHistoryStatus { pub fn new() -> Self { @@ -10839,8 +10839,8 @@ pub struct VirtualMachineAssessPatchesResult { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The list of patches that have been detected as available for installation."] #[serde(rename = "availablePatches", default, skip_serializing_if = "Vec::is_empty")] pub available_patches: Vec, @@ -11394,8 +11394,8 @@ pub struct VirtualMachineInstallPatchesResult { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub patches: Vec, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -11912,8 +11912,8 @@ pub struct VirtualMachineProperties { #[serde(rename = "applicationProfile", default, skip_serializing_if = "Option::is_none")] pub application_profile: Option, #[doc = "Specifies the time at which the Virtual Machine resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineProperties { pub fn new() -> Self { @@ -12144,11 +12144,11 @@ pub struct VirtualMachineRunCommandInstanceView { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Script start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Script end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource status information."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub statuses: Vec, @@ -13112,8 +13112,8 @@ pub struct VirtualMachineScaleSetProperties { #[serde(rename = "spotRestorePolicy", default, skip_serializing_if = "Option::is_none")] pub spot_restore_policy: Option, #[doc = "Specifies the time at which the Virtual Machine Scale Set resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineScaleSetProperties { pub fn new() -> Self { @@ -14233,11 +14233,11 @@ pub struct VirtualMachineSoftwarePatchProperties { #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, #[doc = "The UTC timestamp when the repository published this patch."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The UTC timestamp of the last update to this patch record."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Describes the availability of a given patch."] #[serde(rename = "assessmentState", default, skip_serializing_if = "Option::is_none")] pub assessment_state: Option, @@ -14460,8 +14460,8 @@ pub struct WindowsParameters { #[serde(rename = "excludeKbsRequiringReboot", default, skip_serializing_if = "Option::is_none")] pub exclude_kbs_requiring_reboot: Option, #[doc = "This is used to install patches that were published on or before this given max published date."] - #[serde(rename = "maxPatchPublishDate", default, skip_serializing_if = "Option::is_none")] - pub max_patch_publish_date: Option, + #[serde(rename = "maxPatchPublishDate", with = "azure_core::date::rfc3339::option")] + pub max_patch_publish_date: Option, } impl WindowsParameters { pub fn new() -> Self { diff --git a/services/mgmt/compute/src/package_2022_04_04/models.rs b/services/mgmt/compute/src/package_2022_04_04/models.rs index d007849a0cd..8f8c593a068 100644 --- a/services/mgmt/compute/src/package_2022_04_04/models.rs +++ b/services/mgmt/compute/src/package_2022_04_04/models.rs @@ -446,11 +446,11 @@ pub struct AvailablePatchSummary { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -735,8 +735,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "virtualMachinesAssociated", default, skip_serializing_if = "Vec::is_empty")] pub virtual_machines_associated: Vec, #[doc = "The date time when the capacity reservation was last updated."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -744,8 +744,8 @@ pub struct CapacityReservationProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Capacity Reservation resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl CapacityReservationProperties { pub fn new() -> Self { @@ -1299,8 +1299,8 @@ pub struct CommunityGalleryImageProperties { #[serde(rename = "osState")] pub os_state: community_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -1440,11 +1440,11 @@ impl CommunityGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommunityGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version."] #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, @@ -2109,8 +2109,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "licenseType", default, skip_serializing_if = "Option::is_none")] pub license_type: Option, #[doc = "The date when the host was first provisioned."] - #[serde(rename = "provisioningTime", default, skip_serializing_if = "Option::is_none")] - pub provisioning_time: Option, + #[serde(rename = "provisioningTime", with = "azure_core::date::rfc3339::option")] + pub provisioning_time: Option, #[doc = "The provisioning state, which only appears in the response."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2118,8 +2118,8 @@ pub struct DedicatedHostProperties { #[serde(rename = "instanceView", default, skip_serializing_if = "Option::is_none")] pub instance_view: Option, #[doc = "Specifies the time at which the Dedicated Host resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DedicatedHostProperties { pub fn new() -> Self { @@ -2461,8 +2461,8 @@ pub struct DiskAccessProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time when the disk access was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl DiskAccessProperties { pub fn new() -> Self { @@ -2688,8 +2688,8 @@ impl DiskList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DiskProperties { #[doc = "The time when the disk was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -2909,8 +2909,8 @@ impl DiskRestorePointList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiskRestorePointProperties { #[doc = "The timestamp of restorePoint creation"] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "arm id of source disk or source disk restore point."] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -3421,8 +3421,8 @@ pub struct EncryptionSetProperties { #[serde(rename = "rotationToLatestKeyVersionEnabled", default, skip_serializing_if = "Option::is_none")] pub rotation_to_latest_key_version_enabled: Option, #[doc = "The time when the active key of this disk encryption set was updated."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, #[doc = "Api error."] #[serde(rename = "autoKeyRotationError", default, skip_serializing_if = "Option::is_none")] pub auto_key_rotation_error: Option, @@ -3651,8 +3651,8 @@ pub struct GalleryApplicationProperties { #[serde(rename = "releaseNoteUri", default, skip_serializing_if = "Option::is_none")] pub release_note_uri: Option, #[doc = "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**"] #[serde(rename = "supportedOSType")] pub supported_os_type: gallery_application_properties::SupportedOsType, @@ -3809,11 +3809,11 @@ pub struct GalleryArtifactPublishingProfileBase { #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, #[doc = "The timestamp for when the gallery image version is published."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "Specifies the storage account type to be used to store the image. This property is not updatable."] #[serde(rename = "storageAccountType", default, skip_serializing_if = "Option::is_none")] pub storage_account_type: Option, @@ -4137,8 +4137,8 @@ pub struct GalleryImageProperties { #[serde(rename = "hyperVGeneration", default, skip_serializing_if = "Option::is_none")] pub hyper_v_generation: Option, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -5489,8 +5489,8 @@ pub struct InstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl InstanceViewStatus { pub fn new() -> Self { @@ -5623,11 +5623,11 @@ pub struct LastPatchInstallationSummary { #[serde(rename = "failedPatchCount", default, skip_serializing_if = "Option::is_none")] pub failed_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -5966,11 +5966,11 @@ pub struct LogAnalyticsInputBase { #[serde(rename = "blobContainerSasUri")] pub blob_container_sas_uri: String, #[doc = "From time of the query"] - #[serde(rename = "fromTime")] - pub from_time: String, + #[serde(rename = "fromTime", with = "azure_core::date::rfc3339")] + pub from_time: time::OffsetDateTime, #[doc = "To time of the query"] - #[serde(rename = "toTime")] - pub to_time: String, + #[serde(rename = "toTime", with = "azure_core::date::rfc3339")] + pub to_time: time::OffsetDateTime, #[doc = "Group query result by Throttle Policy applied."] #[serde(rename = "groupByThrottlePolicy", default, skip_serializing_if = "Option::is_none")] pub group_by_throttle_policy: Option, @@ -5988,7 +5988,7 @@ pub struct LogAnalyticsInputBase { pub group_by_user_agent: Option, } impl LogAnalyticsInputBase { - pub fn new(blob_container_sas_uri: String, from_time: String, to_time: String) -> Self { + pub fn new(blob_container_sas_uri: String, from_time: time::OffsetDateTime, to_time: time::OffsetDateTime) -> Self { Self { blob_container_sas_uri, from_time, @@ -6032,17 +6032,17 @@ pub struct MaintenanceRedeployStatus { #[serde(rename = "isCustomerInitiatedMaintenanceAllowed", default, skip_serializing_if = "Option::is_none")] pub is_customer_initiated_maintenance_allowed: Option, #[doc = "Start Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_start_time: Option, + #[serde(rename = "preMaintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_start_time: Option, #[doc = "End Time for the Pre Maintenance Window."] - #[serde(rename = "preMaintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub pre_maintenance_window_end_time: Option, + #[serde(rename = "preMaintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub pre_maintenance_window_end_time: Option, #[doc = "Start Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_start_time: Option, + #[serde(rename = "maintenanceWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_start_time: Option, #[doc = "End Time for the Maintenance Window."] - #[serde(rename = "maintenanceWindowEndTime", default, skip_serializing_if = "Option::is_none")] - pub maintenance_window_end_time: Option, + #[serde(rename = "maintenanceWindowEndTime", with = "azure_core::date::rfc3339::option")] + pub maintenance_window_end_time: Option, #[doc = "The Last Maintenance Operation Result Code."] #[serde(rename = "lastOperationResultCode", default, skip_serializing_if = "Option::is_none")] pub last_operation_result_code: Option, @@ -7869,8 +7869,8 @@ pub struct ResourceInstanceViewStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "The level code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub level: Option, @@ -8342,8 +8342,8 @@ pub struct RestorePointProperties { #[serde(rename = "consistencyMode", default, skip_serializing_if = "Option::is_none")] pub consistency_mode: Option, #[doc = "Gets the creation time of the restore point."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The API entity reference."] #[serde(rename = "sourceRestorePoint", default, skip_serializing_if = "Option::is_none")] pub source_restore_point: Option, @@ -8740,14 +8740,14 @@ pub struct RollingUpgradeRunningStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The last action performed on the rolling upgrade."] #[serde(rename = "lastAction", default, skip_serializing_if = "Option::is_none")] pub last_action: Option, #[doc = "Last action time of the upgrade."] - #[serde(rename = "lastActionTime", default, skip_serializing_if = "Option::is_none")] - pub last_action_time: Option, + #[serde(rename = "lastActionTime", with = "azure_core::date::rfc3339::option")] + pub last_action_time: Option, } impl RollingUpgradeRunningStatus { pub fn new() -> Self { @@ -9191,8 +9191,8 @@ pub struct SharedGalleryImageProperties { #[serde(rename = "osState")] pub os_state: shared_gallery_image_properties::OsState, #[doc = "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "This is the gallery image definition identifier."] pub identifier: GalleryImageIdentifier, #[doc = "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable."] @@ -9324,11 +9324,11 @@ impl SharedGalleryImageVersionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SharedGalleryImageVersionProperties { #[doc = "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."] - #[serde(rename = "endOfLifeDate", default, skip_serializing_if = "Option::is_none")] - pub end_of_life_date: Option, + #[serde(rename = "endOfLifeDate", with = "azure_core::date::rfc3339::option")] + pub end_of_life_date: Option, #[doc = "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version."] #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, @@ -9692,8 +9692,8 @@ impl SnapshotList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SnapshotProperties { #[doc = "The time when the snapshot was created."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, #[doc = "The Operating System type."] #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, @@ -10290,11 +10290,11 @@ pub mod supported_capabilities { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SystemData { #[doc = "Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -10541,11 +10541,11 @@ pub struct UpgradeOperationHistoryStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, #[doc = "Start time of the upgrade."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the upgrade."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl UpgradeOperationHistoryStatus { pub fn new() -> Self { @@ -10929,8 +10929,8 @@ pub struct VirtualMachineAssessPatchesResult { #[serde(rename = "otherPatchCount", default, skip_serializing_if = "Option::is_none")] pub other_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The list of patches that have been detected as available for installation."] #[serde(rename = "availablePatches", default, skip_serializing_if = "Vec::is_empty")] pub available_patches: Vec, @@ -11484,8 +11484,8 @@ pub struct VirtualMachineInstallPatchesResult { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub patches: Vec, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "Api error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -12002,8 +12002,8 @@ pub struct VirtualMachineProperties { #[serde(rename = "applicationProfile", default, skip_serializing_if = "Option::is_none")] pub application_profile: Option, #[doc = "Specifies the time at which the Virtual Machine resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineProperties { pub fn new() -> Self { @@ -12234,11 +12234,11 @@ pub struct VirtualMachineRunCommandInstanceView { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "Script start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Script end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource status information."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub statuses: Vec, @@ -13202,8 +13202,8 @@ pub struct VirtualMachineScaleSetProperties { #[serde(rename = "spotRestorePolicy", default, skip_serializing_if = "Option::is_none")] pub spot_restore_policy: Option, #[doc = "Specifies the time at which the Virtual Machine Scale Set resource was created.

Minimum api-version: 2022-03-01."] - #[serde(rename = "timeCreated", default, skip_serializing_if = "Option::is_none")] - pub time_created: Option, + #[serde(rename = "timeCreated", with = "azure_core::date::rfc3339::option")] + pub time_created: Option, } impl VirtualMachineScaleSetProperties { pub fn new() -> Self { @@ -14323,11 +14323,11 @@ pub struct VirtualMachineSoftwarePatchProperties { #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, #[doc = "The UTC timestamp when the repository published this patch."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "The UTC timestamp of the last update to this patch record."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Describes the availability of a given patch."] #[serde(rename = "assessmentState", default, skip_serializing_if = "Option::is_none")] pub assessment_state: Option, @@ -14550,8 +14550,8 @@ pub struct WindowsParameters { #[serde(rename = "excludeKbsRequiringReboot", default, skip_serializing_if = "Option::is_none")] pub exclude_kbs_requiring_reboot: Option, #[doc = "This is used to install patches that were published on or before this given max published date."] - #[serde(rename = "maxPatchPublishDate", default, skip_serializing_if = "Option::is_none")] - pub max_patch_publish_date: Option, + #[serde(rename = "maxPatchPublishDate", with = "azure_core::date::rfc3339::option")] + pub max_patch_publish_date: Option, } impl WindowsParameters { pub fn new() -> Self { diff --git a/services/mgmt/confidentialledger/Cargo.toml b/services/mgmt/confidentialledger/Cargo.toml index 5ab27908aed..a2295c5e860 100644 --- a/services/mgmt/confidentialledger/Cargo.toml +++ b/services/mgmt/confidentialledger/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs b/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs index 94ae94197ed..9814e0f959f 100644 --- a/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs +++ b/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs @@ -409,8 +409,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -418,8 +418,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs b/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs index ea7c4304974..08287fb07bb 100644 --- a/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs +++ b/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs @@ -479,8 +479,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -488,8 +488,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs b/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs index ea7c4304974..08287fb07bb 100644 --- a/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs +++ b/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs @@ -479,8 +479,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -488,8 +488,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/confluent/Cargo.toml b/services/mgmt/confluent/Cargo.toml index 569de46abe9..077893bd3aa 100644 --- a/services/mgmt/confluent/Cargo.toml +++ b/services/mgmt/confluent/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/confluent/src/package_2020_03_01/models.rs b/services/mgmt/confluent/src/package_2020_03_01/models.rs index 24c3ce6807c..f2d5843e8c2 100644 --- a/services/mgmt/confluent/src/package_2020_03_01/models.rs +++ b/services/mgmt/confluent/src/package_2020_03_01/models.rs @@ -23,8 +23,8 @@ pub struct ConfluentAgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -239,8 +239,8 @@ impl OrganizationResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OrganizationResourceProperties { #[doc = "The creation time of the resource."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Provision states for confluent RP"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs b/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs index c36fe085375..b67912227d7 100644 --- a/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs +++ b/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs @@ -23,8 +23,8 @@ pub struct ConfluentAgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -239,8 +239,8 @@ impl OrganizationResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OrganizationResourceProperties { #[doc = "The creation time of the resource."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Provision states for confluent RP"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs b/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs index d394e639908..2c36d03fa6a 100644 --- a/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs +++ b/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs @@ -23,8 +23,8 @@ pub struct ConfluentAgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -258,8 +258,8 @@ impl OrganizationResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OrganizationResourceProperties { #[doc = "The creation time of the resource."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Provision states for confluent RP"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -454,8 +454,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -463,8 +463,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/confluent/src/package_2021_12_01/models.rs b/services/mgmt/confluent/src/package_2021_12_01/models.rs index d394e639908..2c36d03fa6a 100644 --- a/services/mgmt/confluent/src/package_2021_12_01/models.rs +++ b/services/mgmt/confluent/src/package_2021_12_01/models.rs @@ -23,8 +23,8 @@ pub struct ConfluentAgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -258,8 +258,8 @@ impl OrganizationResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OrganizationResourceProperties { #[doc = "The creation time of the resource."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Provision states for confluent RP"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -454,8 +454,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -463,8 +463,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/confluent/src/package_preview_2021_09/models.rs b/services/mgmt/confluent/src/package_preview_2021_09/models.rs index d394e639908..2c36d03fa6a 100644 --- a/services/mgmt/confluent/src/package_preview_2021_09/models.rs +++ b/services/mgmt/confluent/src/package_preview_2021_09/models.rs @@ -23,8 +23,8 @@ pub struct ConfluentAgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -258,8 +258,8 @@ impl OrganizationResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OrganizationResourceProperties { #[doc = "The creation time of the resource."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Provision states for confluent RP"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -454,8 +454,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -463,8 +463,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/connectedvmware/Cargo.toml b/services/mgmt/connectedvmware/Cargo.toml index c962630a370..3360583b1b1 100644 --- a/services/mgmt/connectedvmware/Cargo.toml +++ b/services/mgmt/connectedvmware/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs index 084090924b9..b8ca89f2868 100644 --- a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs @@ -516,8 +516,8 @@ pub struct GuestAgentProfile { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the last status change."] - #[serde(rename = "lastStatusChange", default, skip_serializing_if = "Option::is_none")] - pub last_status_change: Option, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339::option")] + pub last_status_change: Option, #[doc = "The hybrid machine agent full version."] #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, @@ -1152,8 +1152,8 @@ pub mod machine_extension_instance_view { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl Status { pub fn new() -> Self { @@ -1911,8 +1911,8 @@ pub struct ResourceStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "The last update time for this condition."] - #[serde(rename = "lastUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub last_updated_at: Option, + #[serde(rename = "lastUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub last_updated_at: Option, } impl ResourceStatus { pub fn new() -> Self { @@ -2856,8 +2856,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2865,8 +2865,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs b/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs index cc9aa5952ae..06389631d94 100644 --- a/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs +++ b/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs @@ -552,8 +552,8 @@ pub struct GuestAgentProfile { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the last status change."] - #[serde(rename = "lastStatusChange", default, skip_serializing_if = "Option::is_none")] - pub last_status_change: Option, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339::option")] + pub last_status_change: Option, #[doc = "The hybrid machine agent full version."] #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, @@ -1206,8 +1206,8 @@ pub mod machine_extension_instance_view { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl Status { pub fn new() -> Self { @@ -2067,8 +2067,8 @@ pub struct ResourceStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "The last update time for this condition."] - #[serde(rename = "lastUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub last_updated_at: Option, + #[serde(rename = "lastUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub last_updated_at: Option, } impl ResourceStatus { pub fn new() -> Self { @@ -2447,11 +2447,11 @@ pub struct VirtualMachineAssessPatchesResult { #[serde(rename = "availablePatchCountByClassification", default, skip_serializing_if = "Option::is_none")] pub available_patch_count_by_classification: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The UTC timestamp when the operation finished."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Indicates if operation was triggered by user or by platform."] #[serde(rename = "startedBy", default, skip_serializing_if = "Option::is_none")] pub started_by: Option, @@ -2737,11 +2737,11 @@ pub struct VirtualMachineInstallPatchesResult { #[serde(rename = "failedPatchCount", default, skip_serializing_if = "Option::is_none")] pub failed_patch_count: Option, #[doc = "The UTC timestamp when the operation began."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The UTC timestamp when the operation finished."] - #[serde(rename = "lastModifiedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_date_time: Option, + #[serde(rename = "lastModifiedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_date_time: Option, #[doc = "Indicates if operation was triggered by user or by platform."] #[serde(rename = "startedBy", default, skip_serializing_if = "Option::is_none")] pub started_by: Option, @@ -3528,8 +3528,8 @@ pub struct WindowsParameters { #[serde(rename = "excludeKbsRequiringReboot", default, skip_serializing_if = "Option::is_none")] pub exclude_kbs_requiring_reboot: Option, #[doc = "This is used to install patches that were published on or before this given max published date."] - #[serde(rename = "maxPatchPublishDate", default, skip_serializing_if = "Option::is_none")] - pub max_patch_publish_date: Option, + #[serde(rename = "maxPatchPublishDate", with = "azure_core::date::rfc3339::option")] + pub max_patch_publish_date: Option, } impl WindowsParameters { pub fn new() -> Self { @@ -3608,8 +3608,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3617,8 +3617,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/consumption/Cargo.toml b/services/mgmt/consumption/Cargo.toml index bad6b731078..31d92e00f7b 100644 --- a/services/mgmt/consumption/Cargo.toml +++ b/services/mgmt/consumption/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/consumption/src/package_2019_10/models.rs b/services/mgmt/consumption/src/package_2019_10/models.rs index 5f71421e588..aee200661ae 100644 --- a/services/mgmt/consumption/src/package_2019_10/models.rs +++ b/services/mgmt/consumption/src/package_2019_10/models.rs @@ -366,14 +366,14 @@ pub mod budget_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BudgetTimePeriod { #[doc = "The start date for the budget."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The end date for the budget. If not provided, we default this to 10 years from the start date."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, } impl BudgetTimePeriod { - pub fn new(start_date: String) -> Self { + pub fn new(start_date: time::OffsetDateTime) -> Self { Self { start_date, end_date: None, @@ -609,8 +609,8 @@ pub struct EventProperties { #[serde(rename = "billingCurrency", default, skip_serializing_if = "Option::is_none")] pub billing_currency: Option, #[doc = "Transaction date."] - #[serde(rename = "transactionDate", default, skip_serializing_if = "Option::is_none")] - pub transaction_date: Option, + #[serde(rename = "transactionDate", with = "azure_core::date::rfc3339::option")] + pub transaction_date: Option, #[doc = "Transaction description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1026,8 +1026,8 @@ pub struct LegacyReservationRecommendationProperties { #[serde(rename = "netSavings", default, skip_serializing_if = "Option::is_none")] pub net_savings: Option, #[doc = "The usage date for looking back."] - #[serde(rename = "firstUsageDate", default, skip_serializing_if = "Option::is_none")] - pub first_usage_date: Option, + #[serde(rename = "firstUsageDate", with = "azure_core::date::rfc3339::option")] + pub first_usage_date: Option, #[doc = "Shared or single recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, @@ -1060,8 +1060,8 @@ impl LegacyReservationTransaction { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LegacyReservationTransactionProperties { #[doc = "The date of the transaction"] - #[serde(rename = "eventDate", default, skip_serializing_if = "Option::is_none")] - pub event_date: Option, + #[serde(rename = "eventDate", with = "azure_core::date::rfc3339::option")] + pub event_date: Option, #[doc = "The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations."] #[serde(rename = "reservationOrderId", default, skip_serializing_if = "Option::is_none")] pub reservation_order_id: Option, @@ -1148,11 +1148,11 @@ pub struct LegacyUsageDetailProperties { #[serde(rename = "billingAccountName", default, skip_serializing_if = "Option::is_none")] pub billing_account_name: Option, #[doc = "The billing period start date."] - #[serde(rename = "billingPeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_start_date: Option, + #[serde(rename = "billingPeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_start_date: Option, #[doc = "The billing period end date."] - #[serde(rename = "billingPeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_end_date: Option, + #[serde(rename = "billingPeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_end_date: Option, #[doc = "Billing Profile identifier."] #[serde(rename = "billingProfileId", default, skip_serializing_if = "Option::is_none")] pub billing_profile_id: Option, @@ -1172,8 +1172,8 @@ pub struct LegacyUsageDetailProperties { #[serde(rename = "subscriptionName", default, skip_serializing_if = "Option::is_none")] pub subscription_name: Option, #[doc = "Date for the usage record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Product name for the consumed service or purchase. Not available for Marketplace."] #[serde(default, skip_serializing_if = "Option::is_none")] pub product: Option, @@ -1298,11 +1298,11 @@ pub struct LotProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, #[doc = "Start date."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Expiration date."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "PO number."] #[serde(rename = "poNumber", default, skip_serializing_if = "Option::is_none")] pub po_number: Option, @@ -1397,11 +1397,11 @@ pub struct ManagementGroupAggregatedCostProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by aggregated cost."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the aggregated cost."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "Azure Charges."] #[serde(rename = "azureCharges", default, skip_serializing_if = "Option::is_none")] pub azure_charges: Option, @@ -1464,11 +1464,11 @@ pub struct MarketplaceProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by the usage detail."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the usage detail."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The marketplace resource rate."] #[serde(rename = "resourceRate", default, skip_serializing_if = "Option::is_none")] pub resource_rate: Option, @@ -1739,8 +1739,8 @@ pub struct ModernReservationRecommendationProperties { #[serde(rename = "netSavings", default, skip_serializing_if = "Option::is_none")] pub net_savings: Option, #[doc = "The usage date for looking back."] - #[serde(rename = "firstUsageDate", default, skip_serializing_if = "Option::is_none")] - pub first_usage_date: Option, + #[serde(rename = "firstUsageDate", with = "azure_core::date::rfc3339::option")] + pub first_usage_date: Option, #[doc = "Shared (corresponds to integer 2) or single (corresponds to integer 1) recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, @@ -1803,8 +1803,8 @@ pub struct ModernReservationTransactionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The date of the transaction"] - #[serde(rename = "eventDate", default, skip_serializing_if = "Option::is_none")] - pub event_date: Option, + #[serde(rename = "eventDate", with = "azure_core::date::rfc3339::option")] + pub event_date: Option, #[doc = "The type of the transaction (Purchase, Cancel, etc.)"] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, @@ -1891,11 +1891,11 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "billingAccountName", default, skip_serializing_if = "Option::is_none")] pub billing_account_name: Option, #[doc = "Billing Period Start Date as in the invoice."] - #[serde(rename = "billingPeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_start_date: Option, + #[serde(rename = "billingPeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_start_date: Option, #[doc = "Billing Period End Date as in the invoice."] - #[serde(rename = "billingPeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_end_date: Option, + #[serde(rename = "billingPeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_end_date: Option, #[doc = "Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc."] #[serde(rename = "billingProfileId", default, skip_serializing_if = "Option::is_none")] pub billing_profile_id: Option, @@ -1909,8 +1909,8 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "subscriptionName", default, skip_serializing_if = "Option::is_none")] pub subscription_name: Option, #[doc = "Date for the usage record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace."] #[serde(default, skip_serializing_if = "Option::is_none")] pub product: Option, @@ -2017,8 +2017,8 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "exchangeRate", default, skip_serializing_if = "Option::is_none")] pub exchange_rate: Option, #[doc = "Date on which exchange rate used in conversion from pricing currency to billing currency."] - #[serde(rename = "exchangeRateDate", default, skip_serializing_if = "Option::is_none")] - pub exchange_rate_date: Option, + #[serde(rename = "exchangeRateDate", with = "azure_core::date::rfc3339::option")] + pub exchange_rate_date: Option, #[doc = "Invoice ID as on the invoice where the specific transaction appears."] #[serde(rename = "invoiceId", default, skip_serializing_if = "Option::is_none")] pub invoice_id: Option, @@ -2035,11 +2035,11 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "resourceLocationNormalized", default, skip_serializing_if = "Option::is_none")] pub resource_location_normalized: Option, #[doc = "Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period."] - #[serde(rename = "servicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_start_date: Option, + #[serde(rename = "servicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub service_period_start_date: Option, #[doc = "End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period."] - #[serde(rename = "servicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_end_date: Option, + #[serde(rename = "servicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub service_period_end_date: Option, #[doc = "Identifier of the customer's AAD tenant."] #[serde(rename = "customerTenantId", default, skip_serializing_if = "Option::is_none")] pub customer_tenant_id: Option, @@ -2508,8 +2508,8 @@ pub struct ReservationDetailProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "The date on which consumption occurred."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "This is the total hours used by the instance."] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, @@ -2843,8 +2843,8 @@ pub struct ReservationSummaryProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "Total used hours by the reservation"] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, diff --git a/services/mgmt/consumption/src/package_2021_10/models.rs b/services/mgmt/consumption/src/package_2021_10/models.rs index ec7e0dcaf25..dcc3be4c59c 100644 --- a/services/mgmt/consumption/src/package_2021_10/models.rs +++ b/services/mgmt/consumption/src/package_2021_10/models.rs @@ -363,14 +363,14 @@ pub mod budget_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BudgetTimePeriod { #[doc = "The start date for the budget."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The end date for the budget. If not provided, we default this to 10 years from the start date."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, } impl BudgetTimePeriod { - pub fn new(start_date: String) -> Self { + pub fn new(start_date: time::OffsetDateTime) -> Self { Self { start_date, end_date: None, @@ -600,8 +600,8 @@ impl ErrorResponse { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventProperties { #[doc = "The date of the event."] - #[serde(rename = "transactionDate", default, skip_serializing_if = "Option::is_none")] - pub transaction_date: Option, + #[serde(rename = "transactionDate", with = "azure_core::date::rfc3339::option")] + pub transaction_date: Option, #[doc = "The description of the event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -905,8 +905,8 @@ pub struct LegacyReservationRecommendationProperties { #[serde(rename = "netSavings", default, skip_serializing_if = "Option::is_none")] pub net_savings: Option, #[doc = "The usage date for looking back."] - #[serde(rename = "firstUsageDate", default, skip_serializing_if = "Option::is_none")] - pub first_usage_date: Option, + #[serde(rename = "firstUsageDate", with = "azure_core::date::rfc3339::option")] + pub first_usage_date: Option, #[doc = "Shared or single recommendation."] pub scope: String, #[doc = "List of sku properties"] @@ -954,8 +954,8 @@ impl LegacyReservationTransaction { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LegacyReservationTransactionProperties { #[doc = "The date of the transaction"] - #[serde(rename = "eventDate", default, skip_serializing_if = "Option::is_none")] - pub event_date: Option, + #[serde(rename = "eventDate", with = "azure_core::date::rfc3339::option")] + pub event_date: Option, #[doc = "The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations."] #[serde(rename = "reservationOrderId", default, skip_serializing_if = "Option::is_none")] pub reservation_order_id: Option, @@ -1081,11 +1081,11 @@ pub struct LegacyUsageDetailProperties { #[serde(rename = "billingAccountName", default, skip_serializing_if = "Option::is_none")] pub billing_account_name: Option, #[doc = "The billing period start date."] - #[serde(rename = "billingPeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_start_date: Option, + #[serde(rename = "billingPeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_start_date: Option, #[doc = "The billing period end date."] - #[serde(rename = "billingPeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_end_date: Option, + #[serde(rename = "billingPeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_end_date: Option, #[doc = "Billing Profile identifier."] #[serde(rename = "billingProfileId", default, skip_serializing_if = "Option::is_none")] pub billing_profile_id: Option, @@ -1105,8 +1105,8 @@ pub struct LegacyUsageDetailProperties { #[serde(rename = "subscriptionName", default, skip_serializing_if = "Option::is_none")] pub subscription_name: Option, #[doc = "Date for the usage record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Product name for the consumed service or purchase. Not available for Marketplace."] #[serde(default, skip_serializing_if = "Option::is_none")] pub product: Option, @@ -1274,17 +1274,17 @@ pub struct LotProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, #[doc = "The date when the lot became effective."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "The expiration date of a lot."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots."] #[serde(rename = "poNumber", default, skip_serializing_if = "Option::is_none")] pub po_number: Option, #[doc = "The date when the lot was added."] - #[serde(rename = "purchasedDate", default, skip_serializing_if = "Option::is_none")] - pub purchased_date: Option, + #[serde(rename = "purchasedDate", with = "azure_core::date::rfc3339::option")] + pub purchased_date: Option, #[doc = "The status of the lot."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1441,11 +1441,11 @@ pub struct ManagementGroupAggregatedCostProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by aggregated cost."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the aggregated cost."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "Azure Charges."] #[serde(rename = "azureCharges", default, skip_serializing_if = "Option::is_none")] pub azure_charges: Option, @@ -1508,11 +1508,11 @@ pub struct MarketplaceProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by the usage detail."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the usage detail."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The marketplace resource rate."] #[serde(rename = "resourceRate", default, skip_serializing_if = "Option::is_none")] pub resource_rate: Option, @@ -1783,8 +1783,8 @@ pub struct ModernReservationRecommendationProperties { #[serde(rename = "netSavings", default, skip_serializing_if = "Option::is_none")] pub net_savings: Option, #[doc = "The usage date for looking back."] - #[serde(rename = "firstUsageDate", default, skip_serializing_if = "Option::is_none")] - pub first_usage_date: Option, + #[serde(rename = "firstUsageDate", with = "azure_core::date::rfc3339::option")] + pub first_usage_date: Option, #[doc = "Shared or single recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, @@ -1841,8 +1841,8 @@ pub struct ModernReservationTransactionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The date of the transaction"] - #[serde(rename = "eventDate", default, skip_serializing_if = "Option::is_none")] - pub event_date: Option, + #[serde(rename = "eventDate", with = "azure_core::date::rfc3339::option")] + pub event_date: Option, #[doc = "The type of the transaction (Purchase, Cancel or Refund)."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, @@ -1935,11 +1935,11 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "billingAccountName", default, skip_serializing_if = "Option::is_none")] pub billing_account_name: Option, #[doc = "Billing Period Start Date as in the invoice."] - #[serde(rename = "billingPeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_start_date: Option, + #[serde(rename = "billingPeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_start_date: Option, #[doc = "Billing Period End Date as in the invoice."] - #[serde(rename = "billingPeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_end_date: Option, + #[serde(rename = "billingPeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_end_date: Option, #[doc = "Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc."] #[serde(rename = "billingProfileId", default, skip_serializing_if = "Option::is_none")] pub billing_profile_id: Option, @@ -1953,8 +1953,8 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "subscriptionName", default, skip_serializing_if = "Option::is_none")] pub subscription_name: Option, #[doc = "Date for the usage record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace."] #[serde(default, skip_serializing_if = "Option::is_none")] pub product: Option, @@ -2061,8 +2061,8 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "exchangeRate", default, skip_serializing_if = "Option::is_none")] pub exchange_rate: Option, #[doc = "Date on which exchange rate used in conversion from pricing currency to billing currency."] - #[serde(rename = "exchangeRateDate", default, skip_serializing_if = "Option::is_none")] - pub exchange_rate_date: Option, + #[serde(rename = "exchangeRateDate", with = "azure_core::date::rfc3339::option")] + pub exchange_rate_date: Option, #[doc = "Invoice ID as on the invoice where the specific transaction appears."] #[serde(rename = "invoiceId", default, skip_serializing_if = "Option::is_none")] pub invoice_id: Option, @@ -2079,11 +2079,11 @@ pub struct ModernUsageDetailProperties { #[serde(rename = "resourceLocationNormalized", default, skip_serializing_if = "Option::is_none")] pub resource_location_normalized: Option, #[doc = "Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period."] - #[serde(rename = "servicePeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_start_date: Option, + #[serde(rename = "servicePeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub service_period_start_date: Option, #[doc = "End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period."] - #[serde(rename = "servicePeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub service_period_end_date: Option, + #[serde(rename = "servicePeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub service_period_end_date: Option, #[doc = "Identifier of the customer's AAD tenant."] #[serde(rename = "customerTenantId", default, skip_serializing_if = "Option::is_none")] pub customer_tenant_id: Option, @@ -2609,8 +2609,8 @@ pub struct ReservationDetailProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "The date on which consumption occurred."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "This is the total hours used by the instance."] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, @@ -2941,8 +2941,8 @@ pub struct ReservationSummaryProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "Total used hours by the reservation"] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, diff --git a/services/mgmt/consumption/src/package_preview_2018_11/models.rs b/services/mgmt/consumption/src/package_preview_2018_11/models.rs index 40cdf5bbca8..e1b73d743a1 100644 --- a/services/mgmt/consumption/src/package_preview_2018_11/models.rs +++ b/services/mgmt/consumption/src/package_preview_2018_11/models.rs @@ -379,11 +379,11 @@ impl DownloadUrl { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Enrollment { #[doc = "Enrollment Start Date"] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Enrollment End Date"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "The currency associated with enrollment"] #[serde(default, skip_serializing_if = "Option::is_none")] pub currency: Option, @@ -441,11 +441,11 @@ pub struct EnrollmentAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Account Start Date"] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Account End Date"] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "A department resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub department: Option, @@ -513,8 +513,8 @@ impl ErrorResponse { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventProperties { #[doc = "Transaction Date."] - #[serde(rename = "transactionDate", default, skip_serializing_if = "Option::is_none")] - pub transaction_date: Option, + #[serde(rename = "transactionDate", with = "azure_core::date::rfc3339::option")] + pub transaction_date: Option, #[doc = "Transaction description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -655,11 +655,11 @@ pub struct LotProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, #[doc = "Start Date."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Expiration Date."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "PO Number."] #[serde(rename = "poNumber", default, skip_serializing_if = "Option::is_none")] pub po_number: Option, diff --git a/services/mgmt/consumption/src/package_preview_2019_04/models.rs b/services/mgmt/consumption/src/package_preview_2019_04/models.rs index caa252a7953..87a8266cae0 100644 --- a/services/mgmt/consumption/src/package_preview_2019_04/models.rs +++ b/services/mgmt/consumption/src/package_preview_2019_04/models.rs @@ -252,14 +252,14 @@ pub mod budget_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BudgetTimePeriod { #[doc = "The start date for the budget."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The end date for the budget. If not provided, we default this to 10 years from the start date."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, } impl BudgetTimePeriod { - pub fn new(start_date: String) -> Self { + pub fn new(start_date: time::OffsetDateTime) -> Self { Self { start_date, end_date: None, @@ -572,11 +572,11 @@ pub struct ManagementGroupAggregatedCostProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by aggregated cost."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the aggregated cost."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "Azure Charges."] #[serde(rename = "azureCharges", default, skip_serializing_if = "Option::is_none")] pub azure_charges: Option, @@ -639,11 +639,11 @@ pub struct MarketplaceProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by the usage detail."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the usage detail."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The marketplace resource rate."] #[serde(rename = "resourceRate", default, skip_serializing_if = "Option::is_none")] pub resource_rate: Option, @@ -1043,8 +1043,8 @@ pub struct ReservationDetailProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "The date on which consumption occurred."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "This is the total hours used by the instance."] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, @@ -1122,8 +1122,8 @@ pub struct ReservationRecommendationProperties { #[serde(rename = "netSavings", default, skip_serializing_if = "Option::is_none")] pub net_savings: Option, #[doc = "The usage date for looking back."] - #[serde(rename = "firstUsageDate", default, skip_serializing_if = "Option::is_none")] - pub first_usage_date: Option, + #[serde(rename = "firstUsageDate", with = "azure_core::date::rfc3339::option")] + pub first_usage_date: Option, #[doc = "Shared or single recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, @@ -1205,8 +1205,8 @@ pub struct ReservationSummaryProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "Total used hours by the reservation"] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, @@ -1323,11 +1323,11 @@ pub struct UsageDetailProperties { #[serde(rename = "billingAccountName", default, skip_serializing_if = "Option::is_none")] pub billing_account_name: Option, #[doc = "The billing period start date."] - #[serde(rename = "billingPeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_start_date: Option, + #[serde(rename = "billingPeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_start_date: Option, #[doc = "The billing period end date."] - #[serde(rename = "billingPeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_end_date: Option, + #[serde(rename = "billingPeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_end_date: Option, #[doc = "Billing Profile identifier."] #[serde(rename = "billingProfileId", default, skip_serializing_if = "Option::is_none")] pub billing_profile_id: Option, @@ -1347,8 +1347,8 @@ pub struct UsageDetailProperties { #[serde(rename = "subscriptionName", default, skip_serializing_if = "Option::is_none")] pub subscription_name: Option, #[doc = "Date for the usage record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Product name for the consumed service or purchase. Not available for Marketplace."] #[serde(default, skip_serializing_if = "Option::is_none")] pub product: Option, diff --git a/services/mgmt/consumption/src/package_preview_2019_05/models.rs b/services/mgmt/consumption/src/package_preview_2019_05/models.rs index caa252a7953..87a8266cae0 100644 --- a/services/mgmt/consumption/src/package_preview_2019_05/models.rs +++ b/services/mgmt/consumption/src/package_preview_2019_05/models.rs @@ -252,14 +252,14 @@ pub mod budget_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BudgetTimePeriod { #[doc = "The start date for the budget."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The end date for the budget. If not provided, we default this to 10 years from the start date."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, } impl BudgetTimePeriod { - pub fn new(start_date: String) -> Self { + pub fn new(start_date: time::OffsetDateTime) -> Self { Self { start_date, end_date: None, @@ -572,11 +572,11 @@ pub struct ManagementGroupAggregatedCostProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by aggregated cost."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the aggregated cost."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "Azure Charges."] #[serde(rename = "azureCharges", default, skip_serializing_if = "Option::is_none")] pub azure_charges: Option, @@ -639,11 +639,11 @@ pub struct MarketplaceProperties { #[serde(rename = "billingPeriodId", default, skip_serializing_if = "Option::is_none")] pub billing_period_id: Option, #[doc = "The start of the date time range covered by the usage detail."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "The end of the date time range covered by the usage detail."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The marketplace resource rate."] #[serde(rename = "resourceRate", default, skip_serializing_if = "Option::is_none")] pub resource_rate: Option, @@ -1043,8 +1043,8 @@ pub struct ReservationDetailProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "The date on which consumption occurred."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "This is the total hours used by the instance."] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, @@ -1122,8 +1122,8 @@ pub struct ReservationRecommendationProperties { #[serde(rename = "netSavings", default, skip_serializing_if = "Option::is_none")] pub net_savings: Option, #[doc = "The usage date for looking back."] - #[serde(rename = "firstUsageDate", default, skip_serializing_if = "Option::is_none")] - pub first_usage_date: Option, + #[serde(rename = "firstUsageDate", with = "azure_core::date::rfc3339::option")] + pub first_usage_date: Option, #[doc = "Shared or single recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, @@ -1205,8 +1205,8 @@ pub struct ReservationSummaryProperties { #[serde(rename = "reservedHours", default, skip_serializing_if = "Option::is_none")] pub reserved_hours: Option, #[doc = "Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, #[doc = "Total used hours by the reservation"] #[serde(rename = "usedHours", default, skip_serializing_if = "Option::is_none")] pub used_hours: Option, @@ -1323,11 +1323,11 @@ pub struct UsageDetailProperties { #[serde(rename = "billingAccountName", default, skip_serializing_if = "Option::is_none")] pub billing_account_name: Option, #[doc = "The billing period start date."] - #[serde(rename = "billingPeriodStartDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_start_date: Option, + #[serde(rename = "billingPeriodStartDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_start_date: Option, #[doc = "The billing period end date."] - #[serde(rename = "billingPeriodEndDate", default, skip_serializing_if = "Option::is_none")] - pub billing_period_end_date: Option, + #[serde(rename = "billingPeriodEndDate", with = "azure_core::date::rfc3339::option")] + pub billing_period_end_date: Option, #[doc = "Billing Profile identifier."] #[serde(rename = "billingProfileId", default, skip_serializing_if = "Option::is_none")] pub billing_profile_id: Option, @@ -1347,8 +1347,8 @@ pub struct UsageDetailProperties { #[serde(rename = "subscriptionName", default, skip_serializing_if = "Option::is_none")] pub subscription_name: Option, #[doc = "Date for the usage record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "Product name for the consumed service or purchase. Not available for Marketplace."] #[serde(default, skip_serializing_if = "Option::is_none")] pub product: Option, diff --git a/services/mgmt/containerinstance/Cargo.toml b/services/mgmt/containerinstance/Cargo.toml index 9d6c25f976c..f12c387fa6a 100644 --- a/services/mgmt/containerinstance/Cargo.toml +++ b/services/mgmt/containerinstance/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/containerinstance/src/package_2020_11/models.rs b/services/mgmt/containerinstance/src/package_2020_11/models.rs index 71805c34eb8..8aadb47522e 100644 --- a/services/mgmt/containerinstance/src/package_2020_11/models.rs +++ b/services/mgmt/containerinstance/src/package_2020_11/models.rs @@ -768,14 +768,14 @@ pub struct ContainerState { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The date-time when the container instance state started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The container instance exit codes correspond to those from the `docker run` command."] #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The date-time when the container instance state finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The human-readable status of the container instance state."] #[serde(rename = "detailStatus", default, skip_serializing_if = "Option::is_none")] pub detail_status: Option, @@ -865,11 +865,11 @@ pub struct Event { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "The date-time of the earliest logged event."] - #[serde(rename = "firstTimestamp", default, skip_serializing_if = "Option::is_none")] - pub first_timestamp: Option, + #[serde(rename = "firstTimestamp", with = "azure_core::date::rfc3339::option")] + pub first_timestamp: Option, #[doc = "The date-time of the latest logged event."] - #[serde(rename = "lastTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_timestamp: Option, + #[serde(rename = "lastTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_timestamp: Option, #[doc = "The event name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, diff --git a/services/mgmt/containerinstance/src/package_2021_03/models.rs b/services/mgmt/containerinstance/src/package_2021_03/models.rs index 37048b07aed..8e1ea6e89b8 100644 --- a/services/mgmt/containerinstance/src/package_2021_03/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_03/models.rs @@ -768,14 +768,14 @@ pub struct ContainerState { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The date-time when the container instance state started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The container instance exit codes correspond to those from the `docker run` command."] #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The date-time when the container instance state finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The human-readable status of the container instance state."] #[serde(rename = "detailStatus", default, skip_serializing_if = "Option::is_none")] pub detail_status: Option, @@ -865,11 +865,11 @@ pub struct Event { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "The date-time of the earliest logged event."] - #[serde(rename = "firstTimestamp", default, skip_serializing_if = "Option::is_none")] - pub first_timestamp: Option, + #[serde(rename = "firstTimestamp", with = "azure_core::date::rfc3339::option")] + pub first_timestamp: Option, #[doc = "The date-time of the latest logged event."] - #[serde(rename = "lastTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_timestamp: Option, + #[serde(rename = "lastTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_timestamp: Option, #[doc = "The event name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, diff --git a/services/mgmt/containerinstance/src/package_2021_07/models.rs b/services/mgmt/containerinstance/src/package_2021_07/models.rs index 96581c524ba..9f829118fd6 100644 --- a/services/mgmt/containerinstance/src/package_2021_07/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_07/models.rs @@ -771,14 +771,14 @@ pub struct ContainerState { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The date-time when the container instance state started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The container instance exit codes correspond to those from the `docker run` command."] #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The date-time when the container instance state finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The human-readable status of the container instance state."] #[serde(rename = "detailStatus", default, skip_serializing_if = "Option::is_none")] pub detail_status: Option, @@ -868,11 +868,11 @@ pub struct Event { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "The date-time of the earliest logged event."] - #[serde(rename = "firstTimestamp", default, skip_serializing_if = "Option::is_none")] - pub first_timestamp: Option, + #[serde(rename = "firstTimestamp", with = "azure_core::date::rfc3339::option")] + pub first_timestamp: Option, #[doc = "The date-time of the latest logged event."] - #[serde(rename = "lastTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_timestamp: Option, + #[serde(rename = "lastTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_timestamp: Option, #[doc = "The event name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, diff --git a/services/mgmt/containerinstance/src/package_2021_09/models.rs b/services/mgmt/containerinstance/src/package_2021_09/models.rs index 0605dea2602..b6077f159de 100644 --- a/services/mgmt/containerinstance/src/package_2021_09/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_09/models.rs @@ -771,14 +771,14 @@ pub struct ContainerState { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The date-time when the container instance state started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The container instance exit codes correspond to those from the `docker run` command."] #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The date-time when the container instance state finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The human-readable status of the container instance state."] #[serde(rename = "detailStatus", default, skip_serializing_if = "Option::is_none")] pub detail_status: Option, @@ -868,11 +868,11 @@ pub struct Event { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "The date-time of the earliest logged event."] - #[serde(rename = "firstTimestamp", default, skip_serializing_if = "Option::is_none")] - pub first_timestamp: Option, + #[serde(rename = "firstTimestamp", with = "azure_core::date::rfc3339::option")] + pub first_timestamp: Option, #[doc = "The date-time of the latest logged event."] - #[serde(rename = "lastTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_timestamp: Option, + #[serde(rename = "lastTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_timestamp: Option, #[doc = "The event name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, diff --git a/services/mgmt/containerinstance/src/package_2021_10/models.rs b/services/mgmt/containerinstance/src/package_2021_10/models.rs index 3c91b3c2c9d..abd42e91cb6 100644 --- a/services/mgmt/containerinstance/src/package_2021_10/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_10/models.rs @@ -787,14 +787,14 @@ pub struct ContainerState { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The date-time when the container instance state started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The container instance exit codes correspond to those from the `docker run` command."] #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The date-time when the container instance state finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The human-readable status of the container instance state."] #[serde(rename = "detailStatus", default, skip_serializing_if = "Option::is_none")] pub detail_status: Option, @@ -884,11 +884,11 @@ pub struct Event { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "The date-time of the earliest logged event."] - #[serde(rename = "firstTimestamp", default, skip_serializing_if = "Option::is_none")] - pub first_timestamp: Option, + #[serde(rename = "firstTimestamp", with = "azure_core::date::rfc3339::option")] + pub first_timestamp: Option, #[doc = "The date-time of the latest logged event."] - #[serde(rename = "lastTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_timestamp: Option, + #[serde(rename = "lastTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_timestamp: Option, #[doc = "The event name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, diff --git a/services/mgmt/containerregistry/Cargo.toml b/services/mgmt/containerregistry/Cargo.toml index 418794c7850..e0b17ee0f5e 100644 --- a/services/mgmt/containerregistry/Cargo.toml +++ b/services/mgmt/containerregistry/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs b/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs index be2e21f3b95..e977e000a62 100644 --- a/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs @@ -862,8 +862,8 @@ pub struct ConnectedRegistryProperties { #[serde(rename = "connectionState", default, skip_serializing_if = "Option::is_none")] pub connection_state: Option, #[doc = "The last activity time of the connected registry."] - #[serde(rename = "lastActivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_activity_time: Option, + #[serde(rename = "lastActivityTime", with = "azure_core::date::rfc3339::option")] + pub last_activity_time: Option, #[doc = "The activation properties of the connected registry."] #[serde(default, skip_serializing_if = "Option::is_none")] pub activation: Option, @@ -1433,8 +1433,8 @@ pub struct EventContent { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The time at which the event occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The action that encompasses the provided event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, @@ -1829,8 +1829,8 @@ pub struct GenerateCredentialsParameters { #[serde(rename = "tokenId", default, skip_serializing_if = "Option::is_none")] pub token_id: Option, #[doc = "The expiry date of the generated credentials after which the credentials become invalid."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "Specifies name of the password which should be regenerated if any -- password1 or password2."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2015,8 +2015,8 @@ pub struct ImageUpdateTrigger { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The timestamp when the image update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The list of image updates that caused the build."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub images: Vec, @@ -2344,8 +2344,8 @@ pub struct KeyVaultProperties { #[serde(rename = "keyRotationEnabled", default, skip_serializing_if = "Option::is_none")] pub key_rotation_enabled: Option, #[doc = "Timestamp of the last successful key rotation."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, } impl KeyVaultProperties { pub fn new() -> Self { @@ -2859,11 +2859,11 @@ pub struct PipelineRunResponse { #[serde(default, skip_serializing_if = "Option::is_none")] pub progress: Option, #[doc = "The time the pipeline run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the pipeline run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The properties of the import pipeline source."] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -3001,8 +3001,8 @@ pub mod pipeline_run_target_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PipelineSourceTriggerDescriptor { #[doc = "The timestamp when the source update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl PipelineSourceTriggerDescriptor { pub fn new() -> Self { @@ -3923,8 +3923,8 @@ pub struct RegistryProperties { #[serde(rename = "loginServer", default, skip_serializing_if = "Option::is_none")] pub login_server: Option, #[doc = "The creation date of the container registry in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The provisioning state of the container registry at the time the operation was called."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4589,8 +4589,8 @@ pub struct RetentionPolicy { #[serde(default, skip_serializing_if = "Option::is_none")] pub days: Option, #[doc = "The timestamp when the policy was last updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The value that indicates whether the policy is enabled or not."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4674,11 +4674,11 @@ pub struct RunFilter { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The create time for a run."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of\r\nbuild type."] #[serde(rename = "outputImageManifests", default, skip_serializing_if = "Option::is_none")] pub output_image_manifests: Option, @@ -4836,8 +4836,8 @@ pub struct RunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The last updated time for the run."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The type of run."] #[serde(rename = "runType", default, skip_serializing_if = "Option::is_none")] pub run_type: Option, @@ -4845,14 +4845,14 @@ pub struct RunProperties { #[serde(rename = "agentPoolName", default, skip_serializing_if = "Option::is_none")] pub agent_pool_name: Option, #[doc = "The time the run was scheduled."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of all images that were generated from the run. This is applicable if the run generates base image dependencies."] #[serde(rename = "outputImages", default, skip_serializing_if = "Vec::is_empty")] pub output_images: Vec, @@ -5121,8 +5121,8 @@ pub struct ScopeMapProperties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5778,8 +5778,8 @@ pub struct Status { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The timestamp when the status was changed to the current value."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Status { pub fn new() -> Self { @@ -5799,8 +5799,8 @@ pub struct StatusDetailProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The timestamp of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The correlation ID of the status."] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -5826,8 +5826,8 @@ pub struct SyncProperties { #[serde(rename = "messageTtl")] pub message_ttl: String, #[doc = "The last time a sync occurred between the connected registry and its parent."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, #[doc = "The gateway endpoint used by the connected registry to communicate with its parent."] #[serde(rename = "gatewayEndpoint", default, skip_serializing_if = "Option::is_none")] pub gateway_endpoint: Option, @@ -5872,8 +5872,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5881,8 +5881,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6059,8 +6059,8 @@ pub struct TaskProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of task."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The current status of task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6847,8 +6847,8 @@ pub struct TokenCertificate { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The expiry datetime of the certificate."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The thumbprint of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -6940,11 +6940,11 @@ impl TokenListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenPassword { #[doc = "The creation datetime of the password."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The expiry datetime of the password."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The password name \"password1\" or \"password2\""] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -7003,8 +7003,8 @@ pub mod token_password { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenProperties { #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs b/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs index 77503f4aa42..77e0b333f36 100644 --- a/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs @@ -862,8 +862,8 @@ pub struct ConnectedRegistryProperties { #[serde(rename = "connectionState", default, skip_serializing_if = "Option::is_none")] pub connection_state: Option, #[doc = "The last activity time of the connected registry."] - #[serde(rename = "lastActivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_activity_time: Option, + #[serde(rename = "lastActivityTime", with = "azure_core::date::rfc3339::option")] + pub last_activity_time: Option, #[doc = "The activation properties of the connected registry."] #[serde(default, skip_serializing_if = "Option::is_none")] pub activation: Option, @@ -1444,8 +1444,8 @@ pub struct EventContent { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The time at which the event occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The action that encompasses the provided event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, @@ -1840,8 +1840,8 @@ pub struct GenerateCredentialsParameters { #[serde(rename = "tokenId", default, skip_serializing_if = "Option::is_none")] pub token_id: Option, #[doc = "The expiry date of the generated credentials after which the credentials become invalid."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "Specifies name of the password which should be regenerated if any -- password1 or password2."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2026,8 +2026,8 @@ pub struct ImageUpdateTrigger { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The timestamp when the image update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The list of image updates that caused the build."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub images: Vec, @@ -2355,8 +2355,8 @@ pub struct KeyVaultProperties { #[serde(rename = "keyRotationEnabled", default, skip_serializing_if = "Option::is_none")] pub key_rotation_enabled: Option, #[doc = "Timestamp of the last successful key rotation."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, } impl KeyVaultProperties { pub fn new() -> Self { @@ -2870,11 +2870,11 @@ pub struct PipelineRunResponse { #[serde(default, skip_serializing_if = "Option::is_none")] pub progress: Option, #[doc = "The time the pipeline run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the pipeline run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The properties of the import pipeline source."] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -3012,8 +3012,8 @@ pub mod pipeline_run_target_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PipelineSourceTriggerDescriptor { #[doc = "The timestamp when the source update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl PipelineSourceTriggerDescriptor { pub fn new() -> Self { @@ -3934,8 +3934,8 @@ pub struct RegistryProperties { #[serde(rename = "loginServer", default, skip_serializing_if = "Option::is_none")] pub login_server: Option, #[doc = "The creation date of the container registry in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The provisioning state of the container registry at the time the operation was called."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4600,8 +4600,8 @@ pub struct RetentionPolicy { #[serde(default, skip_serializing_if = "Option::is_none")] pub days: Option, #[doc = "The timestamp when the policy was last updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The value that indicates whether the policy is enabled or not."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4685,11 +4685,11 @@ pub struct RunFilter { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The create time for a run."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of\r\nbuild type."] #[serde(rename = "outputImageManifests", default, skip_serializing_if = "Option::is_none")] pub output_image_manifests: Option, @@ -4847,8 +4847,8 @@ pub struct RunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The last updated time for the run."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The type of run."] #[serde(rename = "runType", default, skip_serializing_if = "Option::is_none")] pub run_type: Option, @@ -4856,14 +4856,14 @@ pub struct RunProperties { #[serde(rename = "agentPoolName", default, skip_serializing_if = "Option::is_none")] pub agent_pool_name: Option, #[doc = "The time the run was scheduled."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of all images that were generated from the run. This is applicable if the run generates base image dependencies."] #[serde(rename = "outputImages", default, skip_serializing_if = "Vec::is_empty")] pub output_images: Vec, @@ -5132,8 +5132,8 @@ pub struct ScopeMapProperties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5789,8 +5789,8 @@ pub struct Status { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The timestamp when the status was changed to the current value."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Status { pub fn new() -> Self { @@ -5810,8 +5810,8 @@ pub struct StatusDetailProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The timestamp of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The correlation ID of the status."] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -5837,8 +5837,8 @@ pub struct SyncProperties { #[serde(rename = "messageTtl")] pub message_ttl: String, #[doc = "The last time a sync occurred between the connected registry and its parent."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, #[doc = "The gateway endpoint used by the connected registry to communicate with its parent."] #[serde(rename = "gatewayEndpoint", default, skip_serializing_if = "Option::is_none")] pub gateway_endpoint: Option, @@ -5883,8 +5883,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5892,8 +5892,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6070,8 +6070,8 @@ pub struct TaskProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of task."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The current status of task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6858,8 +6858,8 @@ pub struct TokenCertificate { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The expiry datetime of the certificate."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The thumbprint of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -6951,11 +6951,11 @@ impl TokenListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenPassword { #[doc = "The creation datetime of the password."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The expiry datetime of the password."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The password name \"password1\" or \"password2\""] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -7014,8 +7014,8 @@ pub mod token_password { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenProperties { #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/containerregistry/src/package_2021_09/models.rs b/services/mgmt/containerregistry/src/package_2021_09/models.rs index 86b0604e98c..eaecfd35e5e 100644 --- a/services/mgmt/containerregistry/src/package_2021_09/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_09/models.rs @@ -1123,8 +1123,8 @@ pub struct EventContent { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The time at which the event occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The action that encompasses the provided event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, @@ -1498,8 +1498,8 @@ pub struct ImageUpdateTrigger { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The timestamp when the image update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The list of image updates that caused the build."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub images: Vec, @@ -1649,8 +1649,8 @@ pub struct KeyVaultProperties { #[serde(rename = "keyRotationEnabled", default, skip_serializing_if = "Option::is_none")] pub key_rotation_enabled: Option, #[doc = "Timestamp of the last successful key rotation."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, } impl KeyVaultProperties { pub fn new() -> Self { @@ -2727,8 +2727,8 @@ pub struct RegistryProperties { #[serde(rename = "loginServer", default, skip_serializing_if = "Option::is_none")] pub login_server: Option, #[doc = "The creation date of the container registry in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The provisioning state of the container registry at the time the operation was called."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3387,8 +3387,8 @@ pub struct RetentionPolicy { #[serde(default, skip_serializing_if = "Option::is_none")] pub days: Option, #[doc = "The timestamp when the policy was last updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The value that indicates whether the policy is enabled or not."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -3472,11 +3472,11 @@ pub struct RunFilter { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The create time for a run."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of\r\nbuild type."] #[serde(rename = "outputImageManifests", default, skip_serializing_if = "Option::is_none")] pub output_image_manifests: Option, @@ -3634,8 +3634,8 @@ pub struct RunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The last updated time for the run."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The type of run."] #[serde(rename = "runType", default, skip_serializing_if = "Option::is_none")] pub run_type: Option, @@ -3643,14 +3643,14 @@ pub struct RunProperties { #[serde(rename = "agentPoolName", default, skip_serializing_if = "Option::is_none")] pub agent_pool_name: Option, #[doc = "The time the run was scheduled."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of all images that were generated from the run. This is applicable if the run generates base image dependencies."] #[serde(rename = "outputImages", default, skip_serializing_if = "Vec::is_empty")] pub output_images: Vec, @@ -4437,8 +4437,8 @@ pub struct Status { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The timestamp when the status was changed to the current value."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Status { pub fn new() -> Self { @@ -4466,8 +4466,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4475,8 +4475,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -4653,8 +4653,8 @@ pub struct TaskProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of task."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The current status of task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs b/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs index 77503f4aa42..77e0b333f36 100644 --- a/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs @@ -862,8 +862,8 @@ pub struct ConnectedRegistryProperties { #[serde(rename = "connectionState", default, skip_serializing_if = "Option::is_none")] pub connection_state: Option, #[doc = "The last activity time of the connected registry."] - #[serde(rename = "lastActivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_activity_time: Option, + #[serde(rename = "lastActivityTime", with = "azure_core::date::rfc3339::option")] + pub last_activity_time: Option, #[doc = "The activation properties of the connected registry."] #[serde(default, skip_serializing_if = "Option::is_none")] pub activation: Option, @@ -1444,8 +1444,8 @@ pub struct EventContent { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The time at which the event occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The action that encompasses the provided event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, @@ -1840,8 +1840,8 @@ pub struct GenerateCredentialsParameters { #[serde(rename = "tokenId", default, skip_serializing_if = "Option::is_none")] pub token_id: Option, #[doc = "The expiry date of the generated credentials after which the credentials become invalid."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "Specifies name of the password which should be regenerated if any -- password1 or password2."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2026,8 +2026,8 @@ pub struct ImageUpdateTrigger { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The timestamp when the image update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The list of image updates that caused the build."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub images: Vec, @@ -2355,8 +2355,8 @@ pub struct KeyVaultProperties { #[serde(rename = "keyRotationEnabled", default, skip_serializing_if = "Option::is_none")] pub key_rotation_enabled: Option, #[doc = "Timestamp of the last successful key rotation."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, } impl KeyVaultProperties { pub fn new() -> Self { @@ -2870,11 +2870,11 @@ pub struct PipelineRunResponse { #[serde(default, skip_serializing_if = "Option::is_none")] pub progress: Option, #[doc = "The time the pipeline run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the pipeline run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The properties of the import pipeline source."] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -3012,8 +3012,8 @@ pub mod pipeline_run_target_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PipelineSourceTriggerDescriptor { #[doc = "The timestamp when the source update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl PipelineSourceTriggerDescriptor { pub fn new() -> Self { @@ -3934,8 +3934,8 @@ pub struct RegistryProperties { #[serde(rename = "loginServer", default, skip_serializing_if = "Option::is_none")] pub login_server: Option, #[doc = "The creation date of the container registry in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The provisioning state of the container registry at the time the operation was called."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4600,8 +4600,8 @@ pub struct RetentionPolicy { #[serde(default, skip_serializing_if = "Option::is_none")] pub days: Option, #[doc = "The timestamp when the policy was last updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The value that indicates whether the policy is enabled or not."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4685,11 +4685,11 @@ pub struct RunFilter { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The create time for a run."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of\r\nbuild type."] #[serde(rename = "outputImageManifests", default, skip_serializing_if = "Option::is_none")] pub output_image_manifests: Option, @@ -4847,8 +4847,8 @@ pub struct RunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The last updated time for the run."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The type of run."] #[serde(rename = "runType", default, skip_serializing_if = "Option::is_none")] pub run_type: Option, @@ -4856,14 +4856,14 @@ pub struct RunProperties { #[serde(rename = "agentPoolName", default, skip_serializing_if = "Option::is_none")] pub agent_pool_name: Option, #[doc = "The time the run was scheduled."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of all images that were generated from the run. This is applicable if the run generates base image dependencies."] #[serde(rename = "outputImages", default, skip_serializing_if = "Vec::is_empty")] pub output_images: Vec, @@ -5132,8 +5132,8 @@ pub struct ScopeMapProperties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5789,8 +5789,8 @@ pub struct Status { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The timestamp when the status was changed to the current value."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Status { pub fn new() -> Self { @@ -5810,8 +5810,8 @@ pub struct StatusDetailProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The timestamp of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The correlation ID of the status."] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -5837,8 +5837,8 @@ pub struct SyncProperties { #[serde(rename = "messageTtl")] pub message_ttl: String, #[doc = "The last time a sync occurred between the connected registry and its parent."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, #[doc = "The gateway endpoint used by the connected registry to communicate with its parent."] #[serde(rename = "gatewayEndpoint", default, skip_serializing_if = "Option::is_none")] pub gateway_endpoint: Option, @@ -5883,8 +5883,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5892,8 +5892,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6070,8 +6070,8 @@ pub struct TaskProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of task."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The current status of task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6858,8 +6858,8 @@ pub struct TokenCertificate { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The expiry datetime of the certificate."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The thumbprint of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -6951,11 +6951,11 @@ impl TokenListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenPassword { #[doc = "The creation datetime of the password."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The expiry datetime of the password."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The password name \"password1\" or \"password2\""] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -7014,8 +7014,8 @@ pub mod token_password { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenProperties { #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs b/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs index ffcd89c02cf..92509b2c086 100644 --- a/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs @@ -921,8 +921,8 @@ pub struct ConnectedRegistryProperties { #[serde(rename = "connectionState", default, skip_serializing_if = "Option::is_none")] pub connection_state: Option, #[doc = "The last activity time of the connected registry."] - #[serde(rename = "lastActivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_activity_time: Option, + #[serde(rename = "lastActivityTime", with = "azure_core::date::rfc3339::option")] + pub last_activity_time: Option, #[doc = "The activation properties of the connected registry."] #[serde(default, skip_serializing_if = "Option::is_none")] pub activation: Option, @@ -1503,8 +1503,8 @@ pub struct EventContent { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The time at which the event occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The action that encompasses the provided event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, @@ -1899,8 +1899,8 @@ pub struct GenerateCredentialsParameters { #[serde(rename = "tokenId", default, skip_serializing_if = "Option::is_none")] pub token_id: Option, #[doc = "The expiry date of the generated credentials after which the credentials become invalid."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "Specifies name of the password which should be regenerated if any -- password1 or password2."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2085,8 +2085,8 @@ pub struct ImageUpdateTrigger { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The timestamp when the image update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The list of image updates that caused the build."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub images: Vec, @@ -2414,8 +2414,8 @@ pub struct KeyVaultProperties { #[serde(rename = "keyRotationEnabled", default, skip_serializing_if = "Option::is_none")] pub key_rotation_enabled: Option, #[doc = "Timestamp of the last successful key rotation."] - #[serde(rename = "lastKeyRotationTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_key_rotation_timestamp: Option, + #[serde(rename = "lastKeyRotationTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_key_rotation_timestamp: Option, } impl KeyVaultProperties { pub fn new() -> Self { @@ -2940,11 +2940,11 @@ pub struct PipelineRunResponse { #[serde(default, skip_serializing_if = "Option::is_none")] pub progress: Option, #[doc = "The time the pipeline run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the pipeline run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The properties of the import pipeline source."] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -3082,8 +3082,8 @@ pub mod pipeline_run_target_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PipelineSourceTriggerDescriptor { #[doc = "The timestamp when the source update happened."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl PipelineSourceTriggerDescriptor { pub fn new() -> Self { @@ -4010,8 +4010,8 @@ pub struct RegistryProperties { #[serde(rename = "loginServer", default, skip_serializing_if = "Option::is_none")] pub login_server: Option, #[doc = "The creation date of the container registry in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The provisioning state of the container registry at the time the operation was called."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4676,8 +4676,8 @@ pub struct RetentionPolicy { #[serde(default, skip_serializing_if = "Option::is_none")] pub days: Option, #[doc = "The timestamp when the policy was last updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The value that indicates whether the policy is enabled or not."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4761,11 +4761,11 @@ pub struct RunFilter { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The create time for a run."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of comma-separated image manifests that were generated from the run. This is applicable if the run is of\r\nbuild type."] #[serde(rename = "outputImageManifests", default, skip_serializing_if = "Option::is_none")] pub output_image_manifests: Option, @@ -4923,8 +4923,8 @@ pub struct RunProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The last updated time for the run."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The type of run."] #[serde(rename = "runType", default, skip_serializing_if = "Option::is_none")] pub run_type: Option, @@ -4932,14 +4932,14 @@ pub struct RunProperties { #[serde(rename = "agentPoolName", default, skip_serializing_if = "Option::is_none")] pub agent_pool_name: Option, #[doc = "The time the run was scheduled."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The time the run started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the run finished."] - #[serde(rename = "finishTime", default, skip_serializing_if = "Option::is_none")] - pub finish_time: Option, + #[serde(rename = "finishTime", with = "azure_core::date::rfc3339::option")] + pub finish_time: Option, #[doc = "The list of all images that were generated from the run. This is applicable if the run generates base image dependencies."] #[serde(rename = "outputImages", default, skip_serializing_if = "Vec::is_empty")] pub output_images: Vec, @@ -5208,8 +5208,8 @@ pub struct ScopeMapProperties { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5483,8 +5483,8 @@ pub struct SoftDeletePolicy { #[serde(rename = "retentionDays", default, skip_serializing_if = "Option::is_none")] pub retention_days: Option, #[doc = "The timestamp when the policy was last updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The value that indicates whether the policy is enabled or not."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5930,8 +5930,8 @@ pub struct Status { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The timestamp when the status was changed to the current value."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Status { pub fn new() -> Self { @@ -5951,8 +5951,8 @@ pub struct StatusDetailProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The timestamp of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The correlation ID of the status."] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -5989,8 +5989,8 @@ pub struct SyncProperties { #[serde(rename = "messageTtl")] pub message_ttl: String, #[doc = "The last time a sync occurred between the connected registry and its parent."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, #[doc = "The gateway endpoint used by the connected registry to communicate with its parent."] #[serde(rename = "gatewayEndpoint", default, skip_serializing_if = "Option::is_none")] pub gateway_endpoint: Option, @@ -6035,8 +6035,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6044,8 +6044,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6222,8 +6222,8 @@ pub struct TaskProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation date of task."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The current status of task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -7010,8 +7010,8 @@ pub struct TokenCertificate { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The expiry datetime of the certificate."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The thumbprint of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -7103,11 +7103,11 @@ impl TokenListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenPassword { #[doc = "The creation datetime of the password."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The expiry datetime of the password."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, #[doc = "The password name \"password1\" or \"password2\""] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -7166,8 +7166,8 @@ pub mod token_password { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TokenProperties { #[doc = "The creation date of scope map."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Provisioning state of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/containerservice/Cargo.toml b/services/mgmt/containerservice/Cargo.toml index f889dea7062..c3607808556 100644 --- a/services/mgmt/containerservice/Cargo.toml +++ b/services/mgmt/containerservice/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/containerservice/src/package_preview_2022_02/models.rs b/services/mgmt/containerservice/src/package_preview_2022_02/models.rs index 8bfd420954f..cc9390eb4d0 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_02/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_02/models.rs @@ -290,11 +290,11 @@ pub struct CommandResultProperties { #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The time when the command started."] - #[serde(rename = "startedAt", default, skip_serializing_if = "Option::is_none")] - pub started_at: Option, + #[serde(rename = "startedAt", with = "azure_core::date::rfc3339::option")] + pub started_at: Option, #[doc = "The time when the command finished."] - #[serde(rename = "finishedAt", default, skip_serializing_if = "Option::is_none")] - pub finished_at: Option, + #[serde(rename = "finishedAt", with = "azure_core::date::rfc3339::option")] + pub finished_at: Option, #[doc = "The command output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub logs: Option, @@ -3891,8 +3891,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3900,8 +3900,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -4024,11 +4024,11 @@ impl TimeInWeek { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TimeSpan { #[doc = "The start of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub start: Option, #[doc = "The end of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub end: Option, } impl TimeSpan { pub fn new() -> Self { diff --git a/services/mgmt/containerservice/src/package_preview_2022_03/models.rs b/services/mgmt/containerservice/src/package_preview_2022_03/models.rs index f2cb0a1cd82..8ec70f6dfef 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_03/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_03/models.rs @@ -290,11 +290,11 @@ pub struct CommandResultProperties { #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The time when the command started."] - #[serde(rename = "startedAt", default, skip_serializing_if = "Option::is_none")] - pub started_at: Option, + #[serde(rename = "startedAt", with = "azure_core::date::rfc3339::option")] + pub started_at: Option, #[doc = "The time when the command finished."] - #[serde(rename = "finishedAt", default, skip_serializing_if = "Option::is_none")] - pub finished_at: Option, + #[serde(rename = "finishedAt", with = "azure_core::date::rfc3339::option")] + pub finished_at: Option, #[doc = "The command output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub logs: Option, @@ -4011,11 +4011,11 @@ impl TimeInWeek { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TimeSpan { #[doc = "The start of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub start: Option, #[doc = "The end of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub end: Option, } impl TimeSpan { pub fn new() -> Self { @@ -4173,8 +4173,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4182,8 +4182,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/containerservice/src/package_preview_2022_04/models.rs b/services/mgmt/containerservice/src/package_preview_2022_04/models.rs index cd3176f75af..a749c824d2a 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_04/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_04/models.rs @@ -290,11 +290,11 @@ pub struct CommandResultProperties { #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The time when the command started."] - #[serde(rename = "startedAt", default, skip_serializing_if = "Option::is_none")] - pub started_at: Option, + #[serde(rename = "startedAt", with = "azure_core::date::rfc3339::option")] + pub started_at: Option, #[doc = "The time when the command finished."] - #[serde(rename = "finishedAt", default, skip_serializing_if = "Option::is_none")] - pub finished_at: Option, + #[serde(rename = "finishedAt", with = "azure_core::date::rfc3339::option")] + pub finished_at: Option, #[doc = "The command output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub logs: Option, @@ -4068,11 +4068,11 @@ impl TimeInWeek { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TimeSpan { #[doc = "The start of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub start: Option, #[doc = "The end of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub end: Option, } impl TimeSpan { pub fn new() -> Self { @@ -4395,8 +4395,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4404,8 +4404,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/containerservice/src/package_preview_2022_05/models.rs b/services/mgmt/containerservice/src/package_preview_2022_05/models.rs index 5f14e668405..60d928a8c05 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_05/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_05/models.rs @@ -341,11 +341,11 @@ pub struct CommandResultProperties { #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The time when the command started."] - #[serde(rename = "startedAt", default, skip_serializing_if = "Option::is_none")] - pub started_at: Option, + #[serde(rename = "startedAt", with = "azure_core::date::rfc3339::option")] + pub started_at: Option, #[doc = "The time when the command finished."] - #[serde(rename = "finishedAt", default, skip_serializing_if = "Option::is_none")] - pub finished_at: Option, + #[serde(rename = "finishedAt", with = "azure_core::date::rfc3339::option")] + pub finished_at: Option, #[doc = "The command output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub logs: Option, @@ -4172,11 +4172,11 @@ impl TimeInWeek { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TimeSpan { #[doc = "The start of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub start: Option, #[doc = "The end of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub end: Option, } impl TimeSpan { pub fn new() -> Self { @@ -4499,8 +4499,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4508,8 +4508,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/containerservice/src/package_preview_2022_06/models.rs b/services/mgmt/containerservice/src/package_preview_2022_06/models.rs index f244327584f..1a01cf7d8cb 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_06/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_06/models.rs @@ -355,11 +355,11 @@ pub struct CommandResultProperties { #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")] pub exit_code: Option, #[doc = "The time when the command started."] - #[serde(rename = "startedAt", default, skip_serializing_if = "Option::is_none")] - pub started_at: Option, + #[serde(rename = "startedAt", with = "azure_core::date::rfc3339::option")] + pub started_at: Option, #[doc = "The time when the command finished."] - #[serde(rename = "finishedAt", default, skip_serializing_if = "Option::is_none")] - pub finished_at: Option, + #[serde(rename = "finishedAt", with = "azure_core::date::rfc3339::option")] + pub finished_at: Option, #[doc = "The command output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub logs: Option, @@ -4518,11 +4518,11 @@ impl TimeInWeek { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TimeSpan { #[doc = "The start of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub start: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub start: Option, #[doc = "The end of a time span"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub end: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub end: Option, } impl TimeSpan { pub fn new() -> Self { @@ -4845,8 +4845,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4854,8 +4854,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cosmosdb/Cargo.toml b/services/mgmt/cosmosdb/Cargo.toml index fbadeecc545..d52e9692594 100644 --- a/services/mgmt/cosmosdb/Cargo.toml +++ b/services/mgmt/cosmosdb/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs b/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs index 0e7fe5cbbe0..f6d6009bb3e 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs @@ -275,8 +275,8 @@ pub mod backup_resource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "The time this backup was taken, formatted like 2021-01-21T17:35:21"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Properties { pub fn new() -> Self { @@ -2467,11 +2467,11 @@ pub mod managed_service_identity { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Metric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -2644,8 +2644,8 @@ pub struct MetricValue { #[serde(default, skip_serializing_if = "Option::is_none")] pub minimum: Option, #[doc = "The metric timestamp (ISO-8601 format)."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The total value of the metric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub total: Option, @@ -3152,11 +3152,11 @@ pub type Path = String; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PercentileMetric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -3534,11 +3534,11 @@ pub struct RestorableDatabaseAccountProperties { #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, #[doc = "The creation time of the restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, #[doc = "Enum to indicate the API type of the restorable database account."] #[serde(rename = "apiType", default, skip_serializing_if = "Option::is_none")] pub api_type: Option, @@ -3579,11 +3579,11 @@ pub struct RestorableLocationResource { #[serde(rename = "regionalDatabaseAccountInstanceId", default, skip_serializing_if = "Option::is_none")] pub regional_database_account_instance_id: Option, #[doc = "The creation time of the regional restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the regional restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, } impl RestorableLocationResource { pub fn new() -> Self { @@ -4008,8 +4008,8 @@ pub struct RestoreParameters { #[serde(rename = "restoreSource", default, skip_serializing_if = "Option::is_none")] pub restore_source: Option, #[doc = "Time to which the account has to be restored (ISO-8601 format)."] - #[serde(rename = "restoreTimestampInUtc", default, skip_serializing_if = "Option::is_none")] - pub restore_timestamp_in_utc: Option, + #[serde(rename = "restoreTimestampInUtc", with = "azure_core::date::rfc3339::option")] + pub restore_timestamp_in_utc: Option, #[doc = "List of specific databases available for restore."] #[serde(rename = "databasesToRestore", default, skip_serializing_if = "Vec::is_empty")] pub databases_to_restore: Vec, @@ -5183,8 +5183,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5192,8 +5192,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs b/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs index 3bac59d2059..851279b13eb 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs @@ -333,8 +333,8 @@ pub struct BackupPolicyMigrationState { #[serde(rename = "targetType", default, skip_serializing_if = "Option::is_none")] pub target_type: Option, #[doc = "Time at which the backup policy migration started (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl BackupPolicyMigrationState { pub fn new() -> Self { @@ -437,8 +437,8 @@ pub mod backup_resource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "The time this backup was taken, formatted like 2021-01-21T17:35:21"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Properties { pub fn new() -> Self { @@ -1800,8 +1800,8 @@ pub struct DataTransferJobProperties { #[serde(rename = "percentageComplete", default, skip_serializing_if = "Option::is_none")] pub percentage_complete: Option, #[doc = "Last Updated Time (ISO-8601 format)."] - #[serde(rename = "lastUpdatedUtcTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_utc_time: Option, + #[serde(rename = "lastUpdatedUtcTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_utc_time: Option, #[doc = "Worker count"] #[serde(rename = "workerCount", default, skip_serializing_if = "Option::is_none")] pub worker_count: Option, @@ -3605,11 +3605,11 @@ impl MaterializedViewsBuilderServiceResourceProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Metric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -3782,8 +3782,8 @@ pub struct MetricValue { #[serde(default, skip_serializing_if = "Option::is_none")] pub minimum: Option, #[doc = "The metric timestamp (ISO-8601 format)."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The total value of the metric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub total: Option, @@ -4438,11 +4438,11 @@ pub type Path = String; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PercentileMetric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -4854,11 +4854,11 @@ pub struct RestorableDatabaseAccountProperties { #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, #[doc = "The creation time of the restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, #[doc = "Enum to indicate the API type of the restorable database account."] #[serde(rename = "apiType", default, skip_serializing_if = "Option::is_none")] pub api_type: Option, @@ -4899,11 +4899,11 @@ pub struct RestorableLocationResource { #[serde(rename = "regionalDatabaseAccountInstanceId", default, skip_serializing_if = "Option::is_none")] pub regional_database_account_instance_id: Option, #[doc = "The creation time of the regional restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the regional restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, } impl RestorableLocationResource { pub fn new() -> Self { @@ -5328,8 +5328,8 @@ pub struct RestoreParameters { #[serde(rename = "restoreSource", default, skip_serializing_if = "Option::is_none")] pub restore_source: Option, #[doc = "Time to which the account has to be restored (ISO-8601 format)."] - #[serde(rename = "restoreTimestampInUtc", default, skip_serializing_if = "Option::is_none")] - pub restore_timestamp_in_utc: Option, + #[serde(rename = "restoreTimestampInUtc", with = "azure_core::date::rfc3339::option")] + pub restore_timestamp_in_utc: Option, #[doc = "List of specific databases available for restore."] #[serde(rename = "databasesToRestore", default, skip_serializing_if = "Vec::is_empty")] pub databases_to_restore: Vec, @@ -5511,8 +5511,8 @@ impl ServiceResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceResourceProperties { #[doc = "Time of the last state change (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Instance type for the service."] #[serde(rename = "instanceSize", default, skip_serializing_if = "Option::is_none")] pub instance_size: Option, @@ -6769,8 +6769,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6778,8 +6778,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs b/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs index 7ad60f42b68..5f582ac3d49 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs @@ -333,8 +333,8 @@ pub struct BackupPolicyMigrationState { #[serde(rename = "targetType", default, skip_serializing_if = "Option::is_none")] pub target_type: Option, #[doc = "Time at which the backup policy migration started (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl BackupPolicyMigrationState { pub fn new() -> Self { @@ -437,8 +437,8 @@ pub mod backup_resource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "The time this backup was taken, formatted like 2021-01-21T17:35:21"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Properties { pub fn new() -> Self { @@ -1822,8 +1822,8 @@ pub struct DataTransferJobProperties { #[serde(rename = "percentageComplete", default, skip_serializing_if = "Option::is_none")] pub percentage_complete: Option, #[doc = "Last Updated Time (ISO-8601 format)."] - #[serde(rename = "lastUpdatedUtcTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_utc_time: Option, + #[serde(rename = "lastUpdatedUtcTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_utc_time: Option, #[doc = "Worker count"] #[serde(rename = "workerCount", default, skip_serializing_if = "Option::is_none")] pub worker_count: Option, @@ -3656,11 +3656,11 @@ impl MaterializedViewsBuilderServiceResourceProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Metric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -3833,8 +3833,8 @@ pub struct MetricValue { #[serde(default, skip_serializing_if = "Option::is_none")] pub minimum: Option, #[doc = "The metric timestamp (ISO-8601 format)."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The total value of the metric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub total: Option, @@ -4489,11 +4489,11 @@ pub type Path = String; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PercentileMetric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -4905,11 +4905,11 @@ pub struct RestorableDatabaseAccountProperties { #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, #[doc = "The creation time of the restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, #[doc = "Enum to indicate the API type of the restorable database account."] #[serde(rename = "apiType", default, skip_serializing_if = "Option::is_none")] pub api_type: Option, @@ -5124,11 +5124,11 @@ pub struct RestorableLocationResource { #[serde(rename = "regionalDatabaseAccountInstanceId", default, skip_serializing_if = "Option::is_none")] pub regional_database_account_instance_id: Option, #[doc = "The creation time of the regional restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the regional restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, } impl RestorableLocationResource { pub fn new() -> Self { @@ -5649,8 +5649,8 @@ pub struct RestoreParameters { #[serde(rename = "restoreSource", default, skip_serializing_if = "Option::is_none")] pub restore_source: Option, #[doc = "Time to which the account has to be restored (ISO-8601 format)."] - #[serde(rename = "restoreTimestampInUtc", default, skip_serializing_if = "Option::is_none")] - pub restore_timestamp_in_utc: Option, + #[serde(rename = "restoreTimestampInUtc", with = "azure_core::date::rfc3339::option")] + pub restore_timestamp_in_utc: Option, #[doc = "List of specific databases available for restore."] #[serde(rename = "databasesToRestore", default, skip_serializing_if = "Vec::is_empty")] pub databases_to_restore: Vec, @@ -5838,8 +5838,8 @@ impl ServiceResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceResourceProperties { #[doc = "Time of the last state change (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Instance type for the service."] #[serde(rename = "instanceSize", default, skip_serializing_if = "Option::is_none")] pub instance_size: Option, @@ -7097,8 +7097,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -7106,8 +7106,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs b/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs index e06ea452a3b..dcd4eeffa2d 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs @@ -336,8 +336,8 @@ pub struct BackupPolicyMigrationState { #[serde(rename = "targetType", default, skip_serializing_if = "Option::is_none")] pub target_type: Option, #[doc = "Time at which the backup policy migration started (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl BackupPolicyMigrationState { pub fn new() -> Self { @@ -440,8 +440,8 @@ pub mod backup_resource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "The time this backup was taken, formatted like 2021-01-21T17:35:21"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Properties { pub fn new() -> Self { @@ -1926,8 +1926,8 @@ pub struct DataTransferJobProperties { #[serde(rename = "totalCount", default, skip_serializing_if = "Option::is_none")] pub total_count: Option, #[doc = "Last Updated Time (ISO-8601 format)."] - #[serde(rename = "lastUpdatedUtcTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_utc_time: Option, + #[serde(rename = "lastUpdatedUtcTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_utc_time: Option, #[doc = "Worker count"] #[serde(rename = "workerCount", default, skip_serializing_if = "Option::is_none")] pub worker_count: Option, @@ -3773,11 +3773,11 @@ impl MergeParameters { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Metric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -3950,8 +3950,8 @@ pub struct MetricValue { #[serde(default, skip_serializing_if = "Option::is_none")] pub minimum: Option, #[doc = "The metric timestamp (ISO-8601 format)."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The total value of the metric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub total: Option, @@ -4606,11 +4606,11 @@ pub type Path = String; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PercentileMetric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -5195,14 +5195,14 @@ pub struct RestorableDatabaseAccountProperties { #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, #[doc = "The creation time of the restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The least recent time at which the database account can be restored to (ISO-8601 format)."] - #[serde(rename = "oldestRestorableTime", default, skip_serializing_if = "Option::is_none")] - pub oldest_restorable_time: Option, + #[serde(rename = "oldestRestorableTime", with = "azure_core::date::rfc3339::option")] + pub oldest_restorable_time: Option, #[doc = "The time at which the restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, #[doc = "Enum to indicate the API type of the restorable database account."] #[serde(rename = "apiType", default, skip_serializing_if = "Option::is_none")] pub api_type: Option, @@ -5417,11 +5417,11 @@ pub struct RestorableLocationResource { #[serde(rename = "regionalDatabaseAccountInstanceId", default, skip_serializing_if = "Option::is_none")] pub regional_database_account_instance_id: Option, #[doc = "The creation time of the regional restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the regional restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, } impl RestorableLocationResource { pub fn new() -> Self { @@ -5942,8 +5942,8 @@ pub struct RestoreParameters { #[serde(rename = "restoreSource", default, skip_serializing_if = "Option::is_none")] pub restore_source: Option, #[doc = "Time to which the account has to be restored (ISO-8601 format)."] - #[serde(rename = "restoreTimestampInUtc", default, skip_serializing_if = "Option::is_none")] - pub restore_timestamp_in_utc: Option, + #[serde(rename = "restoreTimestampInUtc", with = "azure_core::date::rfc3339::option")] + pub restore_timestamp_in_utc: Option, #[doc = "List of specific databases available for restore."] #[serde(rename = "databasesToRestore", default, skip_serializing_if = "Vec::is_empty")] pub databases_to_restore: Vec, @@ -6170,8 +6170,8 @@ impl ServiceResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceResourceProperties { #[doc = "Time of the last state change (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Instance type for the service."] #[serde(rename = "instanceSize", default, skip_serializing_if = "Option::is_none")] pub instance_size: Option, @@ -7448,8 +7448,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -7457,8 +7457,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cosmosdb/src/package_preview_2022_05/models.rs b/services/mgmt/cosmosdb/src/package_preview_2022_05/models.rs index 95dfc1926ff..0303aa0d242 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2022_05/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2022_05/models.rs @@ -53,8 +53,8 @@ impl ArmResourceProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountKeyMetadata { #[doc = "Generation time in UTC of the key in ISO-8601 format. If the value is missing from the object, it means that the last key regeneration was triggered before 2022-06-18."] - #[serde(rename = "generationTime", default, skip_serializing_if = "Option::is_none")] - pub generation_time: Option, + #[serde(rename = "generationTime", with = "azure_core::date::rfc3339::option")] + pub generation_time: Option, } impl AccountKeyMetadata { pub fn new() -> Self { @@ -348,8 +348,8 @@ pub struct BackupPolicyMigrationState { #[serde(rename = "targetType", default, skip_serializing_if = "Option::is_none")] pub target_type: Option, #[doc = "Time at which the backup policy migration started (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl BackupPolicyMigrationState { pub fn new() -> Self { @@ -452,8 +452,8 @@ pub mod backup_resource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "The time this backup was taken, formatted like 2021-01-21T17:35:21"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl Properties { pub fn new() -> Self { @@ -1938,8 +1938,8 @@ pub struct DataTransferJobProperties { #[serde(rename = "totalCount", default, skip_serializing_if = "Option::is_none")] pub total_count: Option, #[doc = "Last Updated Time (ISO-8601 format)."] - #[serde(rename = "lastUpdatedUtcTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_utc_time: Option, + #[serde(rename = "lastUpdatedUtcTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_utc_time: Option, #[doc = "Worker count"] #[serde(rename = "workerCount", default, skip_serializing_if = "Option::is_none")] pub worker_count: Option, @@ -3820,11 +3820,11 @@ impl MergeParameters { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Metric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -3997,8 +3997,8 @@ pub struct MetricValue { #[serde(default, skip_serializing_if = "Option::is_none")] pub minimum: Option, #[doc = "The metric timestamp (ISO-8601 format)."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The total value of the metric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub total: Option, @@ -4653,11 +4653,11 @@ pub type Path = String; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PercentileMetric { #[doc = "The start time for the metric (ISO-8601 format)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time for the metric (ISO-8601 format)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time grain to be used to summarize the metric values."] #[serde(rename = "timeGrain", default, skip_serializing_if = "Option::is_none")] pub time_grain: Option, @@ -5242,14 +5242,14 @@ pub struct RestorableDatabaseAccountProperties { #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, #[doc = "The creation time of the restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The least recent time at which the database account can be restored to (ISO-8601 format)."] - #[serde(rename = "oldestRestorableTime", default, skip_serializing_if = "Option::is_none")] - pub oldest_restorable_time: Option, + #[serde(rename = "oldestRestorableTime", with = "azure_core::date::rfc3339::option")] + pub oldest_restorable_time: Option, #[doc = "The time at which the restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, #[doc = "Enum to indicate the API type of the restorable database account."] #[serde(rename = "apiType", default, skip_serializing_if = "Option::is_none")] pub api_type: Option, @@ -5488,11 +5488,11 @@ pub struct RestorableLocationResource { #[serde(rename = "regionalDatabaseAccountInstanceId", default, skip_serializing_if = "Option::is_none")] pub regional_database_account_instance_id: Option, #[doc = "The creation time of the regional restorable database account (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The time at which the regional restorable database account has been deleted (ISO-8601 format)."] - #[serde(rename = "deletionTime", default, skip_serializing_if = "Option::is_none")] - pub deletion_time: Option, + #[serde(rename = "deletionTime", with = "azure_core::date::rfc3339::option")] + pub deletion_time: Option, } impl RestorableLocationResource { pub fn new() -> Self { @@ -6079,8 +6079,8 @@ pub struct RestoreParameters { #[serde(rename = "restoreSource", default, skip_serializing_if = "Option::is_none")] pub restore_source: Option, #[doc = "Time to which the account has to be restored (ISO-8601 format)."] - #[serde(rename = "restoreTimestampInUtc", default, skip_serializing_if = "Option::is_none")] - pub restore_timestamp_in_utc: Option, + #[serde(rename = "restoreTimestampInUtc", with = "azure_core::date::rfc3339::option")] + pub restore_timestamp_in_utc: Option, #[doc = "List of specific databases available for restore."] #[serde(rename = "databasesToRestore", default, skip_serializing_if = "Vec::is_empty")] pub databases_to_restore: Vec, @@ -6307,8 +6307,8 @@ impl ServiceResourceListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceResourceProperties { #[doc = "Time of the last state change (ISO-8601 format)."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Instance type for the service."] #[serde(rename = "instanceSize", default, skip_serializing_if = "Option::is_none")] pub instance_size: Option, @@ -7585,8 +7585,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -7594,8 +7594,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/costmanagement/Cargo.toml b/services/mgmt/costmanagement/Cargo.toml index 898cb97588e..16862f4089c 100644 --- a/services/mgmt/costmanagement/Cargo.toml +++ b/services/mgmt/costmanagement/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs b/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs index a70dbf4e714..effdd54eac0 100644 --- a/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs @@ -683,11 +683,11 @@ pub struct CostAllocationRuleProperties { #[doc = "Current status of the rule."] pub status: RuleStatus, #[doc = "Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "Time at which the rule was last updated."] - #[serde(rename = "updatedDate", default, skip_serializing_if = "Option::is_none")] - pub updated_date: Option, + #[serde(rename = "updatedDate", with = "azure_core::date::rfc3339::option")] + pub updated_date: Option, } impl CostAllocationRuleProperties { pub fn new(details: CostAllocationRuleDetails, status: RuleStatus) -> Self { @@ -732,11 +732,11 @@ pub struct DimensionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Usage start."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "Usage end."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The link (url) to the next page of results."] #[serde(rename = "nextLink", default, skip_serializing_if = "Option::is_none")] pub next_link: Option, @@ -1589,12 +1589,14 @@ impl QueryResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct QueryTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl QueryTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2028,12 +2030,14 @@ pub mod report_config_sorting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ReportConfigTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl ReportConfigTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2180,11 +2184,11 @@ pub struct ViewProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Date the user created this view."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Date when the user last modified this view."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "The definition of a report config."] #[serde(default, skip_serializing_if = "Option::is_none")] pub query: Option, diff --git a/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs b/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs index 86219f2d7de..1a82264dc0e 100644 --- a/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs @@ -498,8 +498,8 @@ pub struct CommonExportProperties { #[serde(rename = "runHistory", default, skip_serializing_if = "Option::is_none")] pub run_history: Option, #[doc = "If the export has an active schedule, provides an estimate of the next execution time."] - #[serde(rename = "nextRunTimeEstimate", default, skip_serializing_if = "Option::is_none")] - pub next_run_time_estimate: Option, + #[serde(rename = "nextRunTimeEstimate", with = "azure_core::date::rfc3339::option")] + pub next_run_time_estimate: Option, } impl CommonExportProperties { pub fn new(delivery_info: ExportDeliveryInfo, definition: ExportDefinition) -> Self { @@ -582,11 +582,11 @@ pub struct DimensionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Usage start."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "Usage end."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The link (url) to the next page of results."] #[serde(rename = "nextLink", default, skip_serializing_if = "Option::is_none")] pub next_link: Option, @@ -632,8 +632,8 @@ pub struct DownloadUrl { #[serde(rename = "downloadUrl", default, skip_serializing_if = "Option::is_none")] pub download_url: Option, #[doc = "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z."] - #[serde(rename = "validTill", default, skip_serializing_if = "Option::is_none")] - pub valid_till: Option, + #[serde(rename = "validTill", with = "azure_core::date::rfc3339::option")] + pub valid_till: Option, } impl DownloadUrl { pub fn new() -> Self { @@ -943,14 +943,14 @@ pub struct ExportExecutionProperties { #[serde(rename = "submittedBy", default, skip_serializing_if = "Option::is_none")] pub submitted_by: Option, #[doc = "The time when export was queued to be executed."] - #[serde(rename = "submittedTime", default, skip_serializing_if = "Option::is_none")] - pub submitted_time: Option, + #[serde(rename = "submittedTime", with = "azure_core::date::rfc3339::option")] + pub submitted_time: Option, #[doc = "The time when export was picked up to be executed."] - #[serde(rename = "processingStartTime", default, skip_serializing_if = "Option::is_none")] - pub processing_start_time: Option, + #[serde(rename = "processingStartTime", with = "azure_core::date::rfc3339::option")] + pub processing_start_time: Option, #[doc = "The time when the export execution finished."] - #[serde(rename = "processingEndTime", default, skip_serializing_if = "Option::is_none")] - pub processing_end_time: Option, + #[serde(rename = "processingEndTime", with = "azure_core::date::rfc3339::option")] + pub processing_end_time: Option, #[doc = "The name of the exported file."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -1086,13 +1086,14 @@ impl ExportProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportRecurrencePeriod { #[doc = "The start date of recurrence."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date of recurrence."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub to: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub to: Option, } impl ExportRecurrencePeriod { - pub fn new(from: String) -> Self { + pub fn new(from: time::OffsetDateTime) -> Self { Self { from, to: None } } } @@ -1199,12 +1200,14 @@ pub mod export_schedule { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportTimePeriod { #[doc = "The start date for export data."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date for export data."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl ExportTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2126,12 +2129,14 @@ impl QueryResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct QueryTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl QueryTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2526,12 +2531,14 @@ pub mod report_config_sorting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ReportConfigTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl ReportConfigTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2663,11 +2670,11 @@ pub struct ViewProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Date the user created this view."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Date when the user last modified this view."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "The definition of a report config."] #[serde(default, skip_serializing_if = "Option::is_none")] pub query: Option, diff --git a/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs b/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs index 82113d8e7b1..a3f3d75c6ec 100644 --- a/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs @@ -8,8 +8,8 @@ use std::str::FromStr; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DownloadUrl { #[doc = "The time in UTC when the download URL will expire."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "The URL to the ZIP file. This Zip file will consists of multiple CSV files"] #[serde(default, skip_serializing_if = "Option::is_none")] pub url: Option, diff --git a/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs b/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs index 0281fa05005..12ddbd47ea2 100644 --- a/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs @@ -594,8 +594,8 @@ pub struct CommonExportProperties { #[serde(rename = "partitionData", default, skip_serializing_if = "Option::is_none")] pub partition_data: Option, #[doc = "If the export has an active schedule, provides an estimate of the next execution time."] - #[serde(rename = "nextRunTimeEstimate", default, skip_serializing_if = "Option::is_none")] - pub next_run_time_estimate: Option, + #[serde(rename = "nextRunTimeEstimate", with = "azure_core::date::rfc3339::option")] + pub next_run_time_estimate: Option, } impl CommonExportProperties { pub fn new(delivery_info: ExportDeliveryInfo, definition: ExportDefinition) -> Self { @@ -730,11 +730,11 @@ pub struct DimensionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Usage start."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "Usage end."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The link (url) to the next page of results."] #[serde(rename = "nextLink", default, skip_serializing_if = "Option::is_none")] pub next_link: Option, @@ -1077,14 +1077,14 @@ pub struct ExportExecutionProperties { #[serde(rename = "submittedBy", default, skip_serializing_if = "Option::is_none")] pub submitted_by: Option, #[doc = "The time when export was queued to be executed."] - #[serde(rename = "submittedTime", default, skip_serializing_if = "Option::is_none")] - pub submitted_time: Option, + #[serde(rename = "submittedTime", with = "azure_core::date::rfc3339::option")] + pub submitted_time: Option, #[doc = "The time when export was picked up to be executed."] - #[serde(rename = "processingStartTime", default, skip_serializing_if = "Option::is_none")] - pub processing_start_time: Option, + #[serde(rename = "processingStartTime", with = "azure_core::date::rfc3339::option")] + pub processing_start_time: Option, #[doc = "The time when the export execution finished."] - #[serde(rename = "processingEndTime", default, skip_serializing_if = "Option::is_none")] - pub processing_end_time: Option, + #[serde(rename = "processingEndTime", with = "azure_core::date::rfc3339::option")] + pub processing_end_time: Option, #[doc = "The name of the exported file."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -1220,13 +1220,14 @@ impl ExportProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportRecurrencePeriod { #[doc = "The start date of recurrence."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date of recurrence."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub to: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub to: Option, } impl ExportRecurrencePeriod { - pub fn new(from: String) -> Self { + pub fn new(from: time::OffsetDateTime) -> Self { Self { from, to: None } } } @@ -1333,12 +1334,14 @@ pub mod export_schedule { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportTimePeriod { #[doc = "The start date for export data."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date for export data."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl ExportTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2253,12 +2256,14 @@ impl QueryResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct QueryTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl QueryTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2685,12 +2690,14 @@ pub mod report_config_sorting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ReportConfigTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl ReportConfigTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2701,8 +2708,8 @@ pub struct ReportUrl { #[serde(rename = "reportUrl", default, skip_serializing_if = "Option::is_none")] pub report_url: Option, #[doc = "The time at which report URL becomes invalid."] - #[serde(rename = "validUntil", default, skip_serializing_if = "Option::is_none")] - pub valid_until: Option, + #[serde(rename = "validUntil", with = "azure_core::date::rfc3339::option")] + pub valid_until: Option, } impl ReportUrl { pub fn new() -> Self { @@ -2855,14 +2862,14 @@ pub struct ScheduleProperties { #[serde(rename = "dayOfMonth", default, skip_serializing_if = "Option::is_none")] pub day_of_month: Option, #[doc = "The start date and time of the scheduled action (UTC)."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The end date and time of the scheduled action (UTC)."] - #[serde(rename = "endDate")] - pub end_date: String, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339")] + pub end_date: time::OffsetDateTime, } impl ScheduleProperties { - pub fn new(frequency: ScheduleFrequency, start_date: String, end_date: String) -> Self { + pub fn new(frequency: ScheduleFrequency, start_date: time::OffsetDateTime, end_date: time::OffsetDateTime) -> Self { Self { frequency, hour_of_day: None, @@ -3094,11 +3101,11 @@ pub struct ViewProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Date the user created this view."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Date when the user last modified this view."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "Date range of the current view."] #[serde(rename = "dateRange", default, skip_serializing_if = "Option::is_none")] pub date_range: Option, @@ -3307,8 +3314,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3316,8 +3323,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/costmanagement/src/package_preview_2022_06/models.rs b/services/mgmt/costmanagement/src/package_preview_2022_06/models.rs index f4083351228..1a3ad395614 100644 --- a/services/mgmt/costmanagement/src/package_preview_2022_06/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2022_06/models.rs @@ -594,8 +594,8 @@ pub struct CommonExportProperties { #[serde(rename = "partitionData", default, skip_serializing_if = "Option::is_none")] pub partition_data: Option, #[doc = "If the export has an active schedule, provides an estimate of the next execution time."] - #[serde(rename = "nextRunTimeEstimate", default, skip_serializing_if = "Option::is_none")] - pub next_run_time_estimate: Option, + #[serde(rename = "nextRunTimeEstimate", with = "azure_core::date::rfc3339::option")] + pub next_run_time_estimate: Option, } impl CommonExportProperties { pub fn new(delivery_info: ExportDeliveryInfo, definition: ExportDefinition) -> Self { @@ -730,11 +730,11 @@ pub struct DimensionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub category: Option, #[doc = "Usage start."] - #[serde(rename = "usageStart", default, skip_serializing_if = "Option::is_none")] - pub usage_start: Option, + #[serde(rename = "usageStart", with = "azure_core::date::rfc3339::option")] + pub usage_start: Option, #[doc = "Usage end."] - #[serde(rename = "usageEnd", default, skip_serializing_if = "Option::is_none")] - pub usage_end: Option, + #[serde(rename = "usageEnd", with = "azure_core::date::rfc3339::option")] + pub usage_end: Option, #[doc = "The link (url) to the next page of results."] #[serde(rename = "nextLink", default, skip_serializing_if = "Option::is_none")] pub next_link: Option, @@ -1077,14 +1077,14 @@ pub struct ExportExecutionProperties { #[serde(rename = "submittedBy", default, skip_serializing_if = "Option::is_none")] pub submitted_by: Option, #[doc = "The time when export was queued to be executed."] - #[serde(rename = "submittedTime", default, skip_serializing_if = "Option::is_none")] - pub submitted_time: Option, + #[serde(rename = "submittedTime", with = "azure_core::date::rfc3339::option")] + pub submitted_time: Option, #[doc = "The time when export was picked up to be executed."] - #[serde(rename = "processingStartTime", default, skip_serializing_if = "Option::is_none")] - pub processing_start_time: Option, + #[serde(rename = "processingStartTime", with = "azure_core::date::rfc3339::option")] + pub processing_start_time: Option, #[doc = "The time when the export execution finished."] - #[serde(rename = "processingEndTime", default, skip_serializing_if = "Option::is_none")] - pub processing_end_time: Option, + #[serde(rename = "processingEndTime", with = "azure_core::date::rfc3339::option")] + pub processing_end_time: Option, #[doc = "The name of the exported file."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -1220,13 +1220,14 @@ impl ExportProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportRecurrencePeriod { #[doc = "The start date of recurrence."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date of recurrence."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub to: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub to: Option, } impl ExportRecurrencePeriod { - pub fn new(from: String) -> Self { + pub fn new(from: time::OffsetDateTime) -> Self { Self { from, to: None } } } @@ -1333,12 +1334,14 @@ pub mod export_schedule { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportTimePeriod { #[doc = "The start date for export data."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date for export data."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl ExportTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2253,12 +2256,14 @@ impl QueryResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct QueryTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl QueryTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2685,12 +2690,14 @@ pub mod report_config_sorting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ReportConfigTimePeriod { #[doc = "The start date to pull data from."] - pub from: String, + #[serde(with = "azure_core::date::rfc3339")] + pub from: time::OffsetDateTime, #[doc = "The end date to pull data to."] - pub to: String, + #[serde(with = "azure_core::date::rfc3339")] + pub to: time::OffsetDateTime, } impl ReportConfigTimePeriod { - pub fn new(from: String, to: String) -> Self { + pub fn new(from: time::OffsetDateTime, to: time::OffsetDateTime) -> Self { Self { from, to } } } @@ -2701,8 +2708,8 @@ pub struct ReportUrl { #[serde(rename = "reportUrl", default, skip_serializing_if = "Option::is_none")] pub report_url: Option, #[doc = "The time at which report URL becomes invalid."] - #[serde(rename = "validUntil", default, skip_serializing_if = "Option::is_none")] - pub valid_until: Option, + #[serde(rename = "validUntil", with = "azure_core::date::rfc3339::option")] + pub valid_until: Option, } impl ReportUrl { pub fn new() -> Self { @@ -2855,14 +2862,14 @@ pub struct ScheduleProperties { #[serde(rename = "dayOfMonth", default, skip_serializing_if = "Option::is_none")] pub day_of_month: Option, #[doc = "The start date and time of the scheduled action (UTC)."] - #[serde(rename = "startDate")] - pub start_date: String, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339")] + pub start_date: time::OffsetDateTime, #[doc = "The end date and time of the scheduled action (UTC)."] - #[serde(rename = "endDate")] - pub end_date: String, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339")] + pub end_date: time::OffsetDateTime, } impl ScheduleProperties { - pub fn new(frequency: ScheduleFrequency, start_date: String, end_date: String) -> Self { + pub fn new(frequency: ScheduleFrequency, start_date: time::OffsetDateTime, end_date: time::OffsetDateTime) -> Self { Self { frequency, hour_of_day: None, @@ -3096,11 +3103,11 @@ pub struct ViewProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub scope: Option, #[doc = "Date the user created this view."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Date when the user last modified this view."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "Date range of the current view."] #[serde(rename = "dateRange", default, skip_serializing_if = "Option::is_none")] pub date_range: Option, @@ -3309,8 +3316,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3318,8 +3325,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/cpim/Cargo.toml b/services/mgmt/cpim/Cargo.toml index 4f61257930f..4fd7984ba88 100644 --- a/services/mgmt/cpim/Cargo.toml +++ b/services/mgmt/cpim/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/cpim/src/package_2021_04_01/models.rs b/services/mgmt/cpim/src/package_2021_04_01/models.rs index 2a58d324276..f0b0667c373 100644 --- a/services/mgmt/cpim/src/package_2021_04_01/models.rs +++ b/services/mgmt/cpim/src/package_2021_04_01/models.rs @@ -609,8 +609,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -618,8 +618,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/customerinsights/Cargo.toml b/services/mgmt/customerinsights/Cargo.toml index 675152cef53..fed4c8ea73c 100644 --- a/services/mgmt/customerinsights/Cargo.toml +++ b/services/mgmt/customerinsights/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/customerinsights/src/package_2017_01/models.rs b/services/mgmt/customerinsights/src/package_2017_01/models.rs index a2dc847eaa1..cf64dede618 100644 --- a/services/mgmt/customerinsights/src/package_2017_01/models.rs +++ b/services/mgmt/customerinsights/src/package_2017_01/models.rs @@ -120,11 +120,11 @@ pub struct Connector { #[serde(rename = "connectorProperties")] pub connector_properties: serde_json::Value, #[doc = "The created time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "State of connector."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -196,11 +196,11 @@ pub struct ConnectorMapping { #[serde(rename = "connectorType", default, skip_serializing_if = "Option::is_none")] pub connector_type: Option, #[doc = "The created time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "Defines which entity type the file should map to."] #[serde(rename = "entityType")] pub entity_type: connector_mapping::EntityType, @@ -223,8 +223,8 @@ pub struct ConnectorMapping { #[serde(rename = "mappingProperties")] pub mapping_properties: ConnectorMappingProperties, #[doc = "The next run time based on customer's settings."] - #[serde(rename = "nextRunTime", default, skip_serializing_if = "Option::is_none")] - pub next_run_time: Option, + #[serde(rename = "nextRunTime", with = "azure_core::date::rfc3339::option")] + pub next_run_time: Option, #[doc = "The RunId."] #[serde(rename = "runId", default, skip_serializing_if = "Option::is_none")] pub run_id: Option, @@ -769,8 +769,8 @@ pub struct EntityTypeDefinition { #[serde(rename = "instancesCount", default, skip_serializing_if = "Option::is_none")] pub instances_count: Option, #[doc = "The last changed time for the type definition."] - #[serde(rename = "lastChangedUtc", default, skip_serializing_if = "Option::is_none")] - pub last_changed_utc: Option, + #[serde(rename = "lastChangedUtc", with = "azure_core::date::rfc3339::option")] + pub last_changed_utc: Option, #[doc = "Provisioning state."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1683,8 +1683,8 @@ pub struct RelationshipDefinition { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The expiry date time in UTC."] - #[serde(rename = "expiryDateTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiry_date_time_utc: Option, + #[serde(rename = "expiryDateTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiry_date_time_utc: Option, #[doc = "The properties of the Relationship."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub fields: Vec, @@ -2331,11 +2331,11 @@ pub struct View { #[doc = "View definition."] pub definition: String, #[doc = "Date time when view was last modified."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub changed: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub changed: Option, #[doc = "Date time when view was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, } impl View { pub fn new(definition: String) -> Self { @@ -2409,11 +2409,11 @@ pub struct WidgetType { #[serde(rename = "widgetVersion", default, skip_serializing_if = "Option::is_none")] pub widget_version: Option, #[doc = "Date time when widget type was last modified."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub changed: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub changed: Option, #[doc = "Date time when widget type was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, } impl WidgetType { pub fn new(definition: String) -> Self { diff --git a/services/mgmt/customerinsights/src/package_2017_04/models.rs b/services/mgmt/customerinsights/src/package_2017_04/models.rs index 1737c371599..04b908b9081 100644 --- a/services/mgmt/customerinsights/src/package_2017_04/models.rs +++ b/services/mgmt/customerinsights/src/package_2017_04/models.rs @@ -135,11 +135,11 @@ pub struct Connector { #[serde(rename = "connectorProperties")] pub connector_properties: serde_json::Value, #[doc = "The created time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "State of connector."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -211,11 +211,11 @@ pub struct ConnectorMapping { #[serde(rename = "connectorType", default, skip_serializing_if = "Option::is_none")] pub connector_type: Option, #[doc = "The created time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "Defines which entity type the file should map to."] #[serde(rename = "entityType")] pub entity_type: connector_mapping::EntityType, @@ -238,8 +238,8 @@ pub struct ConnectorMapping { #[serde(rename = "mappingProperties")] pub mapping_properties: ConnectorMappingProperties, #[doc = "The next run time based on customer's settings."] - #[serde(rename = "nextRunTime", default, skip_serializing_if = "Option::is_none")] - pub next_run_time: Option, + #[serde(rename = "nextRunTime", with = "azure_core::date::rfc3339::option")] + pub next_run_time: Option, #[doc = "The RunId."] #[serde(rename = "runId", default, skip_serializing_if = "Option::is_none")] pub run_id: Option, @@ -784,8 +784,8 @@ pub struct EntityTypeDefinition { #[serde(rename = "instancesCount", default, skip_serializing_if = "Option::is_none")] pub instances_count: Option, #[doc = "The last changed time for the type definition."] - #[serde(rename = "lastChangedUtc", default, skip_serializing_if = "Option::is_none")] - pub last_changed_utc: Option, + #[serde(rename = "lastChangedUtc", with = "azure_core::date::rfc3339::option")] + pub last_changed_utc: Option, #[doc = "Provisioning state."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2065,8 +2065,8 @@ pub struct RelationshipDefinition { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The expiry date time in UTC."] - #[serde(rename = "expiryDateTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiry_date_time_utc: Option, + #[serde(rename = "expiryDateTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiry_date_time_utc: Option, #[doc = "The properties of the Relationship."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub fields: Vec, @@ -2709,11 +2709,11 @@ pub struct View { #[doc = "View definition."] pub definition: String, #[doc = "Date time when view was last modified."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub changed: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub changed: Option, #[doc = "Date time when view was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, } impl View { pub fn new(definition: String) -> Self { @@ -2787,11 +2787,11 @@ pub struct WidgetType { #[serde(rename = "widgetVersion", default, skip_serializing_if = "Option::is_none")] pub widget_version: Option, #[doc = "Date time when widget type was last modified."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub changed: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub changed: Option, #[doc = "Date time when widget type was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, } impl WidgetType { pub fn new(definition: String) -> Self { diff --git a/services/mgmt/customerlockbox/Cargo.toml b/services/mgmt/customerlockbox/Cargo.toml index 61655f91013..250e5f03a0b 100644 --- a/services/mgmt/customerlockbox/Cargo.toml +++ b/services/mgmt/customerlockbox/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs b/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs index a2d9e943863..fc80f1f7b44 100644 --- a/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs +++ b/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs @@ -162,11 +162,11 @@ pub struct LockboxRequestResponseProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The creation time of the request."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The expiration time of the request."] - #[serde(rename = "expirationDateTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_date_time: Option, + #[serde(rename = "expirationDateTime", with = "azure_core::date::rfc3339::option")] + pub expiration_date_time: Option, #[doc = "The duration of the request in hours."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, diff --git a/services/mgmt/customproviders/Cargo.toml b/services/mgmt/customproviders/Cargo.toml index 24f266f3174..fc04df79159 100644 --- a/services/mgmt/customproviders/Cargo.toml +++ b/services/mgmt/customproviders/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dashboard/Cargo.toml b/services/mgmt/dashboard/Cargo.toml index aec32ba8cc5..da4ea603587 100644 --- a/services/mgmt/dashboard/Cargo.toml +++ b/services/mgmt/dashboard/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs b/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs index fbec4973ccb..bd5c90ca6e2 100644 --- a/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs @@ -531,14 +531,14 @@ pub struct SystemData { #[doc = "The type of identity that created the resource."] #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dashboard/src/package_2022_05_01_preview/models.rs b/services/mgmt/dashboard/src/package_2022_05_01_preview/models.rs index 475c7c7fdd0..a37d0b527df 100644 --- a/services/mgmt/dashboard/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/dashboard/src/package_2022_05_01_preview/models.rs @@ -935,8 +935,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -944,8 +944,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dashboard/src/package_2022_08_01/models.rs b/services/mgmt/dashboard/src/package_2022_08_01/models.rs index 475c7c7fdd0..a37d0b527df 100644 --- a/services/mgmt/dashboard/src/package_2022_08_01/models.rs +++ b/services/mgmt/dashboard/src/package_2022_08_01/models.rs @@ -935,8 +935,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -944,8 +944,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/data/Cargo.toml b/services/mgmt/data/Cargo.toml index 1f67fabc09c..751015a9a34 100644 --- a/services/mgmt/data/Cargo.toml +++ b/services/mgmt/data/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/data/src/package_2017_03_01_preview/models.rs b/services/mgmt/data/src/package_2017_03_01_preview/models.rs index cb0fdf0c74b..8e17da5e4e7 100644 --- a/services/mgmt/data/src/package_2017_03_01_preview/models.rs +++ b/services/mgmt/data/src/package_2017_03_01_preview/models.rs @@ -529,8 +529,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -538,8 +538,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/data/src/package_preview_2019_07/models.rs b/services/mgmt/data/src/package_preview_2019_07/models.rs index cb0fdf0c74b..8e17da5e4e7 100644 --- a/services/mgmt/data/src/package_preview_2019_07/models.rs +++ b/services/mgmt/data/src/package_preview_2019_07/models.rs @@ -529,8 +529,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -538,8 +538,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/databox/Cargo.toml b/services/mgmt/databox/Cargo.toml index c826a04fb63..0a9fee47033 100644 --- a/services/mgmt/databox/Cargo.toml +++ b/services/mgmt/databox/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/databox/src/package_2021_03/models.rs b/services/mgmt/databox/src/package_2021_03/models.rs index 3f1c723afa1..32989b80e0b 100644 --- a/services/mgmt/databox/src/package_2021_03/models.rs +++ b/services/mgmt/databox/src/package_2021_03/models.rs @@ -1094,8 +1094,8 @@ impl IdentityProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobDeliveryInfo { #[doc = "Scheduled date time."] - #[serde(rename = "scheduledDateTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_date_time: Option, + #[serde(rename = "scheduledDateTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_date_time: Option, } impl JobDeliveryInfo { pub fn new() -> Self { @@ -1208,8 +1208,8 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Time at which the job was started in UTC ISO 8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Cloud error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -1409,8 +1409,8 @@ pub struct JobStages { #[serde(rename = "stageStatus", default, skip_serializing_if = "Option::is_none")] pub stage_status: Option, #[doc = "Time for the job stage in UTC ISO 8601 format."] - #[serde(rename = "stageTime", default, skip_serializing_if = "Option::is_none")] - pub stage_time: Option, + #[serde(rename = "stageTime", with = "azure_core::date::rfc3339::option")] + pub stage_time: Option, #[doc = "Job Stage Details"] #[serde(rename = "jobStageDetails", default, skip_serializing_if = "Option::is_none")] pub job_stage_details: Option, @@ -1505,8 +1505,8 @@ pub mod key_encryption_key { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LastMitigationActionOnJob { #[doc = "Action performed date time"] - #[serde(rename = "actionDateTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub action_date_time_in_utc: Option, + #[serde(rename = "actionDateTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub action_date_time_in_utc: Option, #[doc = "Action performed by customer,\r\npossibility is that mitigation might happen by customer or service or by ops"] #[serde(rename = "isPerformedByCustomer", default, skip_serializing_if = "Option::is_none")] pub is_performed_by_customer: Option, @@ -1884,7 +1884,7 @@ pub mod schedule_availability_request { pub struct ScheduleAvailabilityResponse { #[doc = "List of dates available to schedule"] #[serde(rename = "availableDates", default, skip_serializing_if = "Vec::is_empty")] - pub available_dates: Vec, + pub available_dates: Vec, } impl ScheduleAvailabilityResponse { pub fn new() -> Self { @@ -1933,17 +1933,17 @@ pub mod share_credential_details { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShipmentPickUpRequest { #[doc = "Minimum date after which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Maximum date before which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, #[doc = "Shipment Location in the pickup place. Eg.front desk"] #[serde(rename = "shipmentLocation")] pub shipment_location: String, } impl ShipmentPickUpRequest { - pub fn new(start_time: String, end_time: String, shipment_location: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, end_time: time::OffsetDateTime, shipment_location: String) -> Self { Self { start_time, end_time, @@ -1958,8 +1958,8 @@ pub struct ShipmentPickUpResponse { #[serde(rename = "confirmationNumber", default, skip_serializing_if = "Option::is_none")] pub confirmation_number: Option, #[doc = "Time by which shipment should be ready for pick up, this is in local time of pick up area."] - #[serde(rename = "readyByTime", default, skip_serializing_if = "Option::is_none")] - pub ready_by_time: Option, + #[serde(rename = "readyByTime", with = "azure_core::date::rfc3339::option")] + pub ready_by_time: Option, } impl ShipmentPickUpResponse { pub fn new() -> Self { @@ -2757,8 +2757,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "A string identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2766,8 +2766,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/databox/src/package_2021_05/models.rs b/services/mgmt/databox/src/package_2021_05/models.rs index bf22f9ff6f2..31329b2d34f 100644 --- a/services/mgmt/databox/src/package_2021_05/models.rs +++ b/services/mgmt/databox/src/package_2021_05/models.rs @@ -1094,8 +1094,8 @@ impl IdentityProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobDeliveryInfo { #[doc = "Scheduled date time."] - #[serde(rename = "scheduledDateTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_date_time: Option, + #[serde(rename = "scheduledDateTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_date_time: Option, } impl JobDeliveryInfo { pub fn new() -> Self { @@ -1208,8 +1208,8 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Time at which the job was started in UTC ISO 8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Cloud error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -1409,8 +1409,8 @@ pub struct JobStages { #[serde(rename = "stageStatus", default, skip_serializing_if = "Option::is_none")] pub stage_status: Option, #[doc = "Time for the job stage in UTC ISO 8601 format."] - #[serde(rename = "stageTime", default, skip_serializing_if = "Option::is_none")] - pub stage_time: Option, + #[serde(rename = "stageTime", with = "azure_core::date::rfc3339::option")] + pub stage_time: Option, #[doc = "Job Stage Details"] #[serde(rename = "jobStageDetails", default, skip_serializing_if = "Option::is_none")] pub job_stage_details: Option, @@ -1508,8 +1508,8 @@ pub mod key_encryption_key { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LastMitigationActionOnJob { #[doc = "Action performed date time"] - #[serde(rename = "actionDateTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub action_date_time_in_utc: Option, + #[serde(rename = "actionDateTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub action_date_time_in_utc: Option, #[doc = "Action performed by customer,\r\npossibility is that mitigation might happen by customer or service or by ops"] #[serde(rename = "isPerformedByCustomer", default, skip_serializing_if = "Option::is_none")] pub is_performed_by_customer: Option, @@ -1887,7 +1887,7 @@ pub mod schedule_availability_request { pub struct ScheduleAvailabilityResponse { #[doc = "List of dates available to schedule"] #[serde(rename = "availableDates", default, skip_serializing_if = "Vec::is_empty")] - pub available_dates: Vec, + pub available_dates: Vec, } impl ScheduleAvailabilityResponse { pub fn new() -> Self { @@ -1936,17 +1936,17 @@ pub mod share_credential_details { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShipmentPickUpRequest { #[doc = "Minimum date after which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Maximum date before which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, #[doc = "Shipment Location in the pickup place. Eg.front desk"] #[serde(rename = "shipmentLocation")] pub shipment_location: String, } impl ShipmentPickUpRequest { - pub fn new(start_time: String, end_time: String, shipment_location: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, end_time: time::OffsetDateTime, shipment_location: String) -> Self { Self { start_time, end_time, @@ -1961,8 +1961,8 @@ pub struct ShipmentPickUpResponse { #[serde(rename = "confirmationNumber", default, skip_serializing_if = "Option::is_none")] pub confirmation_number: Option, #[doc = "Time by which shipment should be ready for pick up, this is in local time of pick up area."] - #[serde(rename = "readyByTime", default, skip_serializing_if = "Option::is_none")] - pub ready_by_time: Option, + #[serde(rename = "readyByTime", with = "azure_core::date::rfc3339::option")] + pub ready_by_time: Option, } impl ShipmentPickUpResponse { pub fn new() -> Self { @@ -2760,8 +2760,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "A string identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2769,8 +2769,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/databox/src/package_2021_08_preview/models.rs b/services/mgmt/databox/src/package_2021_08_preview/models.rs index a82c6f14e71..0e4bd8780fc 100644 --- a/services/mgmt/databox/src/package_2021_08_preview/models.rs +++ b/services/mgmt/databox/src/package_2021_08_preview/models.rs @@ -1533,8 +1533,8 @@ impl ImportDiskDetails { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobDeliveryInfo { #[doc = "Scheduled date time."] - #[serde(rename = "scheduledDateTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_date_time: Option, + #[serde(rename = "scheduledDateTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_date_time: Option, } impl JobDeliveryInfo { pub fn new() -> Self { @@ -1846,8 +1846,8 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Time at which the job was started in UTC ISO 8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Cloud error."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2105,8 +2105,8 @@ pub struct JobStages { #[serde(rename = "stageStatus", default, skip_serializing_if = "Option::is_none")] pub stage_status: Option, #[doc = "Time for the job stage in UTC ISO 8601 format."] - #[serde(rename = "stageTime", default, skip_serializing_if = "Option::is_none")] - pub stage_time: Option, + #[serde(rename = "stageTime", with = "azure_core::date::rfc3339::option")] + pub stage_time: Option, #[doc = "Job Stage Details"] #[serde(rename = "jobStageDetails", default, skip_serializing_if = "Option::is_none")] pub job_stage_details: Option, @@ -2265,8 +2265,8 @@ pub mod key_encryption_key { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LastMitigationActionOnJob { #[doc = "Action performed date time"] - #[serde(rename = "actionDateTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub action_date_time_in_utc: Option, + #[serde(rename = "actionDateTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub action_date_time_in_utc: Option, #[doc = "Action performed by customer,\r\npossibility is that mitigation might happen by customer or service or by ops"] #[serde(rename = "isPerformedByCustomer", default, skip_serializing_if = "Option::is_none")] pub is_performed_by_customer: Option, @@ -2738,7 +2738,7 @@ pub mod schedule_availability_request { pub struct ScheduleAvailabilityResponse { #[doc = "List of dates available to schedule"] #[serde(rename = "availableDates", default, skip_serializing_if = "Vec::is_empty")] - pub available_dates: Vec, + pub available_dates: Vec, } impl ScheduleAvailabilityResponse { pub fn new() -> Self { @@ -2787,17 +2787,17 @@ pub mod share_credential_details { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShipmentPickUpRequest { #[doc = "Minimum date after which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Maximum date before which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, #[doc = "Shipment Location in the pickup place. Eg.front desk"] #[serde(rename = "shipmentLocation")] pub shipment_location: String, } impl ShipmentPickUpRequest { - pub fn new(start_time: String, end_time: String, shipment_location: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, end_time: time::OffsetDateTime, shipment_location: String) -> Self { Self { start_time, end_time, @@ -2812,8 +2812,8 @@ pub struct ShipmentPickUpResponse { #[serde(rename = "confirmationNumber", default, skip_serializing_if = "Option::is_none")] pub confirmation_number: Option, #[doc = "Time by which shipment should be ready for pick up, this is in local time of pick up area."] - #[serde(rename = "readyByTime", default, skip_serializing_if = "Option::is_none")] - pub ready_by_time: Option, + #[serde(rename = "readyByTime", with = "azure_core::date::rfc3339::option")] + pub ready_by_time: Option, } impl ShipmentPickUpResponse { pub fn new() -> Self { @@ -3618,8 +3618,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "A string identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3627,8 +3627,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/databox/src/package_2021_12/models.rs b/services/mgmt/databox/src/package_2021_12/models.rs index 7cddec29eb0..0486956a3c4 100644 --- a/services/mgmt/databox/src/package_2021_12/models.rs +++ b/services/mgmt/databox/src/package_2021_12/models.rs @@ -1749,8 +1749,8 @@ impl ImportDiskDetails { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobDeliveryInfo { #[doc = "Scheduled date time."] - #[serde(rename = "scheduledDateTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_date_time: Option, + #[serde(rename = "scheduledDateTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_date_time: Option, } impl JobDeliveryInfo { pub fn new() -> Self { @@ -2080,8 +2080,8 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Time at which the job was started in UTC ISO 8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Provides additional information about an http error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2339,8 +2339,8 @@ pub struct JobStages { #[serde(rename = "stageStatus", default, skip_serializing_if = "Option::is_none")] pub stage_status: Option, #[doc = "Time for the job stage in UTC ISO 8601 format."] - #[serde(rename = "stageTime", default, skip_serializing_if = "Option::is_none")] - pub stage_time: Option, + #[serde(rename = "stageTime", with = "azure_core::date::rfc3339::option")] + pub stage_time: Option, #[doc = "Job Stage Details"] #[serde(rename = "jobStageDetails", default, skip_serializing_if = "Option::is_none")] pub job_stage_details: Option, @@ -2500,8 +2500,8 @@ pub mod key_encryption_key { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LastMitigationActionOnJob { #[doc = "Action performed date time"] - #[serde(rename = "actionDateTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub action_date_time_in_utc: Option, + #[serde(rename = "actionDateTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub action_date_time_in_utc: Option, #[doc = "Action performed by customer,\r\npossibility is that mitigation might happen by customer or service or by ops"] #[serde(rename = "isPerformedByCustomer", default, skip_serializing_if = "Option::is_none")] pub is_performed_by_customer: Option, @@ -2980,7 +2980,7 @@ pub mod schedule_availability_request { pub struct ScheduleAvailabilityResponse { #[doc = "List of dates available to schedule"] #[serde(rename = "availableDates", default, skip_serializing_if = "Vec::is_empty")] - pub available_dates: Vec, + pub available_dates: Vec, } impl ScheduleAvailabilityResponse { pub fn new() -> Self { @@ -3029,17 +3029,17 @@ pub mod share_credential_details { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShipmentPickUpRequest { #[doc = "Minimum date after which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Maximum date before which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, #[doc = "Shipment Location in the pickup place. Eg.front desk"] #[serde(rename = "shipmentLocation")] pub shipment_location: String, } impl ShipmentPickUpRequest { - pub fn new(start_time: String, end_time: String, shipment_location: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, end_time: time::OffsetDateTime, shipment_location: String) -> Self { Self { start_time, end_time, @@ -3054,8 +3054,8 @@ pub struct ShipmentPickUpResponse { #[serde(rename = "confirmationNumber", default, skip_serializing_if = "Option::is_none")] pub confirmation_number: Option, #[doc = "Time by which shipment should be ready for pick up, this is in local time of pick up area."] - #[serde(rename = "readyByTime", default, skip_serializing_if = "Option::is_none")] - pub ready_by_time: Option, + #[serde(rename = "readyByTime", with = "azure_core::date::rfc3339::option")] + pub ready_by_time: Option, } impl ShipmentPickUpResponse { pub fn new() -> Self { @@ -3860,8 +3860,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "A string identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3869,8 +3869,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/databox/src/package_2022_02/models.rs b/services/mgmt/databox/src/package_2022_02/models.rs index 1b92e5dd20d..967f8d88706 100644 --- a/services/mgmt/databox/src/package_2022_02/models.rs +++ b/services/mgmt/databox/src/package_2022_02/models.rs @@ -1784,8 +1784,8 @@ impl ImportDiskDetails { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobDeliveryInfo { #[doc = "Scheduled date time."] - #[serde(rename = "scheduledDateTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_date_time: Option, + #[serde(rename = "scheduledDateTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_date_time: Option, } impl JobDeliveryInfo { pub fn new() -> Self { @@ -2119,8 +2119,8 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Time at which the job was started in UTC ISO 8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Provides additional information about an http error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2378,8 +2378,8 @@ pub struct JobStages { #[serde(rename = "stageStatus", default, skip_serializing_if = "Option::is_none")] pub stage_status: Option, #[doc = "Time for the job stage in UTC ISO 8601 format."] - #[serde(rename = "stageTime", default, skip_serializing_if = "Option::is_none")] - pub stage_time: Option, + #[serde(rename = "stageTime", with = "azure_core::date::rfc3339::option")] + pub stage_time: Option, #[doc = "Job Stage Details"] #[serde(rename = "jobStageDetails", default, skip_serializing_if = "Option::is_none")] pub job_stage_details: Option, @@ -2539,8 +2539,8 @@ pub mod key_encryption_key { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LastMitigationActionOnJob { #[doc = "Action performed date time"] - #[serde(rename = "actionDateTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub action_date_time_in_utc: Option, + #[serde(rename = "actionDateTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub action_date_time_in_utc: Option, #[doc = "Action performed by customer,\r\npossibility is that mitigation might happen by customer or service or by ops"] #[serde(rename = "isPerformedByCustomer", default, skip_serializing_if = "Option::is_none")] pub is_performed_by_customer: Option, @@ -3019,7 +3019,7 @@ pub mod schedule_availability_request { pub struct ScheduleAvailabilityResponse { #[doc = "List of dates available to schedule"] #[serde(rename = "availableDates", default, skip_serializing_if = "Vec::is_empty")] - pub available_dates: Vec, + pub available_dates: Vec, } impl ScheduleAvailabilityResponse { pub fn new() -> Self { @@ -3068,17 +3068,17 @@ pub mod share_credential_details { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShipmentPickUpRequest { #[doc = "Minimum date after which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Maximum date before which the pick up should commence, this must be in local time of pick up area."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, #[doc = "Shipment Location in the pickup place. Eg.front desk"] #[serde(rename = "shipmentLocation")] pub shipment_location: String, } impl ShipmentPickUpRequest { - pub fn new(start_time: String, end_time: String, shipment_location: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, end_time: time::OffsetDateTime, shipment_location: String) -> Self { Self { start_time, end_time, @@ -3093,8 +3093,8 @@ pub struct ShipmentPickUpResponse { #[serde(rename = "confirmationNumber", default, skip_serializing_if = "Option::is_none")] pub confirmation_number: Option, #[doc = "Time by which shipment should be ready for pick up, this is in local time of pick up area."] - #[serde(rename = "readyByTime", default, skip_serializing_if = "Option::is_none")] - pub ready_by_time: Option, + #[serde(rename = "readyByTime", with = "azure_core::date::rfc3339::option")] + pub ready_by_time: Option, } impl ShipmentPickUpResponse { pub fn new() -> Self { @@ -3899,8 +3899,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "A string identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3908,8 +3908,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/databoxedge/Cargo.toml b/services/mgmt/databoxedge/Cargo.toml index 1b5ca70607c..664408aee44 100644 --- a/services/mgmt/databoxedge/Cargo.toml +++ b/services/mgmt/databoxedge/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/databoxedge/src/package_2020_12_01/models.rs b/services/mgmt/databoxedge/src/package_2020_12_01/models.rs index c458dc7dc5f..d32e0c8d41c 100644 --- a/services/mgmt/databoxedge/src/package_2020_12_01/models.rs +++ b/services/mgmt/databoxedge/src/package_2020_12_01/models.rs @@ -206,8 +206,8 @@ pub struct AlertProperties { #[serde(rename = "alertType", default, skip_serializing_if = "Option::is_none")] pub alert_type: Option, #[doc = "UTC time when the alert appeared."] - #[serde(rename = "appearedAtDateTime", default, skip_serializing_if = "Option::is_none")] - pub appeared_at_date_time: Option, + #[serde(rename = "appearedAtDateTime", with = "azure_core::date::rfc3339::option")] + pub appeared_at_date_time: Option, #[doc = "Alert recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub recommendation: Option, @@ -1006,8 +1006,8 @@ pub struct ContainerProperties { #[serde(rename = "refreshDetails", default, skip_serializing_if = "Option::is_none")] pub refresh_details: Option, #[doc = "The UTC time when container got created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, } impl ContainerProperties { pub fn new(data_format: container_properties::DataFormat) -> Self { @@ -2642,11 +2642,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The UTC date and time at which the job started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which the job completed."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The percentage of the job that is complete."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -4471,8 +4471,8 @@ pub struct OrderStatus { #[doc = "Status of the order as per the allowed status types."] pub status: order_status::Status, #[doc = "Time of status update."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, #[doc = "Comments related to this status change."] #[serde(default, skip_serializing_if = "Option::is_none")] pub comments: Option, @@ -4618,8 +4618,8 @@ impl PeriodicTimerProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PeriodicTimerSourceInfo { #[doc = "The time of the day that results in a valid trigger. Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, and seconds."] pub schedule: String, #[doc = "Topic where periodic events are published to IoT device."] @@ -4627,7 +4627,7 @@ pub struct PeriodicTimerSourceInfo { pub topic: Option, } impl PeriodicTimerSourceInfo { - pub fn new(start_time: String, schedule: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, schedule: String) -> Self { Self { start_time, schedule, @@ -4699,8 +4699,8 @@ pub struct RefreshDetails { #[serde(rename = "inProgressRefreshJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_refresh_job_id: Option, #[doc = "Indicates the completed time for the last refresh job on this particular share or container, if any.This could be a failed job or a successful job."] - #[serde(rename = "lastCompletedRefreshJobTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub last_completed_refresh_job_time_in_utc: Option, + #[serde(rename = "lastCompletedRefreshJobTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub last_completed_refresh_job_time_in_utc: Option, #[doc = "Indicates the relative path of the error xml for the last refresh job on this particular share or container, if any. This could be a failed job or a successful job."] #[serde(rename = "errorManifestFile", default, skip_serializing_if = "Option::is_none")] pub error_manifest_file: Option, @@ -4780,8 +4780,8 @@ pub struct ResourceMoveDetails { #[serde(rename = "operationInProgress", default, skip_serializing_if = "Option::is_none")] pub operation_in_progress: Option, #[doc = "Denotes the timeout of the operation to finish"] - #[serde(rename = "operationInProgressLockTimeoutInUTC", default, skip_serializing_if = "Option::is_none")] - pub operation_in_progress_lock_timeout_in_utc: Option, + #[serde(rename = "operationInProgressLockTimeoutInUTC", with = "azure_core::date::rfc3339::option")] + pub operation_in_progress_lock_timeout_in_utc: Option, } impl ResourceMoveDetails { pub fn new() -> Self { @@ -5941,8 +5941,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5950,8 +5950,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6258,17 +6258,17 @@ pub struct UpdateSummaryProperties { #[serde(rename = "friendlyDeviceVersionName", default, skip_serializing_if = "Option::is_none")] pub friendly_device_version_name: Option, #[doc = "The last time when a scan was done on the device."] - #[serde(rename = "deviceLastScannedDateTime", default, skip_serializing_if = "Option::is_none")] - pub device_last_scanned_date_time: Option, + #[serde(rename = "deviceLastScannedDateTime", with = "azure_core::date::rfc3339::option")] + pub device_last_scanned_date_time: Option, #[doc = "The time when the last scan job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedScanJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_scan_job_date_time: Option, + #[serde(rename = "lastCompletedScanJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_scan_job_date_time: Option, #[doc = "The time when the last Download job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedDownloadJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_download_job_date_time: Option, + #[serde(rename = "lastCompletedDownloadJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_download_job_date_time: Option, #[doc = "The time when the last Install job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_install_job_date_time: Option, + #[serde(rename = "lastCompletedInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_install_job_date_time: Option, #[doc = "The number of updates available for the current device version as per the last device scan."] #[serde(rename = "totalNumberOfUpdatesAvailable", default, skip_serializing_if = "Option::is_none")] pub total_number_of_updates_available: Option, @@ -6291,11 +6291,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "inProgressInstallJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_install_job_id: Option, #[doc = "The time when the currently running download (if any) started."] - #[serde(rename = "inProgressDownloadJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_download_job_started_date_time: Option, + #[serde(rename = "inProgressDownloadJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_download_job_started_date_time: Option, #[doc = "The time when the currently running install (if any) started."] - #[serde(rename = "inProgressInstallJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_install_job_started_date_time: Option, + #[serde(rename = "inProgressInstallJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_install_job_started_date_time: Option, #[doc = "The list of updates available for install."] #[serde(rename = "updateTitles", default, skip_serializing_if = "Vec::is_empty")] pub update_titles: Vec, diff --git a/services/mgmt/databoxedge/src/package_2021_02_01/models.rs b/services/mgmt/databoxedge/src/package_2021_02_01/models.rs index 7f6219d2182..4aa0f015e38 100644 --- a/services/mgmt/databoxedge/src/package_2021_02_01/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_02_01/models.rs @@ -206,8 +206,8 @@ pub struct AlertProperties { #[serde(rename = "alertType", default, skip_serializing_if = "Option::is_none")] pub alert_type: Option, #[doc = "UTC time when the alert appeared."] - #[serde(rename = "appearedAtDateTime", default, skip_serializing_if = "Option::is_none")] - pub appeared_at_date_time: Option, + #[serde(rename = "appearedAtDateTime", with = "azure_core::date::rfc3339::option")] + pub appeared_at_date_time: Option, #[doc = "Alert recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub recommendation: Option, @@ -1006,8 +1006,8 @@ pub struct ContainerProperties { #[serde(rename = "refreshDetails", default, skip_serializing_if = "Option::is_none")] pub refresh_details: Option, #[doc = "The UTC time when container got created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, } impl ContainerProperties { pub fn new(data_format: container_properties::DataFormat) -> Self { @@ -2734,11 +2734,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The UTC date and time at which the job started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which the job completed."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The percentage of the job that is complete."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -4581,8 +4581,8 @@ pub struct OrderStatus { #[doc = "Status of the order as per the allowed status types."] pub status: order_status::Status, #[doc = "Time of status update."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, #[doc = "Comments related to this status change."] #[serde(default, skip_serializing_if = "Option::is_none")] pub comments: Option, @@ -4728,8 +4728,8 @@ impl PeriodicTimerProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PeriodicTimerSourceInfo { #[doc = "The time of the day that results in a valid trigger. Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, and seconds."] pub schedule: String, #[doc = "Topic where periodic events are published to IoT device."] @@ -4737,7 +4737,7 @@ pub struct PeriodicTimerSourceInfo { pub topic: Option, } impl PeriodicTimerSourceInfo { - pub fn new(start_time: String, schedule: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, schedule: String) -> Self { Self { start_time, schedule, @@ -4861,8 +4861,8 @@ pub struct RefreshDetails { #[serde(rename = "inProgressRefreshJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_refresh_job_id: Option, #[doc = "Indicates the completed time for the last refresh job on this particular share or container, if any.This could be a failed job or a successful job."] - #[serde(rename = "lastCompletedRefreshJobTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub last_completed_refresh_job_time_in_utc: Option, + #[serde(rename = "lastCompletedRefreshJobTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub last_completed_refresh_job_time_in_utc: Option, #[doc = "Indicates the relative path of the error xml for the last refresh job on this particular share or container, if any. This could be a failed job or a successful job."] #[serde(rename = "errorManifestFile", default, skip_serializing_if = "Option::is_none")] pub error_manifest_file: Option, @@ -4885,8 +4885,8 @@ pub struct RemoteSupportSettings { #[serde(rename = "accessLevel", default, skip_serializing_if = "Option::is_none")] pub access_level: Option, #[doc = "Expiration time stamp"] - #[serde(rename = "expirationTimeStampInUTC", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_stamp_in_utc: Option, + #[serde(rename = "expirationTimeStampInUTC", with = "azure_core::date::rfc3339::option")] + pub expiration_time_stamp_in_utc: Option, } impl RemoteSupportSettings { pub fn new() -> Self { @@ -5047,8 +5047,8 @@ pub struct ResourceMoveDetails { #[serde(rename = "operationInProgress", default, skip_serializing_if = "Option::is_none")] pub operation_in_progress: Option, #[doc = "Denotes the timeout of the operation to finish"] - #[serde(rename = "operationInProgressLockTimeoutInUTC", default, skip_serializing_if = "Option::is_none")] - pub operation_in_progress_lock_timeout_in_utc: Option, + #[serde(rename = "operationInProgressLockTimeoutInUTC", with = "azure_core::date::rfc3339::option")] + pub operation_in_progress_lock_timeout_in_utc: Option, } impl ResourceMoveDetails { pub fn new() -> Self { @@ -6201,11 +6201,11 @@ impl SubscriptionRegisteredFeatures { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportPackageRequestProperties { #[doc = "MinimumTimeStamp from where logs need to be collected"] - #[serde(rename = "minimumTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub minimum_time_stamp: Option, + #[serde(rename = "minimumTimeStamp", with = "azure_core::date::rfc3339::option")] + pub minimum_time_stamp: Option, #[doc = "MaximumTimeStamp until where logs need to be collected"] - #[serde(rename = "maximumTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub maximum_time_stamp: Option, + #[serde(rename = "maximumTimeStamp", with = "azure_core::date::rfc3339::option")] + pub maximum_time_stamp: Option, #[doc = "Type of files, which need to be included in the logs\r\nThis will contain the type of logs (Default/DefaultWithDumps/None/All/DefaultWithArchived)\r\nor a comma separated list of log types that are required"] #[serde(default, skip_serializing_if = "Option::is_none")] pub include: Option, @@ -6237,8 +6237,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6246,8 +6246,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6772,17 +6772,17 @@ pub struct UpdateSummaryProperties { #[serde(rename = "friendlyDeviceVersionName", default, skip_serializing_if = "Option::is_none")] pub friendly_device_version_name: Option, #[doc = "The last time when a scan was done on the device."] - #[serde(rename = "deviceLastScannedDateTime", default, skip_serializing_if = "Option::is_none")] - pub device_last_scanned_date_time: Option, + #[serde(rename = "deviceLastScannedDateTime", with = "azure_core::date::rfc3339::option")] + pub device_last_scanned_date_time: Option, #[doc = "The time when the last scan job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedScanJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_scan_job_date_time: Option, + #[serde(rename = "lastCompletedScanJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_scan_job_date_time: Option, #[doc = "Time when the last scan job is successfully completed."] - #[serde(rename = "lastSuccessfulScanJobTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_scan_job_time: Option, + #[serde(rename = "lastSuccessfulScanJobTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_scan_job_time: Option, #[doc = "The time when the last Download job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedDownloadJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_download_job_date_time: Option, + #[serde(rename = "lastCompletedDownloadJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_download_job_date_time: Option, #[doc = "JobId of the last ran download job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedDownloadJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_download_job_id: Option, @@ -6790,11 +6790,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "lastDownloadJobStatus", default, skip_serializing_if = "Option::is_none")] pub last_download_job_status: Option, #[doc = "The time when the Last Install job was completed successfully on the appliance"] - #[serde(rename = "lastSuccessfulInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_install_job_date_time: Option, + #[serde(rename = "lastSuccessfulInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_install_job_date_time: Option, #[doc = "The time when the last Install job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_install_job_date_time: Option, + #[serde(rename = "lastCompletedInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_install_job_date_time: Option, #[doc = "JobId of the last ran install job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedInstallJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_install_job_id: Option, @@ -6823,11 +6823,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "inProgressInstallJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_install_job_id: Option, #[doc = "The time when the currently running download (if any) started."] - #[serde(rename = "inProgressDownloadJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_download_job_started_date_time: Option, + #[serde(rename = "inProgressDownloadJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_download_job_started_date_time: Option, #[doc = "The time when the currently running install (if any) started."] - #[serde(rename = "inProgressInstallJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_install_job_started_date_time: Option, + #[serde(rename = "inProgressInstallJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_install_job_started_date_time: Option, #[doc = "The list of updates available for install."] #[serde(rename = "updateTitles", default, skip_serializing_if = "Vec::is_empty")] pub update_titles: Vec, diff --git a/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs b/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs index 676587306ba..c3b8ad51849 100644 --- a/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs @@ -206,8 +206,8 @@ pub struct AlertProperties { #[serde(rename = "alertType", default, skip_serializing_if = "Option::is_none")] pub alert_type: Option, #[doc = "UTC time when the alert appeared."] - #[serde(rename = "appearedAtDateTime", default, skip_serializing_if = "Option::is_none")] - pub appeared_at_date_time: Option, + #[serde(rename = "appearedAtDateTime", with = "azure_core::date::rfc3339::option")] + pub appeared_at_date_time: Option, #[doc = "Alert recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub recommendation: Option, @@ -1006,8 +1006,8 @@ pub struct ContainerProperties { #[serde(rename = "refreshDetails", default, skip_serializing_if = "Option::is_none")] pub refresh_details: Option, #[doc = "The UTC time when container got created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, } impl ContainerProperties { pub fn new(data_format: container_properties::DataFormat) -> Self { @@ -2624,11 +2624,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The UTC date and time at which the job started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which the job completed."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The percentage of the job that is complete."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -4471,8 +4471,8 @@ pub struct OrderStatus { #[doc = "Status of the order as per the allowed status types."] pub status: order_status::Status, #[doc = "Time of status update."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, #[doc = "Comments related to this status change."] #[serde(default, skip_serializing_if = "Option::is_none")] pub comments: Option, @@ -4618,8 +4618,8 @@ impl PeriodicTimerProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PeriodicTimerSourceInfo { #[doc = "The time of the day that results in a valid trigger. Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, and seconds."] pub schedule: String, #[doc = "Topic where periodic events are published to IoT device."] @@ -4627,7 +4627,7 @@ pub struct PeriodicTimerSourceInfo { pub topic: Option, } impl PeriodicTimerSourceInfo { - pub fn new(start_time: String, schedule: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, schedule: String) -> Self { Self { start_time, schedule, @@ -4699,8 +4699,8 @@ pub struct RefreshDetails { #[serde(rename = "inProgressRefreshJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_refresh_job_id: Option, #[doc = "Indicates the completed time for the last refresh job on this particular share or container, if any.This could be a failed job or a successful job."] - #[serde(rename = "lastCompletedRefreshJobTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub last_completed_refresh_job_time_in_utc: Option, + #[serde(rename = "lastCompletedRefreshJobTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub last_completed_refresh_job_time_in_utc: Option, #[doc = "Indicates the relative path of the error xml for the last refresh job on this particular share or container, if any. This could be a failed job or a successful job."] #[serde(rename = "errorManifestFile", default, skip_serializing_if = "Option::is_none")] pub error_manifest_file: Option, @@ -4780,8 +4780,8 @@ pub struct ResourceMoveDetails { #[serde(rename = "operationInProgress", default, skip_serializing_if = "Option::is_none")] pub operation_in_progress: Option, #[doc = "Denotes the timeout of the operation to finish"] - #[serde(rename = "operationInProgressLockTimeoutInUTC", default, skip_serializing_if = "Option::is_none")] - pub operation_in_progress_lock_timeout_in_utc: Option, + #[serde(rename = "operationInProgressLockTimeoutInUTC", with = "azure_core::date::rfc3339::option")] + pub operation_in_progress_lock_timeout_in_utc: Option, } impl ResourceMoveDetails { pub fn new() -> Self { @@ -5952,8 +5952,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5961,8 +5961,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6426,14 +6426,14 @@ pub struct UpdateSummaryProperties { #[serde(rename = "friendlyDeviceVersionName", default, skip_serializing_if = "Option::is_none")] pub friendly_device_version_name: Option, #[doc = "The last time when a scan was done on the device."] - #[serde(rename = "deviceLastScannedDateTime", default, skip_serializing_if = "Option::is_none")] - pub device_last_scanned_date_time: Option, + #[serde(rename = "deviceLastScannedDateTime", with = "azure_core::date::rfc3339::option")] + pub device_last_scanned_date_time: Option, #[doc = "The time when the last scan job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedScanJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_scan_job_date_time: Option, + #[serde(rename = "lastCompletedScanJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_scan_job_date_time: Option, #[doc = "The time when the last Download job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedDownloadJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_download_job_date_time: Option, + #[serde(rename = "lastCompletedDownloadJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_download_job_date_time: Option, #[doc = "JobId of the last ran download job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedDownloadJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_download_job_id: Option, @@ -6441,8 +6441,8 @@ pub struct UpdateSummaryProperties { #[serde(rename = "lastDownloadJobStatus", default, skip_serializing_if = "Option::is_none")] pub last_download_job_status: Option, #[doc = "The time when the last Install job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_install_job_date_time: Option, + #[serde(rename = "lastCompletedInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_install_job_date_time: Option, #[doc = "JobId of the last ran install job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedInstallJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_install_job_id: Option, @@ -6471,11 +6471,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "inProgressInstallJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_install_job_id: Option, #[doc = "The time when the currently running download (if any) started."] - #[serde(rename = "inProgressDownloadJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_download_job_started_date_time: Option, + #[serde(rename = "inProgressDownloadJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_download_job_started_date_time: Option, #[doc = "The time when the currently running install (if any) started."] - #[serde(rename = "inProgressInstallJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_install_job_started_date_time: Option, + #[serde(rename = "inProgressInstallJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_install_job_started_date_time: Option, #[doc = "The list of updates available for install."] #[serde(rename = "updateTitles", default, skip_serializing_if = "Vec::is_empty")] pub update_titles: Vec, diff --git a/services/mgmt/databoxedge/src/package_2021_06_01/models.rs b/services/mgmt/databoxedge/src/package_2021_06_01/models.rs index e6269f7fc9c..d37872ff22d 100644 --- a/services/mgmt/databoxedge/src/package_2021_06_01/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_06_01/models.rs @@ -206,8 +206,8 @@ pub struct AlertProperties { #[serde(rename = "alertType", default, skip_serializing_if = "Option::is_none")] pub alert_type: Option, #[doc = "UTC time when the alert appeared."] - #[serde(rename = "appearedAtDateTime", default, skip_serializing_if = "Option::is_none")] - pub appeared_at_date_time: Option, + #[serde(rename = "appearedAtDateTime", with = "azure_core::date::rfc3339::option")] + pub appeared_at_date_time: Option, #[doc = "Alert recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub recommendation: Option, @@ -1006,8 +1006,8 @@ pub struct ContainerProperties { #[serde(rename = "refreshDetails", default, skip_serializing_if = "Option::is_none")] pub refresh_details: Option, #[doc = "The UTC time when container got created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, } impl ContainerProperties { pub fn new(data_format: container_properties::DataFormat) -> Self { @@ -2791,11 +2791,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The UTC date and time at which the job started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which the job completed."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The percentage of the job that is complete."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -4638,8 +4638,8 @@ pub struct OrderStatus { #[doc = "Status of the order as per the allowed status types."] pub status: order_status::Status, #[doc = "Time of status update."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, #[doc = "Comments related to this status change."] #[serde(default, skip_serializing_if = "Option::is_none")] pub comments: Option, @@ -4785,8 +4785,8 @@ impl PeriodicTimerProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PeriodicTimerSourceInfo { #[doc = "The time of the day that results in a valid trigger. Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, and seconds."] pub schedule: String, #[doc = "Topic where periodic events are published to IoT device."] @@ -4794,7 +4794,7 @@ pub struct PeriodicTimerSourceInfo { pub topic: Option, } impl PeriodicTimerSourceInfo { - pub fn new(start_time: String, schedule: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, schedule: String) -> Self { Self { start_time, schedule, @@ -4918,8 +4918,8 @@ pub struct RefreshDetails { #[serde(rename = "inProgressRefreshJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_refresh_job_id: Option, #[doc = "Indicates the completed time for the last refresh job on this particular share or container, if any.This could be a failed job or a successful job."] - #[serde(rename = "lastCompletedRefreshJobTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub last_completed_refresh_job_time_in_utc: Option, + #[serde(rename = "lastCompletedRefreshJobTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub last_completed_refresh_job_time_in_utc: Option, #[doc = "Indicates the relative path of the error xml for the last refresh job on this particular share or container, if any. This could be a failed job or a successful job."] #[serde(rename = "errorManifestFile", default, skip_serializing_if = "Option::is_none")] pub error_manifest_file: Option, @@ -4942,8 +4942,8 @@ pub struct RemoteSupportSettings { #[serde(rename = "accessLevel", default, skip_serializing_if = "Option::is_none")] pub access_level: Option, #[doc = "Expiration time stamp"] - #[serde(rename = "expirationTimeStampInUTC", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_stamp_in_utc: Option, + #[serde(rename = "expirationTimeStampInUTC", with = "azure_core::date::rfc3339::option")] + pub expiration_time_stamp_in_utc: Option, } impl RemoteSupportSettings { pub fn new() -> Self { @@ -5104,8 +5104,8 @@ pub struct ResourceMoveDetails { #[serde(rename = "operationInProgress", default, skip_serializing_if = "Option::is_none")] pub operation_in_progress: Option, #[doc = "Denotes the timeout of the operation to finish"] - #[serde(rename = "operationInProgressLockTimeoutInUTC", default, skip_serializing_if = "Option::is_none")] - pub operation_in_progress_lock_timeout_in_utc: Option, + #[serde(rename = "operationInProgressLockTimeoutInUTC", with = "azure_core::date::rfc3339::option")] + pub operation_in_progress_lock_timeout_in_utc: Option, } impl ResourceMoveDetails { pub fn new() -> Self { @@ -6258,11 +6258,11 @@ impl SubscriptionRegisteredFeatures { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportPackageRequestProperties { #[doc = "Start of the timespan of the log collection"] - #[serde(rename = "minimumTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub minimum_time_stamp: Option, + #[serde(rename = "minimumTimeStamp", with = "azure_core::date::rfc3339::option")] + pub minimum_time_stamp: Option, #[doc = "MaximumTimeStamp until where logs need to be collected"] - #[serde(rename = "maximumTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub maximum_time_stamp: Option, + #[serde(rename = "maximumTimeStamp", with = "azure_core::date::rfc3339::option")] + pub maximum_time_stamp: Option, #[doc = "Type of files, which need to be included in the logs\r\nThis will contain the type of logs (Default/DefaultWithDumps/None/All/DefaultWithArchived)\r\nor a comma separated list of log types that are required"] #[serde(default, skip_serializing_if = "Option::is_none")] pub include: Option, @@ -6294,8 +6294,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6303,8 +6303,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6829,17 +6829,17 @@ pub struct UpdateSummaryProperties { #[serde(rename = "friendlyDeviceVersionName", default, skip_serializing_if = "Option::is_none")] pub friendly_device_version_name: Option, #[doc = "The last time when a scan was done on the device."] - #[serde(rename = "deviceLastScannedDateTime", default, skip_serializing_if = "Option::is_none")] - pub device_last_scanned_date_time: Option, + #[serde(rename = "deviceLastScannedDateTime", with = "azure_core::date::rfc3339::option")] + pub device_last_scanned_date_time: Option, #[doc = "The time when the last scan job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedScanJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_scan_job_date_time: Option, + #[serde(rename = "lastCompletedScanJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_scan_job_date_time: Option, #[doc = "Time when the last scan job is successfully completed."] - #[serde(rename = "lastSuccessfulScanJobTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_scan_job_time: Option, + #[serde(rename = "lastSuccessfulScanJobTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_scan_job_time: Option, #[doc = "The time when the last Download job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedDownloadJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_download_job_date_time: Option, + #[serde(rename = "lastCompletedDownloadJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_download_job_date_time: Option, #[doc = "JobId of the last ran download job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedDownloadJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_download_job_id: Option, @@ -6847,11 +6847,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "lastDownloadJobStatus", default, skip_serializing_if = "Option::is_none")] pub last_download_job_status: Option, #[doc = "The time when the Last Install job was completed successfully on the appliance"] - #[serde(rename = "lastSuccessfulInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_install_job_date_time: Option, + #[serde(rename = "lastSuccessfulInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_install_job_date_time: Option, #[doc = "The time when the last Install job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_install_job_date_time: Option, + #[serde(rename = "lastCompletedInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_install_job_date_time: Option, #[doc = "JobId of the last ran install job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedInstallJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_install_job_id: Option, @@ -6880,11 +6880,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "inProgressInstallJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_install_job_id: Option, #[doc = "The time when the currently running download (if any) started."] - #[serde(rename = "inProgressDownloadJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_download_job_started_date_time: Option, + #[serde(rename = "inProgressDownloadJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_download_job_started_date_time: Option, #[doc = "The time when the currently running install (if any) started."] - #[serde(rename = "inProgressInstallJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_install_job_started_date_time: Option, + #[serde(rename = "inProgressInstallJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_install_job_started_date_time: Option, #[doc = "The list of updates available for install."] #[serde(rename = "updateTitles", default, skip_serializing_if = "Vec::is_empty")] pub update_titles: Vec, diff --git a/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs b/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs index 693d67a4479..8b97f611af9 100644 --- a/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs @@ -206,8 +206,8 @@ pub struct AlertProperties { #[serde(rename = "alertType", default, skip_serializing_if = "Option::is_none")] pub alert_type: Option, #[doc = "UTC time when the alert appeared."] - #[serde(rename = "appearedAtDateTime", default, skip_serializing_if = "Option::is_none")] - pub appeared_at_date_time: Option, + #[serde(rename = "appearedAtDateTime", with = "azure_core::date::rfc3339::option")] + pub appeared_at_date_time: Option, #[doc = "Alert recommendation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub recommendation: Option, @@ -1006,8 +1006,8 @@ pub struct ContainerProperties { #[serde(rename = "refreshDetails", default, skip_serializing_if = "Option::is_none")] pub refresh_details: Option, #[doc = "The UTC time when container got created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, } impl ContainerProperties { pub fn new(data_format: container_properties::DataFormat) -> Self { @@ -2791,11 +2791,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The UTC date and time at which the job started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which the job completed."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The percentage of the job that is complete."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -4635,8 +4635,8 @@ pub struct OrderStatus { #[doc = "Status of the order as per the allowed status types."] pub status: order_status::Status, #[doc = "Time of status update."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, #[doc = "Comments related to this status change."] #[serde(default, skip_serializing_if = "Option::is_none")] pub comments: Option, @@ -4782,8 +4782,8 @@ impl PeriodicTimerProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PeriodicTimerSourceInfo { #[doc = "The time of the day that results in a valid trigger. Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, and seconds."] pub schedule: String, #[doc = "Topic where periodic events are published to IoT device."] @@ -4791,7 +4791,7 @@ pub struct PeriodicTimerSourceInfo { pub topic: Option, } impl PeriodicTimerSourceInfo { - pub fn new(start_time: String, schedule: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, schedule: String) -> Self { Self { start_time, schedule, @@ -4915,8 +4915,8 @@ pub struct RefreshDetails { #[serde(rename = "inProgressRefreshJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_refresh_job_id: Option, #[doc = "Indicates the completed time for the last refresh job on this particular share or container, if any.This could be a failed job or a successful job."] - #[serde(rename = "lastCompletedRefreshJobTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub last_completed_refresh_job_time_in_utc: Option, + #[serde(rename = "lastCompletedRefreshJobTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub last_completed_refresh_job_time_in_utc: Option, #[doc = "Indicates the relative path of the error xml for the last refresh job on this particular share or container, if any. This could be a failed job or a successful job."] #[serde(rename = "errorManifestFile", default, skip_serializing_if = "Option::is_none")] pub error_manifest_file: Option, @@ -4939,8 +4939,8 @@ pub struct RemoteSupportSettings { #[serde(rename = "accessLevel", default, skip_serializing_if = "Option::is_none")] pub access_level: Option, #[doc = "Expiration time stamp"] - #[serde(rename = "expirationTimeStampInUTC", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_stamp_in_utc: Option, + #[serde(rename = "expirationTimeStampInUTC", with = "azure_core::date::rfc3339::option")] + pub expiration_time_stamp_in_utc: Option, } impl RemoteSupportSettings { pub fn new() -> Self { @@ -5101,8 +5101,8 @@ pub struct ResourceMoveDetails { #[serde(rename = "operationInProgress", default, skip_serializing_if = "Option::is_none")] pub operation_in_progress: Option, #[doc = "Denotes the timeout of the operation to finish"] - #[serde(rename = "operationInProgressLockTimeoutInUTC", default, skip_serializing_if = "Option::is_none")] - pub operation_in_progress_lock_timeout_in_utc: Option, + #[serde(rename = "operationInProgressLockTimeoutInUTC", with = "azure_core::date::rfc3339::option")] + pub operation_in_progress_lock_timeout_in_utc: Option, } impl ResourceMoveDetails { pub fn new() -> Self { @@ -6255,11 +6255,11 @@ impl SubscriptionRegisteredFeatures { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportPackageRequestProperties { #[doc = "Start of the timespan of the log collection"] - #[serde(rename = "minimumTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub minimum_time_stamp: Option, + #[serde(rename = "minimumTimeStamp", with = "azure_core::date::rfc3339::option")] + pub minimum_time_stamp: Option, #[doc = "MaximumTimeStamp until where logs need to be collected"] - #[serde(rename = "maximumTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub maximum_time_stamp: Option, + #[serde(rename = "maximumTimeStamp", with = "azure_core::date::rfc3339::option")] + pub maximum_time_stamp: Option, #[doc = "Type of files, which need to be included in the logs\r\nThis will contain the type of logs (Default/DefaultWithDumps/None/All/DefaultWithArchived)\r\nor a comma separated list of log types that are required"] #[serde(default, skip_serializing_if = "Option::is_none")] pub include: Option, @@ -6291,8 +6291,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6300,8 +6300,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { @@ -6826,17 +6826,17 @@ pub struct UpdateSummaryProperties { #[serde(rename = "friendlyDeviceVersionName", default, skip_serializing_if = "Option::is_none")] pub friendly_device_version_name: Option, #[doc = "The last time when a scan was done on the device."] - #[serde(rename = "deviceLastScannedDateTime", default, skip_serializing_if = "Option::is_none")] - pub device_last_scanned_date_time: Option, + #[serde(rename = "deviceLastScannedDateTime", with = "azure_core::date::rfc3339::option")] + pub device_last_scanned_date_time: Option, #[doc = "The time when the last scan job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedScanJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_scan_job_date_time: Option, + #[serde(rename = "lastCompletedScanJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_scan_job_date_time: Option, #[doc = "Time when the last scan job is successfully completed."] - #[serde(rename = "lastSuccessfulScanJobTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_scan_job_time: Option, + #[serde(rename = "lastSuccessfulScanJobTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_scan_job_time: Option, #[doc = "The time when the last Download job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedDownloadJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_download_job_date_time: Option, + #[serde(rename = "lastCompletedDownloadJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_download_job_date_time: Option, #[doc = "JobId of the last ran download job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedDownloadJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_download_job_id: Option, @@ -6844,11 +6844,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "lastDownloadJobStatus", default, skip_serializing_if = "Option::is_none")] pub last_download_job_status: Option, #[doc = "The time when the Last Install job was completed successfully on the appliance"] - #[serde(rename = "lastSuccessfulInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_install_job_date_time: Option, + #[serde(rename = "lastSuccessfulInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_install_job_date_time: Option, #[doc = "The time when the last Install job was completed (success/cancelled/failed) on the appliance."] - #[serde(rename = "lastCompletedInstallJobDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_completed_install_job_date_time: Option, + #[serde(rename = "lastCompletedInstallJobDateTime", with = "azure_core::date::rfc3339::option")] + pub last_completed_install_job_date_time: Option, #[doc = "JobId of the last ran install job.(Can be success/cancelled/failed)"] #[serde(rename = "lastCompletedInstallJobId", default, skip_serializing_if = "Option::is_none")] pub last_completed_install_job_id: Option, @@ -6877,11 +6877,11 @@ pub struct UpdateSummaryProperties { #[serde(rename = "inProgressInstallJobId", default, skip_serializing_if = "Option::is_none")] pub in_progress_install_job_id: Option, #[doc = "The time when the currently running download (if any) started."] - #[serde(rename = "inProgressDownloadJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_download_job_started_date_time: Option, + #[serde(rename = "inProgressDownloadJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_download_job_started_date_time: Option, #[doc = "The time when the currently running install (if any) started."] - #[serde(rename = "inProgressInstallJobStartedDateTime", default, skip_serializing_if = "Option::is_none")] - pub in_progress_install_job_started_date_time: Option, + #[serde(rename = "inProgressInstallJobStartedDateTime", with = "azure_core::date::rfc3339::option")] + pub in_progress_install_job_started_date_time: Option, #[doc = "The list of updates available for install."] #[serde(rename = "updateTitles", default, skip_serializing_if = "Vec::is_empty")] pub update_titles: Vec, diff --git a/services/mgmt/databricks/Cargo.toml b/services/mgmt/databricks/Cargo.toml index 4c735f73b9e..f178a565895 100644 --- a/services/mgmt/databricks/Cargo.toml +++ b/services/mgmt/databricks/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/databricks/src/package_2018_04_01/models.rs b/services/mgmt/databricks/src/package_2018_04_01/models.rs index e7591838183..1fb73d86a70 100644 --- a/services/mgmt/databricks/src/package_2018_04_01/models.rs +++ b/services/mgmt/databricks/src/package_2018_04_01/models.rs @@ -34,7 +34,7 @@ impl CreatedBy { Self::default() } } -pub type CreatedDateTime = String; +pub type CreatedDateTime = time::OffsetDateTime; #[doc = "The object that contains details of encryption used on the workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Encryption { diff --git a/services/mgmt/databricks/src/package_2022_04_01_preview/models.rs b/services/mgmt/databricks/src/package_2022_04_01_preview/models.rs index 1a148eaf55e..063cc640699 100644 --- a/services/mgmt/databricks/src/package_2022_04_01_preview/models.rs +++ b/services/mgmt/databricks/src/package_2022_04_01_preview/models.rs @@ -143,7 +143,7 @@ impl CreatedBy { Self::default() } } -pub type CreatedDateTime = String; +pub type CreatedDateTime = time::OffsetDateTime; #[doc = "The object that contains details of encryption used on the workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Encryption { @@ -1512,8 +1512,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1521,8 +1521,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/datacatalog/Cargo.toml b/services/mgmt/datacatalog/Cargo.toml index 2f511e14afd..fb1961ef89f 100644 --- a/services/mgmt/datacatalog/Cargo.toml +++ b/services/mgmt/datacatalog/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/datadog/Cargo.toml b/services/mgmt/datadog/Cargo.toml index c22479443bd..f29d9069b56 100644 --- a/services/mgmt/datadog/Cargo.toml +++ b/services/mgmt/datadog/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/datadog/src/package_2020_02_preview/models.rs b/services/mgmt/datadog/src/package_2020_02_preview/models.rs index b688c8e5ebe..65aa282b7ac 100644 --- a/services/mgmt/datadog/src/package_2020_02_preview/models.rs +++ b/services/mgmt/datadog/src/package_2020_02_preview/models.rs @@ -23,8 +23,8 @@ pub struct DatadogAgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, diff --git a/services/mgmt/datadog/src/package_2021_03/models.rs b/services/mgmt/datadog/src/package_2021_03/models.rs index 8767415bb44..d12fe9db73b 100644 --- a/services/mgmt/datadog/src/package_2021_03/models.rs +++ b/services/mgmt/datadog/src/package_2021_03/models.rs @@ -23,8 +23,8 @@ pub struct DatadogAgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -1079,8 +1079,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1088,8 +1088,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/datafactory/Cargo.toml b/services/mgmt/datafactory/Cargo.toml index c0163c9dbf5..a6d3781c525 100644 --- a/services/mgmt/datafactory/Cargo.toml +++ b/services/mgmt/datafactory/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/datafactory/src/package_2017_09_preview/models.rs b/services/mgmt/datafactory/src/package_2017_09_preview/models.rs index e952a86b9c7..bc36f91c67b 100644 --- a/services/mgmt/datafactory/src/package_2017_09_preview/models.rs +++ b/services/mgmt/datafactory/src/package_2017_09_preview/models.rs @@ -71,11 +71,11 @@ pub struct ActivityRun { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the activity run in 'ISO 8601' format."] - #[serde(rename = "activityRunStart", default, skip_serializing_if = "Option::is_none")] - pub activity_run_start: Option, + #[serde(rename = "activityRunStart", with = "azure_core::date::rfc3339::option")] + pub activity_run_start: Option, #[doc = "The end time of the activity run in 'ISO 8601' format."] - #[serde(rename = "activityRunEnd", default, skip_serializing_if = "Option::is_none")] - pub activity_run_end: Option, + #[serde(rename = "activityRunEnd", with = "azure_core::date::rfc3339::option")] + pub activity_run_end: Option, #[doc = "The duration of the activity run."] #[serde(rename = "durationInMs", default, skip_serializing_if = "Option::is_none")] pub duration_in_ms: Option, @@ -376,8 +376,8 @@ pub struct FactoryProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Time the factory was created in ISO8601 format."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "Version of the factory."] #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, @@ -1315,14 +1315,14 @@ pub struct PipelineRun { #[serde(rename = "invokedBy", default, skip_serializing_if = "Option::is_none")] pub invoked_by: Option, #[doc = "The last updated timestamp for the pipeline run event in ISO8601 format."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The start time of a pipeline run in ISO8601 format."] - #[serde(rename = "runStart", default, skip_serializing_if = "Option::is_none")] - pub run_start: Option, + #[serde(rename = "runStart", with = "azure_core::date::rfc3339::option")] + pub run_start: Option, #[doc = "The end time of a pipeline run in ISO8601 format."] - #[serde(rename = "runEnd", default, skip_serializing_if = "Option::is_none")] - pub run_end: Option, + #[serde(rename = "runEnd", with = "azure_core::date::rfc3339::option")] + pub run_end: Option, #[doc = "The duration of a pipeline run."] #[serde(rename = "durationInMs", default, skip_serializing_if = "Option::is_none")] pub duration_in_ms: Option, @@ -1345,11 +1345,11 @@ pub struct PipelineRunFilterParameters { #[serde(rename = "continuationToken", default, skip_serializing_if = "Option::is_none")] pub continuation_token: Option, #[doc = "The time at or after which the pipeline run event was updated in 'ISO 8601' format."] - #[serde(rename = "lastUpdatedAfter")] - pub last_updated_after: String, + #[serde(rename = "lastUpdatedAfter", with = "azure_core::date::rfc3339")] + pub last_updated_after: time::OffsetDateTime, #[doc = "The time at or before which the pipeline run event was updated in 'ISO 8601' format."] - #[serde(rename = "lastUpdatedBefore")] - pub last_updated_before: String, + #[serde(rename = "lastUpdatedBefore", with = "azure_core::date::rfc3339")] + pub last_updated_before: time::OffsetDateTime, #[doc = "List of filters."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub filters: Vec, @@ -1358,7 +1358,7 @@ pub struct PipelineRunFilterParameters { pub order_by: Vec, } impl PipelineRunFilterParameters { - pub fn new(last_updated_after: String, last_updated_before: String) -> Self { + pub fn new(last_updated_after: time::OffsetDateTime, last_updated_before: time::OffsetDateTime) -> Self { Self { continuation_token: None, last_updated_after, @@ -1667,29 +1667,29 @@ pub struct SelfHostedIntegrationRuntimeNode { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The time at which the integration runtime node was registered in ISO8601 format."] - #[serde(rename = "registerTime", default, skip_serializing_if = "Option::is_none")] - pub register_time: Option, + #[serde(rename = "registerTime", with = "azure_core::date::rfc3339::option")] + pub register_time: Option, #[doc = "The most recent time at which the integration runtime was connected in ISO8601 format."] - #[serde(rename = "lastConnectTime", default, skip_serializing_if = "Option::is_none")] - pub last_connect_time: Option, + #[serde(rename = "lastConnectTime", with = "azure_core::date::rfc3339::option")] + pub last_connect_time: Option, #[doc = "The time at which the integration runtime will expire in ISO8601 format."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "The time the node last started up."] - #[serde(rename = "lastStartTime", default, skip_serializing_if = "Option::is_none")] - pub last_start_time: Option, + #[serde(rename = "lastStartTime", with = "azure_core::date::rfc3339::option")] + pub last_start_time: Option, #[doc = "The integration runtime node last stop time."] - #[serde(rename = "lastStopTime", default, skip_serializing_if = "Option::is_none")] - pub last_stop_time: Option, + #[serde(rename = "lastStopTime", with = "azure_core::date::rfc3339::option")] + pub last_stop_time: Option, #[doc = "The result of the last integration runtime node update."] #[serde(rename = "lastUpdateResult", default, skip_serializing_if = "Option::is_none")] pub last_update_result: Option, #[doc = "The last time for the integration runtime node update start."] - #[serde(rename = "lastStartUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_start_update_time: Option, + #[serde(rename = "lastStartUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_start_update_time: Option, #[doc = "The last time for the integration runtime node update end."] - #[serde(rename = "lastEndUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_end_update_time: Option, + #[serde(rename = "lastEndUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_end_update_time: Option, #[doc = "Indicates whether this node is the active dispatcher for integration runtime requests."] #[serde(rename = "isActiveDispatcher", default, skip_serializing_if = "Option::is_none")] pub is_active_dispatcher: Option, @@ -1899,8 +1899,8 @@ pub struct TriggerRun { #[serde(rename = "triggerType", default, skip_serializing_if = "Option::is_none")] pub trigger_type: Option, #[doc = "Trigger run start time."] - #[serde(rename = "triggerRunTimestamp", default, skip_serializing_if = "Option::is_none")] - pub trigger_run_timestamp: Option, + #[serde(rename = "triggerRunTimestamp", with = "azure_core::date::rfc3339::option")] + pub trigger_run_timestamp: Option, #[doc = "Trigger run status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs b/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs index 2b1f3bf2ae5..a46f4dbb843 100644 --- a/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs +++ b/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs @@ -3455,8 +3455,8 @@ pub mod activity_runs { resource_group_name: impl Into, factory_name: impl Into, run_id: impl Into, - start_time: impl Into, - end_time: impl Into, + start_time: impl Into, + end_time: impl Into, ) -> list_by_pipeline_run::Builder { list_by_pipeline_run::Builder { client: self.0.clone(), @@ -3482,8 +3482,8 @@ pub mod activity_runs { pub(crate) resource_group_name: String, pub(crate) factory_name: String, pub(crate) run_id: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, pub(crate) status: Option, pub(crate) activity_name: Option, pub(crate) linked_service_name: Option, @@ -3543,9 +3543,9 @@ pub mod activity_runs { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2017-09-01-preview"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("endTime", &end_time.to_string()); if let Some(status) = &this.status { req.url_mut().query_pairs_mut().append_pair("status", status); } @@ -3733,8 +3733,8 @@ pub mod triggers { resource_group_name: impl Into, factory_name: impl Into, trigger_name: impl Into, - start_time: impl Into, - end_time: impl Into, + start_time: impl Into, + end_time: impl Into, ) -> list_runs::Builder { list_runs::Builder { client: self.0.clone(), @@ -4113,8 +4113,8 @@ pub mod triggers { pub(crate) resource_group_name: String, pub(crate) factory_name: String, pub(crate) trigger_name: String, - pub(crate) start_time: String, - pub(crate) end_time: String, + pub(crate) start_time: time::OffsetDateTime, + pub(crate) end_time: time::OffsetDateTime, } impl Builder { pub fn into_stream(self) -> azure_core::Pageable { @@ -4163,9 +4163,9 @@ pub mod triggers { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2017-09-01-preview"); let start_time = &this.start_time; - req.url_mut().query_pairs_mut().append_pair("startTime", start_time); + req.url_mut().query_pairs_mut().append_pair("startTime", &start_time.to_string()); let end_time = &this.end_time; - req.url_mut().query_pairs_mut().append_pair("endTime", end_time); + req.url_mut().query_pairs_mut().append_pair("endTime", &end_time.to_string()); let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); this.client.send(&mut req).await? diff --git a/services/mgmt/datafactory/src/package_2018_06/models.rs b/services/mgmt/datafactory/src/package_2018_06/models.rs index 1c129d710e0..9e09311a554 100644 --- a/services/mgmt/datafactory/src/package_2018_06/models.rs +++ b/services/mgmt/datafactory/src/package_2018_06/models.rs @@ -117,11 +117,11 @@ pub struct ActivityRun { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the activity run in 'ISO 8601' format."] - #[serde(rename = "activityRunStart", default, skip_serializing_if = "Option::is_none")] - pub activity_run_start: Option, + #[serde(rename = "activityRunStart", with = "azure_core::date::rfc3339::option")] + pub activity_run_start: Option, #[doc = "The end time of the activity run in 'ISO 8601' format."] - #[serde(rename = "activityRunEnd", default, skip_serializing_if = "Option::is_none")] - pub activity_run_end: Option, + #[serde(rename = "activityRunEnd", with = "azure_core::date::rfc3339::option")] + pub activity_run_end: Option, #[doc = "The duration of the activity run."] #[serde(rename = "durationInMs", default, skip_serializing_if = "Option::is_none")] pub duration_in_ms: Option, @@ -8751,8 +8751,8 @@ pub struct FactoryProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Time the factory was created in ISO8601 format."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "Version of the factory."] #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, @@ -13194,8 +13194,8 @@ pub struct LinkedIntegrationRuntime { #[serde(rename = "dataFactoryLocation", default, skip_serializing_if = "Option::is_none")] pub data_factory_location: Option, #[doc = "The creating time of the linked integration runtime."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, } impl LinkedIntegrationRuntime { pub fn new() -> Self { @@ -13621,8 +13621,8 @@ impl ManagedIntegrationRuntime { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedIntegrationRuntimeError { #[doc = "The time when the error occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, #[doc = "Error code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, @@ -13707,8 +13707,8 @@ pub struct ManagedIntegrationRuntimeOperationResult { #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "The start time of the operation."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The operation result."] #[serde(default, skip_serializing_if = "Option::is_none")] pub result: Option, @@ -13751,8 +13751,8 @@ impl ManagedIntegrationRuntimeStatus { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedIntegrationRuntimeStatusTypeProperties { #[doc = "The time at which the integration runtime was created, in ISO8601 format."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The list of nodes for managed integration runtime."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub nodes: Vec, @@ -16781,14 +16781,14 @@ pub struct PipelineRun { #[serde(rename = "invokedBy", default, skip_serializing_if = "Option::is_none")] pub invoked_by: Option, #[doc = "The last updated timestamp for the pipeline run event in ISO8601 format."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The start time of a pipeline run in ISO8601 format."] - #[serde(rename = "runStart", default, skip_serializing_if = "Option::is_none")] - pub run_start: Option, + #[serde(rename = "runStart", with = "azure_core::date::rfc3339::option")] + pub run_start: Option, #[doc = "The end time of a pipeline run in ISO8601 format."] - #[serde(rename = "runEnd", default, skip_serializing_if = "Option::is_none")] - pub run_end: Option, + #[serde(rename = "runEnd", with = "azure_core::date::rfc3339::option")] + pub run_end: Option, #[doc = "The duration of a pipeline run."] #[serde(rename = "durationInMs", default, skip_serializing_if = "Option::is_none")] pub duration_in_ms: Option, @@ -17747,11 +17747,11 @@ pub mod rerun_tumbling_window_trigger { #[serde(rename = "parentTrigger")] pub parent_trigger: serde_json::Value, #[doc = "The start time for the time period for which restatement is initiated. Only UTC time is currently supported."] - #[serde(rename = "requestedStartTime")] - pub requested_start_time: String, + #[serde(rename = "requestedStartTime", with = "azure_core::date::rfc3339")] + pub requested_start_time: time::OffsetDateTime, #[doc = "The end time for the time period for which restatement is initiated. Only UTC time is currently supported."] - #[serde(rename = "requestedEndTime")] - pub requested_end_time: String, + #[serde(rename = "requestedEndTime", with = "azure_core::date::rfc3339")] + pub requested_end_time: time::OffsetDateTime, #[doc = "The max number of parallel time windows (ready for execution) for which a rerun is triggered."] #[serde(rename = "rerunConcurrency")] pub rerun_concurrency: i64, @@ -17759,8 +17759,8 @@ pub mod rerun_tumbling_window_trigger { impl TypeProperties { pub fn new( parent_trigger: serde_json::Value, - requested_start_time: String, - requested_end_time: String, + requested_start_time: time::OffsetDateTime, + requested_end_time: time::OffsetDateTime, rerun_concurrency: i64, ) -> Self { Self { @@ -18168,11 +18168,11 @@ pub struct RunFilterParameters { #[serde(rename = "continuationToken", default, skip_serializing_if = "Option::is_none")] pub continuation_token: Option, #[doc = "The time at or after which the run event was updated in 'ISO 8601' format."] - #[serde(rename = "lastUpdatedAfter")] - pub last_updated_after: String, + #[serde(rename = "lastUpdatedAfter", with = "azure_core::date::rfc3339")] + pub last_updated_after: time::OffsetDateTime, #[doc = "The time at or before which the run event was updated in 'ISO 8601' format."] - #[serde(rename = "lastUpdatedBefore")] - pub last_updated_before: String, + #[serde(rename = "lastUpdatedBefore", with = "azure_core::date::rfc3339")] + pub last_updated_before: time::OffsetDateTime, #[doc = "List of filters."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub filters: Vec, @@ -18181,7 +18181,7 @@ pub struct RunFilterParameters { pub order_by: Vec, } impl RunFilterParameters { - pub fn new(last_updated_after: String, last_updated_before: String) -> Self { + pub fn new(last_updated_after: time::OffsetDateTime, last_updated_before: time::OffsetDateTime) -> Self { Self { continuation_token: None, last_updated_after, @@ -20202,11 +20202,11 @@ pub struct ScheduleTriggerRecurrence { #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The time zone."] #[serde(rename = "timeZone", default, skip_serializing_if = "Option::is_none")] pub time_zone: Option, @@ -20606,29 +20606,29 @@ pub struct SelfHostedIntegrationRuntimeNode { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The time at which the integration runtime node was registered in ISO8601 format."] - #[serde(rename = "registerTime", default, skip_serializing_if = "Option::is_none")] - pub register_time: Option, + #[serde(rename = "registerTime", with = "azure_core::date::rfc3339::option")] + pub register_time: Option, #[doc = "The most recent time at which the integration runtime was connected in ISO8601 format."] - #[serde(rename = "lastConnectTime", default, skip_serializing_if = "Option::is_none")] - pub last_connect_time: Option, + #[serde(rename = "lastConnectTime", with = "azure_core::date::rfc3339::option")] + pub last_connect_time: Option, #[doc = "The time at which the integration runtime will expire in ISO8601 format."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[doc = "The time the node last started up."] - #[serde(rename = "lastStartTime", default, skip_serializing_if = "Option::is_none")] - pub last_start_time: Option, + #[serde(rename = "lastStartTime", with = "azure_core::date::rfc3339::option")] + pub last_start_time: Option, #[doc = "The integration runtime node last stop time."] - #[serde(rename = "lastStopTime", default, skip_serializing_if = "Option::is_none")] - pub last_stop_time: Option, + #[serde(rename = "lastStopTime", with = "azure_core::date::rfc3339::option")] + pub last_stop_time: Option, #[doc = "The result of the last integration runtime node update."] #[serde(rename = "lastUpdateResult", default, skip_serializing_if = "Option::is_none")] pub last_update_result: Option, #[doc = "The last time for the integration runtime node update start."] - #[serde(rename = "lastStartUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_start_update_time: Option, + #[serde(rename = "lastStartUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_start_update_time: Option, #[doc = "The last time for the integration runtime node update end."] - #[serde(rename = "lastEndUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_end_update_time: Option, + #[serde(rename = "lastEndUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_end_update_time: Option, #[doc = "Indicates whether this node is the active dispatcher for integration runtime requests."] #[serde(rename = "isActiveDispatcher", default, skip_serializing_if = "Option::is_none")] pub is_active_dispatcher: Option, @@ -20757,8 +20757,8 @@ impl SelfHostedIntegrationRuntimeStatus { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SelfHostedIntegrationRuntimeStatusTypeProperties { #[doc = "The time at which the integration runtime was created, in ISO8601 format."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, #[doc = "The task queue id of the integration runtime."] #[serde(rename = "taskQueueId", default, skip_serializing_if = "Option::is_none")] pub task_queue_id: Option, @@ -20772,8 +20772,8 @@ pub struct SelfHostedIntegrationRuntimeStatusTypeProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub nodes: Vec, #[doc = "The date at which the integration runtime will be scheduled to update, in ISO8601 format."] - #[serde(rename = "scheduledUpdateDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_update_date: Option, + #[serde(rename = "scheduledUpdateDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_update_date: Option, #[doc = "The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours"] #[serde(rename = "updateDelayOffset", default, skip_serializing_if = "Option::is_none")] pub update_delay_offset: Option, @@ -20802,8 +20802,8 @@ pub struct SelfHostedIntegrationRuntimeStatusTypeProperties { #[serde(rename = "latestVersion", default, skip_serializing_if = "Option::is_none")] pub latest_version: Option, #[doc = "The estimated time when the self-hosted integration runtime will be updated."] - #[serde(rename = "autoUpdateETA", default, skip_serializing_if = "Option::is_none")] - pub auto_update_eta: Option, + #[serde(rename = "autoUpdateETA", with = "azure_core::date::rfc3339::option")] + pub auto_update_eta: Option, } impl SelfHostedIntegrationRuntimeStatusTypeProperties { pub fn new() -> Self { @@ -24229,8 +24229,8 @@ pub struct TriggerRun { #[serde(rename = "triggerType", default, skip_serializing_if = "Option::is_none")] pub trigger_type: Option, #[doc = "Trigger run start time."] - #[serde(rename = "triggerRunTimestamp", default, skip_serializing_if = "Option::is_none")] - pub trigger_run_timestamp: Option, + #[serde(rename = "triggerRunTimestamp", with = "azure_core::date::rfc3339::option")] + pub trigger_run_timestamp: Option, #[doc = "Trigger run status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -24483,11 +24483,11 @@ pub mod tumbling_window_trigger { #[doc = "The interval of the time windows. The minimum interval allowed is 15 Minutes."] pub interval: i32, #[doc = "The start time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "The end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9]))."] #[serde(default, skip_serializing_if = "Option::is_none")] pub delay: Option, @@ -24502,7 +24502,7 @@ pub mod tumbling_window_trigger { pub depends_on: Vec, } impl TypeProperties { - pub fn new(frequency: TumblingWindowFrequency, interval: i32, start_time: String, max_concurrency: i64) -> Self { + pub fn new(frequency: TumblingWindowFrequency, interval: i32, start_time: time::OffsetDateTime, max_concurrency: i64) -> Self { Self { frequency, interval, diff --git a/services/mgmt/datalakeanalytics/Cargo.toml b/services/mgmt/datalakeanalytics/Cargo.toml index 3569740b0db..74c09d763cd 100644 --- a/services/mgmt/datalakeanalytics/Cargo.toml +++ b/services/mgmt/datalakeanalytics/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs b/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs index 601a038276a..4604da38f15 100644 --- a/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs +++ b/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs @@ -722,11 +722,11 @@ pub struct DataLakeAnalyticsAccountPropertiesBasic { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The account creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The account last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The full CName endpoint for this account."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -1334,8 +1334,8 @@ impl StorageContainerListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageContainerProperties { #[doc = "The last modified time of the blob container."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StorageContainerProperties { pub fn new() -> Self { diff --git a/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs b/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs index 8eae3ce529a..d1967d0d6d5 100644 --- a/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs +++ b/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs @@ -746,11 +746,11 @@ pub struct DataLakeAnalyticsAccountPropertiesBasic { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The account creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The account last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The full CName endpoint for this account."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -1343,8 +1343,8 @@ impl StorageContainerListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageContainerProperties { #[doc = "The last modified time of the blob container."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StorageContainerProperties { pub fn new() -> Self { diff --git a/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs b/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs index be0509a3fd8..10d42eaefe5 100644 --- a/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs +++ b/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs @@ -749,11 +749,11 @@ pub struct DataLakeAnalyticsAccountPropertiesBasic { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The account creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The account last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The full CName endpoint for this account."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, @@ -1346,8 +1346,8 @@ impl StorageContainerListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageContainerProperties { #[doc = "The last modified time of the blob container."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StorageContainerProperties { pub fn new() -> Self { diff --git a/services/mgmt/datalakestore/Cargo.toml b/services/mgmt/datalakestore/Cargo.toml index 519f4d79ef2..28b39ff0b2f 100644 --- a/services/mgmt/datalakestore/Cargo.toml +++ b/services/mgmt/datalakestore/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs b/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs index e3afbb60095..420197c5ea8 100644 --- a/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs +++ b/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs @@ -92,8 +92,8 @@ pub struct DataLakeStoreAccountProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "the account creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The current state of encryption for this Data Lake store account."] #[serde(rename = "encryptionState", default, skip_serializing_if = "Option::is_none")] pub encryption_state: Option, @@ -103,8 +103,8 @@ pub struct DataLakeStoreAccountProperties { #[serde(rename = "encryptionConfig", default, skip_serializing_if = "Option::is_none")] pub encryption_config: Option, #[doc = "the account last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "the gateway host."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, diff --git a/services/mgmt/datalakestore/src/package_2016_11/models.rs b/services/mgmt/datalakestore/src/package_2016_11/models.rs index 150ebcd2b36..3bad852aafe 100644 --- a/services/mgmt/datalakestore/src/package_2016_11/models.rs +++ b/services/mgmt/datalakestore/src/package_2016_11/models.rs @@ -495,11 +495,11 @@ pub struct DataLakeStoreAccountPropertiesBasic { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The account creation time."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The account last modified time."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The full CName endpoint for this account."] #[serde(default, skip_serializing_if = "Option::is_none")] pub endpoint: Option, diff --git a/services/mgmt/datamigration/Cargo.toml b/services/mgmt/datamigration/Cargo.toml index 52181096fbb..b8ec16a177b 100644 --- a/services/mgmt/datamigration/Cargo.toml +++ b/services/mgmt/datamigration/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/datamigration/src/package_2018_04_19/models.rs b/services/mgmt/datamigration/src/package_2018_04_19/models.rs index b567480c661..43f12946236 100644 --- a/services/mgmt/datamigration/src/package_2018_04_19/models.rs +++ b/services/mgmt/datamigration/src/package_2018_04_19/models.rs @@ -310,8 +310,8 @@ pub struct BackupSetInfo { #[serde(rename = "lastLsn", default, skip_serializing_if = "Option::is_none")] pub last_lsn: Option, #[doc = "Last modified time of the backup file in share location"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Enum of the different backup types."] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -322,11 +322,11 @@ pub struct BackupSetInfo { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Date and time that the backup operation began"] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Date and time that the backup operation finished"] - #[serde(rename = "backupFinishedDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finished_date: Option, + #[serde(rename = "backupFinishedDate", with = "azure_core::date::rfc3339::option")] + pub backup_finished_date: Option, #[doc = "Whether the backup set is restored or not"] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -667,8 +667,8 @@ pub struct ConnectToSourceSqlServerTaskOutputAgentJobLevel { #[serde(rename = "jobOwner", default, skip_serializing_if = "Option::is_none")] pub job_owner: Option, #[doc = "UTC Date and time when the AgentJob was last executed."] - #[serde(rename = "lastExecutedOn", default, skip_serializing_if = "Option::is_none")] - pub last_executed_on: Option, + #[serde(rename = "lastExecutedOn", with = "azure_core::date::rfc3339::option")] + pub last_executed_on: Option, #[doc = "Information about migration eligibility of a server object"] #[serde(rename = "migrationEligibility", default, skip_serializing_if = "Option::is_none")] pub migration_eligibility: Option, @@ -1190,11 +1190,11 @@ pub struct DataItemMigrationSummaryResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -1501,8 +1501,8 @@ pub struct DatabaseBackupInfo { #[serde(rename = "familyCount", default, skip_serializing_if = "Option::is_none")] pub family_count: Option, #[doc = "Date and time when the backup operation finished."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, } impl DatabaseBackupInfo { pub fn new() -> Self { @@ -2467,11 +2467,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -2532,11 +2532,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -2575,14 +2575,14 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -2596,8 +2596,8 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { pub fn new() -> Self { @@ -2714,11 +2714,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -2779,11 +2779,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -2822,14 +2822,14 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -2843,8 +2843,8 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { pub fn new() -> Self { @@ -2986,11 +2986,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3051,11 +3051,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3097,14 +3097,14 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3118,8 +3118,8 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateSqlServerSqlDbSyncTaskOutputTableLevel { pub fn new() -> Self { @@ -3192,11 +3192,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -3267,11 +3267,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Results for checksum based Data Integrity validation results"] #[serde(rename = "dataIntegrityValidationResult", default, skip_serializing_if = "Option::is_none")] pub data_integrity_validation_result: Option, @@ -3328,11 +3328,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_task_output: MigrateSqlServerSqlDbTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Duration of task execution in seconds."] #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, @@ -3400,11 +3400,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputTableLevel { #[serde(rename = "objectName", default, skip_serializing_if = "Option::is_none")] pub object_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -3550,11 +3550,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputDatabaseLevel { #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, #[doc = "Database migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Information of backup set"] #[serde(rename = "fullBackupSetInfo", default, skip_serializing_if = "Option::is_none")] pub full_backup_set_info: Option, @@ -3609,11 +3609,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server name"] #[serde(rename = "sourceServerName", default, skip_serializing_if = "Option::is_none")] pub source_server_name: Option, @@ -3732,11 +3732,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputAgentJobLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -3766,11 +3766,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -3813,11 +3813,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputLoginLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Login migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Login migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Login migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -3835,11 +3835,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_mi_task_output: MigrateSqlServerSqlMiTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -3934,8 +3934,8 @@ pub struct MigrateSyncCompleteCommandInput { #[serde(rename = "databaseName")] pub database_name: String, #[doc = "Time stamp to complete"] - #[serde(rename = "commitTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub commit_time_stamp: Option, + #[serde(rename = "commitTimeStamp", with = "azure_core::date::rfc3339::option")] + pub commit_time_stamp: Option, } impl MigrateSyncCompleteCommandInput { pub fn new(database_name: String) -> Self { @@ -4142,11 +4142,11 @@ pub struct MigrationValidationDatabaseSummaryResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of the validation"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4438,11 +4438,11 @@ pub struct NonSqlMigrationTaskOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4569,8 +4569,8 @@ pub struct ProjectProperties { #[serde(rename = "targetPlatform")] pub target_platform: ProjectTargetPlatform, #[doc = "UTC Date and time when project was created"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Defines the connection properties of a server"] #[serde(rename = "sourceConnectionInfo", default, skip_serializing_if = "Option::is_none")] pub source_connection_info: Option, diff --git a/services/mgmt/datamigration/src/package_2021_06/models.rs b/services/mgmt/datamigration/src/package_2021_06/models.rs index 17faec58a6d..dc0de8a0223 100644 --- a/services/mgmt/datamigration/src/package_2021_06/models.rs +++ b/services/mgmt/datamigration/src/package_2021_06/models.rs @@ -313,8 +313,8 @@ pub struct BackupSetInfo { #[serde(rename = "lastLsn", default, skip_serializing_if = "Option::is_none")] pub last_lsn: Option, #[doc = "Last modified time of the backup file in share location"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Enum of the different backup types."] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -325,11 +325,11 @@ pub struct BackupSetInfo { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Date and time that the backup operation began"] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Date and time that the backup operation finished"] - #[serde(rename = "backupFinishedDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finished_date: Option, + #[serde(rename = "backupFinishedDate", with = "azure_core::date::rfc3339::option")] + pub backup_finished_date: Option, #[doc = "Whether the backup set is restored or not"] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -809,8 +809,8 @@ pub struct ConnectToSourceSqlServerTaskOutputAgentJobLevel { #[serde(rename = "jobOwner", default, skip_serializing_if = "Option::is_none")] pub job_owner: Option, #[doc = "UTC Date and time when the Agent Job was last executed."] - #[serde(rename = "lastExecutedOn", default, skip_serializing_if = "Option::is_none")] - pub last_executed_on: Option, + #[serde(rename = "lastExecutedOn", with = "azure_core::date::rfc3339::option")] + pub last_executed_on: Option, #[doc = "Validation errors"] #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, @@ -1415,11 +1415,11 @@ pub struct DataItemMigrationSummaryResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -1734,8 +1734,8 @@ pub struct DatabaseBackupInfo { #[serde(rename = "familyCount", default, skip_serializing_if = "Option::is_none")] pub family_count: Option, #[doc = "Date and time when the backup operation finished."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, } impl DatabaseBackupInfo { pub fn new() -> Self { @@ -2916,8 +2916,8 @@ pub struct MigrateMySqlAzureDbForMySqlOfflineTaskInput { #[serde(rename = "makeSourceServerReadOnly", default, skip_serializing_if = "Option::is_none")] pub make_source_server_read_only: Option, #[doc = "Parameter to specify when the migration started"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Optional parameters for fine tuning the data transfer rate during migration"] #[serde(rename = "optionalAgentSettings", default, skip_serializing_if = "Option::is_none")] pub optional_agent_settings: Option, @@ -3070,11 +3070,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3155,11 +3155,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3206,14 +3206,14 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3227,8 +3227,8 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { pub fn new(migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput) -> Self { @@ -3394,11 +3394,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3479,11 +3479,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3530,14 +3530,14 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3551,8 +3551,8 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput) -> Self { @@ -3682,11 +3682,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3767,11 +3767,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3830,14 +3830,14 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3851,8 +3851,8 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput) -> Self { @@ -3959,11 +3959,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Prefix string to use for querying errors for this database"] #[serde(rename = "databaseErrorResultPrefix", default, skip_serializing_if = "Option::is_none")] pub database_error_result_prefix: Option, @@ -4025,11 +4025,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4212,11 +4212,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -4297,11 +4297,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4352,14 +4352,14 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4373,8 +4373,8 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateSqlServerSqlDbSyncTaskOutputTableLevel { pub fn new(migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput) -> Self { @@ -4461,11 +4461,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -4561,11 +4561,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_task_output: MigrateSqlServerSqlDbTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Duration of task execution in seconds."] #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, @@ -4636,11 +4636,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputTableLevel { #[serde(rename = "objectName", default, skip_serializing_if = "Option::is_none")] pub object_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -4776,11 +4776,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputDatabaseLevel { #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, #[doc = "Database migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Information of backup set"] #[serde(rename = "fullBackupSetInfo", default, skip_serializing_if = "Option::is_none")] pub full_backup_set_info: Option, @@ -4852,11 +4852,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server name"] #[serde(rename = "sourceServerName", default, skip_serializing_if = "Option::is_none")] pub source_server_name: Option, @@ -4992,11 +4992,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputAgentJobLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5035,11 +5035,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5096,11 +5096,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputLoginLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Login migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Login migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Login migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5127,11 +5127,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_mi_task_output: MigrateSqlServerSqlMiTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5273,11 +5273,11 @@ pub struct MigrateSsisTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_ssis_task_output: MigrateSsisTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5337,11 +5337,11 @@ pub struct MigrateSsisTaskOutputProjectLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5392,8 +5392,8 @@ pub struct MigrateSyncCompleteCommandInput { #[serde(rename = "databaseName")] pub database_name: String, #[doc = "Time stamp to complete"] - #[serde(rename = "commitTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub commit_time_stamp: Option, + #[serde(rename = "commitTimeStamp", with = "azure_core::date::rfc3339::option")] + pub commit_time_stamp: Option, } impl MigrateSyncCompleteCommandInput { pub fn new(database_name: String) -> Self { @@ -5600,11 +5600,11 @@ pub struct MigrationValidationDatabaseLevelResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Results for checksum based Data Integrity validation results"] #[serde(rename = "dataIntegrityValidationResult", default, skip_serializing_if = "Option::is_none")] pub data_integrity_validation_result: Option, @@ -5639,11 +5639,11 @@ pub struct MigrationValidationDatabaseSummaryResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of the validation"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6171,11 +6171,11 @@ pub struct MongoDbProgress { #[serde(rename = "eventsReplayed")] pub events_replayed: i64, #[doc = "The timestamp of the last oplog event received, or null if no oplog event has been received yet"] - #[serde(rename = "lastEventTime", default, skip_serializing_if = "Option::is_none")] - pub last_event_time: Option, + #[serde(rename = "lastEventTime", with = "azure_core::date::rfc3339::option")] + pub last_event_time: Option, #[doc = "The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet"] - #[serde(rename = "lastReplayTime", default, skip_serializing_if = "Option::is_none")] - pub last_replay_time: Option, + #[serde(rename = "lastReplayTime", with = "azure_core::date::rfc3339::option")] + pub last_replay_time: Option, #[doc = "The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -6674,11 +6674,11 @@ pub struct NonSqlMigrationTaskOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6860,8 +6860,8 @@ pub struct ProjectFileProperties { #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")] pub file_path: Option, #[doc = "Modification DateTime."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "File content type. This property can be modified to reflect the file content type."] #[serde(rename = "mediaType", default, skip_serializing_if = "Option::is_none")] pub media_type: Option, @@ -6905,8 +6905,8 @@ pub struct ProjectProperties { #[serde(rename = "targetPlatform")] pub target_platform: ProjectTargetPlatform, #[doc = "UTC Date and time when project was created"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Defines the connection properties of a server"] #[serde(rename = "sourceConnectionInfo", default, skip_serializing_if = "Option::is_none")] pub source_connection_info: Option, @@ -9010,8 +9010,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -9019,8 +9019,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/datamigration/src/package_preview_2021_10/models.rs b/services/mgmt/datamigration/src/package_preview_2021_10/models.rs index 7a77aa427d5..56d34842a13 100644 --- a/services/mgmt/datamigration/src/package_preview_2021_10/models.rs +++ b/services/mgmt/datamigration/src/package_preview_2021_10/models.rs @@ -360,8 +360,8 @@ pub struct BackupSetInfo { #[serde(rename = "lastLsn", default, skip_serializing_if = "Option::is_none")] pub last_lsn: Option, #[doc = "Last modified time of the backup file in share location"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Enum of the different backup types."] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -372,11 +372,11 @@ pub struct BackupSetInfo { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Date and time that the backup operation began"] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Date and time that the backup operation finished"] - #[serde(rename = "backupFinishedDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finished_date: Option, + #[serde(rename = "backupFinishedDate", with = "azure_core::date::rfc3339::option")] + pub backup_finished_date: Option, #[doc = "Whether the backup set is restored or not"] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -908,8 +908,8 @@ pub struct ConnectToSourceSqlServerTaskOutputAgentJobLevel { #[serde(rename = "jobOwner", default, skip_serializing_if = "Option::is_none")] pub job_owner: Option, #[doc = "UTC Date and time when the Agent Job was last executed."] - #[serde(rename = "lastExecutedOn", default, skip_serializing_if = "Option::is_none")] - pub last_executed_on: Option, + #[serde(rename = "lastExecutedOn", with = "azure_core::date::rfc3339::option")] + pub last_executed_on: Option, #[doc = "Validation errors"] #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, @@ -1514,11 +1514,11 @@ pub struct DataItemMigrationSummaryResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -1826,8 +1826,8 @@ pub struct DatabaseBackupInfo { #[serde(rename = "familyCount", default, skip_serializing_if = "Option::is_none")] pub family_count: Option, #[doc = "Date and time when the backup operation finished."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, } impl DatabaseBackupInfo { pub fn new() -> Self { @@ -2039,11 +2039,11 @@ pub struct DatabaseMigrationProperties { #[serde(rename = "migrationStatus", default, skip_serializing_if = "Option::is_none")] pub migration_status: Option, #[doc = "Database migration start time."] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time."] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source SQL Connection"] #[serde(rename = "sourceSqlConnection", default, skip_serializing_if = "Option::is_none")] pub source_sql_connection: Option, @@ -3262,8 +3262,8 @@ pub struct MigrateMySqlAzureDbForMySqlOfflineTaskInput { #[serde(rename = "makeSourceServerReadOnly", default, skip_serializing_if = "Option::is_none")] pub make_source_server_read_only: Option, #[doc = "Parameter to specify when the migration started"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Optional parameters for fine tuning the data transfer rate during migration"] #[serde(rename = "optionalAgentSettings", default, skip_serializing_if = "Option::is_none")] pub optional_agent_settings: Option, @@ -3416,11 +3416,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3501,11 +3501,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3552,14 +3552,14 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3573,8 +3573,8 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { pub fn new(migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput) -> Self { @@ -3740,11 +3740,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3825,11 +3825,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3876,14 +3876,14 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3897,8 +3897,8 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput) -> Self { @@ -4032,11 +4032,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -4121,11 +4121,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4188,14 +4188,14 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4209,8 +4209,8 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput) -> Self { @@ -4336,11 +4336,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Prefix string to use for querying errors for this database"] #[serde(rename = "databaseErrorResultPrefix", default, skip_serializing_if = "Option::is_none")] pub database_error_result_prefix: Option, @@ -4402,11 +4402,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4603,11 +4603,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -4688,11 +4688,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4743,14 +4743,14 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4764,8 +4764,8 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateSqlServerSqlDbSyncTaskOutputTableLevel { pub fn new(migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput) -> Self { @@ -4860,11 +4860,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -4960,11 +4960,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_task_output: MigrateSqlServerSqlDbTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Duration of task execution in seconds."] #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, @@ -5035,11 +5035,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputTableLevel { #[serde(rename = "objectName", default, skip_serializing_if = "Option::is_none")] pub object_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5187,11 +5187,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputDatabaseLevel { #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, #[doc = "Database migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Information of backup set"] #[serde(rename = "fullBackupSetInfo", default, skip_serializing_if = "Option::is_none")] pub full_backup_set_info: Option, @@ -5263,11 +5263,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server name"] #[serde(rename = "sourceServerName", default, skip_serializing_if = "Option::is_none")] pub source_server_name: Option, @@ -5407,11 +5407,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputAgentJobLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5450,11 +5450,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5511,11 +5511,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputLoginLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Login migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Login migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Login migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5542,11 +5542,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_mi_task_output: MigrateSqlServerSqlMiTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5692,11 +5692,11 @@ pub struct MigrateSsisTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_ssis_task_output: MigrateSsisTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5756,11 +5756,11 @@ pub struct MigrateSsisTaskOutputProjectLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5811,8 +5811,8 @@ pub struct MigrateSyncCompleteCommandInput { #[serde(rename = "databaseName")] pub database_name: String, #[doc = "Time stamp to complete"] - #[serde(rename = "commitTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub commit_time_stamp: Option, + #[serde(rename = "commitTimeStamp", with = "azure_core::date::rfc3339::option")] + pub commit_time_stamp: Option, } impl MigrateSyncCompleteCommandInput { pub fn new(database_name: String) -> Self { @@ -6079,11 +6079,11 @@ pub struct MigrationValidationDatabaseLevelResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Results for checksum based Data Integrity validation results"] #[serde(rename = "dataIntegrityValidationResult", default, skip_serializing_if = "Option::is_none")] pub data_integrity_validation_result: Option, @@ -6118,11 +6118,11 @@ pub struct MigrationValidationDatabaseSummaryResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of the validation"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6673,11 +6673,11 @@ pub struct MongoDbProgress { #[serde(rename = "eventsReplayed")] pub events_replayed: i64, #[doc = "The timestamp of the last oplog event received, or null if no oplog event has been received yet"] - #[serde(rename = "lastEventTime", default, skip_serializing_if = "Option::is_none")] - pub last_event_time: Option, + #[serde(rename = "lastEventTime", with = "azure_core::date::rfc3339::option")] + pub last_event_time: Option, #[doc = "The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet"] - #[serde(rename = "lastReplayTime", default, skip_serializing_if = "Option::is_none")] - pub last_replay_time: Option, + #[serde(rename = "lastReplayTime", with = "azure_core::date::rfc3339::option")] + pub last_replay_time: Option, #[doc = "The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -7215,11 +7215,11 @@ pub struct NonSqlMigrationTaskOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -7516,8 +7516,8 @@ pub struct ProjectFileProperties { #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")] pub file_path: Option, #[doc = "Modification DateTime."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "File content type. This property can be modified to reflect the file content type."] #[serde(rename = "mediaType", default, skip_serializing_if = "Option::is_none")] pub media_type: Option, @@ -7564,8 +7564,8 @@ pub struct ProjectProperties { #[serde(rename = "targetPlatform")] pub target_platform: ProjectTargetPlatform, #[doc = "UTC Date and time when project was created"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Defines the connection properties of a server"] #[serde(rename = "sourceConnectionInfo", default, skip_serializing_if = "Option::is_none")] pub source_connection_info: Option, @@ -9007,11 +9007,11 @@ pub struct SqlBackupSetInfo { #[serde(rename = "listOfBackupFiles", default, skip_serializing_if = "Vec::is_empty")] pub list_of_backup_files: Vec, #[doc = "Backup start date."] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Backup end time."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, #[doc = "Whether this backup set has been restored or not."] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -9593,14 +9593,14 @@ pub struct SystemData { pub created_by: Option, #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/datamigration/src/package_preview_2022_01/models.rs b/services/mgmt/datamigration/src/package_preview_2022_01/models.rs index 3fb86aed3f8..cbcbd92b4f3 100644 --- a/services/mgmt/datamigration/src/package_preview_2022_01/models.rs +++ b/services/mgmt/datamigration/src/package_preview_2022_01/models.rs @@ -364,8 +364,8 @@ pub struct BackupSetInfo { #[serde(rename = "lastLsn", default, skip_serializing_if = "Option::is_none")] pub last_lsn: Option, #[doc = "Last modified time of the backup file in share location"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Enum of the different backup types."] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -376,11 +376,11 @@ pub struct BackupSetInfo { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Date and time that the backup operation began"] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Date and time that the backup operation finished"] - #[serde(rename = "backupFinishedDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finished_date: Option, + #[serde(rename = "backupFinishedDate", with = "azure_core::date::rfc3339::option")] + pub backup_finished_date: Option, #[doc = "Whether the backup set is restored or not"] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -916,8 +916,8 @@ pub struct ConnectToSourceSqlServerTaskOutputAgentJobLevel { #[serde(rename = "jobOwner", default, skip_serializing_if = "Option::is_none")] pub job_owner: Option, #[doc = "UTC Date and time when the Agent Job was last executed."] - #[serde(rename = "lastExecutedOn", default, skip_serializing_if = "Option::is_none")] - pub last_executed_on: Option, + #[serde(rename = "lastExecutedOn", with = "azure_core::date::rfc3339::option")] + pub last_executed_on: Option, #[doc = "Validation errors"] #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, @@ -1536,11 +1536,11 @@ pub struct DataItemMigrationSummaryResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -1851,8 +1851,8 @@ pub struct DatabaseBackupInfo { #[serde(rename = "familyCount", default, skip_serializing_if = "Option::is_none")] pub family_count: Option, #[doc = "Date and time when the backup operation finished."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, } impl DatabaseBackupInfo { pub fn new() -> Self { @@ -2064,11 +2064,11 @@ pub struct DatabaseMigrationProperties { #[serde(rename = "migrationStatus", default, skip_serializing_if = "Option::is_none")] pub migration_status: Option, #[doc = "Database migration start time."] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time."] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source SQL Connection"] #[serde(rename = "sourceSqlConnection", default, skip_serializing_if = "Option::is_none")] pub source_sql_connection: Option, @@ -3295,8 +3295,8 @@ pub struct MigrateMySqlAzureDbForMySqlOfflineTaskInput { #[serde(rename = "makeSourceServerReadOnly", default, skip_serializing_if = "Option::is_none")] pub make_source_server_read_only: Option, #[doc = "Parameter to specify when the migration started"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Optional parameters for fine tuning the data transfer rate during migration"] #[serde(rename = "optionalAgentSettings", default, skip_serializing_if = "Option::is_none")] pub optional_agent_settings: Option, @@ -3461,11 +3461,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3546,11 +3546,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3597,14 +3597,14 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3618,8 +3618,8 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { pub fn new(migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput) -> Self { @@ -3785,11 +3785,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3870,11 +3870,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3921,14 +3921,14 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3942,8 +3942,8 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput) -> Self { @@ -4023,8 +4023,8 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput { #[serde(rename = "encryptedKeyForSecureFields", default, skip_serializing_if = "Option::is_none")] pub encrypted_key_for_secure_fields: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, } impl MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput { pub fn new( @@ -4084,11 +4084,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -4173,11 +4173,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4240,14 +4240,14 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4261,8 +4261,8 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput) -> Self { @@ -4392,11 +4392,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Prefix string to use for querying errors for this database"] #[serde(rename = "databaseErrorResultPrefix", default, skip_serializing_if = "Option::is_none")] pub database_error_result_prefix: Option, @@ -4458,11 +4458,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4663,11 +4663,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -4748,11 +4748,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4803,14 +4803,14 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4824,8 +4824,8 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateSqlServerSqlDbSyncTaskOutputTableLevel { pub fn new(migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput) -> Self { @@ -4920,11 +4920,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5020,11 +5020,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_task_output: MigrateSqlServerSqlDbTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Duration of task execution in seconds."] #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, @@ -5095,11 +5095,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputTableLevel { #[serde(rename = "objectName", default, skip_serializing_if = "Option::is_none")] pub object_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5255,11 +5255,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputDatabaseLevel { #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, #[doc = "Database migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Information of backup set"] #[serde(rename = "fullBackupSetInfo", default, skip_serializing_if = "Option::is_none")] pub full_backup_set_info: Option, @@ -5331,11 +5331,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server name"] #[serde(rename = "sourceServerName", default, skip_serializing_if = "Option::is_none")] pub source_server_name: Option, @@ -5483,11 +5483,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputAgentJobLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5526,11 +5526,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5587,11 +5587,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputLoginLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Login migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Login migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Login migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5618,11 +5618,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_mi_task_output: MigrateSqlServerSqlMiTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5780,11 +5780,11 @@ pub struct MigrateSsisTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_ssis_task_output: MigrateSsisTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5844,11 +5844,11 @@ pub struct MigrateSsisTaskOutputProjectLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5899,8 +5899,8 @@ pub struct MigrateSyncCompleteCommandInput { #[serde(rename = "databaseName")] pub database_name: String, #[doc = "Time stamp to complete"] - #[serde(rename = "commitTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub commit_time_stamp: Option, + #[serde(rename = "commitTimeStamp", with = "azure_core::date::rfc3339::option")] + pub commit_time_stamp: Option, } impl MigrateSyncCompleteCommandInput { pub fn new(database_name: String) -> Self { @@ -6171,11 +6171,11 @@ pub struct MigrationValidationDatabaseLevelResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Results for checksum based Data Integrity validation results"] #[serde(rename = "dataIntegrityValidationResult", default, skip_serializing_if = "Option::is_none")] pub data_integrity_validation_result: Option, @@ -6210,11 +6210,11 @@ pub struct MigrationValidationDatabaseSummaryResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of the validation"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6773,11 +6773,11 @@ pub struct MongoDbProgress { #[serde(rename = "eventsReplayed")] pub events_replayed: i64, #[doc = "The timestamp of the last oplog event received, or null if no oplog event has been received yet"] - #[serde(rename = "lastEventTime", default, skip_serializing_if = "Option::is_none")] - pub last_event_time: Option, + #[serde(rename = "lastEventTime", with = "azure_core::date::rfc3339::option")] + pub last_event_time: Option, #[doc = "The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet"] - #[serde(rename = "lastReplayTime", default, skip_serializing_if = "Option::is_none")] - pub last_replay_time: Option, + #[serde(rename = "lastReplayTime", with = "azure_core::date::rfc3339::option")] + pub last_replay_time: Option, #[doc = "The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -7319,11 +7319,11 @@ pub struct NonSqlMigrationTaskOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -7632,8 +7632,8 @@ pub struct ProjectFileProperties { #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")] pub file_path: Option, #[doc = "Modification DateTime."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "File content type. This property can be modified to reflect the file content type."] #[serde(rename = "mediaType", default, skip_serializing_if = "Option::is_none")] pub media_type: Option, @@ -7680,8 +7680,8 @@ pub struct ProjectProperties { #[serde(rename = "targetPlatform")] pub target_platform: ProjectTargetPlatform, #[doc = "UTC Date and time when project was created"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Defines the connection properties of a server"] #[serde(rename = "sourceConnectionInfo", default, skip_serializing_if = "Option::is_none")] pub source_connection_info: Option, @@ -9125,11 +9125,11 @@ pub struct SqlBackupSetInfo { #[serde(rename = "listOfBackupFiles", default, skip_serializing_if = "Vec::is_empty")] pub list_of_backup_files: Vec, #[doc = "Backup start date."] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Backup end time."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, #[doc = "Whether this backup set has been restored or not."] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -9719,14 +9719,14 @@ pub struct SystemData { pub created_by: Option, #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/datamigration/src/package_preview_2022_03/models.rs b/services/mgmt/datamigration/src/package_preview_2022_03/models.rs index 823d9a91e8f..bb07c85e164 100644 --- a/services/mgmt/datamigration/src/package_preview_2022_03/models.rs +++ b/services/mgmt/datamigration/src/package_preview_2022_03/models.rs @@ -359,8 +359,8 @@ pub struct BackupSetInfo { #[serde(rename = "lastLsn", default, skip_serializing_if = "Option::is_none")] pub last_lsn: Option, #[doc = "Last modified time of the backup file in share location"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Enum of the different backup types."] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -371,11 +371,11 @@ pub struct BackupSetInfo { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Date and time that the backup operation began"] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Date and time that the backup operation finished"] - #[serde(rename = "backupFinishedDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finished_date: Option, + #[serde(rename = "backupFinishedDate", with = "azure_core::date::rfc3339::option")] + pub backup_finished_date: Option, #[doc = "Whether the backup set is restored or not"] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -911,8 +911,8 @@ pub struct ConnectToSourceSqlServerTaskOutputAgentJobLevel { #[serde(rename = "jobOwner", default, skip_serializing_if = "Option::is_none")] pub job_owner: Option, #[doc = "UTC Date and time when the Agent Job was last executed."] - #[serde(rename = "lastExecutedOn", default, skip_serializing_if = "Option::is_none")] - pub last_executed_on: Option, + #[serde(rename = "lastExecutedOn", with = "azure_core::date::rfc3339::option")] + pub last_executed_on: Option, #[doc = "Validation errors"] #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, @@ -1537,8 +1537,8 @@ pub struct CopyProgressDetails { #[serde(rename = "rowsCopied", default, skip_serializing_if = "Option::is_none")] pub rows_copied: Option, #[doc = "Copy Start"] - #[serde(rename = "copyStart", default, skip_serializing_if = "Option::is_none")] - pub copy_start: Option, + #[serde(rename = "copyStart", with = "azure_core::date::rfc3339::option")] + pub copy_start: Option, #[doc = "Copy throughput in KBps"] #[serde(rename = "copyThroughput", default, skip_serializing_if = "Option::is_none")] pub copy_throughput: Option, @@ -1573,11 +1573,11 @@ pub struct DataItemMigrationSummaryResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -1888,8 +1888,8 @@ pub struct DatabaseBackupInfo { #[serde(rename = "familyCount", default, skip_serializing_if = "Option::is_none")] pub family_count: Option, #[doc = "Date and time when the backup operation finished."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, } impl DatabaseBackupInfo { pub fn new() -> Self { @@ -2101,11 +2101,11 @@ pub struct DatabaseMigrationProperties { #[serde(rename = "migrationStatus", default, skip_serializing_if = "Option::is_none")] pub migration_status: Option, #[doc = "Database migration start time."] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time."] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source SQL Connection"] #[serde(rename = "sourceSqlConnection", default, skip_serializing_if = "Option::is_none")] pub source_sql_connection: Option, @@ -3375,8 +3375,8 @@ pub struct MigrateMySqlAzureDbForMySqlOfflineTaskInput { #[serde(rename = "makeSourceServerReadOnly", default, skip_serializing_if = "Option::is_none")] pub make_source_server_read_only: Option, #[doc = "Parameter to specify when the migration started"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Optional parameters for fine tuning the data transfer rate during migration"] #[serde(rename = "optionalAgentSettings", default, skip_serializing_if = "Option::is_none")] pub optional_agent_settings: Option, @@ -3541,11 +3541,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3626,11 +3626,11 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -3677,14 +3677,14 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -3698,8 +3698,8 @@ pub struct MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel { pub fn new(migrate_my_sql_azure_db_for_my_sql_sync_task_output: MigrateMySqlAzureDbForMySqlSyncTaskOutput) -> Self { @@ -3865,11 +3865,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -3950,11 +3950,11 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4001,14 +4001,14 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4022,8 +4022,8 @@ pub struct MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_oracle_azure_db_postgre_sql_sync_task_output: MigrateOracleAzureDbPostgreSqlSyncTaskOutput) -> Self { @@ -4103,8 +4103,8 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput { #[serde(rename = "encryptedKeyForSecureFields", default, skip_serializing_if = "Option::is_none")] pub encrypted_key_for_secure_fields: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, } impl MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput { pub fn new( @@ -4164,11 +4164,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -4253,11 +4253,11 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4320,14 +4320,14 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4341,8 +4341,8 @@ pub struct MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel { pub fn new(migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_output: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput) -> Self { @@ -4472,11 +4472,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Prefix string to use for querying errors for this database"] #[serde(rename = "databaseErrorResultPrefix", default, skip_serializing_if = "Option::is_none")] pub database_error_result_prefix: Option, @@ -4538,11 +4538,11 @@ pub struct MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4743,11 +4743,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Enum of the different state of database level online migration."] #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, @@ -4828,11 +4828,11 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server version"] #[serde(rename = "sourceServerVersion", default, skip_serializing_if = "Option::is_none")] pub source_server_version: Option, @@ -4883,14 +4883,14 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "cdcDeleteCounter", default, skip_serializing_if = "Option::is_none")] pub cdc_delete_counter: Option, #[doc = "Estimate to finish full load"] - #[serde(rename = "fullLoadEstFinishTime", default, skip_serializing_if = "Option::is_none")] - pub full_load_est_finish_time: Option, + #[serde(rename = "fullLoadEstFinishTime", with = "azure_core::date::rfc3339::option")] + pub full_load_est_finish_time: Option, #[doc = "Full load start time"] - #[serde(rename = "fullLoadStartedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_started_on: Option, + #[serde(rename = "fullLoadStartedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_started_on: Option, #[doc = "Full load end time"] - #[serde(rename = "fullLoadEndedOn", default, skip_serializing_if = "Option::is_none")] - pub full_load_ended_on: Option, + #[serde(rename = "fullLoadEndedOn", with = "azure_core::date::rfc3339::option")] + pub full_load_ended_on: Option, #[doc = "Number of rows applied in full load"] #[serde(rename = "fullLoadTotalRows", default, skip_serializing_if = "Option::is_none")] pub full_load_total_rows: Option, @@ -4904,8 +4904,8 @@ pub struct MigrateSqlServerSqlDbSyncTaskOutputTableLevel { #[serde(rename = "dataErrorsCounter", default, skip_serializing_if = "Option::is_none")] pub data_errors_counter: Option, #[doc = "Last modified time on target"] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MigrateSqlServerSqlDbSyncTaskOutputTableLevel { pub fn new(migrate_sql_server_sql_db_sync_task_output: MigrateSqlServerSqlDbSyncTaskOutput) -> Self { @@ -5000,11 +5000,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputDatabaseLevel { #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")] pub database_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5100,11 +5100,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_db_task_output: MigrateSqlServerSqlDbTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Duration of task execution in seconds."] #[serde(rename = "durationInSeconds", default, skip_serializing_if = "Option::is_none")] pub duration_in_seconds: Option, @@ -5175,11 +5175,11 @@ pub struct MigrateSqlServerSqlDbTaskOutputTableLevel { #[serde(rename = "objectName", default, skip_serializing_if = "Option::is_none")] pub object_name: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current state of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5335,11 +5335,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputDatabaseLevel { #[serde(rename = "migrationState", default, skip_serializing_if = "Option::is_none")] pub migration_state: Option, #[doc = "Database migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Database migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Information of backup set"] #[serde(rename = "fullBackupSetInfo", default, skip_serializing_if = "Option::is_none")] pub full_backup_set_info: Option, @@ -5411,11 +5411,11 @@ pub struct MigrateSqlServerSqlMiSyncTaskOutputMigrationLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Source server name"] #[serde(rename = "sourceServerName", default, skip_serializing_if = "Option::is_none")] pub source_server_name: Option, @@ -5563,11 +5563,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputAgentJobLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5606,11 +5606,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputDatabaseLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5667,11 +5667,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputLoginLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Login migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Login migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Login migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5698,11 +5698,11 @@ pub struct MigrateSqlServerSqlMiTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_sql_server_sql_mi_task_output: MigrateSqlServerSqlMiTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5860,11 +5860,11 @@ pub struct MigrateSsisTaskOutputMigrationLevel { #[serde(flatten)] pub migrate_ssis_task_output: MigrateSsisTaskOutput, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5924,11 +5924,11 @@ pub struct MigrateSsisTaskOutputProjectLevel { #[serde(default, skip_serializing_if = "Option::is_none")] pub stage: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Migration progress message"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -5979,8 +5979,8 @@ pub struct MigrateSyncCompleteCommandInput { #[serde(rename = "databaseName")] pub database_name: String, #[doc = "Time stamp to complete"] - #[serde(rename = "commitTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub commit_time_stamp: Option, + #[serde(rename = "commitTimeStamp", with = "azure_core::date::rfc3339::option")] + pub commit_time_stamp: Option, } impl MigrateSyncCompleteCommandInput { pub fn new(database_name: String) -> Self { @@ -6251,11 +6251,11 @@ pub struct MigrationValidationDatabaseLevelResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Results for checksum based Data Integrity validation results"] #[serde(rename = "dataIntegrityValidationResult", default, skip_serializing_if = "Option::is_none")] pub data_integrity_validation_result: Option, @@ -6290,11 +6290,11 @@ pub struct MigrationValidationDatabaseSummaryResult { #[serde(rename = "targetDatabaseName", default, skip_serializing_if = "Option::is_none")] pub target_database_name: Option, #[doc = "Validation start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Validation end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of the validation"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6861,11 +6861,11 @@ pub struct MongoDbProgress { #[serde(rename = "eventsReplayed")] pub events_replayed: i64, #[doc = "The timestamp of the last oplog event received, or null if no oplog event has been received yet"] - #[serde(rename = "lastEventTime", default, skip_serializing_if = "Option::is_none")] - pub last_event_time: Option, + #[serde(rename = "lastEventTime", with = "azure_core::date::rfc3339::option")] + pub last_event_time: Option, #[doc = "The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet"] - #[serde(rename = "lastReplayTime", default, skip_serializing_if = "Option::is_none")] - pub last_replay_time: Option, + #[serde(rename = "lastReplayTime", with = "azure_core::date::rfc3339::option")] + pub last_replay_time: Option, #[doc = "The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -7411,11 +7411,11 @@ pub struct NonSqlMigrationTaskOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Migration start time"] - #[serde(rename = "startedOn", default, skip_serializing_if = "Option::is_none")] - pub started_on: Option, + #[serde(rename = "startedOn", with = "azure_core::date::rfc3339::option")] + pub started_on: Option, #[doc = "Migration end time"] - #[serde(rename = "endedOn", default, skip_serializing_if = "Option::is_none")] - pub ended_on: Option, + #[serde(rename = "endedOn", with = "azure_core::date::rfc3339::option")] + pub ended_on: Option, #[doc = "Current status of migration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -7740,8 +7740,8 @@ pub struct ProjectFileProperties { #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")] pub file_path: Option, #[doc = "Modification DateTime."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "File content type. This property can be modified to reflect the file content type."] #[serde(rename = "mediaType", default, skip_serializing_if = "Option::is_none")] pub media_type: Option, @@ -7788,8 +7788,8 @@ pub struct ProjectProperties { #[serde(rename = "targetPlatform")] pub target_platform: ProjectTargetPlatform, #[doc = "UTC Date and time when project was created"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Defines the connection properties of a server"] #[serde(rename = "sourceConnectionInfo", default, skip_serializing_if = "Option::is_none")] pub source_connection_info: Option, @@ -9236,11 +9236,11 @@ pub struct SqlBackupSetInfo { #[serde(rename = "listOfBackupFiles", default, skip_serializing_if = "Vec::is_empty")] pub list_of_backup_files: Vec, #[doc = "Backup start date."] - #[serde(rename = "backupStartDate", default, skip_serializing_if = "Option::is_none")] - pub backup_start_date: Option, + #[serde(rename = "backupStartDate", with = "azure_core::date::rfc3339::option")] + pub backup_start_date: Option, #[doc = "Backup end time."] - #[serde(rename = "backupFinishDate", default, skip_serializing_if = "Option::is_none")] - pub backup_finish_date: Option, + #[serde(rename = "backupFinishDate", with = "azure_core::date::rfc3339::option")] + pub backup_finish_date: Option, #[doc = "Whether this backup set has been restored or not."] #[serde(rename = "isBackupRestored", default, skip_serializing_if = "Option::is_none")] pub is_backup_restored: Option, @@ -9860,14 +9860,14 @@ pub struct SystemData { pub created_by: Option, #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dataprotection/Cargo.toml b/services/mgmt/dataprotection/Cargo.toml index 8154f196cde..85fa17ac820 100644 --- a/services/mgmt/dataprotection/Cargo.toml +++ b/services/mgmt/dataprotection/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dataprotection/src/package_2021_07/models.rs b/services/mgmt/dataprotection/src/package_2021_07/models.rs index bda522e4f81..b6c2b02e52a 100644 --- a/services/mgmt/dataprotection/src/package_2021_07/models.rs +++ b/services/mgmt/dataprotection/src/package_2021_07/models.rs @@ -90,8 +90,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub friendly_name: Option, #[serde(rename = "recoveryPointDataStoresDetails", default, skip_serializing_if = "Vec::is_empty")] pub recovery_point_data_stores_details: Vec, - #[serde(rename = "recoveryPointTime")] - pub recovery_point_time: String, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339")] + pub recovery_point_time: time::OffsetDateTime, #[serde(rename = "policyName", default, skip_serializing_if = "Option::is_none")] pub policy_name: Option, #[serde(rename = "policyVersion", default, skip_serializing_if = "Option::is_none")] @@ -106,7 +106,7 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub retention_tag_version: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: String) -> Self { + pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { Self { azure_backup_recovery_point, friendly_name: None, @@ -258,8 +258,8 @@ pub struct AzureBackupJob { #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, #[doc = "EndTime of the job(in UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A List, detailing the errors related to the job"] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -296,8 +296,8 @@ pub struct AzureBackupJob { #[serde(rename = "sourceSubscriptionID")] pub source_subscription_id: String, #[doc = "StartTime of the job(in UTC)"] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning"] pub status: String, #[doc = "Subscription Id of the corresponding backup vault"] @@ -330,7 +330,7 @@ impl AzureBackupJob { progress_enabled: bool, source_resource_group: String, source_subscription_id: String, - start_time: String, + start_time: time::OffsetDateTime, status: String, subscription_id: String, supported_actions: Vec, @@ -2054,8 +2054,8 @@ impl OperationJobExtendedInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2069,8 +2069,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, } @@ -2213,10 +2213,10 @@ impl RangeBasedItemLevelRestoreCriteria { #[doc = "RecoveryPoint datastore details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointDataStoreDetails { - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "metaData", default, skip_serializing_if = "Option::is_none")] @@ -2227,8 +2227,8 @@ pub struct RecoveryPointDataStoreDetails { pub type_: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub visible: Option, - #[serde(rename = "rehydrationExpiryTime", default, skip_serializing_if = "Option::is_none")] - pub rehydration_expiry_time: Option, + #[serde(rename = "rehydrationExpiryTime", with = "azure_core::date::rfc3339::option")] + pub rehydration_expiry_time: Option, #[serde(rename = "rehydrationStatus", default, skip_serializing_if = "Option::is_none")] pub rehydration_status: Option, } @@ -2527,8 +2527,8 @@ impl RestoreFilesTargetInfo { pub struct RestoreJobRecoveryPointDetails { #[serde(rename = "recoveryPointID", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl RestoreJobRecoveryPointDetails { pub fn new() -> Self { @@ -2661,7 +2661,7 @@ pub struct ScheduleBasedBackupCriteria { pub months_of_year: Vec, #[doc = "List of schedule times for backup"] #[serde(rename = "scheduleTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_times: Vec, + pub schedule_times: Vec, #[doc = "It should be First/Second/Third/Fourth/Last"] #[serde(rename = "weeksOfTheMonth", default, skip_serializing_if = "Vec::is_empty")] pub weeks_of_the_month: Vec, @@ -3152,8 +3152,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3161,8 +3161,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dataprotection/src/package_2022_01/models.rs b/services/mgmt/dataprotection/src/package_2022_01/models.rs index 69d68b4da59..88724cd5fd2 100644 --- a/services/mgmt/dataprotection/src/package_2022_01/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_01/models.rs @@ -90,8 +90,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub friendly_name: Option, #[serde(rename = "recoveryPointDataStoresDetails", default, skip_serializing_if = "Vec::is_empty")] pub recovery_point_data_stores_details: Vec, - #[serde(rename = "recoveryPointTime")] - pub recovery_point_time: String, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339")] + pub recovery_point_time: time::OffsetDateTime, #[serde(rename = "policyName", default, skip_serializing_if = "Option::is_none")] pub policy_name: Option, #[serde(rename = "policyVersion", default, skip_serializing_if = "Option::is_none")] @@ -106,7 +106,7 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub retention_tag_version: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: String) -> Self { + pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { Self { azure_backup_recovery_point, friendly_name: None, @@ -258,8 +258,8 @@ pub struct AzureBackupJob { #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, #[doc = "EndTime of the job(in UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A List, detailing the errors related to the job"] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -296,8 +296,8 @@ pub struct AzureBackupJob { #[serde(rename = "sourceSubscriptionID")] pub source_subscription_id: String, #[doc = "StartTime of the job(in UTC)"] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning"] pub status: String, #[doc = "Subscription Id of the corresponding backup vault"] @@ -330,7 +330,7 @@ impl AzureBackupJob { progress_enabled: bool, source_resource_group: String, source_subscription_id: String, - start_time: String, + start_time: time::OffsetDateTime, status: String, subscription_id: String, supported_actions: Vec, @@ -2099,8 +2099,8 @@ impl OperationJobExtendedInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2114,8 +2114,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, } @@ -2258,10 +2258,10 @@ impl RangeBasedItemLevelRestoreCriteria { #[doc = "RecoveryPoint datastore details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointDataStoreDetails { - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "metaData", default, skip_serializing_if = "Option::is_none")] @@ -2272,8 +2272,8 @@ pub struct RecoveryPointDataStoreDetails { pub type_: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub visible: Option, - #[serde(rename = "rehydrationExpiryTime", default, skip_serializing_if = "Option::is_none")] - pub rehydration_expiry_time: Option, + #[serde(rename = "rehydrationExpiryTime", with = "azure_core::date::rfc3339::option")] + pub rehydration_expiry_time: Option, #[serde(rename = "rehydrationStatus", default, skip_serializing_if = "Option::is_none")] pub rehydration_status: Option, } @@ -2572,8 +2572,8 @@ impl RestoreFilesTargetInfo { pub struct RestoreJobRecoveryPointDetails { #[serde(rename = "recoveryPointID", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl RestoreJobRecoveryPointDetails { pub fn new() -> Self { @@ -2706,7 +2706,7 @@ pub struct ScheduleBasedBackupCriteria { pub months_of_year: Vec, #[doc = "List of schedule times for backup"] #[serde(rename = "scheduleTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_times: Vec, + pub schedule_times: Vec, #[doc = "It should be First/Second/Third/Fourth/Last"] #[serde(rename = "weeksOfTheMonth", default, skip_serializing_if = "Vec::is_empty")] pub weeks_of_the_month: Vec, @@ -3253,8 +3253,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3262,8 +3262,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dataprotection/src/package_2022_03/models.rs b/services/mgmt/dataprotection/src/package_2022_03/models.rs index 7fa5687a1a0..9cb04dff494 100644 --- a/services/mgmt/dataprotection/src/package_2022_03/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_03/models.rs @@ -90,8 +90,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub friendly_name: Option, #[serde(rename = "recoveryPointDataStoresDetails", default, skip_serializing_if = "Vec::is_empty")] pub recovery_point_data_stores_details: Vec, - #[serde(rename = "recoveryPointTime")] - pub recovery_point_time: String, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339")] + pub recovery_point_time: time::OffsetDateTime, #[serde(rename = "policyName", default, skip_serializing_if = "Option::is_none")] pub policy_name: Option, #[serde(rename = "policyVersion", default, skip_serializing_if = "Option::is_none")] @@ -106,7 +106,7 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub retention_tag_version: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: String) -> Self { + pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { Self { azure_backup_recovery_point, friendly_name: None, @@ -258,8 +258,8 @@ pub struct AzureBackupJob { #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, #[doc = "EndTime of the job(in UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A List, detailing the errors related to the job"] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -296,8 +296,8 @@ pub struct AzureBackupJob { #[serde(rename = "sourceSubscriptionID")] pub source_subscription_id: String, #[doc = "StartTime of the job(in UTC)"] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning"] pub status: String, #[doc = "Subscription Id of the corresponding backup vault"] @@ -330,7 +330,7 @@ impl AzureBackupJob { progress_enabled: bool, source_resource_group: String, source_subscription_id: String, - start_time: String, + start_time: time::OffsetDateTime, status: String, subscription_id: String, supported_actions: Vec, @@ -2141,8 +2141,8 @@ impl OperationJobExtendedInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2156,8 +2156,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, } @@ -2300,10 +2300,10 @@ impl RangeBasedItemLevelRestoreCriteria { #[doc = "RecoveryPoint datastore details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointDataStoreDetails { - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "metaData", default, skip_serializing_if = "Option::is_none")] @@ -2314,8 +2314,8 @@ pub struct RecoveryPointDataStoreDetails { pub type_: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub visible: Option, - #[serde(rename = "rehydrationExpiryTime", default, skip_serializing_if = "Option::is_none")] - pub rehydration_expiry_time: Option, + #[serde(rename = "rehydrationExpiryTime", with = "azure_core::date::rfc3339::option")] + pub rehydration_expiry_time: Option, #[serde(rename = "rehydrationStatus", default, skip_serializing_if = "Option::is_none")] pub rehydration_status: Option, } @@ -2614,8 +2614,8 @@ impl RestoreFilesTargetInfo { pub struct RestoreJobRecoveryPointDetails { #[serde(rename = "recoveryPointID", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl RestoreJobRecoveryPointDetails { pub fn new() -> Self { @@ -2748,7 +2748,7 @@ pub struct ScheduleBasedBackupCriteria { pub months_of_year: Vec, #[doc = "List of schedule times for backup"] #[serde(rename = "scheduleTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_times: Vec, + pub schedule_times: Vec, #[doc = "It should be First/Second/Third/Fourth/Last"] #[serde(rename = "weeksOfTheMonth", default, skip_serializing_if = "Vec::is_empty")] pub weeks_of_the_month: Vec, @@ -3295,8 +3295,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3304,8 +3304,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dataprotection/src/package_2022_04/models.rs b/services/mgmt/dataprotection/src/package_2022_04/models.rs index a6c6d0f4743..6c6581bd435 100644 --- a/services/mgmt/dataprotection/src/package_2022_04/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_04/models.rs @@ -90,8 +90,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub friendly_name: Option, #[serde(rename = "recoveryPointDataStoresDetails", default, skip_serializing_if = "Vec::is_empty")] pub recovery_point_data_stores_details: Vec, - #[serde(rename = "recoveryPointTime")] - pub recovery_point_time: String, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339")] + pub recovery_point_time: time::OffsetDateTime, #[serde(rename = "policyName", default, skip_serializing_if = "Option::is_none")] pub policy_name: Option, #[serde(rename = "policyVersion", default, skip_serializing_if = "Option::is_none")] @@ -106,7 +106,7 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub retention_tag_version: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: String) -> Self { + pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { Self { azure_backup_recovery_point, friendly_name: None, @@ -258,8 +258,8 @@ pub struct AzureBackupJob { #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, #[doc = "EndTime of the job(in UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A List, detailing the errors related to the job"] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -296,8 +296,8 @@ pub struct AzureBackupJob { #[serde(rename = "sourceSubscriptionID")] pub source_subscription_id: String, #[doc = "StartTime of the job(in UTC)"] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning"] pub status: String, #[doc = "Subscription Id of the corresponding backup vault"] @@ -330,7 +330,7 @@ impl AzureBackupJob { progress_enabled: bool, source_resource_group: String, source_subscription_id: String, - start_time: String, + start_time: time::OffsetDateTime, status: String, subscription_id: String, supported_actions: Vec, @@ -2207,8 +2207,8 @@ impl OperationJobExtendedInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2222,8 +2222,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, } @@ -2381,10 +2381,10 @@ impl RangeBasedItemLevelRestoreCriteria { #[doc = "RecoveryPoint datastore details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointDataStoreDetails { - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "metaData", default, skip_serializing_if = "Option::is_none")] @@ -2395,8 +2395,8 @@ pub struct RecoveryPointDataStoreDetails { pub type_: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub visible: Option, - #[serde(rename = "rehydrationExpiryTime", default, skip_serializing_if = "Option::is_none")] - pub rehydration_expiry_time: Option, + #[serde(rename = "rehydrationExpiryTime", with = "azure_core::date::rfc3339::option")] + pub rehydration_expiry_time: Option, #[serde(rename = "rehydrationStatus", default, skip_serializing_if = "Option::is_none")] pub rehydration_status: Option, } @@ -2695,8 +2695,8 @@ impl RestoreFilesTargetInfo { pub struct RestoreJobRecoveryPointDetails { #[serde(rename = "recoveryPointID", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl RestoreJobRecoveryPointDetails { pub fn new() -> Self { @@ -2829,7 +2829,7 @@ pub struct ScheduleBasedBackupCriteria { pub months_of_year: Vec, #[doc = "List of schedule times for backup"] #[serde(rename = "scheduleTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_times: Vec, + pub schedule_times: Vec, #[doc = "It should be First/Second/Third/Fourth/Last"] #[serde(rename = "weeksOfTheMonth", default, skip_serializing_if = "Vec::is_empty")] pub weeks_of_the_month: Vec, @@ -3376,8 +3376,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3385,8 +3385,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dataprotection/src/package_2022_05/models.rs b/services/mgmt/dataprotection/src/package_2022_05/models.rs index 4b2ba786841..19831d5b4d4 100644 --- a/services/mgmt/dataprotection/src/package_2022_05/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_05/models.rs @@ -90,8 +90,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub friendly_name: Option, #[serde(rename = "recoveryPointDataStoresDetails", default, skip_serializing_if = "Vec::is_empty")] pub recovery_point_data_stores_details: Vec, - #[serde(rename = "recoveryPointTime")] - pub recovery_point_time: String, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339")] + pub recovery_point_time: time::OffsetDateTime, #[serde(rename = "policyName", default, skip_serializing_if = "Option::is_none")] pub policy_name: Option, #[serde(rename = "policyVersion", default, skip_serializing_if = "Option::is_none")] @@ -106,7 +106,7 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub retention_tag_version: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: String) -> Self { + pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { Self { azure_backup_recovery_point, friendly_name: None, @@ -258,8 +258,8 @@ pub struct AzureBackupJob { #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, #[doc = "EndTime of the job(in UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A List, detailing the errors related to the job"] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -296,8 +296,8 @@ pub struct AzureBackupJob { #[serde(rename = "sourceSubscriptionID")] pub source_subscription_id: String, #[doc = "StartTime of the job(in UTC)"] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning"] pub status: String, #[doc = "Subscription Id of the corresponding backup vault"] @@ -330,7 +330,7 @@ impl AzureBackupJob { progress_enabled: bool, source_resource_group: String, source_subscription_id: String, - start_time: String, + start_time: time::OffsetDateTime, status: String, subscription_id: String, supported_actions: Vec, @@ -2230,8 +2230,8 @@ impl OperationJobExtendedInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2245,8 +2245,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, } @@ -2404,10 +2404,10 @@ impl RangeBasedItemLevelRestoreCriteria { #[doc = "RecoveryPoint datastore details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointDataStoreDetails { - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "metaData", default, skip_serializing_if = "Option::is_none")] @@ -2418,8 +2418,8 @@ pub struct RecoveryPointDataStoreDetails { pub type_: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub visible: Option, - #[serde(rename = "rehydrationExpiryTime", default, skip_serializing_if = "Option::is_none")] - pub rehydration_expiry_time: Option, + #[serde(rename = "rehydrationExpiryTime", with = "azure_core::date::rfc3339::option")] + pub rehydration_expiry_time: Option, #[serde(rename = "rehydrationStatus", default, skip_serializing_if = "Option::is_none")] pub rehydration_status: Option, } @@ -2718,8 +2718,8 @@ impl RestoreFilesTargetInfo { pub struct RestoreJobRecoveryPointDetails { #[serde(rename = "recoveryPointID", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl RestoreJobRecoveryPointDetails { pub fn new() -> Self { @@ -2852,7 +2852,7 @@ pub struct ScheduleBasedBackupCriteria { pub months_of_year: Vec, #[doc = "List of schedule times for backup"] #[serde(rename = "scheduleTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_times: Vec, + pub schedule_times: Vec, #[doc = "It should be First/Second/Third/Fourth/Last"] #[serde(rename = "weeksOfTheMonth", default, skip_serializing_if = "Vec::is_empty")] pub weeks_of_the_month: Vec, @@ -3401,8 +3401,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3410,8 +3410,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/datashare/Cargo.toml b/services/mgmt/datashare/Cargo.toml index e6bf64e871c..b1f82b27a42 100644 --- a/services/mgmt/datashare/Cargo.toml +++ b/services/mgmt/datashare/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs b/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs index ced9ffc306f..7b97f22f81e 100644 --- a/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs +++ b/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs @@ -767,8 +767,8 @@ impl AccountList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountProperties { #[doc = "Time at which the account was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Provisioning state of the Account"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1533,11 +1533,11 @@ pub struct ConsumerInvitationProperties { #[serde(rename = "providerTenantName", default, skip_serializing_if = "Option::is_none")] pub provider_tenant_name: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "Gets the source share Name."] #[serde(rename = "shareName", default, skip_serializing_if = "Option::is_none")] pub share_name: Option, @@ -2100,11 +2100,11 @@ pub struct InvitationProperties { #[serde(rename = "invitationStatus", default, skip_serializing_if = "Option::is_none")] pub invitation_status: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "The target Azure AD Id. Can't be combined with email."] #[serde(rename = "targetActiveDirectoryId", default, skip_serializing_if = "Option::is_none")] pub target_active_directory_id: Option, @@ -2754,14 +2754,14 @@ impl OperationModelProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResponse { #[doc = "start time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The data share error body model."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation state of the long running operation."] pub status: operation_response::Status, } @@ -2870,8 +2870,8 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "consumerTenantName", default, skip_serializing_if = "Option::is_none")] pub consumer_tenant_name: Option, #[doc = "created at"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Email of the provider who created the share"] #[serde(rename = "providerEmail", default, skip_serializing_if = "Option::is_none")] pub provider_email: Option, @@ -2879,8 +2879,8 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "providerName", default, skip_serializing_if = "Option::is_none")] pub provider_name: Option, #[doc = "Shared at"] - #[serde(rename = "sharedAt", default, skip_serializing_if = "Option::is_none")] - pub shared_at: Option, + #[serde(rename = "sharedAt", with = "azure_core::date::rfc3339::option")] + pub shared_at: Option, #[doc = "share Subscription Object Id"] #[serde(rename = "shareSubscriptionObjectId", default, skip_serializing_if = "Option::is_none")] pub share_subscription_object_id: Option, @@ -2962,8 +2962,8 @@ pub struct ScheduledSourceShareSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval", default, skip_serializing_if = "Option::is_none")] pub recurrence_interval: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime", default, skip_serializing_if = "Option::is_none")] - pub synchronization_time: Option, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339::option")] + pub synchronization_time: Option, } impl ScheduledSourceShareSynchronizationSettingProperties { pub fn new() -> Self { @@ -3047,8 +3047,8 @@ impl ScheduledSynchronizationSetting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSettingProperties { #[doc = "Time at which the synchronization setting was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets or sets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3056,8 +3056,8 @@ pub struct ScheduledSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval")] pub recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Name of the user who created the synchronization setting."] #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, @@ -3065,7 +3065,7 @@ pub struct ScheduledSynchronizationSettingProperties { impl ScheduledSynchronizationSettingProperties { pub fn new( recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, - synchronization_time: String, + synchronization_time: time::OffsetDateTime, ) -> Self { Self { created_at: None, @@ -3176,8 +3176,8 @@ impl ScheduledTrigger { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTriggerProperties { #[doc = "Time at which the trigger was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3188,8 +3188,8 @@ pub struct ScheduledTriggerProperties { #[serde(rename = "synchronizationMode", default, skip_serializing_if = "Option::is_none")] pub synchronization_mode: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Gets the trigger state"] #[serde(rename = "triggerStatus", default, skip_serializing_if = "Option::is_none")] pub trigger_status: Option, @@ -3198,7 +3198,7 @@ pub struct ScheduledTriggerProperties { pub user_name: Option, } impl ScheduledTriggerProperties { - pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: String) -> Self { + pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: time::OffsetDateTime) -> Self { Self { created_at: None, provisioning_state: None, @@ -3409,8 +3409,8 @@ impl ShareList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ShareProperties { #[doc = "Time at which the share was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Share description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3558,8 +3558,8 @@ impl ShareSubscriptionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShareSubscriptionProperties { #[doc = "Time at which the share subscription was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The invitation id."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -3747,14 +3747,14 @@ pub struct ShareSubscriptionSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of Synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -3854,14 +3854,14 @@ pub struct ShareSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4399,8 +4399,8 @@ pub struct SynchronizationDetails { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of data set level copy"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The number of files read from the source data set"] #[serde(rename = "filesRead", default, skip_serializing_if = "Option::is_none")] pub files_read: Option, @@ -4426,8 +4426,8 @@ pub struct SynchronizationDetails { #[serde(rename = "sizeWritten", default, skip_serializing_if = "Option::is_none")] pub size_written: Option, #[doc = "Start time of data set level copy"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/datashare/src/package_2019_11_01/models.rs b/services/mgmt/datashare/src/package_2019_11_01/models.rs index e5eed1ef634..4083fec2322 100644 --- a/services/mgmt/datashare/src/package_2019_11_01/models.rs +++ b/services/mgmt/datashare/src/package_2019_11_01/models.rs @@ -767,8 +767,8 @@ impl AccountList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountProperties { #[doc = "Time at which the account was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Provisioning state of the Account"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1533,11 +1533,11 @@ pub struct ConsumerInvitationProperties { #[serde(rename = "providerTenantName", default, skip_serializing_if = "Option::is_none")] pub provider_tenant_name: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "Gets the source share Name."] #[serde(rename = "shareName", default, skip_serializing_if = "Option::is_none")] pub share_name: Option, @@ -2007,8 +2007,8 @@ pub struct EmailRegistration { #[serde(rename = "activationCode", default, skip_serializing_if = "Option::is_none")] pub activation_code: Option, #[doc = "Date of the activation expiration"] - #[serde(rename = "activationExpirationDate", default, skip_serializing_if = "Option::is_none")] - pub activation_expiration_date: Option, + #[serde(rename = "activationExpirationDate", with = "azure_core::date::rfc3339::option")] + pub activation_expiration_date: Option, #[doc = "The email to register"] #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, @@ -2168,11 +2168,11 @@ pub struct InvitationProperties { #[serde(rename = "invitationStatus", default, skip_serializing_if = "Option::is_none")] pub invitation_status: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "The target Azure AD Id. Can't be combined with email."] #[serde(rename = "targetActiveDirectoryId", default, skip_serializing_if = "Option::is_none")] pub target_active_directory_id: Option, @@ -2822,14 +2822,14 @@ impl OperationModelProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResponse { #[doc = "start time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The data share error body model."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation state of the long running operation."] pub status: operation_response::Status, } @@ -2938,8 +2938,8 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "consumerTenantName", default, skip_serializing_if = "Option::is_none")] pub consumer_tenant_name: Option, #[doc = "created at"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Email of the provider who created the share"] #[serde(rename = "providerEmail", default, skip_serializing_if = "Option::is_none")] pub provider_email: Option, @@ -2947,8 +2947,8 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "providerName", default, skip_serializing_if = "Option::is_none")] pub provider_name: Option, #[doc = "Shared at"] - #[serde(rename = "sharedAt", default, skip_serializing_if = "Option::is_none")] - pub shared_at: Option, + #[serde(rename = "sharedAt", with = "azure_core::date::rfc3339::option")] + pub shared_at: Option, #[doc = "share Subscription Object Id"] #[serde(rename = "shareSubscriptionObjectId", default, skip_serializing_if = "Option::is_none")] pub share_subscription_object_id: Option, @@ -3030,8 +3030,8 @@ pub struct ScheduledSourceShareSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval", default, skip_serializing_if = "Option::is_none")] pub recurrence_interval: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime", default, skip_serializing_if = "Option::is_none")] - pub synchronization_time: Option, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339::option")] + pub synchronization_time: Option, } impl ScheduledSourceShareSynchronizationSettingProperties { pub fn new() -> Self { @@ -3115,8 +3115,8 @@ impl ScheduledSynchronizationSetting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSettingProperties { #[doc = "Time at which the synchronization setting was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets or sets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3124,8 +3124,8 @@ pub struct ScheduledSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval")] pub recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Name of the user who created the synchronization setting."] #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, @@ -3133,7 +3133,7 @@ pub struct ScheduledSynchronizationSettingProperties { impl ScheduledSynchronizationSettingProperties { pub fn new( recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, - synchronization_time: String, + synchronization_time: time::OffsetDateTime, ) -> Self { Self { created_at: None, @@ -3244,8 +3244,8 @@ impl ScheduledTrigger { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTriggerProperties { #[doc = "Time at which the trigger was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3256,8 +3256,8 @@ pub struct ScheduledTriggerProperties { #[serde(rename = "synchronizationMode", default, skip_serializing_if = "Option::is_none")] pub synchronization_mode: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Gets the trigger state"] #[serde(rename = "triggerStatus", default, skip_serializing_if = "Option::is_none")] pub trigger_status: Option, @@ -3266,7 +3266,7 @@ pub struct ScheduledTriggerProperties { pub user_name: Option, } impl ScheduledTriggerProperties { - pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: String) -> Self { + pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: time::OffsetDateTime) -> Self { Self { created_at: None, provisioning_state: None, @@ -3477,8 +3477,8 @@ impl ShareList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ShareProperties { #[doc = "Time at which the share was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Share description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3626,8 +3626,8 @@ impl ShareSubscriptionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShareSubscriptionProperties { #[doc = "Time at which the share subscription was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The invitation id."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -3819,14 +3819,14 @@ pub struct ShareSubscriptionSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of Synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -3926,14 +3926,14 @@ pub struct ShareSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4471,8 +4471,8 @@ pub struct SynchronizationDetails { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of data set level copy"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The number of files read from the source data set"] #[serde(rename = "filesRead", default, skip_serializing_if = "Option::is_none")] pub files_read: Option, @@ -4498,8 +4498,8 @@ pub struct SynchronizationDetails { #[serde(rename = "sizeWritten", default, skip_serializing_if = "Option::is_none")] pub size_written: Option, #[doc = "Start time of data set level copy"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/datashare/src/package_2020_09_01/models.rs b/services/mgmt/datashare/src/package_2020_09_01/models.rs index 4ae8fe8b3d7..22ed6664e39 100644 --- a/services/mgmt/datashare/src/package_2020_09_01/models.rs +++ b/services/mgmt/datashare/src/package_2020_09_01/models.rs @@ -767,8 +767,8 @@ impl AccountList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountProperties { #[doc = "Time at which the account was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Provisioning state of the Account"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1515,8 +1515,8 @@ pub struct ConsumerInvitationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The expiration date for the share subscription created by accepting the invitation."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Unique id of the invitation."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -1536,11 +1536,11 @@ pub struct ConsumerInvitationProperties { #[serde(rename = "providerTenantName", default, skip_serializing_if = "Option::is_none")] pub provider_tenant_name: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "Gets the source share Name."] #[serde(rename = "shareName", default, skip_serializing_if = "Option::is_none")] pub share_name: Option, @@ -2019,8 +2019,8 @@ pub struct EmailRegistration { #[serde(rename = "activationCode", default, skip_serializing_if = "Option::is_none")] pub activation_code: Option, #[doc = "Date of the activation expiration"] - #[serde(rename = "activationExpirationDate", default, skip_serializing_if = "Option::is_none")] - pub activation_expiration_date: Option, + #[serde(rename = "activationExpirationDate", with = "azure_core::date::rfc3339::option")] + pub activation_expiration_date: Option, #[doc = "The email to register"] #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, @@ -2174,8 +2174,8 @@ impl InvitationList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct InvitationProperties { #[doc = "The expiration date for the invitation and share subscription."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "unique invitation id"] #[serde(rename = "invitationId", default, skip_serializing_if = "Option::is_none")] pub invitation_id: Option, @@ -2183,11 +2183,11 @@ pub struct InvitationProperties { #[serde(rename = "invitationStatus", default, skip_serializing_if = "Option::is_none")] pub invitation_status: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "The target Azure AD Id. Can't be combined with email."] #[serde(rename = "targetActiveDirectoryId", default, skip_serializing_if = "Option::is_none")] pub target_active_directory_id: Option, @@ -2837,14 +2837,14 @@ impl OperationModelProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResponse { #[doc = "start time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The data share error body model."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation state of the long running operation."] pub status: operation_response::Status, } @@ -2953,11 +2953,11 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "consumerTenantName", default, skip_serializing_if = "Option::is_none")] pub consumer_tenant_name: Option, #[doc = "created at"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Expiration date of the share subscription in UTC format"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Email of the provider who created the share"] #[serde(rename = "providerEmail", default, skip_serializing_if = "Option::is_none")] pub provider_email: Option, @@ -2965,8 +2965,8 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "providerName", default, skip_serializing_if = "Option::is_none")] pub provider_name: Option, #[doc = "Shared at"] - #[serde(rename = "sharedAt", default, skip_serializing_if = "Option::is_none")] - pub shared_at: Option, + #[serde(rename = "sharedAt", with = "azure_core::date::rfc3339::option")] + pub shared_at: Option, #[doc = "share Subscription Object Id"] #[serde(rename = "shareSubscriptionObjectId", default, skip_serializing_if = "Option::is_none")] pub share_subscription_object_id: Option, @@ -3051,8 +3051,8 @@ pub struct ScheduledSourceShareSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval", default, skip_serializing_if = "Option::is_none")] pub recurrence_interval: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime", default, skip_serializing_if = "Option::is_none")] - pub synchronization_time: Option, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339::option")] + pub synchronization_time: Option, } impl ScheduledSourceShareSynchronizationSettingProperties { pub fn new() -> Self { @@ -3136,8 +3136,8 @@ impl ScheduledSynchronizationSetting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSettingProperties { #[doc = "Time at which the synchronization setting was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets or sets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3145,8 +3145,8 @@ pub struct ScheduledSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval")] pub recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Name of the user who created the synchronization setting."] #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, @@ -3154,7 +3154,7 @@ pub struct ScheduledSynchronizationSettingProperties { impl ScheduledSynchronizationSettingProperties { pub fn new( recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, - synchronization_time: String, + synchronization_time: time::OffsetDateTime, ) -> Self { Self { created_at: None, @@ -3265,8 +3265,8 @@ impl ScheduledTrigger { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTriggerProperties { #[doc = "Time at which the trigger was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3277,8 +3277,8 @@ pub struct ScheduledTriggerProperties { #[serde(rename = "synchronizationMode", default, skip_serializing_if = "Option::is_none")] pub synchronization_mode: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Gets the trigger state"] #[serde(rename = "triggerStatus", default, skip_serializing_if = "Option::is_none")] pub trigger_status: Option, @@ -3287,7 +3287,7 @@ pub struct ScheduledTriggerProperties { pub user_name: Option, } impl ScheduledTriggerProperties { - pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: String) -> Self { + pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: time::OffsetDateTime) -> Self { Self { created_at: None, provisioning_state: None, @@ -3498,8 +3498,8 @@ impl ShareList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ShareProperties { #[doc = "Time at which the share was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Share description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3647,11 +3647,11 @@ impl ShareSubscriptionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShareSubscriptionProperties { #[doc = "Time at which the share subscription was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The expiration date of the share subscription."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The invitation id."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -3844,14 +3844,14 @@ pub struct ShareSubscriptionSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of Synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -3951,14 +3951,14 @@ pub struct ShareSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4652,8 +4652,8 @@ pub struct SynchronizationDetails { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of data set level copy"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The number of files read from the source data set"] #[serde(rename = "filesRead", default, skip_serializing_if = "Option::is_none")] pub files_read: Option, @@ -4679,8 +4679,8 @@ pub struct SynchronizationDetails { #[serde(rename = "sizeWritten", default, skip_serializing_if = "Option::is_none")] pub size_written: Option, #[doc = "Start time of data set level copy"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4909,8 +4909,8 @@ pub mod synchronize { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SystemData { #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that created the resource."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -4918,8 +4918,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs b/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs index c4b575d73fe..8044fe65bec 100644 --- a/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs @@ -967,8 +967,8 @@ impl AccountList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountProperties { #[doc = "Time at which the account was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Provisioning state of the Account"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1915,8 +1915,8 @@ pub struct ConsumerInvitationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The expiration date for the share subscription created by accepting the invitation."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Unique id of the invitation."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -1936,11 +1936,11 @@ pub struct ConsumerInvitationProperties { #[serde(rename = "providerTenantName", default, skip_serializing_if = "Option::is_none")] pub provider_tenant_name: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "Gets the source share Name."] #[serde(rename = "shareName", default, skip_serializing_if = "Option::is_none")] pub share_name: Option, @@ -2518,8 +2518,8 @@ impl InvitationList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct InvitationProperties { #[doc = "The expiration date for the invitation and share subscription."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "unique invitation id"] #[serde(rename = "invitationId", default, skip_serializing_if = "Option::is_none")] pub invitation_id: Option, @@ -2527,11 +2527,11 @@ pub struct InvitationProperties { #[serde(rename = "invitationStatus", default, skip_serializing_if = "Option::is_none")] pub invitation_status: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "The target Azure AD Id. Can't be combined with email."] #[serde(rename = "targetActiveDirectoryId", default, skip_serializing_if = "Option::is_none")] pub target_active_directory_id: Option, @@ -3181,14 +3181,14 @@ impl OperationModelProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResponse { #[doc = "start time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The data share error body model."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation state of the long running operation."] pub status: operation_response::Status, } @@ -3297,11 +3297,11 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "consumerTenantName", default, skip_serializing_if = "Option::is_none")] pub consumer_tenant_name: Option, #[doc = "created at"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Expiration date of the share subscription in UTC format"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Email of the provider who created the share"] #[serde(rename = "providerEmail", default, skip_serializing_if = "Option::is_none")] pub provider_email: Option, @@ -3309,8 +3309,8 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "providerName", default, skip_serializing_if = "Option::is_none")] pub provider_name: Option, #[doc = "Shared at"] - #[serde(rename = "sharedAt", default, skip_serializing_if = "Option::is_none")] - pub shared_at: Option, + #[serde(rename = "sharedAt", with = "azure_core::date::rfc3339::option")] + pub shared_at: Option, #[doc = "share Subscription Object Id"] #[serde(rename = "shareSubscriptionObjectId", default, skip_serializing_if = "Option::is_none")] pub share_subscription_object_id: Option, @@ -3395,8 +3395,8 @@ pub struct ScheduledSourceShareSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval", default, skip_serializing_if = "Option::is_none")] pub recurrence_interval: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime", default, skip_serializing_if = "Option::is_none")] - pub synchronization_time: Option, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339::option")] + pub synchronization_time: Option, } impl ScheduledSourceShareSynchronizationSettingProperties { pub fn new() -> Self { @@ -3480,8 +3480,8 @@ impl ScheduledSynchronizationSetting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSettingProperties { #[doc = "Time at which the synchronization setting was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets or sets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3489,8 +3489,8 @@ pub struct ScheduledSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval")] pub recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Name of the user who created the synchronization setting."] #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, @@ -3498,7 +3498,7 @@ pub struct ScheduledSynchronizationSettingProperties { impl ScheduledSynchronizationSettingProperties { pub fn new( recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, - synchronization_time: String, + synchronization_time: time::OffsetDateTime, ) -> Self { Self { created_at: None, @@ -3609,8 +3609,8 @@ impl ScheduledTrigger { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTriggerProperties { #[doc = "Time at which the trigger was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3621,8 +3621,8 @@ pub struct ScheduledTriggerProperties { #[serde(rename = "synchronizationMode", default, skip_serializing_if = "Option::is_none")] pub synchronization_mode: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Gets the trigger state"] #[serde(rename = "triggerStatus", default, skip_serializing_if = "Option::is_none")] pub trigger_status: Option, @@ -3631,7 +3631,7 @@ pub struct ScheduledTriggerProperties { pub user_name: Option, } impl ScheduledTriggerProperties { - pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: String) -> Self { + pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: time::OffsetDateTime) -> Self { Self { created_at: None, provisioning_state: None, @@ -3842,8 +3842,8 @@ impl ShareList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ShareProperties { #[doc = "Time at which the share was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Share description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3991,11 +3991,11 @@ impl ShareSubscriptionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShareSubscriptionProperties { #[doc = "Time at which the share subscription was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The expiration date of the share subscription."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The invitation id."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -4188,14 +4188,14 @@ pub struct ShareSubscriptionSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of Synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4295,14 +4295,14 @@ pub struct ShareSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4996,8 +4996,8 @@ pub struct SynchronizationDetails { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of data set level copy"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The number of files read from the source data set"] #[serde(rename = "filesRead", default, skip_serializing_if = "Option::is_none")] pub files_read: Option, @@ -5023,8 +5023,8 @@ pub struct SynchronizationDetails { #[serde(rename = "sizeWritten", default, skip_serializing_if = "Option::is_none")] pub size_written: Option, #[doc = "Start time of data set level copy"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5257,8 +5257,8 @@ pub mod synchronize { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SystemData { #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that created the resource."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -5266,8 +5266,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/datashare/src/package_2021_08_01/models.rs b/services/mgmt/datashare/src/package_2021_08_01/models.rs index fc5ea601c91..1c7bf75dd52 100644 --- a/services/mgmt/datashare/src/package_2021_08_01/models.rs +++ b/services/mgmt/datashare/src/package_2021_08_01/models.rs @@ -767,8 +767,8 @@ impl AccountList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountProperties { #[doc = "Time at which the account was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Provisioning state of the Account"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1515,8 +1515,8 @@ pub struct ConsumerInvitationProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The expiration date for the share subscription created by accepting the invitation."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Unique id of the invitation."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -1536,11 +1536,11 @@ pub struct ConsumerInvitationProperties { #[serde(rename = "providerTenantName", default, skip_serializing_if = "Option::is_none")] pub provider_tenant_name: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "Gets the source share Name."] #[serde(rename = "shareName", default, skip_serializing_if = "Option::is_none")] pub share_name: Option, @@ -2025,8 +2025,8 @@ pub struct EmailRegistration { #[serde(rename = "activationCode", default, skip_serializing_if = "Option::is_none")] pub activation_code: Option, #[doc = "Date of the activation expiration"] - #[serde(rename = "activationExpirationDate", default, skip_serializing_if = "Option::is_none")] - pub activation_expiration_date: Option, + #[serde(rename = "activationExpirationDate", with = "azure_core::date::rfc3339::option")] + pub activation_expiration_date: Option, #[doc = "The email to register"] #[serde(default, skip_serializing_if = "Option::is_none")] pub email: Option, @@ -2180,8 +2180,8 @@ impl InvitationList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct InvitationProperties { #[doc = "The expiration date for the invitation and share subscription."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "unique invitation id"] #[serde(rename = "invitationId", default, skip_serializing_if = "Option::is_none")] pub invitation_id: Option, @@ -2189,11 +2189,11 @@ pub struct InvitationProperties { #[serde(rename = "invitationStatus", default, skip_serializing_if = "Option::is_none")] pub invitation_status: Option, #[doc = "The time the recipient responded to the invitation."] - #[serde(rename = "respondedAt", default, skip_serializing_if = "Option::is_none")] - pub responded_at: Option, + #[serde(rename = "respondedAt", with = "azure_core::date::rfc3339::option")] + pub responded_at: Option, #[doc = "Gets the time at which the invitation was sent."] - #[serde(rename = "sentAt", default, skip_serializing_if = "Option::is_none")] - pub sent_at: Option, + #[serde(rename = "sentAt", with = "azure_core::date::rfc3339::option")] + pub sent_at: Option, #[doc = "The target Azure AD Id. Can't be combined with email."] #[serde(rename = "targetActiveDirectoryId", default, skip_serializing_if = "Option::is_none")] pub target_active_directory_id: Option, @@ -3061,14 +3061,14 @@ impl OperationModelProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResponse { #[doc = "start time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The data share error body model."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation state of the long running operation."] pub status: operation_response::Status, } @@ -3177,11 +3177,11 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "consumerTenantName", default, skip_serializing_if = "Option::is_none")] pub consumer_tenant_name: Option, #[doc = "created at"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Expiration date of the share subscription in UTC format"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Email of the provider who created the share"] #[serde(rename = "providerEmail", default, skip_serializing_if = "Option::is_none")] pub provider_email: Option, @@ -3189,8 +3189,8 @@ pub struct ProviderShareSubscriptionProperties { #[serde(rename = "providerName", default, skip_serializing_if = "Option::is_none")] pub provider_name: Option, #[doc = "Shared at"] - #[serde(rename = "sharedAt", default, skip_serializing_if = "Option::is_none")] - pub shared_at: Option, + #[serde(rename = "sharedAt", with = "azure_core::date::rfc3339::option")] + pub shared_at: Option, #[doc = "share Subscription Object Id"] #[serde(rename = "shareSubscriptionObjectId", default, skip_serializing_if = "Option::is_none")] pub share_subscription_object_id: Option, @@ -3275,8 +3275,8 @@ pub struct ScheduledSourceShareSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval", default, skip_serializing_if = "Option::is_none")] pub recurrence_interval: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime", default, skip_serializing_if = "Option::is_none")] - pub synchronization_time: Option, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339::option")] + pub synchronization_time: Option, } impl ScheduledSourceShareSynchronizationSettingProperties { pub fn new() -> Self { @@ -3360,8 +3360,8 @@ impl ScheduledSynchronizationSetting { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSettingProperties { #[doc = "Time at which the synchronization setting was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets or sets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3369,8 +3369,8 @@ pub struct ScheduledSynchronizationSettingProperties { #[serde(rename = "recurrenceInterval")] pub recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Name of the user who created the synchronization setting."] #[serde(rename = "userName", default, skip_serializing_if = "Option::is_none")] pub user_name: Option, @@ -3378,7 +3378,7 @@ pub struct ScheduledSynchronizationSettingProperties { impl ScheduledSynchronizationSettingProperties { pub fn new( recurrence_interval: scheduled_synchronization_setting_properties::RecurrenceInterval, - synchronization_time: String, + synchronization_time: time::OffsetDateTime, ) -> Self { Self { created_at: None, @@ -3489,8 +3489,8 @@ impl ScheduledTrigger { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTriggerProperties { #[doc = "Time at which the trigger was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets the provisioning state"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3501,8 +3501,8 @@ pub struct ScheduledTriggerProperties { #[serde(rename = "synchronizationMode", default, skip_serializing_if = "Option::is_none")] pub synchronization_mode: Option, #[doc = "Synchronization time"] - #[serde(rename = "synchronizationTime")] - pub synchronization_time: String, + #[serde(rename = "synchronizationTime", with = "azure_core::date::rfc3339")] + pub synchronization_time: time::OffsetDateTime, #[doc = "Gets the trigger state"] #[serde(rename = "triggerStatus", default, skip_serializing_if = "Option::is_none")] pub trigger_status: Option, @@ -3511,7 +3511,7 @@ pub struct ScheduledTriggerProperties { pub user_name: Option, } impl ScheduledTriggerProperties { - pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: String) -> Self { + pub fn new(recurrence_interval: scheduled_trigger_properties::RecurrenceInterval, synchronization_time: time::OffsetDateTime) -> Self { Self { created_at: None, provisioning_state: None, @@ -3722,8 +3722,8 @@ impl ShareList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ShareProperties { #[doc = "Time at which the share was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Share description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3871,11 +3871,11 @@ impl ShareSubscriptionList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ShareSubscriptionProperties { #[doc = "Time at which the share subscription was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The expiration date of the share subscription."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The invitation id."] #[serde(rename = "invitationId")] pub invitation_id: String, @@ -4068,14 +4068,14 @@ pub struct ShareSubscriptionSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of Synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4175,14 +4175,14 @@ pub struct ShareSynchronization { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of synchronization"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "message of synchronization"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "start time of synchronization"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4876,8 +4876,8 @@ pub struct SynchronizationDetails { #[serde(rename = "durationMs", default, skip_serializing_if = "Option::is_none")] pub duration_ms: Option, #[doc = "End time of data set level copy"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The number of files read from the source data set"] #[serde(rename = "filesRead", default, skip_serializing_if = "Option::is_none")] pub files_read: Option, @@ -4903,8 +4903,8 @@ pub struct SynchronizationDetails { #[serde(rename = "sizeWritten", default, skip_serializing_if = "Option::is_none")] pub size_written: Option, #[doc = "Start time of data set level copy"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Raw Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5135,8 +5135,8 @@ pub mod synchronize { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SystemData { #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that created the resource."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -5144,8 +5144,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/deploymentmanager/Cargo.toml b/services/mgmt/deploymentmanager/Cargo.toml index 9388344fea1..a11b5262efb 100644 --- a/services/mgmt/deploymentmanager/Cargo.toml +++ b/services/mgmt/deploymentmanager/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs b/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs index a28dfc8ceba..4918d6bf4ab 100644 --- a/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs +++ b/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs @@ -186,8 +186,8 @@ impl Identity { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Message { #[doc = "Time in UTC this message was provided."] - #[serde(rename = "timeStamp", default, skip_serializing_if = "Option::is_none")] - pub time_stamp: Option, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339::option")] + pub time_stamp: Option, #[doc = "The actual message text."] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -495,11 +495,11 @@ pub struct RolloutOperationInfo { #[serde(rename = "skipSucceededOnRetry", default, skip_serializing_if = "Option::is_none")] pub skip_succeeded_on_retry: Option, #[doc = "The start time of the rollout in UTC."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The start time of the rollout in UTC. This property will not be set if the rollout has not completed yet."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Detailed error information of any failure."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -851,14 +851,14 @@ pub struct StepOperationInfo { #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, #[doc = "Start time of the action in UTC."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the action in UTC."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Last time in UTC this operation was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Detailed error information of any failure."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, diff --git a/services/mgmt/desktopvirtualization/Cargo.toml b/services/mgmt/desktopvirtualization/Cargo.toml index ad4a39230ed..7843d732029 100644 --- a/services/mgmt/desktopvirtualization/Cargo.toml +++ b/services/mgmt/desktopvirtualization/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs b/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs index dafdc96bc26..cc340ce1008 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs @@ -658,8 +658,8 @@ pub struct ExpandMsixImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1473,8 +1473,8 @@ pub struct MsixPackageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1852,8 +1852,8 @@ impl PrivateLinkServiceConnectionState { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfo { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The registration token base64 encoded string."] #[serde(default, skip_serializing_if = "Option::is_none")] pub token: Option, @@ -1912,8 +1912,8 @@ pub mod registration_info { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfoPatch { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The type of resetting the token."] #[serde(rename = "registrationTokenOperation", default, skip_serializing_if = "Option::is_none")] pub registration_token_operation: Option, @@ -2303,8 +2303,8 @@ pub struct ScalingSchedule { #[serde(rename = "daysOfWeek", default, skip_serializing_if = "Vec::is_empty")] pub days_of_week: Vec, #[doc = "Starting time for ramp up period."] - #[serde(rename = "rampUpStartTime", default, skip_serializing_if = "Option::is_none")] - pub ramp_up_start_time: Option, + #[serde(rename = "rampUpStartTime", with = "azure_core::date::rfc3339::option")] + pub ramp_up_start_time: Option, #[doc = "Load balancing algorithm for ramp up period."] #[serde(rename = "rampUpLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub ramp_up_load_balancing_algorithm: Option, @@ -2315,14 +2315,14 @@ pub struct ScalingSchedule { #[serde(rename = "rampUpCapacityThresholdPct", default, skip_serializing_if = "Option::is_none")] pub ramp_up_capacity_threshold_pct: Option, #[doc = "Starting time for peak period."] - #[serde(rename = "peakStartTime", default, skip_serializing_if = "Option::is_none")] - pub peak_start_time: Option, + #[serde(rename = "peakStartTime", with = "azure_core::date::rfc3339::option")] + pub peak_start_time: Option, #[doc = "Load balancing algorithm for peak period."] #[serde(rename = "peakLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub peak_load_balancing_algorithm: Option, #[doc = "Starting time for ramp down period."] - #[serde(rename = "rampDownStartTime", default, skip_serializing_if = "Option::is_none")] - pub ramp_down_start_time: Option, + #[serde(rename = "rampDownStartTime", with = "azure_core::date::rfc3339::option")] + pub ramp_down_start_time: Option, #[doc = "Load balancing algorithm for ramp down period."] #[serde(rename = "rampDownLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub ramp_down_load_balancing_algorithm: Option, @@ -2345,8 +2345,8 @@ pub struct ScalingSchedule { #[serde(rename = "rampDownNotificationMessage", default, skip_serializing_if = "Option::is_none")] pub ramp_down_notification_message: Option, #[doc = "Starting time for off-peak period."] - #[serde(rename = "offPeakStartTime", default, skip_serializing_if = "Option::is_none")] - pub off_peak_start_time: Option, + #[serde(rename = "offPeakStartTime", with = "azure_core::date::rfc3339::option")] + pub off_peak_start_time: Option, #[doc = "Load balancing algorithm for off-peak period."] #[serde(rename = "offPeakLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub off_peak_load_balancing_algorithm: Option, @@ -2595,8 +2595,8 @@ pub struct SessionHostHealthCheckFailureDetails { #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")] pub error_code: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastHealthCheckDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_health_check_date_time: Option, + #[serde(rename = "lastHealthCheckDateTime", with = "azure_core::date::rfc3339::option")] + pub last_health_check_date_time: Option, } impl SessionHostHealthCheckFailureDetails { pub fn new() -> Self { @@ -2779,8 +2779,8 @@ pub struct SessionHostProperties { #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")] pub object_id: Option, #[doc = "Last heart beat from SessionHost."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "Number of sessions on SessionHost."] #[serde(default, skip_serializing_if = "Option::is_none")] pub sessions: Option, @@ -2803,8 +2803,8 @@ pub struct SessionHostProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The timestamp of the status."] - #[serde(rename = "statusTimestamp", default, skip_serializing_if = "Option::is_none")] - pub status_timestamp: Option, + #[serde(rename = "statusTimestamp", with = "azure_core::date::rfc3339::option")] + pub status_timestamp: Option, #[doc = "The version of the OS on the session host."] #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, @@ -2815,8 +2815,8 @@ pub struct SessionHostProperties { #[serde(rename = "updateState", default, skip_serializing_if = "Option::is_none")] pub update_state: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "The error message."] #[serde(rename = "updateErrorMessage", default, skip_serializing_if = "Option::is_none")] pub update_error_message: Option, @@ -3086,8 +3086,8 @@ pub struct UserSessionProperties { #[serde(rename = "activeDirectoryUserName", default, skip_serializing_if = "Option::is_none")] pub active_directory_user_name: Option, #[doc = "The timestamp of the user session create."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, } impl UserSessionProperties { pub fn new() -> Self { @@ -3367,8 +3367,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3376,8 +3376,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs b/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs index fbf92b43258..35ffc605c47 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs @@ -658,8 +658,8 @@ pub struct ExpandMsixImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1392,8 +1392,8 @@ pub struct MsixPackageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1555,8 +1555,8 @@ impl Plan { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfo { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The registration token base64 encoded string."] #[serde(default, skip_serializing_if = "Option::is_none")] pub token: Option, @@ -1615,8 +1615,8 @@ pub mod registration_info { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfoPatch { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The type of resetting the token."] #[serde(rename = "registrationTokenOperation", default, skip_serializing_if = "Option::is_none")] pub registration_token_operation: Option, @@ -2006,8 +2006,8 @@ pub struct ScalingSchedule { #[serde(rename = "daysOfWeek", default, skip_serializing_if = "Vec::is_empty")] pub days_of_week: Vec, #[doc = "Starting time for ramp up period."] - #[serde(rename = "rampUpStartTime", default, skip_serializing_if = "Option::is_none")] - pub ramp_up_start_time: Option, + #[serde(rename = "rampUpStartTime", with = "azure_core::date::rfc3339::option")] + pub ramp_up_start_time: Option, #[doc = "Load balancing algorithm for ramp up period."] #[serde(rename = "rampUpLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub ramp_up_load_balancing_algorithm: Option, @@ -2018,14 +2018,14 @@ pub struct ScalingSchedule { #[serde(rename = "rampUpCapacityThresholdPct", default, skip_serializing_if = "Option::is_none")] pub ramp_up_capacity_threshold_pct: Option, #[doc = "Starting time for peak period."] - #[serde(rename = "peakStartTime", default, skip_serializing_if = "Option::is_none")] - pub peak_start_time: Option, + #[serde(rename = "peakStartTime", with = "azure_core::date::rfc3339::option")] + pub peak_start_time: Option, #[doc = "Load balancing algorithm for peak period."] #[serde(rename = "peakLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub peak_load_balancing_algorithm: Option, #[doc = "Starting time for ramp down period."] - #[serde(rename = "rampDownStartTime", default, skip_serializing_if = "Option::is_none")] - pub ramp_down_start_time: Option, + #[serde(rename = "rampDownStartTime", with = "azure_core::date::rfc3339::option")] + pub ramp_down_start_time: Option, #[doc = "Load balancing algorithm for ramp down period."] #[serde(rename = "rampDownLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub ramp_down_load_balancing_algorithm: Option, @@ -2048,8 +2048,8 @@ pub struct ScalingSchedule { #[serde(rename = "rampDownNotificationMessage", default, skip_serializing_if = "Option::is_none")] pub ramp_down_notification_message: Option, #[doc = "Starting time for off-peak period."] - #[serde(rename = "offPeakStartTime", default, skip_serializing_if = "Option::is_none")] - pub off_peak_start_time: Option, + #[serde(rename = "offPeakStartTime", with = "azure_core::date::rfc3339::option")] + pub off_peak_start_time: Option, #[doc = "Load balancing algorithm for off-peak period."] #[serde(rename = "offPeakLoadBalancingAlgorithm", default, skip_serializing_if = "Option::is_none")] pub off_peak_load_balancing_algorithm: Option, @@ -2298,8 +2298,8 @@ pub struct SessionHostHealthCheckFailureDetails { #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")] pub error_code: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastHealthCheckDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_health_check_date_time: Option, + #[serde(rename = "lastHealthCheckDateTime", with = "azure_core::date::rfc3339::option")] + pub last_health_check_date_time: Option, } impl SessionHostHealthCheckFailureDetails { pub fn new() -> Self { @@ -2482,8 +2482,8 @@ pub struct SessionHostProperties { #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")] pub object_id: Option, #[doc = "Last heart beat from SessionHost."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "Number of sessions on SessionHost."] #[serde(default, skip_serializing_if = "Option::is_none")] pub sessions: Option, @@ -2506,8 +2506,8 @@ pub struct SessionHostProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The timestamp of the status."] - #[serde(rename = "statusTimestamp", default, skip_serializing_if = "Option::is_none")] - pub status_timestamp: Option, + #[serde(rename = "statusTimestamp", with = "azure_core::date::rfc3339::option")] + pub status_timestamp: Option, #[doc = "The version of the OS on the session host."] #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, @@ -2518,8 +2518,8 @@ pub struct SessionHostProperties { #[serde(rename = "updateState", default, skip_serializing_if = "Option::is_none")] pub update_state: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "The error message."] #[serde(rename = "updateErrorMessage", default, skip_serializing_if = "Option::is_none")] pub update_error_message: Option, @@ -2789,8 +2789,8 @@ pub struct UserSessionProperties { #[serde(rename = "activeDirectoryUserName", default, skip_serializing_if = "Option::is_none")] pub active_directory_user_name: Option, #[doc = "The timestamp of the user session create."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, } impl UserSessionProperties { pub fn new() -> Self { diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs b/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs index 4a4a6b7a693..b2dc632ee6b 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs @@ -678,8 +678,8 @@ pub struct ExpandMsixImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1501,8 +1501,8 @@ pub struct MsixPackageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1898,8 +1898,8 @@ impl PrivateLinkServiceConnectionState { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfo { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The registration token base64 encoded string."] #[serde(default, skip_serializing_if = "Option::is_none")] pub token: Option, @@ -1958,8 +1958,8 @@ pub mod registration_info { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfoPatch { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The type of resetting the token."] #[serde(rename = "registrationTokenOperation", default, skip_serializing_if = "Option::is_none")] pub registration_token_operation: Option, @@ -2605,8 +2605,8 @@ pub struct SessionHostHealthCheckFailureDetails { #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")] pub error_code: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastHealthCheckDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_health_check_date_time: Option, + #[serde(rename = "lastHealthCheckDateTime", with = "azure_core::date::rfc3339::option")] + pub last_health_check_date_time: Option, } impl SessionHostHealthCheckFailureDetails { pub fn new() -> Self { @@ -2789,8 +2789,8 @@ pub struct SessionHostProperties { #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")] pub object_id: Option, #[doc = "Last heart beat from SessionHost."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "Number of sessions on SessionHost."] #[serde(default, skip_serializing_if = "Option::is_none")] pub sessions: Option, @@ -2813,8 +2813,8 @@ pub struct SessionHostProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The timestamp of the status."] - #[serde(rename = "statusTimestamp", default, skip_serializing_if = "Option::is_none")] - pub status_timestamp: Option, + #[serde(rename = "statusTimestamp", with = "azure_core::date::rfc3339::option")] + pub status_timestamp: Option, #[doc = "The version of the OS on the session host."] #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, @@ -2825,8 +2825,8 @@ pub struct SessionHostProperties { #[serde(rename = "updateState", default, skip_serializing_if = "Option::is_none")] pub update_state: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "The error message."] #[serde(rename = "updateErrorMessage", default, skip_serializing_if = "Option::is_none")] pub update_error_message: Option, @@ -3112,8 +3112,8 @@ pub struct UserSessionProperties { #[serde(rename = "activeDirectoryUserName", default, skip_serializing_if = "Option::is_none")] pub active_directory_user_name: Option, #[doc = "The timestamp of the user session create."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, } impl UserSessionProperties { pub fn new() -> Self { @@ -3396,8 +3396,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3405,8 +3405,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs b/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs index 70557f0ffc2..b64293e3e2a 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs @@ -800,8 +800,8 @@ pub struct ExpandMsixImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1646,8 +1646,8 @@ pub struct MsixPackageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -2101,8 +2101,8 @@ impl PrivateLinkServiceConnectionState { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfo { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The registration token base64 encoded string."] #[serde(default, skip_serializing_if = "Option::is_none")] pub token: Option, @@ -2161,8 +2161,8 @@ pub mod registration_info { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfoPatch { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The type of resetting the token."] #[serde(rename = "registrationTokenOperation", default, skip_serializing_if = "Option::is_none")] pub registration_token_operation: Option, @@ -2808,8 +2808,8 @@ pub struct SessionHostHealthCheckFailureDetails { #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")] pub error_code: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastHealthCheckDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_health_check_date_time: Option, + #[serde(rename = "lastHealthCheckDateTime", with = "azure_core::date::rfc3339::option")] + pub last_health_check_date_time: Option, } impl SessionHostHealthCheckFailureDetails { pub fn new() -> Self { @@ -2995,8 +2995,8 @@ pub struct SessionHostProperties { #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")] pub object_id: Option, #[doc = "Last heart beat from SessionHost."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "Number of sessions on SessionHost."] #[serde(default, skip_serializing_if = "Option::is_none")] pub sessions: Option, @@ -3022,8 +3022,8 @@ pub struct SessionHostProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The timestamp of the status."] - #[serde(rename = "statusTimestamp", default, skip_serializing_if = "Option::is_none")] - pub status_timestamp: Option, + #[serde(rename = "statusTimestamp", with = "azure_core::date::rfc3339::option")] + pub status_timestamp: Option, #[doc = "The version of the OS on the session host."] #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, @@ -3034,8 +3034,8 @@ pub struct SessionHostProperties { #[serde(rename = "updateState", default, skip_serializing_if = "Option::is_none")] pub update_state: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "The error message."] #[serde(rename = "updateErrorMessage", default, skip_serializing_if = "Option::is_none")] pub update_error_message: Option, @@ -3321,8 +3321,8 @@ pub struct UserSessionProperties { #[serde(rename = "activeDirectoryUserName", default, skip_serializing_if = "Option::is_none")] pub active_directory_user_name: Option, #[doc = "The timestamp of the user session create."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, } impl UserSessionProperties { pub fn new() -> Self { @@ -3608,8 +3608,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3617,8 +3617,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2022_04/models.rs b/services/mgmt/desktopvirtualization/src/package_preview_2022_04/models.rs index 167d8cb9a67..632db56e570 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2022_04/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2022_04/models.rs @@ -800,8 +800,8 @@ pub struct ExpandMsixImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -1646,8 +1646,8 @@ pub struct MsixPackageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Date Package was last updated, found in the appxmanifest.xml. "] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "List of package applications. "] #[serde(rename = "packageApplications", default, skip_serializing_if = "Vec::is_empty")] pub package_applications: Vec, @@ -2101,8 +2101,8 @@ impl PrivateLinkServiceConnectionState { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfo { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The registration token base64 encoded string."] #[serde(default, skip_serializing_if = "Option::is_none")] pub token: Option, @@ -2161,8 +2161,8 @@ pub mod registration_info { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RegistrationInfoPatch { #[doc = "Expiration time of registration token."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "The type of resetting the token."] #[serde(rename = "registrationTokenOperation", default, skip_serializing_if = "Option::is_none")] pub registration_token_operation: Option, @@ -3128,8 +3128,8 @@ pub struct SessionHostHealthCheckFailureDetails { #[serde(rename = "errorCode", default, skip_serializing_if = "Option::is_none")] pub error_code: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastHealthCheckDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_health_check_date_time: Option, + #[serde(rename = "lastHealthCheckDateTime", with = "azure_core::date::rfc3339::option")] + pub last_health_check_date_time: Option, } impl SessionHostHealthCheckFailureDetails { pub fn new() -> Self { @@ -3315,8 +3315,8 @@ pub struct SessionHostProperties { #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")] pub object_id: Option, #[doc = "Last heart beat from SessionHost."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "Number of sessions on SessionHost."] #[serde(default, skip_serializing_if = "Option::is_none")] pub sessions: Option, @@ -3342,8 +3342,8 @@ pub struct SessionHostProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The timestamp of the status."] - #[serde(rename = "statusTimestamp", default, skip_serializing_if = "Option::is_none")] - pub status_timestamp: Option, + #[serde(rename = "statusTimestamp", with = "azure_core::date::rfc3339::option")] + pub status_timestamp: Option, #[doc = "The version of the OS on the session host."] #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, @@ -3354,8 +3354,8 @@ pub struct SessionHostProperties { #[serde(rename = "updateState", default, skip_serializing_if = "Option::is_none")] pub update_state: Option, #[doc = "The timestamp of the last update."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "The error message."] #[serde(rename = "updateErrorMessage", default, skip_serializing_if = "Option::is_none")] pub update_error_message: Option, @@ -3641,8 +3641,8 @@ pub struct UserSessionProperties { #[serde(rename = "activeDirectoryUserName", default, skip_serializing_if = "Option::is_none")] pub active_directory_user_name: Option, #[doc = "The timestamp of the user session create."] - #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")] - pub create_time: Option, + #[serde(rename = "createTime", with = "azure_core::date::rfc3339::option")] + pub create_time: Option, } impl UserSessionProperties { pub fn new() -> Self { @@ -3928,8 +3928,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3937,8 +3937,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/devcenter/Cargo.toml b/services/mgmt/devcenter/Cargo.toml index bc9b790c8b2..9d36c080441 100644 --- a/services/mgmt/devcenter/Cargo.toml +++ b/services/mgmt/devcenter/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/devcenter/src/package_2022_08_01_preview/models.rs b/services/mgmt/devcenter/src/package_2022_08_01_preview/models.rs index 2994d65a2e4..899393018b0 100644 --- a/services/mgmt/devcenter/src/package_2022_08_01_preview/models.rs +++ b/services/mgmt/devcenter/src/package_2022_08_01_preview/models.rs @@ -128,8 +128,8 @@ pub struct CatalogProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "When the catalog was last synced."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, } impl CatalogProperties { pub fn new() -> Self { @@ -636,11 +636,11 @@ pub struct HealthCheck { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "Start time of health check item."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "End time of the health check item."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "The type of error that occurred during this health check."] #[serde(rename = "errorType", default, skip_serializing_if = "Option::is_none")] pub error_type: Option, @@ -740,11 +740,11 @@ impl HealthCheckStatusDetailsListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct HealthCheckStatusDetailsProperties { #[doc = "Start time of last execution of the health checks."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "End time of last execution of the health checks."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "Details for each health check item."] #[serde(rename = "healthChecks", default, skip_serializing_if = "Vec::is_empty")] pub health_checks: Vec, @@ -940,8 +940,8 @@ pub struct ImageVersionProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The datetime that the backing image version was published."] - #[serde(rename = "publishedDate", default, skip_serializing_if = "Option::is_none")] - pub published_date: Option, + #[serde(rename = "publishedDate", with = "azure_core::date::rfc3339::option")] + pub published_date: Option, #[doc = "If the version should be excluded from being treated as the latest version."] #[serde(rename = "excludeFromLatest", default, skip_serializing_if = "Option::is_none")] pub exclude_from_latest: Option, @@ -1384,11 +1384,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Percent of the operation that is complete"] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -2147,8 +2147,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2156,8 +2156,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/developerhub/Cargo.toml b/services/mgmt/developerhub/Cargo.toml index d96ca8880f4..fbe44dd558a 100644 --- a/services/mgmt/developerhub/Cargo.toml +++ b/services/mgmt/developerhub/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/developerhub/src/package_preview_2022_04/models.rs b/services/mgmt/developerhub/src/package_preview_2022_04/models.rs index c7074b51b6a..9eec06481f8 100644 --- a/services/mgmt/developerhub/src/package_preview_2022_04/models.rs +++ b/services/mgmt/developerhub/src/package_preview_2022_04/models.rs @@ -636,8 +636,8 @@ pub struct WorkflowRun { #[serde(rename = "workflowRunURL", default, skip_serializing_if = "Option::is_none")] pub workflow_run_url: Option, #[doc = "The timestamp of the last workflow run."] - #[serde(rename = "lastRunAt", default, skip_serializing_if = "Option::is_none")] - pub last_run_at: Option, + #[serde(rename = "lastRunAt", with = "azure_core::date::rfc3339::option")] + pub last_run_at: Option, } impl WorkflowRun { pub fn new() -> Self { @@ -654,8 +654,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -663,8 +663,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/deviceupdate/Cargo.toml b/services/mgmt/deviceupdate/Cargo.toml index f3d0ba73b18..83b8a521c75 100644 --- a/services/mgmt/deviceupdate/Cargo.toml +++ b/services/mgmt/deviceupdate/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs index afe945b166e..5591253844c 100644 --- a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs +++ b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs @@ -1372,8 +1372,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1381,8 +1381,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs index f5f97f7b460..bb62f7e5284 100644 --- a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs +++ b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs @@ -1468,8 +1468,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1477,8 +1477,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs b/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs index f5f97f7b460..bb62f7e5284 100644 --- a/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs +++ b/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs @@ -1468,8 +1468,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1477,8 +1477,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/devops/Cargo.toml b/services/mgmt/devops/Cargo.toml index 055b2ca6e19..15e7c5a2b56 100644 --- a/services/mgmt/devops/Cargo.toml +++ b/services/mgmt/devops/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/devops/src/package_2020_07_13_preview/models.rs b/services/mgmt/devops/src/package_2020_07_13_preview/models.rs index 618b412e0a9..5bee61288b4 100644 --- a/services/mgmt/devops/src/package_2020_07_13_preview/models.rs +++ b/services/mgmt/devops/src/package_2020_07_13_preview/models.rs @@ -604,8 +604,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -613,8 +613,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/devspaces/Cargo.toml b/services/mgmt/devspaces/Cargo.toml index f6740979752..d4583496436 100644 --- a/services/mgmt/devspaces/Cargo.toml +++ b/services/mgmt/devspaces/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/devtestlabs/Cargo.toml b/services/mgmt/devtestlabs/Cargo.toml index 1d686465b93..d4bd78c0162 100644 --- a/services/mgmt/devtestlabs/Cargo.toml +++ b/services/mgmt/devtestlabs/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs b/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs index 72b5a543df4..ac048e073a0 100644 --- a/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs +++ b/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs @@ -370,8 +370,8 @@ impl CostInsightProperties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CostPerDayProperties { #[doc = "The date of the cost item."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "The cost of the cost item."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cost: Option, @@ -487,8 +487,8 @@ pub struct CustomImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub author: Option, #[doc = "The creation date of the custom image."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -669,8 +669,8 @@ pub struct FormulaProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "The creation date of the formula."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "A virtual machine."] #[serde(rename = "formulaContent", default, skip_serializing_if = "Option::is_none")] pub formula_content: Option, @@ -732,8 +732,8 @@ pub struct GalleryImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub author: Option, #[doc = "The creation date of the gallery image."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The description of the gallery image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -879,8 +879,8 @@ pub struct LabProperties { #[serde(rename = "defaultVirtualNetworkId", default, skip_serializing_if = "Option::is_none")] pub default_virtual_network_id: Option, #[doc = "The creation date of the lab."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/devtestlabs/src/package_2016_05/models.rs b/services/mgmt/devtestlabs/src/package_2016_05/models.rs index 3b673a89a0a..e2a3355daf4 100644 --- a/services/mgmt/devtestlabs/src/package_2016_05/models.rs +++ b/services/mgmt/devtestlabs/src/package_2016_05/models.rs @@ -141,8 +141,8 @@ pub struct ArmTemplateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub contents: Option, #[doc = "The creation date of the armTemplate."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template."] #[serde(rename = "parametersValueFilesInfo", default, skip_serializing_if = "Vec::is_empty")] pub parameters_value_files_info: Vec, @@ -223,8 +223,8 @@ pub struct ArtifactInstallProperties { #[serde(rename = "vmExtensionStatusMessage", default, skip_serializing_if = "Option::is_none")] pub vm_extension_status_message: Option, #[doc = "The time that the artifact starts to install on the virtual machine."] - #[serde(rename = "installTime", default, skip_serializing_if = "Option::is_none")] - pub install_time: Option, + #[serde(rename = "installTime", with = "azure_core::date::rfc3339::option")] + pub install_time: Option, } impl ArtifactInstallProperties { pub fn new() -> Self { @@ -250,8 +250,8 @@ pub struct ArtifactInstallPropertiesFragment { #[serde(rename = "vmExtensionStatusMessage", default, skip_serializing_if = "Option::is_none")] pub vm_extension_status_message: Option, #[doc = "The time that the artifact starts to install on the virtual machine."] - #[serde(rename = "installTime", default, skip_serializing_if = "Option::is_none")] - pub install_time: Option, + #[serde(rename = "installTime", with = "azure_core::date::rfc3339::option")] + pub install_time: Option, } impl ArtifactInstallPropertiesFragment { pub fn new() -> Self { @@ -313,8 +313,8 @@ pub struct ArtifactProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, #[doc = "The artifact's creation date."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, } impl ArtifactProperties { pub fn new() -> Self { @@ -379,8 +379,8 @@ pub struct ArtifactSourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The artifact source's creation date."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -975,8 +975,8 @@ pub struct CustomImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub author: Option, #[doc = "The creation date of the custom image."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The Managed Image Id backing the custom image."] #[serde(rename = "managedImageId", default, skip_serializing_if = "Option::is_none")] pub managed_image_id: Option, @@ -1217,8 +1217,8 @@ pub struct DiskProperties { #[serde(rename = "diskUri", default, skip_serializing_if = "Option::is_none")] pub disk_uri: Option, #[doc = "The creation date of the disk."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite)."] #[serde(rename = "hostCaching", default, skip_serializing_if = "Option::is_none")] pub host_caching: Option, @@ -1488,8 +1488,8 @@ pub struct ExportResourceUsageParameters { #[serde(rename = "blobStorageAbsoluteSasUri", default, skip_serializing_if = "Option::is_none")] pub blob_storage_absolute_sas_uri: Option, #[doc = "The start time of the usage. If not provided, usage will be reported since the beginning of data collection."] - #[serde(rename = "usageStartDate", default, skip_serializing_if = "Option::is_none")] - pub usage_start_date: Option, + #[serde(rename = "usageStartDate", with = "azure_core::date::rfc3339::option")] + pub usage_start_date: Option, } impl ExportResourceUsageParameters { pub fn new() -> Self { @@ -1555,8 +1555,8 @@ pub struct FormulaProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "The creation date of the formula."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Properties for creating a virtual machine."] #[serde(rename = "formulaContent", default, skip_serializing_if = "Option::is_none")] pub formula_content: Option, @@ -1610,8 +1610,8 @@ pub struct GalleryImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub author: Option, #[doc = "The creation date of the gallery image."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The description of the gallery image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1960,8 +1960,8 @@ impl LabCost { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LabCostDetailsProperties { #[doc = "The date of the cost item."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "The cost component of the cost item."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cost: Option, @@ -2035,14 +2035,14 @@ pub struct LabCostProperties { #[serde(rename = "currencyCode", default, skip_serializing_if = "Option::is_none")] pub currency_code: Option, #[doc = "The start time of the cost data."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The end time of the cost data."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "The creation date of the cost."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2103,8 +2103,8 @@ pub struct LabProperties { #[serde(rename = "labStorageType", default, skip_serializing_if = "Option::is_none")] pub lab_storage_type: Option, #[doc = "The creation date of the lab."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The setting to enable usage of premium data disks.\r\nWhen its value is 'Enabled', creation of standard or premium data disks is allowed.\r\nWhen its value is 'Disabled', only creation of standard data disks is allowed."] #[serde(rename = "premiumDataDisks", default, skip_serializing_if = "Option::is_none")] pub premium_data_disks: Option, @@ -2402,8 +2402,8 @@ pub struct LabVirtualMachineCreationParameterProperties { #[serde(rename = "createdByUser", default, skip_serializing_if = "Option::is_none")] pub created_by_user: Option, #[doc = "The creation date of the virtual machine."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The custom image identifier of the virtual machine."] #[serde(rename = "customImageId", default, skip_serializing_if = "Option::is_none")] pub custom_image_id: Option, @@ -2456,8 +2456,8 @@ pub struct LabVirtualMachineCreationParameterProperties { #[serde(rename = "applicableSchedule", default, skip_serializing_if = "Option::is_none")] pub applicable_schedule: Option, #[doc = "The expiration date for VM."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Indicates whether another user can take ownership of the virtual machine"] #[serde(rename = "allowClaim", default, skip_serializing_if = "Option::is_none")] pub allow_claim: Option, @@ -2555,8 +2555,8 @@ pub struct LabVirtualMachineProperties { #[serde(rename = "createdByUser", default, skip_serializing_if = "Option::is_none")] pub created_by_user: Option, #[doc = "The creation date of the virtual machine."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The resource identifier (Microsoft.Compute) of the virtual machine."] #[serde(rename = "computeId", default, skip_serializing_if = "Option::is_none")] pub compute_id: Option, @@ -2612,8 +2612,8 @@ pub struct LabVirtualMachineProperties { #[serde(rename = "applicableSchedule", default, skip_serializing_if = "Option::is_none")] pub applicable_schedule: Option, #[doc = "The expiration date for VM."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Indicates whether another user can take ownership of the virtual machine"] #[serde(rename = "allowClaim", default, skip_serializing_if = "Option::is_none")] pub allow_claim: Option, @@ -2697,8 +2697,8 @@ pub struct LabVirtualMachinePropertiesFragment { #[serde(rename = "createdByUser", default, skip_serializing_if = "Option::is_none")] pub created_by_user: Option, #[doc = "The creation date of the virtual machine."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The custom image identifier of the virtual machine."] #[serde(rename = "customImageId", default, skip_serializing_if = "Option::is_none")] pub custom_image_id: Option, @@ -2751,8 +2751,8 @@ pub struct LabVirtualMachinePropertiesFragment { #[serde(rename = "applicableSchedule", default, skip_serializing_if = "Option::is_none")] pub applicable_schedule: Option, #[doc = "The expiration date for VM."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Indicates whether another user can take ownership of the virtual machine"] #[serde(rename = "allowClaim", default, skip_serializing_if = "Option::is_none")] pub allow_claim: Option, @@ -2986,8 +2986,8 @@ pub struct NotificationChannelProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub events: Vec, #[doc = "The creation date of the notification channel."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3481,8 +3481,8 @@ pub struct PolicyProperties { #[serde(rename = "evaluatorType", default, skip_serializing_if = "Option::is_none")] pub evaluator_type: Option, #[doc = "The creation date of the policy."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4413,8 +4413,8 @@ pub struct ScheduleProperties { #[serde(rename = "notificationSettings", default, skip_serializing_if = "Option::is_none")] pub notification_settings: Option, #[doc = "The creation date of the schedule."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The resource ID to which the schedule belongs"] #[serde(rename = "targetResourceId", default, skip_serializing_if = "Option::is_none")] pub target_resource_id: Option, @@ -5036,11 +5036,11 @@ pub struct TargetCostProperties { #[serde(rename = "costThresholds", default, skip_serializing_if = "Vec::is_empty")] pub cost_thresholds: Vec, #[doc = "Reporting cycle start date."] - #[serde(rename = "cycleStartDateTime", default, skip_serializing_if = "Option::is_none")] - pub cycle_start_date_time: Option, + #[serde(rename = "cycleStartDateTime", with = "azure_core::date::rfc3339::option")] + pub cycle_start_date_time: Option, #[doc = "Reporting cycle end date."] - #[serde(rename = "cycleEndDateTime", default, skip_serializing_if = "Option::is_none")] - pub cycle_end_date_time: Option, + #[serde(rename = "cycleEndDateTime", with = "azure_core::date::rfc3339::option")] + pub cycle_end_date_time: Option, #[doc = "Reporting cycle type."] #[serde(rename = "cycleType", default, skip_serializing_if = "Option::is_none")] pub cycle_type: Option, @@ -5213,8 +5213,8 @@ pub struct UserProperties { #[serde(rename = "secretStore", default, skip_serializing_if = "Option::is_none")] pub secret_store: Option, #[doc = "The creation date of the user profile."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5325,8 +5325,8 @@ pub struct VirtualNetworkProperties { #[serde(rename = "subnetOverrides", default, skip_serializing_if = "Vec::is_empty")] pub subnet_overrides: Vec, #[doc = "The creation date of the virtual network."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/devtestlabs/src/package_2018_09/models.rs b/services/mgmt/devtestlabs/src/package_2018_09/models.rs index 58ac3c62fdf..8456f4aafe2 100644 --- a/services/mgmt/devtestlabs/src/package_2018_09/models.rs +++ b/services/mgmt/devtestlabs/src/package_2018_09/models.rs @@ -160,8 +160,8 @@ pub struct ArmTemplateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub contents: Option, #[doc = "The creation date of the armTemplate."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "File name and parameter values information from all azuredeploy.*.parameters.json for the ARM template."] #[serde(rename = "parametersValueFilesInfo", default, skip_serializing_if = "Vec::is_empty")] pub parameters_value_files_info: Vec, @@ -238,8 +238,8 @@ pub struct ArtifactInstallProperties { #[serde(rename = "vmExtensionStatusMessage", default, skip_serializing_if = "Option::is_none")] pub vm_extension_status_message: Option, #[doc = "The time that the artifact starts to install on the virtual machine."] - #[serde(rename = "installTime", default, skip_serializing_if = "Option::is_none")] - pub install_time: Option, + #[serde(rename = "installTime", with = "azure_core::date::rfc3339::option")] + pub install_time: Option, } impl ArtifactInstallProperties { pub fn new() -> Self { @@ -323,8 +323,8 @@ pub struct ArtifactProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub parameters: Option, #[doc = "The artifact's creation date."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, } impl ArtifactProperties { pub fn new() -> Self { @@ -407,8 +407,8 @@ pub struct ArtifactSourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The artifact source's creation date."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -906,8 +906,8 @@ pub struct CustomImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub author: Option, #[doc = "The creation date of the custom image."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The Managed Image Id backing the custom image."] #[serde(rename = "managedImageId", default, skip_serializing_if = "Option::is_none")] pub managed_image_id: Option, @@ -1315,8 +1315,8 @@ pub struct DiskProperties { #[serde(rename = "storageAccountId", default, skip_serializing_if = "Option::is_none")] pub storage_account_id: Option, #[doc = "The creation date of the disk."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite)."] #[serde(rename = "hostCaching", default, skip_serializing_if = "Option::is_none")] pub host_caching: Option, @@ -1604,8 +1604,8 @@ pub struct ExportResourceUsageParameters { #[serde(rename = "blobStorageAbsoluteSasUri", default, skip_serializing_if = "Option::is_none")] pub blob_storage_absolute_sas_uri: Option, #[doc = "The start time of the usage. If not provided, usage will be reported since the beginning of data collection."] - #[serde(rename = "usageStartDate", default, skip_serializing_if = "Option::is_none")] - pub usage_start_date: Option, + #[serde(rename = "usageStartDate", with = "azure_core::date::rfc3339::option")] + pub usage_start_date: Option, } impl ExportResourceUsageParameters { pub fn new() -> Self { @@ -1696,8 +1696,8 @@ pub struct FormulaProperties { #[serde(rename = "osType", default, skip_serializing_if = "Option::is_none")] pub os_type: Option, #[doc = "The creation date of the formula."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Properties for creating a virtual machine."] #[serde(rename = "formulaContent", default, skip_serializing_if = "Option::is_none")] pub formula_content: Option, @@ -1788,8 +1788,8 @@ pub struct GalleryImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub author: Option, #[doc = "The creation date of the gallery image."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The description of the gallery image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -2127,8 +2127,8 @@ pub struct LabAnnouncementProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub enabled: Option, #[doc = "The time at which the announcement expires (null for never)"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Has this announcement expired?"] #[serde(default, skip_serializing_if = "Option::is_none")] pub expired: Option, @@ -2212,8 +2212,8 @@ impl LabCost { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LabCostDetailsProperties { #[doc = "The date of the cost item."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub date: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub date: Option, #[doc = "The cost component of the cost item."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cost: Option, @@ -2287,14 +2287,14 @@ pub struct LabCostProperties { #[serde(rename = "currencyCode", default, skip_serializing_if = "Option::is_none")] pub currency_code: Option, #[doc = "The start time of the cost data."] - #[serde(rename = "startDateTime", default, skip_serializing_if = "Option::is_none")] - pub start_date_time: Option, + #[serde(rename = "startDateTime", with = "azure_core::date::rfc3339::option")] + pub start_date_time: Option, #[doc = "The end time of the cost data."] - #[serde(rename = "endDateTime", default, skip_serializing_if = "Option::is_none")] - pub end_date_time: Option, + #[serde(rename = "endDateTime", with = "azure_core::date::rfc3339::option")] + pub end_date_time: Option, #[doc = "The creation date of the cost."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2379,8 +2379,8 @@ pub struct LabProperties { #[serde(rename = "mandatoryArtifactsResourceIdsWindows", default, skip_serializing_if = "Vec::is_empty")] pub mandatory_artifacts_resource_ids_windows: Vec, #[doc = "The creation date of the lab."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The setting to enable usage of premium data disks.\r\nWhen its value is 'Enabled', creation of standard or premium data disks is allowed.\r\nWhen its value is 'Disabled', only creation of standard data disks is allowed."] #[serde(rename = "premiumDataDisks", default, skip_serializing_if = "Option::is_none")] pub premium_data_disks: Option, @@ -2743,8 +2743,8 @@ pub struct LabVirtualMachineCreationParameterProperties { #[serde(rename = "ownerUserPrincipalName", default, skip_serializing_if = "Option::is_none")] pub owner_user_principal_name: Option, #[doc = "The creation date of the virtual machine."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The custom image identifier of the virtual machine."] #[serde(rename = "customImageId", default, skip_serializing_if = "Option::is_none")] pub custom_image_id: Option, @@ -2785,8 +2785,8 @@ pub struct LabVirtualMachineCreationParameterProperties { #[serde(rename = "networkInterface", default, skip_serializing_if = "Option::is_none")] pub network_interface: Option, #[doc = "The expiration date for VM."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Indicates whether another user can take ownership of the virtual machine"] #[serde(rename = "allowClaim", default, skip_serializing_if = "Option::is_none")] pub allow_claim: Option, @@ -2867,8 +2867,8 @@ pub struct LabVirtualMachineProperties { #[serde(rename = "createdByUser", default, skip_serializing_if = "Option::is_none")] pub created_by_user: Option, #[doc = "The creation date of the virtual machine."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The resource identifier (Microsoft.Compute) of the virtual machine."] #[serde(rename = "computeId", default, skip_serializing_if = "Option::is_none")] pub compute_id: Option, @@ -2927,8 +2927,8 @@ pub struct LabVirtualMachineProperties { #[serde(rename = "applicableSchedule", default, skip_serializing_if = "Option::is_none")] pub applicable_schedule: Option, #[doc = "The expiration date for VM."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Indicates whether another user can take ownership of the virtual machine"] #[serde(rename = "allowClaim", default, skip_serializing_if = "Option::is_none")] pub allow_claim: Option, @@ -3187,8 +3187,8 @@ pub struct NotificationChannelProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub events: Vec, #[doc = "The creation date of the notification channel."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3655,8 +3655,8 @@ pub struct PolicyProperties { #[serde(rename = "evaluatorType", default, skip_serializing_if = "Option::is_none")] pub evaluator_type: Option, #[doc = "The creation date of the policy."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4172,8 +4172,8 @@ pub struct ScheduleProperties { #[serde(rename = "notificationSettings", default, skip_serializing_if = "Option::is_none")] pub notification_settings: Option, #[doc = "The creation date of the schedule."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The resource ID to which the schedule belongs"] #[serde(rename = "targetResourceId", default, skip_serializing_if = "Option::is_none")] pub target_resource_id: Option, @@ -4710,11 +4710,11 @@ pub struct TargetCostProperties { #[serde(rename = "costThresholds", default, skip_serializing_if = "Vec::is_empty")] pub cost_thresholds: Vec, #[doc = "Reporting cycle start date."] - #[serde(rename = "cycleStartDateTime", default, skip_serializing_if = "Option::is_none")] - pub cycle_start_date_time: Option, + #[serde(rename = "cycleStartDateTime", with = "azure_core::date::rfc3339::option")] + pub cycle_start_date_time: Option, #[doc = "Reporting cycle end date."] - #[serde(rename = "cycleEndDateTime", default, skip_serializing_if = "Option::is_none")] - pub cycle_end_date_time: Option, + #[serde(rename = "cycleEndDateTime", with = "azure_core::date::rfc3339::option")] + pub cycle_end_date_time: Option, #[doc = "Reporting cycle type."] #[serde(rename = "cycleType", default, skip_serializing_if = "Option::is_none")] pub cycle_type: Option, @@ -4901,8 +4901,8 @@ pub struct UserProperties { #[serde(rename = "secretStore", default, skip_serializing_if = "Option::is_none")] pub secret_store: Option, #[doc = "The creation date of the user profile."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5011,8 +5011,8 @@ pub struct VirtualNetworkProperties { #[serde(rename = "subnetOverrides", default, skip_serializing_if = "Vec::is_empty")] pub subnet_overrides: Vec, #[doc = "The creation date of the virtual network."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/dfp/Cargo.toml b/services/mgmt/dfp/Cargo.toml index 875c54795d4..2c7ef97ebc3 100644 --- a/services/mgmt/dfp/Cargo.toml +++ b/services/mgmt/dfp/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs b/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs index 4d605e42ec4..eb307d248d4 100644 --- a/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs +++ b/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs @@ -450,8 +450,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -459,8 +459,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/digitaltwins/Cargo.toml b/services/mgmt/digitaltwins/Cargo.toml index fbe59f8e332..5b21f2ca97f 100644 --- a/services/mgmt/digitaltwins/Cargo.toml +++ b/services/mgmt/digitaltwins/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs b/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs index 344e87d8d79..d5b11516aa5 100644 --- a/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs +++ b/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs @@ -171,8 +171,8 @@ pub struct DigitalTwinsEndpointResourceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Time when the Endpoint was added to DigitalTwinsInstance."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The resource tags."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -288,11 +288,11 @@ impl DigitalTwinsPatchDescription { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DigitalTwinsProperties { #[doc = "Time when DigitalTwinsInstance was created."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Time when DigitalTwinsInstance was created."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The provisioning state."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/digitaltwins/src/package_2020_10/models.rs b/services/mgmt/digitaltwins/src/package_2020_10/models.rs index 1339ca3e62d..c9345f63221 100644 --- a/services/mgmt/digitaltwins/src/package_2020_10/models.rs +++ b/services/mgmt/digitaltwins/src/package_2020_10/models.rs @@ -170,8 +170,8 @@ pub struct DigitalTwinsEndpointResourceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Time when the Endpoint was added to DigitalTwinsInstance."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Dead letter storage secret. Will be obfuscated during read."] #[serde(rename = "deadLetterSecret", default, skip_serializing_if = "Option::is_none")] pub dead_letter_secret: Option, @@ -299,11 +299,11 @@ impl DigitalTwinsPatchDescription { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DigitalTwinsProperties { #[doc = "Time when DigitalTwinsInstance was created."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Time when DigitalTwinsInstance was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The provisioning state."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/digitaltwins/src/package_2020_12/models.rs b/services/mgmt/digitaltwins/src/package_2020_12/models.rs index b81b428d1d9..0112ad06b37 100644 --- a/services/mgmt/digitaltwins/src/package_2020_12/models.rs +++ b/services/mgmt/digitaltwins/src/package_2020_12/models.rs @@ -297,8 +297,8 @@ pub struct DigitalTwinsEndpointResourceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Time when the Endpoint was added to DigitalTwinsInstance."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Specifies the authentication type being used for connecting to the endpoint."] #[serde(rename = "authenticationType", default, skip_serializing_if = "Option::is_none")] pub authentication_type: Option, @@ -587,11 +587,11 @@ pub mod digital_twins_patch_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DigitalTwinsProperties { #[doc = "Time when DigitalTwinsInstance was created."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Time when DigitalTwinsInstance was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The provisioning state."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs b/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs index 45db3486046..33279438123 100644 --- a/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs +++ b/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs @@ -352,8 +352,8 @@ pub struct DigitalTwinsEndpointResourceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Time when the Endpoint was added to DigitalTwinsInstance."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified."] #[serde(rename = "authenticationType", default, skip_serializing_if = "Option::is_none")] pub authentication_type: Option, @@ -642,11 +642,11 @@ pub mod digital_twins_patch_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DigitalTwinsProperties { #[doc = "Time when DigitalTwinsInstance was created."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Time when DigitalTwinsInstance was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The provisioning state."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1126,8 +1126,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1135,8 +1135,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/digitaltwins/src/package_2022_05/models.rs b/services/mgmt/digitaltwins/src/package_2022_05/models.rs index 73e777f81b4..851f89e341c 100644 --- a/services/mgmt/digitaltwins/src/package_2022_05/models.rs +++ b/services/mgmt/digitaltwins/src/package_2022_05/models.rs @@ -352,8 +352,8 @@ pub struct DigitalTwinsEndpointResourceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Time when the Endpoint was added to DigitalTwinsInstance."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified."] #[serde(rename = "authenticationType", default, skip_serializing_if = "Option::is_none")] pub authentication_type: Option, @@ -644,11 +644,11 @@ pub mod digital_twins_patch_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DigitalTwinsProperties { #[doc = "Time when DigitalTwinsInstance was created."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Time when DigitalTwinsInstance was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "The provisioning state."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1128,8 +1128,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1137,8 +1137,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dnc/Cargo.toml b/services/mgmt/dnc/Cargo.toml index ee8674629a8..0e1b828dee4 100644 --- a/services/mgmt/dnc/Cargo.toml +++ b/services/mgmt/dnc/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dns/Cargo.toml b/services/mgmt/dns/Cargo.toml index 00d46d89f70..eaa1d5e1817 100644 --- a/services/mgmt/dns/Cargo.toml +++ b/services/mgmt/dns/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dnsresolver/Cargo.toml b/services/mgmt/dnsresolver/Cargo.toml index 340314b0de1..79c058e75d4 100644 --- a/services/mgmt/dnsresolver/Cargo.toml +++ b/services/mgmt/dnsresolver/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs b/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs index f6d90bf58c3..4184d3e7587 100644 --- a/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs +++ b/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs @@ -928,8 +928,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -937,8 +937,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dnsresolver/src/package_2022_07/models.rs b/services/mgmt/dnsresolver/src/package_2022_07/models.rs index 4314cc653ed..9f6928d9ab7 100644 --- a/services/mgmt/dnsresolver/src/package_2022_07/models.rs +++ b/services/mgmt/dnsresolver/src/package_2022_07/models.rs @@ -952,8 +952,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -961,8 +961,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/domainservices/Cargo.toml b/services/mgmt/domainservices/Cargo.toml index fda25adde8a..20d035d4688 100644 --- a/services/mgmt/domainservices/Cargo.toml +++ b/services/mgmt/domainservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/domainservices/src/package_2017_01/models.rs b/services/mgmt/domainservices/src/package_2017_01/models.rs index 563c800821e..cefaa09f4d9 100644 --- a/services/mgmt/domainservices/src/package_2017_01/models.rs +++ b/services/mgmt/domainservices/src/package_2017_01/models.rs @@ -193,8 +193,8 @@ pub struct DomainServiceProperties { #[serde(rename = "ldapsSettings", default, skip_serializing_if = "Option::is_none")] pub ldaps_settings: Option, #[doc = "Last domain evaluation run DateTime"] - #[serde(rename = "healthLastEvaluated", default, skip_serializing_if = "Option::is_none")] - pub health_last_evaluated: Option, + #[serde(rename = "healthLastEvaluated", with = "azure_core::date::rfc1123::option")] + pub health_last_evaluated: Option, #[doc = "List of Domain Health Monitors"] #[serde(rename = "healthMonitors", default, skip_serializing_if = "Vec::is_empty")] pub health_monitors: Vec, @@ -281,11 +281,11 @@ pub struct HealthAlert { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Health Alert Raised DateTime"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub raised: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub raised: Option, #[doc = "Health Alert Last Detected DateTime"] - #[serde(rename = "lastDetected", default, skip_serializing_if = "Option::is_none")] - pub last_detected: Option, + #[serde(rename = "lastDetected", with = "azure_core::date::rfc3339::option")] + pub last_detected: Option, #[doc = "Health Alert TSG Link"] #[serde(rename = "resolutionUri", default, skip_serializing_if = "Option::is_none")] pub resolution_uri: Option, @@ -332,8 +332,8 @@ pub struct LdapsSettings { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "NotAfter DateTime of configure ldaps certificate."] - #[serde(rename = "certificateNotAfter", default, skip_serializing_if = "Option::is_none")] - pub certificate_not_after: Option, + #[serde(rename = "certificateNotAfter", with = "azure_core::date::rfc3339::option")] + pub certificate_not_after: Option, #[doc = "A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled."] #[serde(rename = "externalAccess", default, skip_serializing_if = "Option::is_none")] pub external_access: Option, diff --git a/services/mgmt/domainservices/src/package_2017_06/models.rs b/services/mgmt/domainservices/src/package_2017_06/models.rs index 072949f5a7d..89a2aafb00b 100644 --- a/services/mgmt/domainservices/src/package_2017_06/models.rs +++ b/services/mgmt/domainservices/src/package_2017_06/models.rs @@ -415,8 +415,8 @@ pub struct DomainServiceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub sku: Option, #[doc = "Last domain evaluation run DateTime"] - #[serde(rename = "healthLastEvaluated", default, skip_serializing_if = "Option::is_none")] - pub health_last_evaluated: Option, + #[serde(rename = "healthLastEvaluated", with = "azure_core::date::rfc1123::option")] + pub health_last_evaluated: Option, #[doc = "List of Domain Health Monitors"] #[serde(rename = "healthMonitors", default, skip_serializing_if = "Vec::is_empty")] pub health_monitors: Vec, @@ -527,11 +527,11 @@ pub struct HealthAlert { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Health Alert Raised DateTime"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub raised: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub raised: Option, #[doc = "Health Alert Last Detected DateTime"] - #[serde(rename = "lastDetected", default, skip_serializing_if = "Option::is_none")] - pub last_detected: Option, + #[serde(rename = "lastDetected", with = "azure_core::date::rfc3339::option")] + pub last_detected: Option, #[doc = "Health Alert TSG Link"] #[serde(rename = "resolutionUri", default, skip_serializing_if = "Option::is_none")] pub resolution_uri: Option, @@ -578,8 +578,8 @@ pub struct LdapsSettings { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "NotAfter DateTime of configure ldaps certificate."] - #[serde(rename = "certificateNotAfter", default, skip_serializing_if = "Option::is_none")] - pub certificate_not_after: Option, + #[serde(rename = "certificateNotAfter", with = "azure_core::date::rfc3339::option")] + pub certificate_not_after: Option, #[doc = "A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled."] #[serde(rename = "externalAccess", default, skip_serializing_if = "Option::is_none")] pub external_access: Option, diff --git a/services/mgmt/domainservices/src/package_2020_01/models.rs b/services/mgmt/domainservices/src/package_2020_01/models.rs index 08c62fd11ce..fdc88fec184 100644 --- a/services/mgmt/domainservices/src/package_2020_01/models.rs +++ b/services/mgmt/domainservices/src/package_2020_01/models.rs @@ -467,11 +467,11 @@ pub struct HealthAlert { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Health Alert Raised DateTime"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub raised: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub raised: Option, #[doc = "Health Alert Last Detected DateTime"] - #[serde(rename = "lastDetected", default, skip_serializing_if = "Option::is_none")] - pub last_detected: Option, + #[serde(rename = "lastDetected", with = "azure_core::date::rfc3339::option")] + pub last_detected: Option, #[doc = "Health Alert TSG Link"] #[serde(rename = "resolutionUri", default, skip_serializing_if = "Option::is_none")] pub resolution_uri: Option, @@ -518,8 +518,8 @@ pub struct LdapsSettings { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "NotAfter DateTime of configure ldaps certificate."] - #[serde(rename = "certificateNotAfter", default, skip_serializing_if = "Option::is_none")] - pub certificate_not_after: Option, + #[serde(rename = "certificateNotAfter", with = "azure_core::date::rfc3339::option")] + pub certificate_not_after: Option, #[doc = "A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled."] #[serde(rename = "externalAccess", default, skip_serializing_if = "Option::is_none")] pub external_access: Option, @@ -897,8 +897,8 @@ pub struct ReplicaSet { #[serde(rename = "serviceStatus", default, skip_serializing_if = "Option::is_none")] pub service_status: Option, #[doc = "Last domain evaluation run DateTime"] - #[serde(rename = "healthLastEvaluated", default, skip_serializing_if = "Option::is_none")] - pub health_last_evaluated: Option, + #[serde(rename = "healthLastEvaluated", with = "azure_core::date::rfc1123::option")] + pub health_last_evaluated: Option, #[doc = "List of Domain Health Monitors"] #[serde(rename = "healthMonitors", default, skip_serializing_if = "Vec::is_empty")] pub health_monitors: Vec, diff --git a/services/mgmt/domainservices/src/package_2021_03/models.rs b/services/mgmt/domainservices/src/package_2021_03/models.rs index 71ffb98d256..9e040206f9a 100644 --- a/services/mgmt/domainservices/src/package_2021_03/models.rs +++ b/services/mgmt/domainservices/src/package_2021_03/models.rs @@ -557,11 +557,11 @@ pub struct HealthAlert { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Health Alert Raised DateTime"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub raised: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub raised: Option, #[doc = "Health Alert Last Detected DateTime"] - #[serde(rename = "lastDetected", default, skip_serializing_if = "Option::is_none")] - pub last_detected: Option, + #[serde(rename = "lastDetected", with = "azure_core::date::rfc3339::option")] + pub last_detected: Option, #[doc = "Health Alert TSG Link"] #[serde(rename = "resolutionUri", default, skip_serializing_if = "Option::is_none")] pub resolution_uri: Option, @@ -608,8 +608,8 @@ pub struct LdapsSettings { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "NotAfter DateTime of configure ldaps certificate."] - #[serde(rename = "certificateNotAfter", default, skip_serializing_if = "Option::is_none")] - pub certificate_not_after: Option, + #[serde(rename = "certificateNotAfter", with = "azure_core::date::rfc3339::option")] + pub certificate_not_after: Option, #[doc = "A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled."] #[serde(rename = "externalAccess", default, skip_serializing_if = "Option::is_none")] pub external_access: Option, @@ -987,8 +987,8 @@ pub struct ReplicaSet { #[serde(rename = "serviceStatus", default, skip_serializing_if = "Option::is_none")] pub service_status: Option, #[doc = "Last domain evaluation run DateTime"] - #[serde(rename = "healthLastEvaluated", default, skip_serializing_if = "Option::is_none")] - pub health_last_evaluated: Option, + #[serde(rename = "healthLastEvaluated", with = "azure_core::date::rfc1123::option")] + pub health_last_evaluated: Option, #[doc = "List of Domain Health Monitors"] #[serde(rename = "healthMonitors", default, skip_serializing_if = "Vec::is_empty")] pub health_monitors: Vec, @@ -1056,8 +1056,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1065,8 +1065,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/domainservices/src/package_2021_05/models.rs b/services/mgmt/domainservices/src/package_2021_05/models.rs index 097526fdd39..9845b0e95e1 100644 --- a/services/mgmt/domainservices/src/package_2021_05/models.rs +++ b/services/mgmt/domainservices/src/package_2021_05/models.rs @@ -47,8 +47,8 @@ impl CloudErrorBody { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigDiagnostics { #[doc = "Last domain configuration diagnostics DateTime"] - #[serde(rename = "lastExecuted", default, skip_serializing_if = "Option::is_none")] - pub last_executed: Option, + #[serde(rename = "lastExecuted", with = "azure_core::date::rfc1123::option")] + pub last_executed: Option, #[doc = "List of Configuration Diagnostics validator results."] #[serde(rename = "validatorResults", default, skip_serializing_if = "Vec::is_empty")] pub validator_results: Vec, @@ -665,11 +665,11 @@ pub struct HealthAlert { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "Health Alert Raised DateTime"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub raised: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub raised: Option, #[doc = "Health Alert Last Detected DateTime"] - #[serde(rename = "lastDetected", default, skip_serializing_if = "Option::is_none")] - pub last_detected: Option, + #[serde(rename = "lastDetected", with = "azure_core::date::rfc3339::option")] + pub last_detected: Option, #[doc = "Health Alert TSG Link"] #[serde(rename = "resolutionUri", default, skip_serializing_if = "Option::is_none")] pub resolution_uri: Option, @@ -716,8 +716,8 @@ pub struct LdapsSettings { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "NotAfter DateTime of configure ldaps certificate."] - #[serde(rename = "certificateNotAfter", default, skip_serializing_if = "Option::is_none")] - pub certificate_not_after: Option, + #[serde(rename = "certificateNotAfter", with = "azure_core::date::rfc3339::option")] + pub certificate_not_after: Option, #[doc = "A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled."] #[serde(rename = "externalAccess", default, skip_serializing_if = "Option::is_none")] pub external_access: Option, @@ -1095,8 +1095,8 @@ pub struct ReplicaSet { #[serde(rename = "serviceStatus", default, skip_serializing_if = "Option::is_none")] pub service_status: Option, #[doc = "Last domain evaluation run DateTime"] - #[serde(rename = "healthLastEvaluated", default, skip_serializing_if = "Option::is_none")] - pub health_last_evaluated: Option, + #[serde(rename = "healthLastEvaluated", with = "azure_core::date::rfc1123::option")] + pub health_last_evaluated: Option, #[doc = "List of Domain Health Monitors"] #[serde(rename = "healthMonitors", default, skip_serializing_if = "Vec::is_empty")] pub health_monitors: Vec, @@ -1164,8 +1164,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1173,8 +1173,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dynatrace/Cargo.toml b/services/mgmt/dynatrace/Cargo.toml index 44545632ca4..5693f19474c 100644 --- a/services/mgmt/dynatrace/Cargo.toml +++ b/services/mgmt/dynatrace/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/dynatrace/src/package_2021_09_01/models.rs b/services/mgmt/dynatrace/src/package_2021_09_01/models.rs index 0f470b520e8..9675dfd6cde 100644 --- a/services/mgmt/dynatrace/src/package_2021_09_01/models.rs +++ b/services/mgmt/dynatrace/src/package_2021_09_01/models.rs @@ -1047,8 +1047,8 @@ pub struct PlanData { #[serde(rename = "planDetails", default, skip_serializing_if = "Option::is_none")] pub plan_details: Option, #[doc = "date when plan was applied"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, } impl PlanData { pub fn new() -> Self { @@ -1732,8 +1732,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1741,8 +1741,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs b/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs index c7acd21f261..849d9298ccc 100644 --- a/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs @@ -1056,8 +1056,8 @@ pub struct PlanData { #[serde(rename = "planDetails", default, skip_serializing_if = "Option::is_none")] pub plan_details: Option, #[doc = "date when plan was applied"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, } impl PlanData { pub fn new() -> Self { @@ -1745,8 +1745,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1754,8 +1754,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/edgeorder/Cargo.toml b/services/mgmt/edgeorder/Cargo.toml index 1f00616db68..52dd99891f3 100644 --- a/services/mgmt/edgeorder/Cargo.toml +++ b/services/mgmt/edgeorder/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs b/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs index a6480248416..12648d3b9c6 100644 --- a/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs +++ b/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs @@ -1597,8 +1597,8 @@ pub struct OrderItemProperties { #[serde(rename = "addressDetails")] pub address_details: AddressDetails, #[doc = "Start time of order item"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Id of the order to which order item belongs to"] #[serde(rename = "orderId")] pub order_id: String, @@ -2281,8 +2281,8 @@ pub struct StageDetails { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "Stage start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl StageDetails { pub fn new() -> Self { @@ -2476,8 +2476,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2485,8 +2485,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/edgeorder/src/package_2021_12/models.rs b/services/mgmt/edgeorder/src/package_2021_12/models.rs index d54ed4f7146..63fa8cc0168 100644 --- a/services/mgmt/edgeorder/src/package_2021_12/models.rs +++ b/services/mgmt/edgeorder/src/package_2021_12/models.rs @@ -1643,8 +1643,8 @@ pub struct OrderItemProperties { #[serde(rename = "addressDetails")] pub address_details: AddressDetails, #[doc = "Start time of order item"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Id of the order to which order item belongs to"] #[serde(rename = "orderId")] pub order_id: String, @@ -2327,8 +2327,8 @@ pub struct StageDetails { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "Stage start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl StageDetails { pub fn new() -> Self { @@ -2522,8 +2522,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2531,8 +2531,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/edgeorderpartner/Cargo.toml b/services/mgmt/edgeorderpartner/Cargo.toml index 071521f881b..af14cfb8f7e 100644 --- a/services/mgmt/edgeorderpartner/Cargo.toml +++ b/services/mgmt/edgeorderpartner/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs b/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs index 77aacd07fac..236616e2389 100644 --- a/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs +++ b/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs @@ -569,8 +569,8 @@ pub struct StageDetails { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "Stage start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl StageDetails { pub fn new() -> Self { diff --git a/services/mgmt/education/Cargo.toml b/services/mgmt/education/Cargo.toml index fc81d879f67..6234376f087 100644 --- a/services/mgmt/education/Cargo.toml +++ b/services/mgmt/education/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/education/src/package_2021_12_01_preview/models.rs b/services/mgmt/education/src/package_2021_12_01_preview/models.rs index 2f4154ceacc..67cd550c45c 100644 --- a/services/mgmt/education/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/education/src/package_2021_12_01_preview/models.rs @@ -59,14 +59,14 @@ pub struct GrantDetailProperties { #[serde(rename = "offerCap", default, skip_serializing_if = "Option::is_none")] pub offer_cap: Option, #[doc = "Grant Effective Date"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "Grant Offer Type"] #[serde(rename = "offerType", default, skip_serializing_if = "Option::is_none")] pub offer_type: Option, #[doc = "Expiration Date"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Grant status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -346,11 +346,11 @@ pub struct LabProperties { #[doc = "Detail description of this lab"] pub description: String, #[doc = "Default expiration date for each student in this lab"] - #[serde(rename = "expirationDate")] - pub expiration_date: String, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339")] + pub expiration_date: time::OffsetDateTime, #[doc = "Lab creation date"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "The status of this lab"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -368,7 +368,7 @@ pub struct LabProperties { pub total_allocated_budget: Option, } impl LabProperties { - pub fn new(display_name: String, budget_per_student: Amount, description: String, expiration_date: String) -> Self { + pub fn new(display_name: String, budget_per_student: Amount, description: String, expiration_date: time::OffsetDateTime) -> Self { Self { display_name, budget_per_student, @@ -667,8 +667,8 @@ pub struct StudentLabProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Date the lab will expire and by default will be the expiration date for each student in this lab"] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "Student Role"] #[serde(default, skip_serializing_if = "Option::is_none")] pub role: Option, @@ -682,8 +682,8 @@ pub struct StudentLabProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "User Added Date"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "Lab Scope. /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Education/labs/default"] #[serde(rename = "labScope", default, skip_serializing_if = "Option::is_none")] pub lab_scope: Option, @@ -816,20 +816,20 @@ pub struct StudentProperties { #[serde(rename = "subscriptionId", default, skip_serializing_if = "Option::is_none")] pub subscription_id: Option, #[doc = "Date this student is set to expire from the lab."] - #[serde(rename = "expirationDate")] - pub expiration_date: String, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339")] + pub expiration_date: time::OffsetDateTime, #[doc = "Student Lab Status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Date student was added to the lab"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, #[doc = "Subscription alias"] #[serde(rename = "subscriptionAlias", default, skip_serializing_if = "Option::is_none")] pub subscription_alias: Option, #[doc = "subscription invite last sent date"] - #[serde(rename = "subscriptionInviteLastSentDate", default, skip_serializing_if = "Option::is_none")] - pub subscription_invite_last_sent_date: Option, + #[serde(rename = "subscriptionInviteLastSentDate", with = "azure_core::date::rfc3339::option")] + pub subscription_invite_last_sent_date: Option, } impl StudentProperties { pub fn new( @@ -838,7 +838,7 @@ impl StudentProperties { email: String, role: student_properties::Role, budget: Amount, - expiration_date: String, + expiration_date: time::OffsetDateTime, ) -> Self { Self { first_name, @@ -948,8 +948,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -957,8 +957,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/elastic/Cargo.toml b/services/mgmt/elastic/Cargo.toml index 5b555690487..11433e737b9 100644 --- a/services/mgmt/elastic/Cargo.toml +++ b/services/mgmt/elastic/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/elastic/src/package_2020_07_01/models.rs b/services/mgmt/elastic/src/package_2020_07_01/models.rs index 0723ed6c122..d0182b0bd7b 100644 --- a/services/mgmt/elastic/src/package_2020_07_01/models.rs +++ b/services/mgmt/elastic/src/package_2020_07_01/models.rs @@ -889,8 +889,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -898,8 +898,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs b/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs index 0723ed6c122..d0182b0bd7b 100644 --- a/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs @@ -889,8 +889,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -898,8 +898,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs b/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs index 0980cfa8f6e..0ea7fa3e44b 100644 --- a/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs @@ -925,8 +925,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -934,8 +934,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs b/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs index 24acefcc166..87c861da52d 100644 --- a/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs +++ b/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs @@ -955,8 +955,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -964,8 +964,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/elasticsan/Cargo.toml b/services/mgmt/elasticsan/Cargo.toml index bf6bafd4b5a..d8cccbe3b79 100644 --- a/services/mgmt/elasticsan/Cargo.toml +++ b/services/mgmt/elasticsan/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs b/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs index 74cac1c1234..1d57424a32c 100644 --- a/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs +++ b/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs @@ -974,8 +974,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -983,8 +983,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/engagementfabric/Cargo.toml b/services/mgmt/engagementfabric/Cargo.toml index eedb7cc344b..42c8bd8e904 100644 --- a/services/mgmt/engagementfabric/Cargo.toml +++ b/services/mgmt/engagementfabric/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/enterpriseknowledgegraph/Cargo.toml b/services/mgmt/enterpriseknowledgegraph/Cargo.toml index 0c6fbed7d2b..174759aece3 100644 --- a/services/mgmt/enterpriseknowledgegraph/Cargo.toml +++ b/services/mgmt/enterpriseknowledgegraph/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/eventgrid/Cargo.toml b/services/mgmt/eventgrid/Cargo.toml index 4ea2ae2f7ab..abdc0d9b2c5 100644 --- a/services/mgmt/eventgrid/Cargo.toml +++ b/services/mgmt/eventgrid/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs b/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs index 3e8b245c446..225ed8d085c 100644 --- a/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs +++ b/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs @@ -223,8 +223,8 @@ pub struct ChannelProperties { #[serde(rename = "readinessState", default, skip_serializing_if = "Option::is_none")] pub readiness_state: Option, #[doc = "Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated,\r\nthe channel and corresponding partner topic are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, } impl ChannelProperties { pub fn new() -> Self { @@ -369,8 +369,8 @@ impl ChannelUpdateParameters { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ChannelUpdateParametersProperties { #[doc = "Expiration time of the event channel. If this timer expires while the corresponding partner topic or partner destination is never activated,\r\nthe channel and corresponding partner topic or partner destination are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, #[doc = "Properties of the corresponding partner destination of a Channel."] #[serde(rename = "partnerDestinationInfo", default, skip_serializing_if = "Option::is_none")] pub partner_destination_info: Option, @@ -1230,8 +1230,8 @@ pub struct EventChannelProperties { #[serde(rename = "partnerTopicReadinessState", default, skip_serializing_if = "Option::is_none")] pub partner_topic_readiness_state: Option, #[doc = "Expiration time of the event channel. If this timer expires while the corresponding partner topic is never activated,\r\nthe event channel and corresponding partner topic are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, #[doc = "Filter for the Event Channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filter: Option, @@ -1597,8 +1597,8 @@ pub struct EventSubscriptionProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec, #[doc = "Expiration time of the event subscription."] - #[serde(rename = "expirationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_utc: Option, + #[serde(rename = "expirationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_utc: Option, #[doc = "The event delivery schema for the event subscription."] #[serde(rename = "eventDeliverySchema", default, skip_serializing_if = "Option::is_none")] pub event_delivery_schema: Option, @@ -1728,8 +1728,8 @@ pub struct EventSubscriptionUpdateParameters { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec, #[doc = "Information about the expiration time for the event subscription."] - #[serde(rename = "expirationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_utc: Option, + #[serde(rename = "expirationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_utc: Option, #[doc = "The event delivery schema for the event subscription."] #[serde(rename = "eventDeliverySchema", default, skip_serializing_if = "Option::is_none")] pub event_delivery_schema: Option, @@ -2485,8 +2485,8 @@ pub struct Partner { #[serde(rename = "partnerName", default, skip_serializing_if = "Option::is_none")] pub partner_name: Option, #[doc = "Expiration time of the partner authorization. If this timer expires, any request from this partner to create, update or delete resources in subscriber's\r\ncontext will fail. If specified, the allowed values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration.\r\nIf not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or 7 if this value is not specified."] - #[serde(rename = "authorizationExpirationTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub authorization_expiration_time_in_utc: Option, + #[serde(rename = "authorizationExpirationTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub authorization_expiration_time_in_utc: Option, } impl Partner { pub fn new() -> Self { @@ -2808,8 +2808,8 @@ pub struct PartnerDestinationProperties { #[serde(rename = "endpointServiceContext", default, skip_serializing_if = "Option::is_none")] pub endpoint_service_context: Option, #[doc = "Expiration time of the partner destination. If this timer expires and the partner destination was never activated,\r\nthe partner destination and corresponding channel are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, #[doc = "Provisioning state of the partner destination."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3573,8 +3573,8 @@ pub struct PartnerTopicProperties { #[serde(rename = "eventTypeInfo", default, skip_serializing_if = "Option::is_none")] pub event_type_info: Option, #[doc = "Expiration time of the partner topic. If this timer expires while the partner topic is still never activated,\r\nthe partner topic and corresponding event channel are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, #[doc = "Provisioning state of the partner topic."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -3983,8 +3983,8 @@ pub struct ResourceMoveChangeHistory { #[serde(rename = "resourceGroupName", default, skip_serializing_if = "Option::is_none")] pub resource_group_name: Option, #[doc = "UTC timestamp of when the resource was changed."] - #[serde(rename = "changedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub changed_time_utc: Option, + #[serde(rename = "changedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub changed_time_utc: Option, } impl ResourceMoveChangeHistory { pub fn new() -> Self { @@ -5371,8 +5371,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5380,8 +5380,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/eventgrid/src/package_2021_12/models.rs b/services/mgmt/eventgrid/src/package_2021_12/models.rs index 8a1ba5e1d1a..a2c930ddd0b 100644 --- a/services/mgmt/eventgrid/src/package_2021_12/models.rs +++ b/services/mgmt/eventgrid/src/package_2021_12/models.rs @@ -1048,8 +1048,8 @@ pub struct EventSubscriptionProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec, #[doc = "Expiration time of the event subscription."] - #[serde(rename = "expirationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_utc: Option, + #[serde(rename = "expirationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_utc: Option, #[doc = "The event delivery schema for the event subscription."] #[serde(rename = "eventDeliverySchema", default, skip_serializing_if = "Option::is_none")] pub event_delivery_schema: Option, @@ -1179,8 +1179,8 @@ pub struct EventSubscriptionUpdateParameters { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec, #[doc = "Information about the expiration time for the event subscription."] - #[serde(rename = "expirationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_utc: Option, + #[serde(rename = "expirationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_utc: Option, #[doc = "The event delivery schema for the event subscription."] #[serde(rename = "eventDeliverySchema", default, skip_serializing_if = "Option::is_none")] pub event_delivery_schema: Option, @@ -3044,8 +3044,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3053,8 +3053,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/eventgrid/src/package_2022_06/models.rs b/services/mgmt/eventgrid/src/package_2022_06/models.rs index db2029b50bc..307661a8109 100644 --- a/services/mgmt/eventgrid/src/package_2022_06/models.rs +++ b/services/mgmt/eventgrid/src/package_2022_06/models.rs @@ -184,8 +184,8 @@ pub struct ChannelProperties { #[serde(rename = "readinessState", default, skip_serializing_if = "Option::is_none")] pub readiness_state: Option, #[doc = "Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated,\r\nthe channel and corresponding partner topic are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, } impl ChannelProperties { pub fn new() -> Self { @@ -332,8 +332,8 @@ impl ChannelUpdateParameters { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ChannelUpdateParametersProperties { #[doc = "Expiration time of the channel. If this timer expires while the corresponding partner topic or partner destination is never activated,\r\nthe channel and corresponding partner topic or partner destination are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, #[doc = "Update properties for the corresponding partner topic of a channel."] #[serde(rename = "partnerTopicInfo", default, skip_serializing_if = "Option::is_none")] pub partner_topic_info: Option, @@ -1344,8 +1344,8 @@ pub struct EventSubscriptionProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec, #[doc = "Expiration time of the event subscription."] - #[serde(rename = "expirationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_utc: Option, + #[serde(rename = "expirationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_utc: Option, #[doc = "The event delivery schema for the event subscription."] #[serde(rename = "eventDeliverySchema", default, skip_serializing_if = "Option::is_none")] pub event_delivery_schema: Option, @@ -1475,8 +1475,8 @@ pub struct EventSubscriptionUpdateParameters { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec, #[doc = "Information about the expiration time for the event subscription."] - #[serde(rename = "expirationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_utc: Option, + #[serde(rename = "expirationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_utc: Option, #[doc = "The event delivery schema for the event subscription."] #[serde(rename = "eventDeliverySchema", default, skip_serializing_if = "Option::is_none")] pub event_delivery_schema: Option, @@ -2220,8 +2220,8 @@ pub struct Partner { #[serde(rename = "partnerName", default, skip_serializing_if = "Option::is_none")] pub partner_name: Option, #[doc = "Expiration time of the partner authorization. If this timer expires, any request from this partner to create, update or delete resources in subscriber's\r\ncontext will fail. If specified, the allowed values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration.\r\nIf not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or 7 if this value is not specified."] - #[serde(rename = "authorizationExpirationTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub authorization_expiration_time_in_utc: Option, + #[serde(rename = "authorizationExpirationTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub authorization_expiration_time_in_utc: Option, } impl Partner { pub fn new() -> Self { @@ -2885,8 +2885,8 @@ pub struct PartnerTopicProperties { #[serde(rename = "eventTypeInfo", default, skip_serializing_if = "Option::is_none")] pub event_type_info: Option, #[doc = "Expiration time of the partner topic. If this timer expires while the partner topic is still never activated,\r\nthe partner topic and corresponding event channel are deleted."] - #[serde(rename = "expirationTimeIfNotActivatedUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_if_not_activated_utc: Option, + #[serde(rename = "expirationTimeIfNotActivatedUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_if_not_activated_utc: Option, #[doc = "Provisioning state of the partner topic."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4438,8 +4438,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4447,8 +4447,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/eventhub/Cargo.toml b/services/mgmt/eventhub/Cargo.toml index b5fda478b52..8465eb123b6 100644 --- a/services/mgmt/eventhub/Cargo.toml +++ b/services/mgmt/eventhub/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/eventhub/src/package_2021_01_preview/models.rs b/services/mgmt/eventhub/src/package_2021_01_preview/models.rs index c48fa3ef604..40958c1266d 100644 --- a/services/mgmt/eventhub/src/package_2021_01_preview/models.rs +++ b/services/mgmt/eventhub/src/package_2021_01_preview/models.rs @@ -315,11 +315,11 @@ pub mod consumer_group { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Exact time the message was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored."] #[serde(rename = "userMetadata", default, skip_serializing_if = "Option::is_none")] pub user_metadata: Option, @@ -422,11 +422,11 @@ pub mod eh_namespace { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the Namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the Namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -582,11 +582,11 @@ pub mod eventhub { #[serde(rename = "partitionIds", default, skip_serializing_if = "Vec::is_empty")] pub partition_ids: Vec, #[doc = "Exact time the Event Hub was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Number of days to retain the events for this Event Hub, value should be 1 to 7 days"] #[serde(rename = "messageRetentionInDays", default, skip_serializing_if = "Option::is_none")] pub message_retention_in_days: Option, @@ -1244,8 +1244,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1253,8 +1253,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/eventhub/src/package_2021_06_preview/models.rs b/services/mgmt/eventhub/src/package_2021_06_preview/models.rs index fd1bd064715..6bd4839d9d3 100644 --- a/services/mgmt/eventhub/src/package_2021_06_preview/models.rs +++ b/services/mgmt/eventhub/src/package_2021_06_preview/models.rs @@ -468,11 +468,11 @@ pub mod consumer_group { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Exact time the message was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored."] #[serde(rename = "userMetadata", default, skip_serializing_if = "Option::is_none")] pub user_metadata: Option, @@ -575,11 +575,11 @@ pub mod eh_namespace { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the Namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the Namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -762,11 +762,11 @@ pub mod eventhub { #[serde(rename = "partitionIds", default, skip_serializing_if = "Vec::is_empty")] pub partition_ids: Vec, #[doc = "Exact time the Event Hub was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Number of days to retain the events for this Event Hub, value should be 1 to 7 days"] #[serde(rename = "messageRetentionInDays", default, skip_serializing_if = "Option::is_none")] pub message_retention_in_days: Option, @@ -1484,8 +1484,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1493,8 +1493,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/eventhub/src/package_2021_11/models.rs b/services/mgmt/eventhub/src/package_2021_11/models.rs index 5beed17eb13..d607260f990 100644 --- a/services/mgmt/eventhub/src/package_2021_11/models.rs +++ b/services/mgmt/eventhub/src/package_2021_11/models.rs @@ -468,11 +468,11 @@ pub mod consumer_group { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Exact time the message was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored."] #[serde(rename = "userMetadata", default, skip_serializing_if = "Option::is_none")] pub user_metadata: Option, @@ -584,11 +584,11 @@ pub mod eh_namespace { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the Namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the Namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -810,11 +810,11 @@ pub mod eventhub { #[serde(rename = "partitionIds", default, skip_serializing_if = "Vec::is_empty")] pub partition_ids: Vec, #[doc = "Exact time the Event Hub was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Number of days to retain the events for this Event Hub, value should be 1 to 7 days"] #[serde(rename = "messageRetentionInDays", default, skip_serializing_if = "Option::is_none")] pub message_retention_in_days: Option, @@ -1465,11 +1465,11 @@ pub mod schema_group { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Exact time the Schema Group was updated"] - #[serde(rename = "updatedAtUtc", default, skip_serializing_if = "Option::is_none")] - pub updated_at_utc: Option, + #[serde(rename = "updatedAtUtc", with = "azure_core::date::rfc3339::option")] + pub updated_at_utc: Option, #[doc = "Exact time the Schema Group was created."] - #[serde(rename = "createdAtUtc", default, skip_serializing_if = "Option::is_none")] - pub created_at_utc: Option, + #[serde(rename = "createdAtUtc", with = "azure_core::date::rfc3339::option")] + pub created_at_utc: Option, #[doc = "The ETag value."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -1755,8 +1755,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1764,8 +1764,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/eventhub/src/package_2022_01_preview/models.rs b/services/mgmt/eventhub/src/package_2022_01_preview/models.rs index 25c52f2a28c..34b6296a316 100644 --- a/services/mgmt/eventhub/src/package_2022_01_preview/models.rs +++ b/services/mgmt/eventhub/src/package_2022_01_preview/models.rs @@ -584,11 +584,11 @@ pub mod consumer_group { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Exact time the message was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored."] #[serde(rename = "userMetadata", default, skip_serializing_if = "Option::is_none")] pub user_metadata: Option, @@ -703,11 +703,11 @@ pub mod eh_namespace { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the Namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the Namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -1021,11 +1021,11 @@ pub mod eventhub { #[serde(rename = "partitionIds", default, skip_serializing_if = "Vec::is_empty")] pub partition_ids: Vec, #[doc = "Exact time the Event Hub was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Number of days to retain the events for this Event Hub, value should be 1 to 7 days"] #[serde(rename = "messageRetentionInDays", default, skip_serializing_if = "Option::is_none")] pub message_retention_in_days: Option, @@ -2004,11 +2004,11 @@ pub mod schema_group { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Exact time the Schema Group was updated"] - #[serde(rename = "updatedAtUtc", default, skip_serializing_if = "Option::is_none")] - pub updated_at_utc: Option, + #[serde(rename = "updatedAtUtc", with = "azure_core::date::rfc3339::option")] + pub updated_at_utc: Option, #[doc = "Exact time the Schema Group was created."] - #[serde(rename = "createdAtUtc", default, skip_serializing_if = "Option::is_none")] - pub created_at_utc: Option, + #[serde(rename = "createdAtUtc", with = "azure_core::date::rfc3339::option")] + pub created_at_utc: Option, #[doc = "The ETag value."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -2363,8 +2363,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2372,8 +2372,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs index 2a14b2e1a9d..190ad3a7777 100644 --- a/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs @@ -365,11 +365,11 @@ pub mod consumer_group { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "Exact time the message was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored."] #[serde(rename = "userMetadata", default, skip_serializing_if = "Option::is_none")] pub user_metadata: Option, @@ -469,11 +469,11 @@ pub mod eh_namespace { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the Namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the Namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -644,11 +644,11 @@ pub mod eventhub { #[serde(rename = "partitionIds", default, skip_serializing_if = "Vec::is_empty")] pub partition_ids: Vec, #[doc = "Exact time the Event Hub was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The exact time the message was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Number of days to retain the events for this Event Hub, value should be 1 to 7 days"] #[serde(rename = "messageRetentionInDays", default, skip_serializing_if = "Option::is_none")] pub message_retention_in_days: Option, diff --git a/services/mgmt/extendedlocation/Cargo.toml b/services/mgmt/extendedlocation/Cargo.toml index f5e5382b7e0..94fa94276f8 100644 --- a/services/mgmt/extendedlocation/Cargo.toml +++ b/services/mgmt/extendedlocation/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs index d4916cd7f0b..d07e84ee753 100644 --- a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs @@ -378,8 +378,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -387,8 +387,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs b/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs index 6e40269bd95..2bdbfe676d3 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs @@ -443,8 +443,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -452,8 +452,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs index 24d204e89e1..6d86c2aaee3 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs @@ -585,8 +585,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -594,8 +594,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/fluidrelay/Cargo.toml b/services/mgmt/fluidrelay/Cargo.toml index 7f9ae5a5137..36f71692c7b 100644 --- a/services/mgmt/fluidrelay/Cargo.toml +++ b/services/mgmt/fluidrelay/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs b/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs index 143d6b216af..e89142eca21 100644 --- a/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs @@ -487,8 +487,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -496,8 +496,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs b/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs index 4f090d248bb..d86e0d0d9a7 100644 --- a/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs @@ -559,8 +559,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -568,8 +568,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs b/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs index 5af4d8edd22..1dd3f6bb993 100644 --- a/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs @@ -166,11 +166,11 @@ pub struct FluidRelayContainerProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation time of this resource"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time when user access this resource"] - #[serde(rename = "lastAccessTime", default, skip_serializing_if = "Option::is_none")] - pub last_access_time: Option, + #[serde(rename = "lastAccessTime", with = "azure_core::date::rfc3339::option")] + pub last_access_time: Option, } impl FluidRelayContainerProperties { pub fn new() -> Self { @@ -565,8 +565,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -574,8 +574,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs b/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs index e668d11a9a6..f06a7ab1c23 100644 --- a/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs @@ -166,11 +166,11 @@ pub struct FluidRelayContainerProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation time of this resource"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time when user access this resource"] - #[serde(rename = "lastAccessTime", default, skip_serializing_if = "Option::is_none")] - pub last_access_time: Option, + #[serde(rename = "lastAccessTime", with = "azure_core::date::rfc3339::option")] + pub last_access_time: Option, } impl FluidRelayContainerProperties { pub fn new() -> Self { @@ -610,8 +610,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -619,8 +619,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs b/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs index e668d11a9a6..f06a7ab1c23 100644 --- a/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs @@ -166,11 +166,11 @@ pub struct FluidRelayContainerProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The creation time of this resource"] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "Last time when user access this resource"] - #[serde(rename = "lastAccessTime", default, skip_serializing_if = "Option::is_none")] - pub last_access_time: Option, + #[serde(rename = "lastAccessTime", with = "azure_core::date::rfc3339::option")] + pub last_access_time: Option, } impl FluidRelayContainerProperties { pub fn new() -> Self { @@ -610,8 +610,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -619,8 +619,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/frontdoor/Cargo.toml b/services/mgmt/frontdoor/Cargo.toml index 3fb029d365f..6b875e9ead1 100644 --- a/services/mgmt/frontdoor/Cargo.toml +++ b/services/mgmt/frontdoor/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/frontdoor/src/package_2020_04/models.rs b/services/mgmt/frontdoor/src/package_2020_04/models.rs index 26b9059ca5b..c7f95a74a2f 100644 --- a/services/mgmt/frontdoor/src/package_2020_04/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_04/models.rs @@ -1931,11 +1931,11 @@ pub struct LatencyScorecardProperties { #[serde(rename = "endpointB", default, skip_serializing_if = "Option::is_none")] pub endpoint_b: Option, #[doc = "The start time of the Latency Scorecard in UTC"] - #[serde(rename = "startDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub start_date_time_utc: Option, + #[serde(rename = "startDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub start_date_time_utc: Option, #[doc = "The end time of the Latency Scorecard in UTC"] - #[serde(rename = "endDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub end_date_time_utc: Option, + #[serde(rename = "endDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub end_date_time_utc: Option, #[doc = "The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html"] #[serde(default, skip_serializing_if = "Option::is_none")] pub country: Option, diff --git a/services/mgmt/frontdoor/src/package_2020_04/operations.rs b/services/mgmt/frontdoor/src/package_2020_04/operations.rs index 11d62e4a399..d0d7d45162b 100644 --- a/services/mgmt/frontdoor/src/package_2020_04/operations.rs +++ b/services/mgmt/frontdoor/src/package_2020_04/operations.rs @@ -1205,8 +1205,8 @@ pub mod reports { resource_group_name: impl Into, profile_name: impl Into, experiment_name: impl Into, - start_date_time_utc: impl Into, - end_date_time_utc: impl Into, + start_date_time_utc: impl Into, + end_date_time_utc: impl Into, aggregation_interval: impl Into, timeseries_type: impl Into, ) -> get_timeseries::Builder { @@ -1305,8 +1305,8 @@ pub mod reports { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) experiment_name: String, - pub(crate) start_date_time_utc: String, - pub(crate) end_date_time_utc: String, + pub(crate) start_date_time_utc: time::OffsetDateTime, + pub(crate) end_date_time_utc: time::OffsetDateTime, pub(crate) aggregation_interval: String, pub(crate) timeseries_type: String, pub(crate) endpoint: Option, @@ -1339,9 +1339,13 @@ pub mod reports { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2019-11-01"); let start_date_time_utc = &this.start_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("startDateTimeUTC", start_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("startDateTimeUTC", &start_date_time_utc.to_string()); let end_date_time_utc = &this.end_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("endDateTimeUTC", end_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("endDateTimeUTC", &end_date_time_utc.to_string()); let aggregation_interval = &this.aggregation_interval; req.url_mut() .query_pairs_mut() diff --git a/services/mgmt/frontdoor/src/package_2020_05/models.rs b/services/mgmt/frontdoor/src/package_2020_05/models.rs index 9993f3d3169..5464154899c 100644 --- a/services/mgmt/frontdoor/src/package_2020_05/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_05/models.rs @@ -1937,11 +1937,11 @@ pub struct LatencyScorecardProperties { #[serde(rename = "endpointB", default, skip_serializing_if = "Option::is_none")] pub endpoint_b: Option, #[doc = "The start time of the Latency Scorecard in UTC"] - #[serde(rename = "startDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub start_date_time_utc: Option, + #[serde(rename = "startDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub start_date_time_utc: Option, #[doc = "The end time of the Latency Scorecard in UTC"] - #[serde(rename = "endDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub end_date_time_utc: Option, + #[serde(rename = "endDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub end_date_time_utc: Option, #[doc = "The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html"] #[serde(default, skip_serializing_if = "Option::is_none")] pub country: Option, diff --git a/services/mgmt/frontdoor/src/package_2020_05/operations.rs b/services/mgmt/frontdoor/src/package_2020_05/operations.rs index 29523ec58f4..0045c28bf7d 100644 --- a/services/mgmt/frontdoor/src/package_2020_05/operations.rs +++ b/services/mgmt/frontdoor/src/package_2020_05/operations.rs @@ -1211,8 +1211,8 @@ pub mod reports { resource_group_name: impl Into, profile_name: impl Into, experiment_name: impl Into, - start_date_time_utc: impl Into, - end_date_time_utc: impl Into, + start_date_time_utc: impl Into, + end_date_time_utc: impl Into, aggregation_interval: impl Into, timeseries_type: impl Into, ) -> get_timeseries::Builder { @@ -1311,8 +1311,8 @@ pub mod reports { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) experiment_name: String, - pub(crate) start_date_time_utc: String, - pub(crate) end_date_time_utc: String, + pub(crate) start_date_time_utc: time::OffsetDateTime, + pub(crate) end_date_time_utc: time::OffsetDateTime, pub(crate) aggregation_interval: String, pub(crate) timeseries_type: String, pub(crate) endpoint: Option, @@ -1345,9 +1345,13 @@ pub mod reports { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2019-11-01"); let start_date_time_utc = &this.start_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("startDateTimeUTC", start_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("startDateTimeUTC", &start_date_time_utc.to_string()); let end_date_time_utc = &this.end_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("endDateTimeUTC", end_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("endDateTimeUTC", &end_date_time_utc.to_string()); let aggregation_interval = &this.aggregation_interval; req.url_mut() .query_pairs_mut() diff --git a/services/mgmt/frontdoor/src/package_2020_11/models.rs b/services/mgmt/frontdoor/src/package_2020_11/models.rs index d61132ddfdb..f9ca626f433 100644 --- a/services/mgmt/frontdoor/src/package_2020_11/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_11/models.rs @@ -1937,11 +1937,11 @@ pub struct LatencyScorecardProperties { #[serde(rename = "endpointB", default, skip_serializing_if = "Option::is_none")] pub endpoint_b: Option, #[doc = "The start time of the Latency Scorecard in UTC"] - #[serde(rename = "startDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub start_date_time_utc: Option, + #[serde(rename = "startDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub start_date_time_utc: Option, #[doc = "The end time of the Latency Scorecard in UTC"] - #[serde(rename = "endDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub end_date_time_utc: Option, + #[serde(rename = "endDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub end_date_time_utc: Option, #[doc = "The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html"] #[serde(default, skip_serializing_if = "Option::is_none")] pub country: Option, diff --git a/services/mgmt/frontdoor/src/package_2020_11/operations.rs b/services/mgmt/frontdoor/src/package_2020_11/operations.rs index 79ea38e8639..a2137fd6449 100644 --- a/services/mgmt/frontdoor/src/package_2020_11/operations.rs +++ b/services/mgmt/frontdoor/src/package_2020_11/operations.rs @@ -1211,8 +1211,8 @@ pub mod reports { resource_group_name: impl Into, profile_name: impl Into, experiment_name: impl Into, - start_date_time_utc: impl Into, - end_date_time_utc: impl Into, + start_date_time_utc: impl Into, + end_date_time_utc: impl Into, aggregation_interval: impl Into, timeseries_type: impl Into, ) -> get_timeseries::Builder { @@ -1311,8 +1311,8 @@ pub mod reports { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) experiment_name: String, - pub(crate) start_date_time_utc: String, - pub(crate) end_date_time_utc: String, + pub(crate) start_date_time_utc: time::OffsetDateTime, + pub(crate) end_date_time_utc: time::OffsetDateTime, pub(crate) aggregation_interval: String, pub(crate) timeseries_type: String, pub(crate) endpoint: Option, @@ -1345,9 +1345,13 @@ pub mod reports { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2019-11-01"); let start_date_time_utc = &this.start_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("startDateTimeUTC", start_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("startDateTimeUTC", &start_date_time_utc.to_string()); let end_date_time_utc = &this.end_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("endDateTimeUTC", end_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("endDateTimeUTC", &end_date_time_utc.to_string()); let aggregation_interval = &this.aggregation_interval; req.url_mut() .query_pairs_mut() diff --git a/services/mgmt/frontdoor/src/package_2021_06/models.rs b/services/mgmt/frontdoor/src/package_2021_06/models.rs index 4e80526d4d1..e3628e716a0 100644 --- a/services/mgmt/frontdoor/src/package_2021_06/models.rs +++ b/services/mgmt/frontdoor/src/package_2021_06/models.rs @@ -1940,11 +1940,11 @@ pub struct LatencyScorecardProperties { #[serde(rename = "endpointB", default, skip_serializing_if = "Option::is_none")] pub endpoint_b: Option, #[doc = "The start time of the Latency Scorecard in UTC"] - #[serde(rename = "startDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub start_date_time_utc: Option, + #[serde(rename = "startDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub start_date_time_utc: Option, #[doc = "The end time of the Latency Scorecard in UTC"] - #[serde(rename = "endDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub end_date_time_utc: Option, + #[serde(rename = "endDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub end_date_time_utc: Option, #[doc = "The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html"] #[serde(default, skip_serializing_if = "Option::is_none")] pub country: Option, diff --git a/services/mgmt/frontdoor/src/package_2021_06/operations.rs b/services/mgmt/frontdoor/src/package_2021_06/operations.rs index ebc6a604df8..b3771993e1b 100644 --- a/services/mgmt/frontdoor/src/package_2021_06/operations.rs +++ b/services/mgmt/frontdoor/src/package_2021_06/operations.rs @@ -3028,8 +3028,8 @@ pub mod reports { resource_group_name: impl Into, profile_name: impl Into, experiment_name: impl Into, - start_date_time_utc: impl Into, - end_date_time_utc: impl Into, + start_date_time_utc: impl Into, + end_date_time_utc: impl Into, aggregation_interval: impl Into, timeseries_type: impl Into, ) -> get_timeseries::Builder { @@ -3128,8 +3128,8 @@ pub mod reports { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) experiment_name: String, - pub(crate) start_date_time_utc: String, - pub(crate) end_date_time_utc: String, + pub(crate) start_date_time_utc: time::OffsetDateTime, + pub(crate) end_date_time_utc: time::OffsetDateTime, pub(crate) aggregation_interval: String, pub(crate) timeseries_type: String, pub(crate) endpoint: Option, @@ -3162,9 +3162,13 @@ pub mod reports { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2019-11-01"); let start_date_time_utc = &this.start_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("startDateTimeUTC", start_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("startDateTimeUTC", &start_date_time_utc.to_string()); let end_date_time_utc = &this.end_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("endDateTimeUTC", end_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("endDateTimeUTC", &end_date_time_utc.to_string()); let aggregation_interval = &this.aggregation_interval; req.url_mut() .query_pairs_mut() diff --git a/services/mgmt/frontdoor/src/package_2022_05/models.rs b/services/mgmt/frontdoor/src/package_2022_05/models.rs index bf2e0de80b2..27d624c1d11 100644 --- a/services/mgmt/frontdoor/src/package_2022_05/models.rs +++ b/services/mgmt/frontdoor/src/package_2022_05/models.rs @@ -1940,11 +1940,11 @@ pub struct LatencyScorecardProperties { #[serde(rename = "endpointB", default, skip_serializing_if = "Option::is_none")] pub endpoint_b: Option, #[doc = "The start time of the Latency Scorecard in UTC"] - #[serde(rename = "startDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub start_date_time_utc: Option, + #[serde(rename = "startDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub start_date_time_utc: Option, #[doc = "The end time of the Latency Scorecard in UTC"] - #[serde(rename = "endDateTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub end_date_time_utc: Option, + #[serde(rename = "endDateTimeUTC", with = "azure_core::date::rfc3339::option")] + pub end_date_time_utc: Option, #[doc = "The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html"] #[serde(default, skip_serializing_if = "Option::is_none")] pub country: Option, diff --git a/services/mgmt/frontdoor/src/package_2022_05/operations.rs b/services/mgmt/frontdoor/src/package_2022_05/operations.rs index 503630b114f..1bf1233c841 100644 --- a/services/mgmt/frontdoor/src/package_2022_05/operations.rs +++ b/services/mgmt/frontdoor/src/package_2022_05/operations.rs @@ -3105,8 +3105,8 @@ pub mod reports { resource_group_name: impl Into, profile_name: impl Into, experiment_name: impl Into, - start_date_time_utc: impl Into, - end_date_time_utc: impl Into, + start_date_time_utc: impl Into, + end_date_time_utc: impl Into, aggregation_interval: impl Into, timeseries_type: impl Into, ) -> get_timeseries::Builder { @@ -3205,8 +3205,8 @@ pub mod reports { pub(crate) resource_group_name: String, pub(crate) profile_name: String, pub(crate) experiment_name: String, - pub(crate) start_date_time_utc: String, - pub(crate) end_date_time_utc: String, + pub(crate) start_date_time_utc: time::OffsetDateTime, + pub(crate) end_date_time_utc: time::OffsetDateTime, pub(crate) aggregation_interval: String, pub(crate) timeseries_type: String, pub(crate) endpoint: Option, @@ -3239,9 +3239,13 @@ pub mod reports { .query_pairs_mut() .append_pair(azure_core::query_param::API_VERSION, "2019-11-01"); let start_date_time_utc = &this.start_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("startDateTimeUTC", start_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("startDateTimeUTC", &start_date_time_utc.to_string()); let end_date_time_utc = &this.end_date_time_utc; - req.url_mut().query_pairs_mut().append_pair("endDateTimeUTC", end_date_time_utc); + req.url_mut() + .query_pairs_mut() + .append_pair("endDateTimeUTC", &end_date_time_utc.to_string()); let aggregation_interval = &this.aggregation_interval; req.url_mut() .query_pairs_mut() diff --git a/services/mgmt/guestconfiguration/Cargo.toml b/services/mgmt/guestconfiguration/Cargo.toml index 2c859cedb3b..e551b4acb81 100644 --- a/services/mgmt/guestconfiguration/Cargo.toml +++ b/services/mgmt/guestconfiguration/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs b/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs index b7d0dd78ec0..b4eae054b5b 100644 --- a/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs @@ -26,11 +26,11 @@ pub struct AssignmentReportDetails { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "GUID of the report."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -409,8 +409,8 @@ pub struct GuestConfigurationAssignmentProperties { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceStatusChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_status_checked: Option, + #[serde(rename = "lastComplianceStatusChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_status_checked: Option, #[doc = "Id of the latest report for the guest configuration assignment. "] #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, @@ -558,11 +558,11 @@ pub struct GuestConfigurationAssignmentReportProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Details of the guest configuration assignment report."] #[serde(default, skip_serializing_if = "Option::is_none")] pub details: Option, diff --git a/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs b/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs index 35173323391..3b763a43df2 100644 --- a/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs @@ -26,11 +26,11 @@ pub struct AssignmentReportDetails { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "GUID of the report."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -412,8 +412,8 @@ pub struct GuestConfigurationAssignmentProperties { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceStatusChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_status_checked: Option, + #[serde(rename = "lastComplianceStatusChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_status_checked: Option, #[doc = "Id of the latest report for the guest configuration assignment. "] #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, @@ -570,11 +570,11 @@ pub struct GuestConfigurationAssignmentReportProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Details of the guest configuration assignment report."] #[serde(default, skip_serializing_if = "Option::is_none")] pub details: Option, @@ -883,8 +883,8 @@ pub struct VmssvmInfo { #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_checked: Option, + #[serde(rename = "lastComplianceChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_checked: Option, } impl VmssvmInfo { pub fn new() -> Self { diff --git a/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs b/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs index b1a63614bf6..092f10bf3c9 100644 --- a/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs @@ -34,11 +34,11 @@ pub struct AssignmentReport { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A value indicating compliance status of the machine for the assigned guest configuration."] #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, @@ -140,11 +140,11 @@ pub struct AssignmentReportDetails { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "GUID of the report."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -532,8 +532,8 @@ pub struct GuestConfigurationAssignmentProperties { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceStatusChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_status_checked: Option, + #[serde(rename = "lastComplianceStatusChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_status_checked: Option, #[doc = "Id of the latest report for the guest configuration assignment. "] #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, @@ -692,11 +692,11 @@ pub struct GuestConfigurationAssignmentReportProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Details of the guest configuration assignment report."] #[serde(default, skip_serializing_if = "Option::is_none")] pub details: Option, @@ -1005,8 +1005,8 @@ pub struct VmssvmInfo { #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_checked: Option, + #[serde(rename = "lastComplianceChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_checked: Option, } impl VmssvmInfo { pub fn new() -> Self { diff --git a/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs b/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs index 073b330a0b9..ca39b3b4fa5 100644 --- a/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs @@ -34,11 +34,11 @@ pub struct AssignmentReport { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A value indicating compliance status of the machine for the assigned guest configuration."] #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, @@ -140,11 +140,11 @@ pub struct AssignmentReportDetails { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "GUID of the report."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -535,8 +535,8 @@ pub struct GuestConfigurationAssignmentProperties { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceStatusChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_status_checked: Option, + #[serde(rename = "lastComplianceStatusChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_status_checked: Option, #[doc = "Id of the latest report for the guest configuration assignment. "] #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, @@ -695,11 +695,11 @@ pub struct GuestConfigurationAssignmentReportProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Details of the guest configuration assignment report."] #[serde(default, skip_serializing_if = "Option::is_none")] pub details: Option, @@ -1008,8 +1008,8 @@ pub struct VmssvmInfo { #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_checked: Option, + #[serde(rename = "lastComplianceChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_checked: Option, } impl VmssvmInfo { pub fn new() -> Self { @@ -1068,8 +1068,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1077,8 +1077,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs b/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs index 9251a38156e..3f4e3d51020 100644 --- a/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs @@ -34,11 +34,11 @@ pub struct AssignmentReport { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A value indicating compliance status of the machine for the assigned guest configuration."] #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, @@ -140,11 +140,11 @@ pub struct AssignmentReportDetails { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "GUID of the report."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -535,8 +535,8 @@ pub struct GuestConfigurationAssignmentProperties { #[serde(rename = "complianceStatus", default, skip_serializing_if = "Option::is_none")] pub compliance_status: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceStatusChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_status_checked: Option, + #[serde(rename = "lastComplianceStatusChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_status_checked: Option, #[doc = "Id of the latest report for the guest configuration assignment. "] #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, @@ -701,11 +701,11 @@ pub struct GuestConfigurationAssignmentReportProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub vm: Option, #[doc = "Start date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End date and time of the guest configuration assignment compliance status check."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Details of the guest configuration assignment report."] #[serde(default, skip_serializing_if = "Option::is_none")] pub details: Option, @@ -1017,8 +1017,8 @@ pub struct VmssvmInfo { #[serde(rename = "latestReportId", default, skip_serializing_if = "Option::is_none")] pub latest_report_id: Option, #[doc = "Date and time when last compliance status was checked."] - #[serde(rename = "lastComplianceChecked", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_checked: Option, + #[serde(rename = "lastComplianceChecked", with = "azure_core::date::rfc3339::option")] + pub last_compliance_checked: Option, } impl VmssvmInfo { pub fn new() -> Self { @@ -1077,8 +1077,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1086,8 +1086,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hanaon/Cargo.toml b/services/mgmt/hanaon/Cargo.toml index 28e70a88583..6bcf7ef632d 100644 --- a/services/mgmt/hanaon/Cargo.toml +++ b/services/mgmt/hanaon/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hardwaresecuritymodules/Cargo.toml b/services/mgmt/hardwaresecuritymodules/Cargo.toml index 4bee6953b7d..c1ebe3fb164 100644 --- a/services/mgmt/hardwaresecuritymodules/Cargo.toml +++ b/services/mgmt/hardwaresecuritymodules/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs b/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs index 744a1e1073f..a23da00441b 100644 --- a/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs +++ b/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs @@ -512,8 +512,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of dedicated hsm resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified dedicated hsm resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -521,8 +521,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of dedicated hsm resource last modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hdinsight/Cargo.toml b/services/mgmt/hdinsight/Cargo.toml index 6db21db4c3e..9bd276ad72c 100644 --- a/services/mgmt/hdinsight/Cargo.toml +++ b/services/mgmt/hdinsight/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hdinsight/src/package_2021_06/models.rs b/services/mgmt/hdinsight/src/package_2021_06/models.rs index 139042332bd..aeb9cefae97 100644 --- a/services/mgmt/hdinsight/src/package_2021_06/models.rs +++ b/services/mgmt/hdinsight/src/package_2021_06/models.rs @@ -3076,8 +3076,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3085,8 +3085,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthbot/Cargo.toml b/services/mgmt/healthbot/Cargo.toml index 51bc5a9c554..aba5fb9c336 100644 --- a/services/mgmt/healthbot/Cargo.toml +++ b/services/mgmt/healthbot/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs b/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs index 0b32caf6801..3c862a58bb5 100644 --- a/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs +++ b/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs @@ -381,8 +381,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -390,8 +390,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthbot/src/package_2020_12_08/models.rs b/services/mgmt/healthbot/src/package_2020_12_08/models.rs index ce93a9c7f24..ee817c97f2e 100644 --- a/services/mgmt/healthbot/src/package_2020_12_08/models.rs +++ b/services/mgmt/healthbot/src/package_2020_12_08/models.rs @@ -294,8 +294,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -303,8 +303,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs b/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs index b10e664bdad..d6c5f766cf6 100644 --- a/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs +++ b/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs @@ -351,8 +351,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -360,8 +360,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthbot/src/package_2021_06_10/models.rs b/services/mgmt/healthbot/src/package_2021_06_10/models.rs index d862175ea0e..dd009787d10 100644 --- a/services/mgmt/healthbot/src/package_2021_06_10/models.rs +++ b/services/mgmt/healthbot/src/package_2021_06_10/models.rs @@ -336,8 +336,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -345,8 +345,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthbot/src/package_2021_08_24/models.rs b/services/mgmt/healthbot/src/package_2021_08_24/models.rs index e400a51cdbf..8d8d9dc51bd 100644 --- a/services/mgmt/healthbot/src/package_2021_08_24/models.rs +++ b/services/mgmt/healthbot/src/package_2021_08_24/models.rs @@ -368,8 +368,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -377,8 +377,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthcareapis/Cargo.toml b/services/mgmt/healthcareapis/Cargo.toml index 10fa6286f7d..2ff9ba8d108 100644 --- a/services/mgmt/healthcareapis/Cargo.toml +++ b/services/mgmt/healthcareapis/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/healthcareapis/src/package_2021_11/models.rs b/services/mgmt/healthcareapis/src/package_2021_11/models.rs index 08eb367cdcf..59b0f45e4ae 100644 --- a/services/mgmt/healthcareapis/src/package_2021_11/models.rs +++ b/services/mgmt/healthcareapis/src/package_2021_11/models.rs @@ -2040,8 +2040,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2049,8 +2049,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthcareapis/src/package_2022_05/models.rs b/services/mgmt/healthcareapis/src/package_2022_05/models.rs index b993a4fe7bd..7aaa82524be 100644 --- a/services/mgmt/healthcareapis/src/package_2022_05/models.rs +++ b/services/mgmt/healthcareapis/src/package_2022_05/models.rs @@ -2067,8 +2067,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2076,8 +2076,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthcareapis/src/package_2022_06/models.rs b/services/mgmt/healthcareapis/src/package_2022_06/models.rs index df83136d70b..37452691a6f 100644 --- a/services/mgmt/healthcareapis/src/package_2022_06/models.rs +++ b/services/mgmt/healthcareapis/src/package_2022_06/models.rs @@ -2124,8 +2124,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2133,8 +2133,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs b/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs index efe8061db18..90968d4397b 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs @@ -1735,8 +1735,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1744,8 +1744,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs b/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs index 9e6f955ded5..7a81a330e8c 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs @@ -2082,8 +2082,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2091,8 +2091,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridcompute/Cargo.toml b/services/mgmt/hybridcompute/Cargo.toml index 21ea54589a0..c484844eb17 100644 --- a/services/mgmt/hybridcompute/Cargo.toml +++ b/services/mgmt/hybridcompute/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs index 1d7616eab01..b392b061d64 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs @@ -282,8 +282,8 @@ pub mod machine_extension_instance_view { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl Status { pub fn new() -> Self { @@ -482,8 +482,8 @@ pub struct MachineProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the last status change."] - #[serde(rename = "lastStatusChange", default, skip_serializing_if = "Option::is_none")] - pub last_status_change: Option, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339::option")] + pub last_status_change: Option, #[doc = "Details about the error state."] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -1028,8 +1028,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1037,8 +1037,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs index 60a49caf2d9..7819600b8be 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs @@ -285,8 +285,8 @@ pub mod machine_extension_instance_view { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl Status { pub fn new() -> Self { @@ -485,8 +485,8 @@ pub struct MachineProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the last status change."] - #[serde(rename = "lastStatusChange", default, skip_serializing_if = "Option::is_none")] - pub last_status_change: Option, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339::option")] + pub last_status_change: Option, #[doc = "Details about the error state."] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -1052,8 +1052,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1061,8 +1061,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs index 86578f72fe8..bd1083dabc0 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs @@ -285,8 +285,8 @@ pub mod machine_extension_instance_view { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl Status { pub fn new() -> Self { @@ -485,8 +485,8 @@ pub struct MachineProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the last status change."] - #[serde(rename = "lastStatusChange", default, skip_serializing_if = "Option::is_none")] - pub last_status_change: Option, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339::option")] + pub last_status_change: Option, #[doc = "Details about the error state."] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -1106,8 +1106,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1115,8 +1115,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs index 1244884d210..e5bb1e484c0 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs @@ -312,8 +312,8 @@ pub mod machine_extension_instance_view { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl Status { pub fn new() -> Self { @@ -521,8 +521,8 @@ pub struct MachineProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the last status change."] - #[serde(rename = "lastStatusChange", default, skip_serializing_if = "Option::is_none")] - pub last_status_change: Option, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339::option")] + pub last_status_change: Option, #[doc = "Details about the error state."] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -1148,8 +1148,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1157,8 +1157,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs b/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs index 218b38c3be5..679256bfdd1 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs @@ -391,8 +391,8 @@ pub mod machine_extension_instance_view { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl Status { pub fn new() -> Self { @@ -606,8 +606,8 @@ pub struct MachineProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the last status change."] - #[serde(rename = "lastStatusChange", default, skip_serializing_if = "Option::is_none")] - pub last_status_change: Option, + #[serde(rename = "lastStatusChange", with = "azure_core::date::rfc3339::option")] + pub last_status_change: Option, #[doc = "Details about the error state."] #[serde(rename = "errorDetails", default, skip_serializing_if = "Vec::is_empty")] pub error_details: Vec, @@ -1348,8 +1348,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1357,8 +1357,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridconnectivity/Cargo.toml b/services/mgmt/hybridconnectivity/Cargo.toml index 7c254d7e83a..c79176976bb 100644 --- a/services/mgmt/hybridconnectivity/Cargo.toml +++ b/services/mgmt/hybridconnectivity/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs index f3e8cc0a214..b65d5112528 100644 --- a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs +++ b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs @@ -389,8 +389,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -398,8 +398,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs index 10908cff95b..b89415b9a7e 100644 --- a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs @@ -462,8 +462,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -471,8 +471,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybriddatamanager/Cargo.toml b/services/mgmt/hybriddatamanager/Cargo.toml index 7852482ba29..da6c1731c9e 100644 --- a/services/mgmt/hybriddatamanager/Cargo.toml +++ b/services/mgmt/hybriddatamanager/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs b/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs index e0ed8bbd900..7c48de7d991 100644 --- a/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs +++ b/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs @@ -452,11 +452,11 @@ pub struct Job { #[doc = "Status of the job."] pub status: job::Status, #[doc = "Time at which the job was started in UTC ISO 8601 format."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Time at which the job ended in UTC ISO 8601 format."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Job Properties"] pub properties: JobProperties, #[doc = "Top level error for the job."] @@ -464,7 +464,7 @@ pub struct Job { pub error: Option, } impl Job { - pub fn new(status: job::Status, start_time: String, properties: JobProperties) -> Self { + pub fn new(status: job::Status, start_time: time::OffsetDateTime, properties: JobProperties) -> Self { Self { dms_base_object: DmsBaseObject::default(), status, @@ -514,8 +514,8 @@ pub struct JobDefinitionFilter { #[serde(rename = "dataSource", default, skip_serializing_if = "Option::is_none")] pub data_source: Option, #[doc = "The last modified date time of the data source."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl JobDefinitionFilter { pub fn new(state: job_definition_filter::State) -> Self { @@ -572,8 +572,8 @@ pub struct JobDefinitionProperties { #[doc = "State of the job definition."] pub state: job_definition_properties::State, #[doc = "Last modified time of the job definition."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "This is the preferred geo location for the job to run."] #[serde(rename = "runLocation", default, skip_serializing_if = "Option::is_none")] pub run_location: Option, @@ -708,8 +708,8 @@ pub struct JobFilter { #[doc = "The status of the job."] pub status: job_filter::Status, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl JobFilter { pub fn new(status: job_filter::Status) -> Self { diff --git a/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs b/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs index 6f311613a11..72712c2e323 100644 --- a/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs +++ b/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs @@ -452,11 +452,11 @@ pub struct Job { #[doc = "Status of the job."] pub status: job::Status, #[doc = "Time at which the job was started in UTC ISO 8601 format."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "Time at which the job ended in UTC ISO 8601 format."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Job Properties"] pub properties: JobProperties, #[doc = "Top level error for the job."] @@ -464,7 +464,7 @@ pub struct Job { pub error: Option, } impl Job { - pub fn new(status: job::Status, start_time: String, properties: JobProperties) -> Self { + pub fn new(status: job::Status, start_time: time::OffsetDateTime, properties: JobProperties) -> Self { Self { dms_base_object: DmsBaseObject::default(), status, @@ -515,8 +515,8 @@ pub struct JobDefinitionFilter { #[serde(rename = "dataSource", default, skip_serializing_if = "Option::is_none")] pub data_source: Option, #[doc = "The last modified date time of the data source."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl JobDefinitionFilter { pub fn new(state: job_definition_filter::State) -> Self { @@ -573,8 +573,8 @@ pub struct JobDefinitionProperties { #[doc = "State of the job definition."] pub state: job_definition_properties::State, #[doc = "Last modified time of the job definition."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "This is the preferred geo location for the job to run."] #[serde(rename = "runLocation", default, skip_serializing_if = "Option::is_none")] pub run_location: Option, @@ -709,8 +709,8 @@ pub struct JobFilter { #[doc = "The status of the job."] pub status: job_filter::Status, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl JobFilter { pub fn new(status: job_filter::Status) -> Self { diff --git a/services/mgmt/hybridkubernetes/Cargo.toml b/services/mgmt/hybridkubernetes/Cargo.toml index c73ffccabe6..06379b4fe69 100644 --- a/services/mgmt/hybridkubernetes/Cargo.toml +++ b/services/mgmt/hybridkubernetes/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs b/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs index d2c6a97be47..52155d3bea8 100644 --- a/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs @@ -225,15 +225,11 @@ pub struct ConnectedClusterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub offering: Option, #[doc = "Expiration time of the managed identity certificate"] - #[serde( - rename = "managedIdentityCertificateExpirationTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub managed_identity_certificate_expiration_time: Option, + #[serde(rename = "managedIdentityCertificateExpirationTime", with = "azure_core::date::rfc3339::option")] + pub managed_identity_certificate_expiration_time: Option, #[doc = "Time representing the last instance when heart beat was received from the cluster"] - #[serde(rename = "lastConnectivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_connectivity_time: Option, + #[serde(rename = "lastConnectivityTime", with = "azure_core::date::rfc3339::option")] + pub last_connectivity_time: Option, #[doc = "Represents the connectivity status of the connected cluster."] #[serde(rename = "connectivityStatus", default, skip_serializing_if = "Option::is_none")] pub connectivity_status: Option, diff --git a/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs b/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs index 2f484c5f5ee..e954a4b467c 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs @@ -138,15 +138,11 @@ pub struct ConnectedClusterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub offering: Option, #[doc = "Expiration time of the managed identity certificate"] - #[serde( - rename = "managedIdentityCertificateExpirationTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub managed_identity_certificate_expiration_time: Option, + #[serde(rename = "managedIdentityCertificateExpirationTime", with = "azure_core::date::rfc3339::option")] + pub managed_identity_certificate_expiration_time: Option, #[doc = "Time representing the last instance when heart beat was received from the cluster"] - #[serde(rename = "lastConnectivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_connectivity_time: Option, + #[serde(rename = "lastConnectivityTime", with = "azure_core::date::rfc3339::option")] + pub last_connectivity_time: Option, #[doc = "Represents the connectivity status of the connected cluster."] #[serde(rename = "connectivityStatus", default, skip_serializing_if = "Option::is_none")] pub connectivity_status: Option, @@ -405,8 +401,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -414,8 +410,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs b/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs index d592977e3f4..1b8f32c7f7e 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs @@ -185,15 +185,11 @@ pub struct ConnectedClusterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub offering: Option, #[doc = "Expiration time of the managed identity certificate"] - #[serde( - rename = "managedIdentityCertificateExpirationTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub managed_identity_certificate_expiration_time: Option, + #[serde(rename = "managedIdentityCertificateExpirationTime", with = "azure_core::date::rfc3339::option")] + pub managed_identity_certificate_expiration_time: Option, #[doc = "Time representing the last instance when heart beat was received from the cluster"] - #[serde(rename = "lastConnectivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_connectivity_time: Option, + #[serde(rename = "lastConnectivityTime", with = "azure_core::date::rfc3339::option")] + pub last_connectivity_time: Option, #[doc = "Represents the connectivity status of the connected cluster."] #[serde(rename = "connectivityStatus", default, skip_serializing_if = "Option::is_none")] pub connectivity_status: Option, @@ -612,8 +608,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -621,8 +617,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs b/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs index ae56902b1ad..bed7008d014 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs @@ -138,15 +138,11 @@ pub struct ConnectedClusterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub offering: Option, #[doc = "Expiration time of the managed identity certificate"] - #[serde( - rename = "managedIdentityCertificateExpirationTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub managed_identity_certificate_expiration_time: Option, + #[serde(rename = "managedIdentityCertificateExpirationTime", with = "azure_core::date::rfc3339::option")] + pub managed_identity_certificate_expiration_time: Option, #[doc = "Time representing the last instance when heart beat was received from the cluster"] - #[serde(rename = "lastConnectivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_connectivity_time: Option, + #[serde(rename = "lastConnectivityTime", with = "azure_core::date::rfc3339::option")] + pub last_connectivity_time: Option, #[doc = "Represents the connectivity status of the connected cluster."] #[serde(rename = "connectivityStatus", default, skip_serializing_if = "Option::is_none")] pub connectivity_status: Option, @@ -515,8 +511,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -524,8 +520,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs b/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs index 480f31d901a..6d93cc46951 100644 --- a/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs @@ -138,15 +138,11 @@ pub struct ConnectedClusterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub offering: Option, #[doc = "Expiration time of the managed identity certificate"] - #[serde( - rename = "managedIdentityCertificateExpirationTime", - default, - skip_serializing_if = "Option::is_none" - )] - pub managed_identity_certificate_expiration_time: Option, + #[serde(rename = "managedIdentityCertificateExpirationTime", with = "azure_core::date::rfc3339::option")] + pub managed_identity_certificate_expiration_time: Option, #[doc = "Time representing the last instance when heart beat was received from the cluster"] - #[serde(rename = "lastConnectivityTime", default, skip_serializing_if = "Option::is_none")] - pub last_connectivity_time: Option, + #[serde(rename = "lastConnectivityTime", with = "azure_core::date::rfc3339::option")] + pub last_connectivity_time: Option, #[doc = "Represents the connectivity status of the connected cluster."] #[serde(rename = "connectivityStatus", default, skip_serializing_if = "Option::is_none")] pub connectivity_status: Option, @@ -565,8 +561,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -574,8 +570,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridnetwork/Cargo.toml b/services/mgmt/hybridnetwork/Cargo.toml index b0aec47ea97..3f0a3c80680 100644 --- a/services/mgmt/hybridnetwork/Cargo.toml +++ b/services/mgmt/hybridnetwork/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs b/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs index 41873a6a762..32c28115da3 100644 --- a/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs @@ -1871,8 +1871,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1880,8 +1880,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs index cbdb3fba0d2..30a07079aca 100644 --- a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs @@ -1550,8 +1550,8 @@ pub struct SkuCredential { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub repositories: Vec, #[doc = "The UTC time when credential will expire."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, } impl SkuCredential { pub fn new() -> Self { @@ -2073,8 +2073,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2082,8 +2082,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/imagebuilder/Cargo.toml b/services/mgmt/imagebuilder/Cargo.toml index b937c7a5f38..518e648bbfa 100644 --- a/services/mgmt/imagebuilder/Cargo.toml +++ b/services/mgmt/imagebuilder/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/imagebuilder/src/package_2019_02/models.rs b/services/mgmt/imagebuilder/src/package_2019_02/models.rs index a5359c27296..39b34b5a12c 100644 --- a/services/mgmt/imagebuilder/src/package_2019_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2019_02/models.rs @@ -127,11 +127,11 @@ impl ImageTemplateIsoSource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageTemplateLastRunStatus { #[doc = "Start time of the last run (UTC)"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the last run (UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "State of the last run"] #[serde(rename = "runState", default, skip_serializing_if = "Option::is_none")] pub run_state: Option, diff --git a/services/mgmt/imagebuilder/src/package_2020_02/models.rs b/services/mgmt/imagebuilder/src/package_2020_02/models.rs index d7a178e81a4..0f724a7c7b5 100644 --- a/services/mgmt/imagebuilder/src/package_2020_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2020_02/models.rs @@ -162,11 +162,11 @@ pub mod image_template_identity { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageTemplateLastRunStatus { #[doc = "Start time of the last run (UTC)"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the last run (UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "State of the last run"] #[serde(rename = "runState", default, skip_serializing_if = "Option::is_none")] pub run_state: Option, diff --git a/services/mgmt/imagebuilder/src/package_2021_10/models.rs b/services/mgmt/imagebuilder/src/package_2021_10/models.rs index ee4ae80c58a..d6c19c2f615 100644 --- a/services/mgmt/imagebuilder/src/package_2021_10/models.rs +++ b/services/mgmt/imagebuilder/src/package_2021_10/models.rs @@ -157,11 +157,11 @@ pub mod image_template_identity { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageTemplateLastRunStatus { #[doc = "Start time of the last run (UTC)"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the last run (UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "State of the last run"] #[serde(rename = "runState", default, skip_serializing_if = "Option::is_none")] pub run_state: Option, @@ -902,8 +902,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -911,8 +911,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/imagebuilder/src/package_2022_02/models.rs b/services/mgmt/imagebuilder/src/package_2022_02/models.rs index e258235459e..3c305aa3480 100644 --- a/services/mgmt/imagebuilder/src/package_2022_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2022_02/models.rs @@ -168,11 +168,11 @@ impl ImageTemplateInVmValidator { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageTemplateLastRunStatus { #[doc = "Start time of the last run (UTC)"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the last run (UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "State of the last run"] #[serde(rename = "runState", default, skip_serializing_if = "Option::is_none")] pub run_state: Option, @@ -1011,8 +1011,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1020,8 +1020,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs b/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs index 39e46566bb8..c3ed162a8b4 100644 --- a/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs +++ b/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs @@ -184,11 +184,11 @@ impl ImageTemplateIsoSource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageTemplateLastRunStatus { #[doc = "Start time of the last run (UTC)"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the last run (UTC)"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "State of the last run"] #[serde(rename = "runState", default, skip_serializing_if = "Option::is_none")] pub run_state: Option, diff --git a/services/mgmt/intune/Cargo.toml b/services/mgmt/intune/Cargo.toml index ae82ce4bbf9..9f9bd46d1c8 100644 --- a/services/mgmt/intune/Cargo.toml +++ b/services/mgmt/intune/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/intune/src/package_2015_01_preview/models.rs b/services/mgmt/intune/src/package_2015_01_preview/models.rs index 5c27f940cb4..da5c1c350cd 100644 --- a/services/mgmt/intune/src/package_2015_01_preview/models.rs +++ b/services/mgmt/intune/src/package_2015_01_preview/models.rs @@ -481,8 +481,8 @@ pub struct MamPolicyProperties { pub num_of_apps: Option, #[serde(rename = "groupStatus", default, skip_serializing_if = "Option::is_none")] pub group_status: Option, - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MamPolicyProperties { pub fn new(friendly_name: String) -> Self { @@ -747,8 +747,8 @@ pub struct StatusesProperties { pub enrolled_users: Option, #[serde(rename = "flaggedUsers", default, skip_serializing_if = "Option::is_none")] pub flagged_users: Option, - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[serde(rename = "policyAppliedUsers", default, skip_serializing_if = "Option::is_none")] pub policy_applied_users: Option, #[serde(default, skip_serializing_if = "Option::is_none")] diff --git a/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs b/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs index 9940b091bc2..d74aaad8c1f 100644 --- a/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs +++ b/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs @@ -481,8 +481,8 @@ pub struct MamPolicyProperties { pub num_of_apps: Option, #[serde(rename = "groupStatus", default, skip_serializing_if = "Option::is_none")] pub group_status: Option, - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl MamPolicyProperties { pub fn new(friendly_name: String) -> Self { @@ -744,8 +744,8 @@ pub struct StatusesProperties { pub enrolled_users: Option, #[serde(rename = "flaggedUsers", default, skip_serializing_if = "Option::is_none")] pub flagged_users: Option, - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[serde(rename = "policyAppliedUsers", default, skip_serializing_if = "Option::is_none")] pub policy_applied_users: Option, #[serde(default, skip_serializing_if = "Option::is_none")] diff --git a/services/mgmt/iotcentral/Cargo.toml b/services/mgmt/iotcentral/Cargo.toml index 9a30178099d..03554b5d943 100644 --- a/services/mgmt/iotcentral/Cargo.toml +++ b/services/mgmt/iotcentral/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs b/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs index d511570d2f1..b93a015ef0c 100644 --- a/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs +++ b/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs @@ -946,8 +946,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -955,8 +955,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/iothub/Cargo.toml b/services/mgmt/iothub/Cargo.toml index d88e305730b..8dd83763784 100644 --- a/services/mgmt/iothub/Cargo.toml +++ b/services/mgmt/iothub/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/iothub/src/package_preview_2020_07/models.rs b/services/mgmt/iothub/src/package_preview_2020_07/models.rs index 02ef94ded43..dfeeb27e758 100644 --- a/services/mgmt/iothub/src/package_preview_2020_07/models.rs +++ b/services/mgmt/iothub/src/package_preview_2020_07/models.rs @@ -90,8 +90,8 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -99,11 +99,11 @@ pub struct CertificateProperties { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate content"] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, @@ -120,8 +120,8 @@ pub struct CertificatePropertiesWithNonce { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -129,11 +129,11 @@ pub struct CertificatePropertiesWithNonce { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate's verification code that will be used for proof of possession."] #[serde(rename = "verificationCode", default, skip_serializing_if = "Option::is_none")] pub verification_code: Option, @@ -228,14 +228,14 @@ pub struct EndpointHealthData { #[serde(rename = "lastKnownError", default, skip_serializing_if = "Option::is_none")] pub last_known_error: Option, #[doc = "Time at which the last known error occurred"] - #[serde(rename = "lastKnownErrorTime", default, skip_serializing_if = "Option::is_none")] - pub last_known_error_time: Option, + #[serde(rename = "lastKnownErrorTime", with = "azure_core::date::rfc1123::option")] + pub last_known_error_time: Option, #[doc = "Last time iot hub successfully sent a message to the endpoint"] - #[serde(rename = "lastSuccessfulSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_send_attempt_time: Option, + #[serde(rename = "lastSuccessfulSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_successful_send_attempt_time: Option, #[doc = "Last time iot hub tried to send a message to the endpoint"] - #[serde(rename = "lastSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_send_attempt_time: Option, + #[serde(rename = "lastSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_send_attempt_time: Option, } impl EndpointHealthData { pub fn new() -> Self { @@ -1247,11 +1247,11 @@ pub struct JobResponse { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc1123::option")] + pub start_time_utc: Option, #[doc = "The time the job stopped processing."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc1123::option")] + pub end_time_utc: Option, #[doc = "The type of the job."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, diff --git a/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs b/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs index 4c3c72f2273..41ea606e0b2 100644 --- a/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs +++ b/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs @@ -90,8 +90,8 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -99,11 +99,11 @@ pub struct CertificateProperties { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate content"] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, @@ -120,8 +120,8 @@ pub struct CertificatePropertiesWithNonce { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -129,11 +129,11 @@ pub struct CertificatePropertiesWithNonce { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate's verification code that will be used for proof of possession."] #[serde(rename = "verificationCode", default, skip_serializing_if = "Option::is_none")] pub verification_code: Option, @@ -228,14 +228,14 @@ pub struct EndpointHealthData { #[serde(rename = "lastKnownError", default, skip_serializing_if = "Option::is_none")] pub last_known_error: Option, #[doc = "Time at which the last known error occurred"] - #[serde(rename = "lastKnownErrorTime", default, skip_serializing_if = "Option::is_none")] - pub last_known_error_time: Option, + #[serde(rename = "lastKnownErrorTime", with = "azure_core::date::rfc1123::option")] + pub last_known_error_time: Option, #[doc = "Last time iot hub successfully sent a message to the endpoint"] - #[serde(rename = "lastSuccessfulSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_send_attempt_time: Option, + #[serde(rename = "lastSuccessfulSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_successful_send_attempt_time: Option, #[doc = "Last time iot hub tried to send a message to the endpoint"] - #[serde(rename = "lastSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_send_attempt_time: Option, + #[serde(rename = "lastSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_send_attempt_time: Option, } impl EndpointHealthData { pub fn new() -> Self { @@ -1250,11 +1250,11 @@ pub struct JobResponse { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc1123::option")] + pub start_time_utc: Option, #[doc = "The time the job stopped processing."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc1123::option")] + pub end_time_utc: Option, #[doc = "The type of the job."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, diff --git a/services/mgmt/iothub/src/package_preview_2021_02/models.rs b/services/mgmt/iothub/src/package_preview_2021_02/models.rs index 659e6ae03d8..f0c885d16b9 100644 --- a/services/mgmt/iothub/src/package_preview_2021_02/models.rs +++ b/services/mgmt/iothub/src/package_preview_2021_02/models.rs @@ -102,8 +102,8 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -111,11 +111,11 @@ pub struct CertificateProperties { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate content"] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, @@ -132,8 +132,8 @@ pub struct CertificatePropertiesWithNonce { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -141,11 +141,11 @@ pub struct CertificatePropertiesWithNonce { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate's verification code that will be used for proof of possession."] #[serde(rename = "verificationCode", default, skip_serializing_if = "Option::is_none")] pub verification_code: Option, @@ -240,14 +240,14 @@ pub struct EndpointHealthData { #[serde(rename = "lastKnownError", default, skip_serializing_if = "Option::is_none")] pub last_known_error: Option, #[doc = "Time at which the last known error occurred"] - #[serde(rename = "lastKnownErrorTime", default, skip_serializing_if = "Option::is_none")] - pub last_known_error_time: Option, + #[serde(rename = "lastKnownErrorTime", with = "azure_core::date::rfc1123::option")] + pub last_known_error_time: Option, #[doc = "Last time iot hub successfully sent a message to the endpoint"] - #[serde(rename = "lastSuccessfulSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_send_attempt_time: Option, + #[serde(rename = "lastSuccessfulSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_successful_send_attempt_time: Option, #[doc = "Last time iot hub tried to send a message to the endpoint"] - #[serde(rename = "lastSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_send_attempt_time: Option, + #[serde(rename = "lastSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_send_attempt_time: Option, } impl EndpointHealthData { pub fn new() -> Self { @@ -1262,11 +1262,11 @@ pub struct JobResponse { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc1123::option")] + pub start_time_utc: Option, #[doc = "The time the job stopped processing."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc1123::option")] + pub end_time_utc: Option, #[doc = "The type of the job."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, diff --git a/services/mgmt/iothub/src/package_preview_2021_03/models.rs b/services/mgmt/iothub/src/package_preview_2021_03/models.rs index 8884744131e..7249d8da8d9 100644 --- a/services/mgmt/iothub/src/package_preview_2021_03/models.rs +++ b/services/mgmt/iothub/src/package_preview_2021_03/models.rs @@ -102,8 +102,8 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -111,11 +111,11 @@ pub struct CertificateProperties { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate content"] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, @@ -132,8 +132,8 @@ pub struct CertificatePropertiesWithNonce { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -141,11 +141,11 @@ pub struct CertificatePropertiesWithNonce { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate's verification code that will be used for proof of possession."] #[serde(rename = "verificationCode", default, skip_serializing_if = "Option::is_none")] pub verification_code: Option, @@ -240,14 +240,14 @@ pub struct EndpointHealthData { #[serde(rename = "lastKnownError", default, skip_serializing_if = "Option::is_none")] pub last_known_error: Option, #[doc = "Time at which the last known error occurred"] - #[serde(rename = "lastKnownErrorTime", default, skip_serializing_if = "Option::is_none")] - pub last_known_error_time: Option, + #[serde(rename = "lastKnownErrorTime", with = "azure_core::date::rfc1123::option")] + pub last_known_error_time: Option, #[doc = "Last time iot hub successfully sent a message to the endpoint"] - #[serde(rename = "lastSuccessfulSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_send_attempt_time: Option, + #[serde(rename = "lastSuccessfulSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_successful_send_attempt_time: Option, #[doc = "Last time iot hub tried to send a message to the endpoint"] - #[serde(rename = "lastSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_send_attempt_time: Option, + #[serde(rename = "lastSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_send_attempt_time: Option, } impl EndpointHealthData { pub fn new() -> Self { @@ -1270,11 +1270,11 @@ pub struct JobResponse { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc1123::option")] + pub start_time_utc: Option, #[doc = "The time the job stopped processing."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc1123::option")] + pub end_time_utc: Option, #[doc = "The type of the job."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, diff --git a/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs b/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs index 113ae83aeb5..daf0d1c7c7b 100644 --- a/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs +++ b/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs @@ -105,8 +105,8 @@ pub struct CertificateProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -114,11 +114,11 @@ pub struct CertificateProperties { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate content"] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, @@ -135,8 +135,8 @@ pub struct CertificatePropertiesWithNonce { #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, #[doc = "The certificate's expiration date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub expiry: Option, #[doc = "The certificate's thumbprint."] #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, @@ -144,11 +144,11 @@ pub struct CertificatePropertiesWithNonce { #[serde(rename = "isVerified", default, skip_serializing_if = "Option::is_none")] pub is_verified: Option, #[doc = "The certificate's create date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub created: Option, #[doc = "The certificate's last update date and time."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc1123::option")] + pub updated: Option, #[doc = "The certificate's verification code that will be used for proof of possession."] #[serde(rename = "verificationCode", default, skip_serializing_if = "Option::is_none")] pub verification_code: Option, @@ -243,14 +243,14 @@ pub struct EndpointHealthData { #[serde(rename = "lastKnownError", default, skip_serializing_if = "Option::is_none")] pub last_known_error: Option, #[doc = "Time at which the last known error occurred"] - #[serde(rename = "lastKnownErrorTime", default, skip_serializing_if = "Option::is_none")] - pub last_known_error_time: Option, + #[serde(rename = "lastKnownErrorTime", with = "azure_core::date::rfc1123::option")] + pub last_known_error_time: Option, #[doc = "Last time iot hub successfully sent a message to the endpoint"] - #[serde(rename = "lastSuccessfulSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_send_attempt_time: Option, + #[serde(rename = "lastSuccessfulSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_successful_send_attempt_time: Option, #[doc = "Last time iot hub tried to send a message to the endpoint"] - #[serde(rename = "lastSendAttemptTime", default, skip_serializing_if = "Option::is_none")] - pub last_send_attempt_time: Option, + #[serde(rename = "lastSendAttemptTime", with = "azure_core::date::rfc1123::option")] + pub last_send_attempt_time: Option, } impl EndpointHealthData { pub fn new() -> Self { @@ -1309,11 +1309,11 @@ pub struct JobResponse { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc1123::option")] + pub start_time_utc: Option, #[doc = "The time the job stopped processing."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc1123::option")] + pub end_time_utc: Option, #[doc = "The type of the job."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -2915,8 +2915,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2924,8 +2924,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/iotspaces/Cargo.toml b/services/mgmt/iotspaces/Cargo.toml index 9db31d78eff..7841e69297d 100644 --- a/services/mgmt/iotspaces/Cargo.toml +++ b/services/mgmt/iotspaces/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/keyvault/Cargo.toml b/services/mgmt/keyvault/Cargo.toml index 6e02c357a57..336719a8ccb 100644 --- a/services/mgmt/keyvault/Cargo.toml +++ b/services/mgmt/keyvault/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/keyvault/src/package_preview_2021_04/models.rs b/services/mgmt/keyvault/src/package_preview_2021_04/models.rs index 826f16755bf..ff4ed3ebe7d 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_04/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_04/models.rs @@ -140,11 +140,11 @@ pub struct DeletedManagedHsmProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Purge protection status of the original managed HSM."] #[serde(rename = "purgeProtectionEnabled", default, skip_serializing_if = "Option::is_none")] pub purge_protection_enabled: Option, @@ -209,11 +209,11 @@ pub struct DeletedVaultProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original vault."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -817,8 +817,8 @@ pub struct ManagedHsmProperties { #[serde(rename = "publicNetworkAccess", default, skip_serializing_if = "Option::is_none")] pub public_network_access: Option, #[doc = "The scheduled purge date in UTC."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, } impl ManagedHsmProperties { pub fn new() -> Self { @@ -1654,8 +1654,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of the key vault resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the key vault resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1663,8 +1663,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of the key vault resource last modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs b/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs index 8cc3271fa51..d397456caee 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs @@ -186,11 +186,11 @@ pub struct DeletedManagedHsmProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Purge protection status of the original managed HSM."] #[serde(rename = "purgeProtectionEnabled", default, skip_serializing_if = "Option::is_none")] pub purge_protection_enabled: Option, @@ -255,11 +255,11 @@ pub struct DeletedVaultProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original vault."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -1142,8 +1142,8 @@ pub struct ManagedHsmProperties { #[serde(rename = "publicNetworkAccess", default, skip_serializing_if = "Option::is_none")] pub public_network_access: Option, #[doc = "The scheduled purge date in UTC."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, } impl ManagedHsmProperties { pub fn new() -> Self { @@ -2111,8 +2111,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of the key vault resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the key vault resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2120,8 +2120,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of the key vault resource last modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/keyvault/src/package_preview_2021_06/models.rs b/services/mgmt/keyvault/src/package_preview_2021_06/models.rs index 92612c71865..680c1d9c10c 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_06/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_06/models.rs @@ -186,11 +186,11 @@ pub struct DeletedManagedHsmProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Purge protection status of the original managed HSM."] #[serde(rename = "purgeProtectionEnabled", default, skip_serializing_if = "Option::is_none")] pub purge_protection_enabled: Option, @@ -255,11 +255,11 @@ pub struct DeletedVaultProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original vault."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -1161,8 +1161,8 @@ pub struct ManagedHsmProperties { #[serde(rename = "publicNetworkAccess", default, skip_serializing_if = "Option::is_none")] pub public_network_access: Option, #[doc = "The scheduled purge date in UTC."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, } impl ManagedHsmProperties { pub fn new() -> Self { @@ -2130,8 +2130,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of the key vault resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the key vault resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2139,8 +2139,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of the key vault resource last modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/keyvault/src/package_preview_2021_11/models.rs b/services/mgmt/keyvault/src/package_preview_2021_11/models.rs index 92612c71865..680c1d9c10c 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_11/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_11/models.rs @@ -186,11 +186,11 @@ pub struct DeletedManagedHsmProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Purge protection status of the original managed HSM."] #[serde(rename = "purgeProtectionEnabled", default, skip_serializing_if = "Option::is_none")] pub purge_protection_enabled: Option, @@ -255,11 +255,11 @@ pub struct DeletedVaultProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original vault."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, @@ -1161,8 +1161,8 @@ pub struct ManagedHsmProperties { #[serde(rename = "publicNetworkAccess", default, skip_serializing_if = "Option::is_none")] pub public_network_access: Option, #[doc = "The scheduled purge date in UTC."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, } impl ManagedHsmProperties { pub fn new() -> Self { @@ -2130,8 +2130,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of the key vault resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the key vault resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2139,8 +2139,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of the key vault resource last modification (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs index 3c634b12cfb..04f0b7c97c0 100644 --- a/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs @@ -165,11 +165,11 @@ pub struct DeletedVaultProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, #[doc = "The deleted date."] - #[serde(rename = "deletionDate", default, skip_serializing_if = "Option::is_none")] - pub deletion_date: Option, + #[serde(rename = "deletionDate", with = "azure_core::date::rfc3339::option")] + pub deletion_date: Option, #[doc = "The scheduled purged date."] - #[serde(rename = "scheduledPurgeDate", default, skip_serializing_if = "Option::is_none")] - pub scheduled_purge_date: Option, + #[serde(rename = "scheduledPurgeDate", with = "azure_core::date::rfc3339::option")] + pub scheduled_purge_date: Option, #[doc = "Tags of the original vault."] #[serde(default, skip_serializing_if = "Option::is_none")] pub tags: Option, diff --git a/services/mgmt/kubernetesconfiguration/Cargo.toml b/services/mgmt/kubernetesconfiguration/Cargo.toml index 145ec2bf4e8..3833c74f660 100644 --- a/services/mgmt/kubernetesconfiguration/Cargo.toml +++ b/services/mgmt/kubernetesconfiguration/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/kubernetesconfiguration/src/package_2022_07/models.rs b/services/mgmt/kubernetesconfiguration/src/package_2022_07/models.rs index 7fce4eed5fb..2fd6a6fb6d5 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_2022_07/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_2022_07/models.rs @@ -145,8 +145,8 @@ pub struct ComplianceStatus { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "Datetime the configuration was last applied."] - #[serde(rename = "lastConfigApplied", default, skip_serializing_if = "Option::is_none")] - pub last_config_applied: Option, + #[serde(rename = "lastConfigApplied", with = "azure_core::date::rfc3339::option")] + pub last_config_applied: Option, #[doc = "Message from when the configuration was applied."] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -613,11 +613,11 @@ pub mod flux_configuration { #[serde(rename = "sourceSyncedCommitId", default, skip_serializing_if = "Option::is_none")] pub source_synced_commit_id: Option, #[doc = "Datetime the fluxConfiguration synced its source on the cluster."] - #[serde(rename = "sourceUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub source_updated_at: Option, + #[serde(rename = "sourceUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub source_updated_at: Option, #[doc = "Datetime the fluxConfiguration synced its status on the cluster with Azure."] - #[serde(rename = "statusUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub status_updated_at: Option, + #[serde(rename = "statusUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub status_updated_at: Option, #[doc = "Compliance state of the cluster object."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -984,8 +984,8 @@ impl ObjectReferenceDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ObjectStatusConditionDefinition { #[doc = "Last time this status condition has changed"] - #[serde(rename = "lastTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub last_transition_time: Option, + #[serde(rename = "lastTransitionTime", with = "azure_core::date::rfc3339::option")] + pub last_transition_time: Option, #[doc = "A more verbose description of the object status condition"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -1684,8 +1684,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1693,8 +1693,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs index df6da19c32d..6d676189b1d 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs @@ -45,8 +45,8 @@ pub struct ComplianceStatus { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "Datetime the configuration was last applied."] - #[serde(rename = "lastConfigApplied", default, skip_serializing_if = "Option::is_none")] - pub last_config_applied: Option, + #[serde(rename = "lastConfigApplied", with = "azure_core::date::rfc3339::option")] + pub last_config_applied: Option, #[doc = "Message from when the configuration was applied."] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -606,8 +606,8 @@ pub mod flux_configuration { #[serde(rename = "lastSourceSyncedCommitId", default, skip_serializing_if = "Option::is_none")] pub last_source_synced_commit_id: Option, #[doc = "Datetime the fluxConfiguration last synced its source on the cluster."] - #[serde(rename = "lastSourceSyncedAt", default, skip_serializing_if = "Option::is_none")] - pub last_source_synced_at: Option, + #[serde(rename = "lastSourceSyncedAt", with = "azure_core::date::rfc3339::option")] + pub last_source_synced_at: Option, #[doc = "Compliance state of the cluster object."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -880,8 +880,8 @@ impl ObjectReferenceDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ObjectStatusConditionDefinition { #[doc = "Last time this status condition has changed"] - #[serde(rename = "lastTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub last_transition_time: Option, + #[serde(rename = "lastTransitionTime", with = "azure_core::date::rfc3339::option")] + pub last_transition_time: Option, #[doc = "A more verbose description of the object status condition"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -1536,8 +1536,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1545,8 +1545,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs index 010428b740d..ea647a5c382 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs @@ -105,8 +105,8 @@ pub struct ComplianceStatus { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "Datetime the configuration was last applied."] - #[serde(rename = "lastConfigApplied", default, skip_serializing_if = "Option::is_none")] - pub last_config_applied: Option, + #[serde(rename = "lastConfigApplied", with = "azure_core::date::rfc3339::option")] + pub last_config_applied: Option, #[doc = "Message from when the configuration was applied."] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -669,8 +669,8 @@ pub mod flux_configuration { #[serde(rename = "lastSourceUpdatedCommitId", default, skip_serializing_if = "Option::is_none")] pub last_source_updated_commit_id: Option, #[doc = "Datetime the fluxConfiguration last synced its source on the cluster."] - #[serde(rename = "lastSourceUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub last_source_updated_at: Option, + #[serde(rename = "lastSourceUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub last_source_updated_at: Option, #[doc = "Compliance state of the cluster object."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -1006,8 +1006,8 @@ impl ObjectReferenceDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ObjectStatusConditionDefinition { #[doc = "Last time this status condition has changed"] - #[serde(rename = "lastTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub last_transition_time: Option, + #[serde(rename = "lastTransitionTime", with = "azure_core::date::rfc3339::option")] + pub last_transition_time: Option, #[doc = "A more verbose description of the object status condition"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -1664,8 +1664,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1673,8 +1673,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs index e5e6bc7b2e0..f6bb3be164e 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs @@ -88,8 +88,8 @@ pub struct ComplianceStatus { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "Datetime the configuration was last applied."] - #[serde(rename = "lastConfigApplied", default, skip_serializing_if = "Option::is_none")] - pub last_config_applied: Option, + #[serde(rename = "lastConfigApplied", with = "azure_core::date::rfc3339::option")] + pub last_config_applied: Option, #[doc = "Message from when the configuration was applied."] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -644,8 +644,8 @@ pub mod flux_configuration { #[serde(rename = "lastSourceUpdatedCommitId", default, skip_serializing_if = "Option::is_none")] pub last_source_updated_commit_id: Option, #[doc = "Datetime the fluxConfiguration last synced its source on the cluster."] - #[serde(rename = "lastSourceUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub last_source_updated_at: Option, + #[serde(rename = "lastSourceUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub last_source_updated_at: Option, #[doc = "Compliance state of the cluster object."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -981,8 +981,8 @@ impl ObjectReferenceDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ObjectStatusConditionDefinition { #[doc = "Last time this status condition has changed"] - #[serde(rename = "lastTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub last_transition_time: Option, + #[serde(rename = "lastTransitionTime", with = "azure_core::date::rfc3339::option")] + pub last_transition_time: Option, #[doc = "A more verbose description of the object status condition"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -1639,8 +1639,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1648,8 +1648,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs index 4a6e4c1b953..fcdb5f069e9 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs @@ -73,8 +73,8 @@ pub struct ComplianceStatus { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "Datetime the configuration was last applied."] - #[serde(rename = "lastConfigApplied", default, skip_serializing_if = "Option::is_none")] - pub last_config_applied: Option, + #[serde(rename = "lastConfigApplied", with = "azure_core::date::rfc3339::option")] + pub last_config_applied: Option, #[doc = "Message from when the configuration was applied."] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -541,11 +541,11 @@ pub mod flux_configuration { #[serde(rename = "sourceSyncedCommitId", default, skip_serializing_if = "Option::is_none")] pub source_synced_commit_id: Option, #[doc = "Datetime the fluxConfiguration synced its source on the cluster."] - #[serde(rename = "sourceUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub source_updated_at: Option, + #[serde(rename = "sourceUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub source_updated_at: Option, #[doc = "Datetime the fluxConfiguration synced its status on the cluster with Azure."] - #[serde(rename = "statusUpdatedAt", default, skip_serializing_if = "Option::is_none")] - pub status_updated_at: Option, + #[serde(rename = "statusUpdatedAt", with = "azure_core::date::rfc3339::option")] + pub status_updated_at: Option, #[doc = "Compliance state of the cluster object."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -952,8 +952,8 @@ impl ObjectReferenceDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ObjectStatusConditionDefinition { #[doc = "Last time this status condition has changed"] - #[serde(rename = "lastTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub last_transition_time: Option, + #[serde(rename = "lastTransitionTime", with = "azure_core::date::rfc3339::option")] + pub last_transition_time: Option, #[doc = "A more verbose description of the object status condition"] #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, @@ -1899,8 +1899,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1908,8 +1908,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/kusto/Cargo.toml b/services/mgmt/kusto/Cargo.toml index 6fcb7622339..24c26e7c627 100644 --- a/services/mgmt/kusto/Cargo.toml +++ b/services/mgmt/kusto/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/labservices/Cargo.toml b/services/mgmt/labservices/Cargo.toml index 2d36c42151c..429bce8bf0d 100644 --- a/services/mgmt/labservices/Cargo.toml +++ b/services/mgmt/labservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/labservices/src/package_2018_10/models.rs b/services/mgmt/labservices/src/package_2018_10/models.rs index cbaa646d954..7bd8c85823f 100644 --- a/services/mgmt/labservices/src/package_2018_10/models.rs +++ b/services/mgmt/labservices/src/package_2018_10/models.rs @@ -123,8 +123,8 @@ pub struct EnvironmentDetails { #[serde(rename = "totalUsage", default, skip_serializing_if = "Option::is_none")] pub total_usage: Option, #[doc = "When the password was last reset on the environment."] - #[serde(rename = "passwordLastReset", default, skip_serializing_if = "Option::is_none")] - pub password_last_reset: Option, + #[serde(rename = "passwordLastReset", with = "azure_core::date::rfc3339::option")] + pub password_last_reset: Option, } impl EnvironmentDetails { pub fn new() -> Self { @@ -185,8 +185,8 @@ pub struct EnvironmentProperties { #[serde(rename = "totalUsage", default, skip_serializing_if = "Option::is_none")] pub total_usage: Option, #[doc = "When the password was last reset on the environment."] - #[serde(rename = "passwordLastReset", default, skip_serializing_if = "Option::is_none")] - pub password_last_reset: Option, + #[serde(rename = "passwordLastReset", with = "azure_core::date::rfc3339::option")] + pub password_last_reset: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -281,11 +281,11 @@ pub struct EnvironmentSettingProperties { #[serde(rename = "resourceSettings")] pub resource_settings: ResourceSettings, #[doc = "Time when the template VM was last changed."] - #[serde(rename = "lastChanged", default, skip_serializing_if = "Option::is_none")] - pub last_changed: Option, + #[serde(rename = "lastChanged", with = "azure_core::date::rfc3339::option")] + pub last_changed: Option, #[doc = "Time when the template VM was last sent for publishing."] - #[serde(rename = "lastPublished", default, skip_serializing_if = "Option::is_none")] - pub last_published: Option, + #[serde(rename = "lastPublished", with = "azure_core::date::rfc3339::option")] + pub last_published: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -620,8 +620,8 @@ pub struct GalleryImageProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub author: Option, #[doc = "The creation date of the gallery image."] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The description of the gallery image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -925,8 +925,8 @@ pub struct LabProperties { #[serde(rename = "createdByUserPrincipalName", default, skip_serializing_if = "Option::is_none")] pub created_by_user_principal_name: Option, #[doc = "Creation date for the lab"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "The provisioning status of the resource."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/labservices/src/package_preview_2021_10/models.rs b/services/mgmt/labservices/src/package_preview_2021_10/models.rs index 6341d6be791..d36e7f29cb5 100644 --- a/services/mgmt/labservices/src/package_preview_2021_10/models.rs +++ b/services/mgmt/labservices/src/package_preview_2021_10/models.rs @@ -654,11 +654,11 @@ pub struct OperationResult { #[doc = "The operation status"] pub status: operation_result::Status, #[doc = "Start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Percent completion"] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -988,11 +988,11 @@ impl ScheduleUpdate { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleUpdateProperties { #[doc = "When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead."] - #[serde(rename = "startAt", default, skip_serializing_if = "Option::is_none")] - pub start_at: Option, + #[serde(rename = "startAt", with = "azure_core::date::rfc3339::option")] + pub start_at: Option, #[doc = "When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead."] - #[serde(rename = "stopAt", default, skip_serializing_if = "Option::is_none")] - pub stop_at: Option, + #[serde(rename = "stopAt", with = "azure_core::date::rfc3339::option")] + pub stop_at: Option, #[doc = "Recurrence pattern of a lab schedule."] #[serde(rename = "recurrencePattern", default, skip_serializing_if = "Option::is_none")] pub recurrence_pattern: Option, @@ -1156,8 +1156,8 @@ pub struct UserProperties { #[serde(rename = "invitationState", default, skip_serializing_if = "Option::is_none")] pub invitation_state: Option, #[doc = "Date and time when the invitation message was sent to the user."] - #[serde(rename = "invitationSent", default, skip_serializing_if = "Option::is_none")] - pub invitation_sent: Option, + #[serde(rename = "invitationSent", with = "azure_core::date::rfc3339::option")] + pub invitation_sent: Option, #[doc = "How long the user has used their virtual machines in this lab."] #[serde(rename = "totalUsage", default, skip_serializing_if = "Option::is_none")] pub total_usage: Option, @@ -1429,8 +1429,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1438,8 +1438,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/labservices/src/package_preview_2021_11/models.rs b/services/mgmt/labservices/src/package_preview_2021_11/models.rs index 4ad7b476da6..a581c907dd4 100644 --- a/services/mgmt/labservices/src/package_preview_2021_11/models.rs +++ b/services/mgmt/labservices/src/package_preview_2021_11/models.rs @@ -943,11 +943,11 @@ pub struct OperationResult { #[doc = "The operation status"] pub status: operation_result::Status, #[doc = "Start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Percent completion"] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -1298,11 +1298,11 @@ impl ScheduleUpdate { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduleUpdateProperties { #[doc = "When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead."] - #[serde(rename = "startAt", default, skip_serializing_if = "Option::is_none")] - pub start_at: Option, + #[serde(rename = "startAt", with = "azure_core::date::rfc3339::option")] + pub start_at: Option, #[doc = "When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead."] - #[serde(rename = "stopAt", default, skip_serializing_if = "Option::is_none")] - pub stop_at: Option, + #[serde(rename = "stopAt", with = "azure_core::date::rfc3339::option")] + pub stop_at: Option, #[doc = "Recurrence pattern of a lab schedule."] #[serde(rename = "recurrencePattern", default, skip_serializing_if = "Option::is_none")] pub recurrence_pattern: Option, @@ -1543,8 +1543,8 @@ pub struct UserProperties { #[serde(rename = "invitationState", default, skip_serializing_if = "Option::is_none")] pub invitation_state: Option, #[doc = "Date and time when the invitation message was sent to the user."] - #[serde(rename = "invitationSent", default, skip_serializing_if = "Option::is_none")] - pub invitation_sent: Option, + #[serde(rename = "invitationSent", with = "azure_core::date::rfc3339::option")] + pub invitation_sent: Option, #[doc = "How long the user has used their virtual machines in this lab."] #[serde(rename = "totalUsage", default, skip_serializing_if = "Option::is_none")] pub total_usage: Option, @@ -1816,8 +1816,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1825,8 +1825,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/loadtestservice/Cargo.toml b/services/mgmt/loadtestservice/Cargo.toml index d5c709f6eee..039289d6640 100644 --- a/services/mgmt/loadtestservice/Cargo.toml +++ b/services/mgmt/loadtestservice/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs b/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs index 2480f84a57c..02934d27c0c 100644 --- a/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs @@ -451,8 +451,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -460,8 +460,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs b/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs index 3c35cb8be92..da47c4db042 100644 --- a/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs +++ b/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs @@ -564,8 +564,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -573,8 +573,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/logic/Cargo.toml b/services/mgmt/logic/Cargo.toml index ca9778e11a5..043502801a9 100644 --- a/services/mgmt/logic/Cargo.toml +++ b/services/mgmt/logic/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/logic/src/package_2018_07_preview/models.rs b/services/mgmt/logic/src/package_2018_07_preview/models.rs index 95a358eebe3..26aab64f705 100644 --- a/services/mgmt/logic/src/package_2018_07_preview/models.rs +++ b/services/mgmt/logic/src/package_2018_07_preview/models.rs @@ -427,11 +427,11 @@ impl ArtifactContentPropertiesDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ArtifactProperties { #[doc = "The artifact creation time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The artifact changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, } @@ -579,11 +579,11 @@ pub struct BatchConfigurationProperties { #[serde(rename = "releaseCriteria")] pub release_criteria: BatchReleaseCriteria, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, } impl BatchConfigurationProperties { pub fn new(batch_group_name: String, release_criteria: BatchReleaseCriteria) -> Self { @@ -1688,8 +1688,8 @@ impl GenerateUpgradedDefinitionParameters { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GetCallbackUrlParameters { #[doc = "The expiry time."] - #[serde(rename = "notAfter", default, skip_serializing_if = "Option::is_none")] - pub not_after: Option, + #[serde(rename = "notAfter", with = "azure_core::date::rfc3339::option")] + pub not_after: Option, #[serde(rename = "keyType", default, skip_serializing_if = "Option::is_none")] pub key_type: Option, } @@ -1817,11 +1817,11 @@ impl IntegrationAccountAgreementListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IntegrationAccountAgreementProperties { #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -1905,11 +1905,11 @@ impl IntegrationAccountCertificateListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IntegrationAccountCertificateProperties { #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -2003,11 +2003,11 @@ pub struct IntegrationAccountMapProperties { #[serde(rename = "parametersSchema", default, skip_serializing_if = "Option::is_none")] pub parameters_schema: Option, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The content."] #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, @@ -2104,11 +2104,11 @@ pub struct IntegrationAccountPartnerProperties { #[serde(rename = "partnerType")] pub partner_type: PartnerType, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -2196,11 +2196,11 @@ pub struct IntegrationAccountSchemaProperties { #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -2250,11 +2250,11 @@ impl IntegrationAccountSession { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IntegrationAccountSessionFilter { #[doc = "The changed time of integration account sessions."] - #[serde(rename = "changedTime")] - pub changed_time: String, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339")] + pub changed_time: time::OffsetDateTime, } impl IntegrationAccountSessionFilter { - pub fn new(changed_time: String) -> Self { + pub fn new(changed_time: time::OffsetDateTime) -> Self { Self { changed_time } } } @@ -2283,11 +2283,11 @@ impl IntegrationAccountSessionListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IntegrationAccountSessionProperties { #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, } @@ -2710,11 +2710,11 @@ impl OperationResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResultProperties { #[doc = "The start time of the workflow scope repetition."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the workflow scope repetition."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The workflow run action correlation properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub correlation: Option, @@ -3001,11 +3001,11 @@ impl RequestHistoryListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RequestHistoryProperties { #[doc = "The time the request started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the request ended."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A request."] #[serde(default, skip_serializing_if = "Option::is_none")] pub request: Option, @@ -3081,11 +3081,11 @@ impl Response { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RetryHistory { #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the status code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, @@ -3353,8 +3353,8 @@ pub struct TrackingEvent { #[doc = "The event level."] #[serde(rename = "eventLevel")] pub event_level: EventLevel, - #[serde(rename = "eventTime")] - pub event_time: String, + #[serde(rename = "eventTime", with = "azure_core::date::rfc3339")] + pub event_time: time::OffsetDateTime, #[doc = "The tracking record type."] #[serde(rename = "recordType")] pub record_type: TrackingRecordType, @@ -3362,7 +3362,7 @@ pub struct TrackingEvent { pub error: Option, } impl TrackingEvent { - pub fn new(event_level: EventLevel, event_time: String, record_type: TrackingRecordType) -> Self { + pub fn new(event_level: EventLevel, event_time: time::OffsetDateTime, record_type: TrackingRecordType) -> Self { Self { event_level, event_time, @@ -3643,11 +3643,11 @@ pub struct WorkflowProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Gets the created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Gets the changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Gets the version."] @@ -3817,11 +3817,11 @@ impl WorkflowRunActionListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkflowRunActionProperties { #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets the code."] @@ -3935,14 +3935,14 @@ impl WorkflowRunListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkflowRunProperties { #[doc = "Gets the wait end time."] - #[serde(rename = "waitEndTime", default, skip_serializing_if = "Option::is_none")] - pub wait_end_time: Option, + #[serde(rename = "waitEndTime", with = "azure_core::date::rfc3339::option")] + pub wait_end_time: Option, #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets the code."] @@ -3991,14 +3991,14 @@ pub struct WorkflowRunTrigger { #[serde(rename = "outputsLink", default, skip_serializing_if = "Option::is_none")] pub outputs_link: Option, #[doc = "Gets the scheduled time."] - #[serde(rename = "scheduledTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_time: Option, + #[serde(rename = "scheduledTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_time: Option, #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the tracking id."] #[serde(rename = "trackingId", default, skip_serializing_if = "Option::is_none")] pub tracking_id: Option, @@ -4236,11 +4236,11 @@ impl WorkflowTriggerHistoryListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkflowTriggerHistoryProperties { #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets the code."] @@ -4323,21 +4323,21 @@ pub struct WorkflowTriggerProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Gets the created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Gets the changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets the last execution time."] - #[serde(rename = "lastExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub last_execution_time: Option, + #[serde(rename = "lastExecutionTime", with = "azure_core::date::rfc3339::option")] + pub last_execution_time: Option, #[doc = "Gets the next execution time."] - #[serde(rename = "nextExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub next_execution_time: Option, + #[serde(rename = "nextExecutionTime", with = "azure_core::date::rfc3339::option")] + pub next_execution_time: Option, #[doc = "The workflow trigger recurrence."] #[serde(default, skip_serializing_if = "Option::is_none")] pub recurrence: Option, @@ -4483,11 +4483,11 @@ impl WorkflowVersionListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkflowVersionProperties { #[doc = "Gets the created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Gets the changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "Gets the version."] diff --git a/services/mgmt/logic/src/package_2019_05/models.rs b/services/mgmt/logic/src/package_2019_05/models.rs index 37a5ce9f957..10eed9951c6 100644 --- a/services/mgmt/logic/src/package_2019_05/models.rs +++ b/services/mgmt/logic/src/package_2019_05/models.rs @@ -872,11 +872,11 @@ impl ArtifactContentPropertiesDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ArtifactProperties { #[doc = "The artifact creation time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The artifact changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, } @@ -1065,11 +1065,11 @@ pub struct BatchConfigurationProperties { #[serde(rename = "releaseCriteria")] pub release_criteria: BatchReleaseCriteria, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, } impl BatchConfigurationProperties { pub fn new(batch_group_name: String, release_criteria: BatchReleaseCriteria) -> Self { @@ -2323,8 +2323,8 @@ impl GenerateUpgradedDefinitionParameters { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GetCallbackUrlParameters { #[doc = "The expiry time."] - #[serde(rename = "notAfter", default, skip_serializing_if = "Option::is_none")] - pub not_after: Option, + #[serde(rename = "notAfter", with = "azure_core::date::rfc3339::option")] + pub not_after: Option, #[doc = "The key type."] #[serde(rename = "keyType", default, skip_serializing_if = "Option::is_none")] pub key_type: Option, @@ -2456,11 +2456,11 @@ impl IntegrationAccountAgreementListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IntegrationAccountAgreementProperties { #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -2545,11 +2545,11 @@ impl IntegrationAccountCertificateListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IntegrationAccountCertificateProperties { #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -2645,11 +2645,11 @@ pub struct IntegrationAccountMapProperties { #[serde(rename = "parametersSchema", default, skip_serializing_if = "Option::is_none")] pub parameters_schema: Option, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The content."] #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, @@ -2748,11 +2748,11 @@ pub struct IntegrationAccountPartnerProperties { #[serde(rename = "partnerType")] pub partner_type: PartnerType, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -2850,11 +2850,11 @@ pub struct IntegrationAccountSchemaProperties { #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, @@ -2904,11 +2904,11 @@ impl IntegrationAccountSession { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IntegrationAccountSessionFilter { #[doc = "The changed time of integration account sessions."] - #[serde(rename = "changedTime")] - pub changed_time: String, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339")] + pub changed_time: time::OffsetDateTime, } impl IntegrationAccountSessionFilter { - pub fn new(changed_time: String) -> Self { + pub fn new(changed_time: time::OffsetDateTime) -> Self { Self { changed_time } } } @@ -2937,11 +2937,11 @@ impl IntegrationAccountSessionListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IntegrationAccountSessionProperties { #[doc = "The created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, } @@ -4256,11 +4256,11 @@ impl OperationResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResultProperties { #[doc = "The start time of the workflow scope repetition."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the workflow scope repetition."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The workflow run action correlation properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub correlation: Option, @@ -4553,11 +4553,11 @@ impl RequestHistoryListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RequestHistoryProperties { #[doc = "The time the request started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time the request ended."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "A request."] #[serde(default, skip_serializing_if = "Option::is_none")] pub request: Option, @@ -4633,11 +4633,11 @@ impl Response { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RetryHistory { #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the status code."] #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, @@ -5259,8 +5259,8 @@ pub struct TrackingEvent { #[serde(rename = "eventLevel")] pub event_level: EventLevel, #[doc = "The event time."] - #[serde(rename = "eventTime")] - pub event_time: String, + #[serde(rename = "eventTime", with = "azure_core::date::rfc3339")] + pub event_time: time::OffsetDateTime, #[doc = "The tracking record type."] #[serde(rename = "recordType")] pub record_type: TrackingRecordType, @@ -5271,7 +5271,7 @@ pub struct TrackingEvent { pub error: Option, } impl TrackingEvent { - pub fn new(event_level: EventLevel, event_time: String, record_type: TrackingRecordType) -> Self { + pub fn new(event_level: EventLevel, event_time: time::OffsetDateTime, record_type: TrackingRecordType) -> Self { Self { event_level, event_time, @@ -5567,11 +5567,11 @@ pub struct WorkflowProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Gets the created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Gets the changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The workflow state."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -5775,11 +5775,11 @@ impl WorkflowRunActionListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkflowRunActionProperties { #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The workflow status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5898,14 +5898,14 @@ impl WorkflowRunListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkflowRunProperties { #[doc = "Gets the wait end time."] - #[serde(rename = "waitEndTime", default, skip_serializing_if = "Option::is_none")] - pub wait_end_time: Option, + #[serde(rename = "waitEndTime", with = "azure_core::date::rfc3339::option")] + pub wait_end_time: Option, #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The workflow status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -5955,14 +5955,14 @@ pub struct WorkflowRunTrigger { #[serde(rename = "outputsLink", default, skip_serializing_if = "Option::is_none")] pub outputs_link: Option, #[doc = "Gets the scheduled time."] - #[serde(rename = "scheduledTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_time: Option, + #[serde(rename = "scheduledTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_time: Option, #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the tracking id."] #[serde(rename = "trackingId", default, skip_serializing_if = "Option::is_none")] pub tracking_id: Option, @@ -6205,14 +6205,14 @@ impl WorkflowTriggerHistoryListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkflowTriggerHistoryProperties { #[doc = "Gets the start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The scheduled time."] - #[serde(rename = "scheduledTime", default, skip_serializing_if = "Option::is_none")] - pub scheduled_time: Option, + #[serde(rename = "scheduledTime", with = "azure_core::date::rfc3339::option")] + pub scheduled_time: Option, #[doc = "The workflow status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -6297,11 +6297,11 @@ pub struct WorkflowTriggerProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Gets the created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Gets the changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The workflow state."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -6309,11 +6309,11 @@ pub struct WorkflowTriggerProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Gets the last execution time."] - #[serde(rename = "lastExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub last_execution_time: Option, + #[serde(rename = "lastExecutionTime", with = "azure_core::date::rfc3339::option")] + pub last_execution_time: Option, #[doc = "Gets the next execution time."] - #[serde(rename = "nextExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub next_execution_time: Option, + #[serde(rename = "nextExecutionTime", with = "azure_core::date::rfc3339::option")] + pub next_execution_time: Option, #[doc = "The workflow trigger recurrence."] #[serde(default, skip_serializing_if = "Option::is_none")] pub recurrence: Option, @@ -6484,11 +6484,11 @@ pub struct WorkflowVersionProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "Gets the created time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Gets the changed time."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The workflow state."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, diff --git a/services/mgmt/logz/Cargo.toml b/services/mgmt/logz/Cargo.toml index ac7289d2a2a..152bc2f098d 100644 --- a/services/mgmt/logz/Cargo.toml +++ b/services/mgmt/logz/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/logz/src/package_2020_10_01/models.rs b/services/mgmt/logz/src/package_2020_10_01/models.rs index ba56c5016e3..37bcece662f 100644 --- a/services/mgmt/logz/src/package_2020_10_01/models.rs +++ b/services/mgmt/logz/src/package_2020_10_01/models.rs @@ -655,8 +655,8 @@ pub struct PlanData { #[serde(rename = "planDetails", default, skip_serializing_if = "Option::is_none")] pub plan_details: Option, #[doc = "date when plan was applied"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, } impl PlanData { pub fn new() -> Self { @@ -1009,8 +1009,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1018,8 +1018,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/logz/src/package_2020_10_01_preview/models.rs b/services/mgmt/logz/src/package_2020_10_01_preview/models.rs index ba56c5016e3..37bcece662f 100644 --- a/services/mgmt/logz/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/logz/src/package_2020_10_01_preview/models.rs @@ -655,8 +655,8 @@ pub struct PlanData { #[serde(rename = "planDetails", default, skip_serializing_if = "Option::is_none")] pub plan_details: Option, #[doc = "date when plan was applied"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, } impl PlanData { pub fn new() -> Self { @@ -1009,8 +1009,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1018,8 +1018,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/logz/src/package_2022_01_01_preview/models.rs b/services/mgmt/logz/src/package_2022_01_01_preview/models.rs index b07a9955daa..dc1f9ff2af2 100644 --- a/services/mgmt/logz/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/logz/src/package_2022_01_01_preview/models.rs @@ -802,8 +802,8 @@ pub struct PlanData { #[serde(rename = "planDetails", default, skip_serializing_if = "Option::is_none")] pub plan_details: Option, #[doc = "date when plan was applied"] - #[serde(rename = "effectiveDate", default, skip_serializing_if = "Option::is_none")] - pub effective_date: Option, + #[serde(rename = "effectiveDate", with = "azure_core::date::rfc3339::option")] + pub effective_date: Option, } impl PlanData { pub fn new() -> Self { @@ -1156,8 +1156,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1165,8 +1165,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/m365securityandcompliance/Cargo.toml b/services/mgmt/m365securityandcompliance/Cargo.toml index 15205e0cf0b..552e31ae309 100644 --- a/services/mgmt/m365securityandcompliance/Cargo.toml +++ b/services/mgmt/m365securityandcompliance/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs b/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs index 930029988a3..d4aae2a0af7 100644 --- a/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs +++ b/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs @@ -1040,8 +1040,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1049,8 +1049,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/machinelearning/Cargo.toml b/services/mgmt/machinelearning/Cargo.toml index bca13297a7e..f340fd7454a 100644 --- a/services/mgmt/machinelearning/Cargo.toml +++ b/services/mgmt/machinelearning/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs b/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs index 2a903fece58..bb07f888c32 100644 --- a/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs +++ b/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs @@ -89,8 +89,8 @@ pub struct CommitmentAssociationProperties { #[serde(rename = "commitmentPlanId", default, skip_serializing_if = "Option::is_none")] pub commitment_plan_id: Option, #[doc = "The date at which this commitment association was created, in ISO 8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl CommitmentAssociationProperties { pub fn new() -> Self { @@ -168,8 +168,8 @@ pub struct CommitmentPlanProperties { #[serde(rename = "chargeForPlan", default, skip_serializing_if = "Option::is_none")] pub charge_for_plan: Option, #[doc = "The date at which this commitment plan was created, in ISO 8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The included resource quantities this plan gives you."] #[serde(rename = "includedQuantities", default, skip_serializing_if = "Option::is_none")] pub included_quantities: Option, @@ -306,8 +306,8 @@ pub struct PlanUsageHistory { #[serde(default, skip_serializing_if = "Option::is_none")] pub usage: Option, #[doc = "The date of usage, in ISO 8601 format."] - #[serde(rename = "usageDate", default, skip_serializing_if = "Option::is_none")] - pub usage_date: Option, + #[serde(rename = "usageDate", with = "azure_core::date::rfc3339::option")] + pub usage_date: Option, } impl PlanUsageHistory { pub fn new() -> Self { diff --git a/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs b/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs index c56ef0e44d7..6bdb0cc8cbb 100644 --- a/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs +++ b/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs @@ -259,8 +259,8 @@ pub struct DiagnosticsConfiguration { #[doc = "Specifies the verbosity of the diagnostic output. Valid values are: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr)."] pub level: diagnostics_configuration::Level, #[doc = "Specifies the date and time when the logging will cease. If null, diagnostic collection is not time limited."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, } impl DiagnosticsConfiguration { pub fn new(level: diagnostics_configuration::Level) -> Self { @@ -803,11 +803,11 @@ pub struct WebServiceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Read Only: The date and time when the web service was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Read Only: The date and time when the web service was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "Read Only: The provision state of the web service. Valid values are Unknown, Provisioning, Succeeded, and Failed."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs b/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs index 31a01260715..4aacf103378 100644 --- a/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs +++ b/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs @@ -119,11 +119,11 @@ pub struct AsyncOperationStatus { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The date time that the async operation started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The date time that the async operation finished."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Async operation progress."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -354,8 +354,8 @@ pub struct DiagnosticsConfiguration { #[doc = "Specifies the verbosity of the diagnostic output. Valid values are: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr)."] pub level: diagnostics_configuration::Level, #[doc = "Specifies the date and time when the logging will cease. If null, diagnostic collection is not time limited."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiry: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiry: Option, } impl DiagnosticsConfiguration { pub fn new(level: diagnostics_configuration::Level) -> Self { @@ -1006,11 +1006,11 @@ pub struct WebServiceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "Read Only: The date and time when the web service was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "Read Only: The date and time when the web service was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "Read Only: The provision state of the web service. Valid values are Unknown, Provisioning, Succeeded, and Failed."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/machinelearningcompute/Cargo.toml b/services/mgmt/machinelearningcompute/Cargo.toml index e01c6d0033f..e4fb9e9077c 100644 --- a/services/mgmt/machinelearningcompute/Cargo.toml +++ b/services/mgmt/machinelearningcompute/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs b/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs index 3541010826a..8a1c8225203 100644 --- a/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs +++ b/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs @@ -304,11 +304,11 @@ pub struct AsyncOperationStatus { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The date time that the async operation started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The date time that the async operation finished."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Async operation progress."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -665,11 +665,11 @@ pub struct OperationalizationClusterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The date and time when the cluster was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The date and time when the cluster was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1063,11 +1063,11 @@ pub struct UpdateSystemResponse { #[serde(rename = "updateStatus", default, skip_serializing_if = "Option::is_none")] pub update_status: Option, #[doc = "Read Only: The date and time when the last system services update was started."] - #[serde(rename = "updateStartedOn", default, skip_serializing_if = "Option::is_none")] - pub update_started_on: Option, + #[serde(rename = "updateStartedOn", with = "azure_core::date::rfc3339::option")] + pub update_started_on: Option, #[doc = "Read Only: The date and time when the last system services update completed."] - #[serde(rename = "updateCompletedOn", default, skip_serializing_if = "Option::is_none")] - pub update_completed_on: Option, + #[serde(rename = "updateCompletedOn", with = "azure_core::date::rfc3339::option")] + pub update_completed_on: Option, } impl UpdateSystemResponse { pub fn new() -> Self { diff --git a/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs b/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs index b67097d2802..bef81c339c2 100644 --- a/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs +++ b/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs @@ -601,11 +601,11 @@ pub struct OperationalizationClusterProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The date and time when the cluster was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The date and time when the cluster was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -1039,11 +1039,11 @@ pub struct UpdateSystemServicesResponse { #[serde(rename = "updateStatus", default, skip_serializing_if = "Option::is_none")] pub update_status: Option, #[doc = "The date and time when the last system services update was started."] - #[serde(rename = "updateStartedOn", default, skip_serializing_if = "Option::is_none")] - pub update_started_on: Option, + #[serde(rename = "updateStartedOn", with = "azure_core::date::rfc3339::option")] + pub update_started_on: Option, #[doc = "The date and time when the last system services update completed."] - #[serde(rename = "updateCompletedOn", default, skip_serializing_if = "Option::is_none")] - pub update_completed_on: Option, + #[serde(rename = "updateCompletedOn", with = "azure_core::date::rfc3339::option")] + pub update_completed_on: Option, } impl UpdateSystemServicesResponse { pub fn new() -> Self { diff --git a/services/mgmt/machinelearningexperimentation/Cargo.toml b/services/mgmt/machinelearningexperimentation/Cargo.toml index 6d807b2e62d..a108955aba7 100644 --- a/services/mgmt/machinelearningexperimentation/Cargo.toml +++ b/services/mgmt/machinelearningexperimentation/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs b/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs index c38cb40bfe2..6561cb96ce9 100644 --- a/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs +++ b/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs @@ -67,8 +67,8 @@ pub struct AccountProperties { #[serde(rename = "discoveryUri", default, skip_serializing_if = "Option::is_none")] pub discovery_uri: Option, #[doc = "The creation date of the machine learning team account in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The properties of a storage account for a machine learning team account."] #[serde(rename = "storageAccount")] pub storage_account: StorageAccountProperties, @@ -276,8 +276,8 @@ pub struct ProjectProperties { #[serde(rename = "friendlyName")] pub friendly_name: String, #[doc = "The creation date of the project in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The current deployment state of project resource. The provisioningState is to indicate states for resource provisioning."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -442,8 +442,8 @@ pub struct WorkspaceProperties { #[serde(rename = "friendlyName")] pub friendly_name: String, #[doc = "The creation date of the machine learning workspace in ISO8601 format."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "The current deployment state of team account workspace resource. The provisioningState is to indicate states for resource provisioning."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/machinelearningservices/Cargo.toml b/services/mgmt/machinelearningservices/Cargo.toml index 122dd49a9cf..fea8a1e35ab 100644 --- a/services/mgmt/machinelearningservices/Cargo.toml +++ b/services/mgmt/machinelearningservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs b/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs index 7ff02ea0975..ed137de849b 100644 --- a/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs @@ -351,8 +351,8 @@ pub struct AmlComputeProperties { #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, #[doc = "The time at which the compute entered its current allocation state."] - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "Collection of errors encountered by various compute nodes during node setup."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, @@ -638,11 +638,11 @@ pub struct Compute { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The time at which the compute was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the compute was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "ARM resource id of the underlying compute"] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -791,8 +791,8 @@ pub struct ComputeInstanceLastOperation { #[serde(rename = "operationName", default, skip_serializing_if = "Option::is_none")] pub operation_name: Option, #[doc = "Time of the last operation."] - #[serde(rename = "operationTime", default, skip_serializing_if = "Option::is_none")] - pub operation_time: Option, + #[serde(rename = "operationTime", with = "azure_core::date::rfc3339::option")] + pub operation_time: Option, #[doc = "Operation status."] #[serde(rename = "operationStatus", default, skip_serializing_if = "Option::is_none")] pub operation_status: Option, @@ -4073,8 +4073,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4082,8 +4082,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs b/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs index 0ee4542789e..105ff2c1610 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs @@ -351,8 +351,8 @@ pub struct AmlComputeProperties { #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, #[doc = "The time at which the compute entered its current allocation state."] - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "Collection of errors encountered by various compute nodes during node setup."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, @@ -638,11 +638,11 @@ pub struct Compute { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The time at which the compute was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the compute was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "ARM resource id of the underlying compute"] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -791,8 +791,8 @@ pub struct ComputeInstanceLastOperation { #[serde(rename = "operationName", default, skip_serializing_if = "Option::is_none")] pub operation_name: Option, #[doc = "Time of the last operation."] - #[serde(rename = "operationTime", default, skip_serializing_if = "Option::is_none")] - pub operation_time: Option, + #[serde(rename = "operationTime", with = "azure_core::date::rfc3339::option")] + pub operation_time: Option, #[doc = "Operation status."] #[serde(rename = "operationStatus", default, skip_serializing_if = "Option::is_none")] pub operation_status: Option, @@ -4165,8 +4165,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -4174,8 +4174,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs b/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs index a353a52c022..cf064fbec2c 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs @@ -399,8 +399,8 @@ pub struct AmlComputeProperties { #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, #[doc = "The time at which the compute entered its current allocation state."] - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "Collection of errors encountered by various compute nodes during node setup."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, @@ -1924,11 +1924,11 @@ pub struct Compute { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The time at which the compute was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the compute was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "ARM resource id of the underlying compute"] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -2310,8 +2310,8 @@ pub struct ComputeInstanceDataMount { #[serde(rename = "mountState", default, skip_serializing_if = "Option::is_none")] pub mount_state: Option, #[doc = "The time when the disk mounted."] - #[serde(rename = "mountedOn", default, skip_serializing_if = "Option::is_none")] - pub mounted_on: Option, + #[serde(rename = "mountedOn", with = "azure_core::date::rfc3339::option")] + pub mounted_on: Option, #[doc = "Error of this data mount."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2468,8 +2468,8 @@ pub struct ComputeInstanceLastOperation { #[serde(rename = "operationName", default, skip_serializing_if = "Option::is_none")] pub operation_name: Option, #[doc = "Time of the last operation."] - #[serde(rename = "operationTime", default, skip_serializing_if = "Option::is_none")] - pub operation_time: Option, + #[serde(rename = "operationTime", with = "azure_core::date::rfc3339::option")] + pub operation_time: Option, #[doc = "Operation status."] #[serde(rename = "operationStatus", default, skip_serializing_if = "Option::is_none")] pub operation_status: Option, @@ -9576,8 +9576,8 @@ impl Serialize for ScaleType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBase { #[doc = "Specifies end time of schedule in ISO 8601 format.\r\nIf not present, the schedule will run indefinitely"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Enum to describe status of schedule"] #[serde(rename = "scheduleStatus", default, skip_serializing_if = "Option::is_none")] pub schedule_status: Option, @@ -9585,8 +9585,8 @@ pub struct ScheduleBase { #[serde(rename = "scheduleType")] pub schedule_type: ScheduleType, #[doc = "Specifies start time of schedule in ISO 8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Specifies time zone in which the schedule runs.\r\nTimeZone should follow Windows time zone format."] #[serde(rename = "timeZone", default, skip_serializing_if = "Option::is_none")] pub time_zone: Option, @@ -12070,8 +12070,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -12079,8 +12079,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs b/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs index 24d6be01bc3..81e4a86ab09 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs @@ -399,8 +399,8 @@ pub struct AmlComputeProperties { #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, #[doc = "The time at which the compute entered its current allocation state."] - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "Collection of errors encountered by various compute nodes during node setup."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, @@ -1612,11 +1612,11 @@ pub struct Compute { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The time at which the compute was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the compute was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "ARM resource id of the underlying compute"] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -1998,8 +1998,8 @@ pub struct ComputeInstanceDataMount { #[serde(rename = "mountState", default, skip_serializing_if = "Option::is_none")] pub mount_state: Option, #[doc = "The time when the disk mounted."] - #[serde(rename = "mountedOn", default, skip_serializing_if = "Option::is_none")] - pub mounted_on: Option, + #[serde(rename = "mountedOn", with = "azure_core::date::rfc3339::option")] + pub mounted_on: Option, #[doc = "Error of this data mount."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -2156,8 +2156,8 @@ pub struct ComputeInstanceLastOperation { #[serde(rename = "operationName", default, skip_serializing_if = "Option::is_none")] pub operation_name: Option, #[doc = "Time of the last operation."] - #[serde(rename = "operationTime", default, skip_serializing_if = "Option::is_none")] - pub operation_time: Option, + #[serde(rename = "operationTime", with = "azure_core::date::rfc3339::option")] + pub operation_time: Option, #[doc = "Operation status."] #[serde(rename = "operationStatus", default, skip_serializing_if = "Option::is_none")] pub operation_status: Option, @@ -9148,8 +9148,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -9157,8 +9157,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs b/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs index 3d62c247fa5..e165099360f 100644 --- a/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs +++ b/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs @@ -524,8 +524,8 @@ pub mod aml_compute { #[serde(rename = "allocationState", default, skip_serializing_if = "Option::is_none")] pub allocation_state: Option, #[doc = "The time at which the compute entered its current allocation state."] - #[serde(rename = "allocationStateTransitionTime", default, skip_serializing_if = "Option::is_none")] - pub allocation_state_transition_time: Option, + #[serde(rename = "allocationStateTransitionTime", with = "azure_core::date::rfc3339::option")] + pub allocation_state_transition_time: Option, #[doc = "Collection of errors encountered by various compute nodes during node setup."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, @@ -900,11 +900,11 @@ pub struct Compute { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The date and time when the compute was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The date and time when the compute was last modified."] - #[serde(rename = "modifiedOn", default, skip_serializing_if = "Option::is_none")] - pub modified_on: Option, + #[serde(rename = "modifiedOn", with = "azure_core::date::rfc3339::option")] + pub modified_on: Option, #[doc = "ARM resource id of the underlying compute"] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -2044,11 +2044,11 @@ pub struct Model { #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The Model creation time (UTC)."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The Model last modified time (UTC)."] - #[serde(rename = "modifiedTime", default, skip_serializing_if = "Option::is_none")] - pub modified_time: Option, + #[serde(rename = "modifiedTime", with = "azure_core::date::rfc3339::option")] + pub modified_time: Option, #[doc = "Indicates whether we need to unpack the Model during docker Image creation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub unpack: Option, @@ -3804,8 +3804,8 @@ pub struct WorkspaceProperties { #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, #[doc = "The creation time of the machine learning workspace in ISO8601 format."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created"] #[serde(rename = "keyVault", default, skip_serializing_if = "Option::is_none")] pub key_vault: Option, diff --git a/services/mgmt/maintenance/Cargo.toml b/services/mgmt/maintenance/Cargo.toml index 973fe6fa113..842bac80384 100644 --- a/services/mgmt/maintenance/Cargo.toml +++ b/services/mgmt/maintenance/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/maintenance/src/package_2021_05/models.rs b/services/mgmt/maintenance/src/package_2021_05/models.rs index 71edb7b16a1..8275b807133 100644 --- a/services/mgmt/maintenance/src/package_2021_05/models.rs +++ b/services/mgmt/maintenance/src/package_2021_05/models.rs @@ -28,8 +28,8 @@ pub struct ApplyUpdateProperties { #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, #[doc = "Last Update time"] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, } impl ApplyUpdateProperties { pub fn new() -> Self { @@ -475,8 +475,8 @@ pub struct Update { #[serde(rename = "impactDurationInSec", default, skip_serializing_if = "Option::is_none")] pub impact_duration_in_sec: Option, #[doc = "Time when Azure will start force updates if not self-updated by customer before this time"] - #[serde(rename = "notBefore", default, skip_serializing_if = "Option::is_none")] - pub not_before: Option, + #[serde(rename = "notBefore", with = "azure_core::date::rfc3339::option")] + pub not_before: Option, #[doc = "Properties for update"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -643,8 +643,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -652,8 +652,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/maintenance/src/package_preview_2020_07/models.rs b/services/mgmt/maintenance/src/package_preview_2020_07/models.rs index f3e64bd6be8..5c4819c0458 100644 --- a/services/mgmt/maintenance/src/package_preview_2020_07/models.rs +++ b/services/mgmt/maintenance/src/package_preview_2020_07/models.rs @@ -28,8 +28,8 @@ pub struct ApplyUpdateProperties { #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, #[doc = "Last Update time"] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, } impl ApplyUpdateProperties { pub fn new() -> Self { @@ -457,8 +457,8 @@ pub struct Update { #[serde(rename = "impactDurationInSec", default, skip_serializing_if = "Option::is_none")] pub impact_duration_in_sec: Option, #[doc = "Time when Azure will start force updates if not self-updated by customer before this time"] - #[serde(rename = "notBefore", default, skip_serializing_if = "Option::is_none")] - pub not_before: Option, + #[serde(rename = "notBefore", with = "azure_core::date::rfc3339::option")] + pub not_before: Option, #[doc = "Properties for update"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/maintenance/src/package_preview_2021_04/models.rs b/services/mgmt/maintenance/src/package_preview_2021_04/models.rs index ec1bbfc508f..e804713dbde 100644 --- a/services/mgmt/maintenance/src/package_preview_2021_04/models.rs +++ b/services/mgmt/maintenance/src/package_preview_2021_04/models.rs @@ -28,8 +28,8 @@ pub struct ApplyUpdateProperties { #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, #[doc = "Last Update time"] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, } impl ApplyUpdateProperties { pub fn new() -> Self { @@ -580,8 +580,8 @@ pub struct Update { #[serde(rename = "impactDurationInSec", default, skip_serializing_if = "Option::is_none")] pub impact_duration_in_sec: Option, #[doc = "Time when Azure will start force updates if not self-updated by customer before this time"] - #[serde(rename = "notBefore", default, skip_serializing_if = "Option::is_none")] - pub not_before: Option, + #[serde(rename = "notBefore", with = "azure_core::date::rfc3339::option")] + pub not_before: Option, #[doc = "Properties for update"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -763,8 +763,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -772,8 +772,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/maintenance/src/package_preview_2021_09/models.rs b/services/mgmt/maintenance/src/package_preview_2021_09/models.rs index bc5ce4d6550..44c37261804 100644 --- a/services/mgmt/maintenance/src/package_preview_2021_09/models.rs +++ b/services/mgmt/maintenance/src/package_preview_2021_09/models.rs @@ -28,8 +28,8 @@ pub struct ApplyUpdateProperties { #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, #[doc = "Last Update time"] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, } impl ApplyUpdateProperties { pub fn new() -> Self { @@ -585,8 +585,8 @@ pub struct Update { #[serde(rename = "impactDurationInSec", default, skip_serializing_if = "Option::is_none")] pub impact_duration_in_sec: Option, #[doc = "Time when Azure will start force updates if not self-updated by customer before this time"] - #[serde(rename = "notBefore", default, skip_serializing_if = "Option::is_none")] - pub not_before: Option, + #[serde(rename = "notBefore", with = "azure_core::date::rfc3339::option")] + pub not_before: Option, #[doc = "Properties for update"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -768,8 +768,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -777,8 +777,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/maintenance/src/package_preview_2022_07/models.rs b/services/mgmt/maintenance/src/package_preview_2022_07/models.rs index 3de8f0f876b..940d3fc2392 100644 --- a/services/mgmt/maintenance/src/package_preview_2022_07/models.rs +++ b/services/mgmt/maintenance/src/package_preview_2022_07/models.rs @@ -28,8 +28,8 @@ pub struct ApplyUpdateProperties { #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, #[doc = "Last Update time"] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, } impl ApplyUpdateProperties { pub fn new() -> Self { @@ -587,8 +587,8 @@ pub struct Update { #[serde(rename = "impactDurationInSec", default, skip_serializing_if = "Option::is_none")] pub impact_duration_in_sec: Option, #[doc = "Time when Azure will start force updates if not self-updated by customer before this time"] - #[serde(rename = "notBefore", default, skip_serializing_if = "Option::is_none")] - pub not_before: Option, + #[serde(rename = "notBefore", with = "azure_core::date::rfc3339::option")] + pub not_before: Option, #[doc = "Properties for update"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -772,8 +772,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -781,8 +781,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/managednetwork/Cargo.toml b/services/mgmt/managednetwork/Cargo.toml index da79c4b7892..c2ae7f05775 100644 --- a/services/mgmt/managednetwork/Cargo.toml +++ b/services/mgmt/managednetwork/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/managedservices/Cargo.toml b/services/mgmt/managedservices/Cargo.toml index 9e7f3210b48..29124198a84 100644 --- a/services/mgmt/managedservices/Cargo.toml +++ b/services/mgmt/managedservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/managedservices/src/package_preview_2022_01/models.rs b/services/mgmt/managedservices/src/package_preview_2022_01/models.rs index 771d0bf5e94..b5276c1831b 100644 --- a/services/mgmt/managedservices/src/package_preview_2022_01/models.rs +++ b/services/mgmt/managedservices/src/package_preview_2022_01/models.rs @@ -745,8 +745,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -754,8 +754,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/managementgroups/Cargo.toml b/services/mgmt/managementgroups/Cargo.toml index f5f9472b6ed..9a2a90f9532 100644 --- a/services/mgmt/managementgroups/Cargo.toml +++ b/services/mgmt/managementgroups/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/managementgroups/src/package_2019_11/models.rs b/services/mgmt/managementgroups/src/package_2019_11/models.rs index 13e6bd2fa26..0a038914402 100644 --- a/services/mgmt/managementgroups/src/package_2019_11/models.rs +++ b/services/mgmt/managementgroups/src/package_2019_11/models.rs @@ -89,8 +89,8 @@ pub struct CreateManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, @@ -468,8 +468,8 @@ pub struct ManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, diff --git a/services/mgmt/managementgroups/src/package_2020_02/models.rs b/services/mgmt/managementgroups/src/package_2020_02/models.rs index c70659f9b0e..a1c41062309 100644 --- a/services/mgmt/managementgroups/src/package_2020_02/models.rs +++ b/services/mgmt/managementgroups/src/package_2020_02/models.rs @@ -113,8 +113,8 @@ pub struct CreateManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, @@ -594,8 +594,8 @@ pub struct ManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, diff --git a/services/mgmt/managementgroups/src/package_2020_05/models.rs b/services/mgmt/managementgroups/src/package_2020_05/models.rs index d89dc4e933b..b89e9cc32df 100644 --- a/services/mgmt/managementgroups/src/package_2020_05/models.rs +++ b/services/mgmt/managementgroups/src/package_2020_05/models.rs @@ -110,8 +110,8 @@ pub struct CreateManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, @@ -606,8 +606,8 @@ pub struct ManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, diff --git a/services/mgmt/managementgroups/src/package_2020_10/models.rs b/services/mgmt/managementgroups/src/package_2020_10/models.rs index 391e92d50de..67d3a05536e 100644 --- a/services/mgmt/managementgroups/src/package_2020_10/models.rs +++ b/services/mgmt/managementgroups/src/package_2020_10/models.rs @@ -110,8 +110,8 @@ pub struct CreateManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, @@ -606,8 +606,8 @@ pub struct ManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, diff --git a/services/mgmt/managementgroups/src/package_2021_04/models.rs b/services/mgmt/managementgroups/src/package_2021_04/models.rs index 990b607f1a6..cc35510b58f 100644 --- a/services/mgmt/managementgroups/src/package_2021_04/models.rs +++ b/services/mgmt/managementgroups/src/package_2021_04/models.rs @@ -110,8 +110,8 @@ pub struct CreateManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, @@ -606,8 +606,8 @@ pub struct ManagementGroupDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The date and time when this object was last updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "The identity of the principal or process that updated the object."] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, diff --git a/services/mgmt/managementpartner/Cargo.toml b/services/mgmt/managementpartner/Cargo.toml index a7ee09d790b..e8928ee5e7f 100644 --- a/services/mgmt/managementpartner/Cargo.toml +++ b/services/mgmt/managementpartner/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/managementpartner/src/package_2018_02/models.rs b/services/mgmt/managementpartner/src/package_2018_02/models.rs index 02238461cba..23bb45fcf47 100644 --- a/services/mgmt/managementpartner/src/package_2018_02/models.rs +++ b/services/mgmt/managementpartner/src/package_2018_02/models.rs @@ -160,11 +160,11 @@ pub struct PartnerProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "This is the DateTime when the partner was updated."] - #[serde(rename = "updatedTime", default, skip_serializing_if = "Option::is_none")] - pub updated_time: Option, + #[serde(rename = "updatedTime", with = "azure_core::date::rfc3339::option")] + pub updated_time: Option, #[doc = "This is the DateTime when the partner was created."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "this is the management partner state: Active or Deleted"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, diff --git a/services/mgmt/maps/Cargo.toml b/services/mgmt/maps/Cargo.toml index a6166298359..17fc0d833e4 100644 --- a/services/mgmt/maps/Cargo.toml +++ b/services/mgmt/maps/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/maps/src/package_2021_02/models.rs b/services/mgmt/maps/src/package_2021_02/models.rs index 9fc746be489..d601c2a74d3 100644 --- a/services/mgmt/maps/src/package_2021_02/models.rs +++ b/services/mgmt/maps/src/package_2021_02/models.rs @@ -593,8 +593,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -602,8 +602,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/maps/src/package_preview_2020_02/models.rs b/services/mgmt/maps/src/package_preview_2020_02/models.rs index 0c59214e8b6..c3dc1243fd8 100644 --- a/services/mgmt/maps/src/package_preview_2020_02/models.rs +++ b/services/mgmt/maps/src/package_preview_2020_02/models.rs @@ -445,8 +445,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -454,8 +454,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/maps/src/package_preview_2021_07/models.rs b/services/mgmt/maps/src/package_preview_2021_07/models.rs index c0f478b3ac7..86598c0e062 100644 --- a/services/mgmt/maps/src/package_preview_2021_07/models.rs +++ b/services/mgmt/maps/src/package_preview_2021_07/models.rs @@ -651,8 +651,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -660,8 +660,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/maps/src/package_preview_2021_12/models.rs b/services/mgmt/maps/src/package_preview_2021_12/models.rs index e54fd5224c7..f21543c45d8 100644 --- a/services/mgmt/maps/src/package_preview_2021_12/models.rs +++ b/services/mgmt/maps/src/package_preview_2021_12/models.rs @@ -780,8 +780,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -789,8 +789,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mariadb/Cargo.toml b/services/mgmt/mariadb/Cargo.toml index 7496adb995d..6b55814b918 100644 --- a/services/mgmt/mariadb/Cargo.toml +++ b/services/mgmt/mariadb/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/mariadb/src/package_2018_06_01/models.rs b/services/mgmt/mariadb/src/package_2018_06_01/models.rs index b937862d80f..679aff44811 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01/models.rs @@ -304,11 +304,11 @@ pub struct LogFileProperties { #[serde(rename = "sizeInKB", default, skip_serializing_if = "Option::is_none")] pub size_in_kb: Option, #[doc = "Creation timestamp of the log file."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Last modified timestamp of the log file."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Type of the log file."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -835,11 +835,11 @@ pub struct QueryStatisticProperties { #[serde(rename = "queryId", default, skip_serializing_if = "Option::is_none")] pub query_id: Option, #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Aggregation function name."] #[serde(rename = "aggregationFunction", default, skip_serializing_if = "Option::is_none")] pub aggregation_function: Option, @@ -944,11 +944,11 @@ pub struct RecommendationActionProperties { #[serde(rename = "actionId", default, skip_serializing_if = "Option::is_none")] pub action_id: Option, #[doc = "Recommendation action creation time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Recommendation action expiration time."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "Recommendation action reason."] #[serde(default, skip_serializing_if = "Option::is_none")] pub reason: Option, @@ -992,8 +992,8 @@ pub struct RecommendedActionSessionsOperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Operation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1368,8 +1368,8 @@ pub struct ServerProperties { #[serde(rename = "fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub fully_qualified_domain_name: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, #[doc = "Storage Profile properties of a server"] #[serde(rename = "storageProfile", default, skip_serializing_if = "Option::is_none")] pub storage_profile: Option, @@ -1582,11 +1582,15 @@ pub struct ServerPropertiesForRestore { #[serde(rename = "sourceServerId")] pub source_server_id: String, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime")] - pub restore_point_in_time: String, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339")] + pub restore_point_in_time: time::OffsetDateTime, } impl ServerPropertiesForRestore { - pub fn new(server_properties_for_create: ServerPropertiesForCreate, source_server_id: String, restore_point_in_time: String) -> Self { + pub fn new( + server_properties_for_create: ServerPropertiesForCreate, + source_server_id: String, + restore_point_in_time: time::OffsetDateTime, + ) -> Self { Self { server_properties_for_create, source_server_id, @@ -1930,11 +1934,11 @@ pub struct TopQueryStatisticsInputProperties { #[serde(rename = "observedMetric")] pub observed_metric: String, #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, @@ -1944,8 +1948,8 @@ impl TopQueryStatisticsInputProperties { number_of_top_queries: i32, aggregation_function: String, observed_metric: String, - observation_start_time: String, - observation_end_time: String, + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, aggregation_window: String, ) -> Self { Self { @@ -2120,11 +2124,11 @@ impl WaitStatistic { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WaitStatisticProperties { #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Wait event name."] #[serde(rename = "eventName", default, skip_serializing_if = "Option::is_none")] pub event_name: Option, @@ -2167,17 +2171,21 @@ impl WaitStatisticsInput { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WaitStatisticsInputProperties { #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, } impl WaitStatisticsInputProperties { - pub fn new(observation_start_time: String, observation_end_time: String, aggregation_window: String) -> Self { + pub fn new( + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, + aggregation_window: String, + ) -> Self { Self { observation_start_time, observation_end_time, diff --git a/services/mgmt/mariadb/src/package_2018_06_01/operations.rs b/services/mgmt/mariadb/src/package_2018_06_01/operations.rs index c08a0e83bce..faeb9f003bc 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01/operations.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01/operations.rs @@ -2670,7 +2670,7 @@ pub mod query_texts { .append_pair(azure_core::query_param::API_VERSION, "2018-06-01"); let query_ids = &this.query_ids; for value in &this.query_ids { - req.url_mut().query_pairs_mut().append_pair("queryIds", value); + req.url_mut().query_pairs_mut().append_pair("queryIds", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs b/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs index f5e519207a7..00a85a203c1 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs @@ -243,11 +243,11 @@ pub struct LogFileProperties { #[serde(rename = "sizeInKB", default, skip_serializing_if = "Option::is_none")] pub size_in_kb: Option, #[doc = "Creation timestamp of the log file."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Last modified timestamp of the log file."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Type of the log file."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -780,8 +780,8 @@ pub struct ServerProperties { #[serde(rename = "fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub fully_qualified_domain_name: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, #[doc = "Storage Profile properties of a server"] #[serde(rename = "storageProfile", default, skip_serializing_if = "Option::is_none")] pub storage_profile: Option, @@ -984,11 +984,15 @@ pub struct ServerPropertiesForRestore { #[serde(rename = "sourceServerId")] pub source_server_id: String, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime")] - pub restore_point_in_time: String, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339")] + pub restore_point_in_time: time::OffsetDateTime, } impl ServerPropertiesForRestore { - pub fn new(server_properties_for_create: ServerPropertiesForCreate, source_server_id: String, restore_point_in_time: String) -> Self { + pub fn new( + server_properties_for_create: ServerPropertiesForCreate, + source_server_id: String, + restore_point_in_time: time::OffsetDateTime, + ) -> Self { Self { server_properties_for_create, source_server_id, diff --git a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs index 07c4c75721e..6b9270cd31f 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs @@ -286,11 +286,11 @@ pub struct LogFileProperties { #[serde(rename = "sizeInKB", default, skip_serializing_if = "Option::is_none")] pub size_in_kb: Option, #[doc = "Creation timestamp of the log file."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Last modified timestamp of the log file."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Type of the log file."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -707,11 +707,11 @@ pub struct QueryStatisticProperties { #[serde(rename = "queryId", default, skip_serializing_if = "Option::is_none")] pub query_id: Option, #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Aggregation function name."] #[serde(rename = "aggregationFunction", default, skip_serializing_if = "Option::is_none")] pub aggregation_function: Option, @@ -816,11 +816,11 @@ pub struct RecommendationActionProperties { #[serde(rename = "actionId", default, skip_serializing_if = "Option::is_none")] pub action_id: Option, #[doc = "Recommendation action creation time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Recommendation action expiration time."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "Recommendation action reason."] #[serde(default, skip_serializing_if = "Option::is_none")] pub reason: Option, @@ -864,8 +864,8 @@ pub struct RecommendedActionSessionsOperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Operation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1084,8 +1084,8 @@ pub struct ServerProperties { #[serde(rename = "fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub fully_qualified_domain_name: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, #[doc = "Storage Profile properties of a server"] #[serde(rename = "storageProfile", default, skip_serializing_if = "Option::is_none")] pub storage_profile: Option, @@ -1288,11 +1288,15 @@ pub struct ServerPropertiesForRestore { #[serde(rename = "sourceServerId")] pub source_server_id: String, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime")] - pub restore_point_in_time: String, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339")] + pub restore_point_in_time: time::OffsetDateTime, } impl ServerPropertiesForRestore { - pub fn new(server_properties_for_create: ServerPropertiesForCreate, source_server_id: String, restore_point_in_time: String) -> Self { + pub fn new( + server_properties_for_create: ServerPropertiesForCreate, + source_server_id: String, + restore_point_in_time: time::OffsetDateTime, + ) -> Self { Self { server_properties_for_create, source_server_id, @@ -1612,11 +1616,11 @@ pub struct TopQueryStatisticsInputProperties { #[serde(rename = "observedMetric")] pub observed_metric: String, #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, @@ -1626,8 +1630,8 @@ impl TopQueryStatisticsInputProperties { number_of_top_queries: i32, aggregation_function: String, observed_metric: String, - observation_start_time: String, - observation_end_time: String, + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, aggregation_window: String, ) -> Self { Self { @@ -1802,11 +1806,11 @@ impl WaitStatistic { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WaitStatisticProperties { #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Wait event name."] #[serde(rename = "eventName", default, skip_serializing_if = "Option::is_none")] pub event_name: Option, @@ -1849,17 +1853,21 @@ impl WaitStatisticsInput { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WaitStatisticsInputProperties { #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, } impl WaitStatisticsInputProperties { - pub fn new(observation_start_time: String, observation_end_time: String, aggregation_window: String) -> Self { + pub fn new( + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, + aggregation_window: String, + ) -> Self { Self { observation_start_time, observation_end_time, diff --git a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs index 52dfe63d57e..3f358fc4cac 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs @@ -2533,7 +2533,7 @@ pub mod query_texts { .append_pair(azure_core::query_param::API_VERSION, "2018-06-01"); let query_ids = &this.query_ids; for value in &this.query_ids { - req.url_mut().query_pairs_mut().append_pair("queryIds", value); + req.url_mut().query_pairs_mut().append_pair("queryIds", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/mariadb/src/package_2020_01_01/models.rs b/services/mgmt/mariadb/src/package_2020_01_01/models.rs index b937862d80f..679aff44811 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01/models.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01/models.rs @@ -304,11 +304,11 @@ pub struct LogFileProperties { #[serde(rename = "sizeInKB", default, skip_serializing_if = "Option::is_none")] pub size_in_kb: Option, #[doc = "Creation timestamp of the log file."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Last modified timestamp of the log file."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "Type of the log file."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -835,11 +835,11 @@ pub struct QueryStatisticProperties { #[serde(rename = "queryId", default, skip_serializing_if = "Option::is_none")] pub query_id: Option, #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Aggregation function name."] #[serde(rename = "aggregationFunction", default, skip_serializing_if = "Option::is_none")] pub aggregation_function: Option, @@ -944,11 +944,11 @@ pub struct RecommendationActionProperties { #[serde(rename = "actionId", default, skip_serializing_if = "Option::is_none")] pub action_id: Option, #[doc = "Recommendation action creation time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Recommendation action expiration time."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "Recommendation action reason."] #[serde(default, skip_serializing_if = "Option::is_none")] pub reason: Option, @@ -992,8 +992,8 @@ pub struct RecommendedActionSessionsOperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Operation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1368,8 +1368,8 @@ pub struct ServerProperties { #[serde(rename = "fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub fully_qualified_domain_name: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, #[doc = "Storage Profile properties of a server"] #[serde(rename = "storageProfile", default, skip_serializing_if = "Option::is_none")] pub storage_profile: Option, @@ -1582,11 +1582,15 @@ pub struct ServerPropertiesForRestore { #[serde(rename = "sourceServerId")] pub source_server_id: String, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime")] - pub restore_point_in_time: String, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339")] + pub restore_point_in_time: time::OffsetDateTime, } impl ServerPropertiesForRestore { - pub fn new(server_properties_for_create: ServerPropertiesForCreate, source_server_id: String, restore_point_in_time: String) -> Self { + pub fn new( + server_properties_for_create: ServerPropertiesForCreate, + source_server_id: String, + restore_point_in_time: time::OffsetDateTime, + ) -> Self { Self { server_properties_for_create, source_server_id, @@ -1930,11 +1934,11 @@ pub struct TopQueryStatisticsInputProperties { #[serde(rename = "observedMetric")] pub observed_metric: String, #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, @@ -1944,8 +1948,8 @@ impl TopQueryStatisticsInputProperties { number_of_top_queries: i32, aggregation_function: String, observed_metric: String, - observation_start_time: String, - observation_end_time: String, + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, aggregation_window: String, ) -> Self { Self { @@ -2120,11 +2124,11 @@ impl WaitStatistic { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WaitStatisticProperties { #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Wait event name."] #[serde(rename = "eventName", default, skip_serializing_if = "Option::is_none")] pub event_name: Option, @@ -2167,17 +2171,21 @@ impl WaitStatisticsInput { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WaitStatisticsInputProperties { #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, } impl WaitStatisticsInputProperties { - pub fn new(observation_start_time: String, observation_end_time: String, aggregation_window: String) -> Self { + pub fn new( + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, + aggregation_window: String, + ) -> Self { Self { observation_start_time, observation_end_time, diff --git a/services/mgmt/mariadb/src/package_2020_01_01/operations.rs b/services/mgmt/mariadb/src/package_2020_01_01/operations.rs index d009ccd9f66..9c0cb7bedab 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01/operations.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01/operations.rs @@ -2818,7 +2818,7 @@ pub mod query_texts { .append_pair(azure_core::query_param::API_VERSION, "2018-06-01"); let query_ids = &this.query_ids; for value in &this.query_ids { - req.url_mut().query_pairs_mut().append_pair("queryIds", value); + req.url_mut().query_pairs_mut().append_pair("queryIds", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs index 89f72596149..f722919bc78 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs @@ -120,8 +120,8 @@ pub struct ServerKeyProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "The key creation date."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl ServerKeyProperties { pub fn new(server_key_type: server_key_properties::ServerKeyType) -> Self { diff --git a/services/mgmt/marketplace/Cargo.toml b/services/mgmt/marketplace/Cargo.toml index 4cb3db89b4b..035b70d85dc 100644 --- a/services/mgmt/marketplace/Cargo.toml +++ b/services/mgmt/marketplace/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/marketplace/src/package_2021_06_01/models.rs b/services/mgmt/marketplace/src/package_2021_06_01/models.rs index 8c9035e84a0..01b9ba50e6c 100644 --- a/services/mgmt/marketplace/src/package_2021_06_01/models.rs +++ b/services/mgmt/marketplace/src/package_2021_06_01/models.rs @@ -1133,8 +1133,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1142,8 +1142,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/marketplace/src/package_2021_12/models.rs b/services/mgmt/marketplace/src/package_2021_12/models.rs index 5626593235b..81baa9ff3e8 100644 --- a/services/mgmt/marketplace/src/package_2021_12/models.rs +++ b/services/mgmt/marketplace/src/package_2021_12/models.rs @@ -1295,8 +1295,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1304,8 +1304,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/marketplace/src/package_2022_03/models.rs b/services/mgmt/marketplace/src/package_2022_03/models.rs index 22745f9af25..c6c052ef013 100644 --- a/services/mgmt/marketplace/src/package_2022_03/models.rs +++ b/services/mgmt/marketplace/src/package_2022_03/models.rs @@ -246,8 +246,8 @@ pub struct CollectionProperties { #[serde(rename = "approveAllItems", default, skip_serializing_if = "Option::is_none")] pub approve_all_items: Option, #[doc = "Gets the modified date of all items approved."] - #[serde(rename = "approveAllItemsModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub approve_all_items_modified_at: Option, + #[serde(rename = "approveAllItemsModifiedAt", with = "azure_core::date::rfc3339::option")] + pub approve_all_items_modified_at: Option, #[doc = "Gets or sets subscription ids list. Empty list indicates all subscriptions are selected, null indicates no update is done, explicit list indicates the explicit selected subscriptions. On insert, null is considered as bad request"] #[serde(rename = "subscriptionsList", default, skip_serializing_if = "Vec::is_empty")] pub subscriptions_list: Vec, @@ -1393,8 +1393,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1402,8 +1402,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/marketplacecatalog/Cargo.toml b/services/mgmt/marketplacecatalog/Cargo.toml index 8dc16ea3826..b8e0112652b 100644 --- a/services/mgmt/marketplacecatalog/Cargo.toml +++ b/services/mgmt/marketplacecatalog/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/marketplacenotifications/Cargo.toml b/services/mgmt/marketplacenotifications/Cargo.toml index 0d355afc20a..db86fcfa535 100644 --- a/services/mgmt/marketplacenotifications/Cargo.toml +++ b/services/mgmt/marketplacenotifications/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs b/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs index 455e4a6a6c3..d30b57d10e5 100644 --- a/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs +++ b/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs @@ -118,8 +118,8 @@ pub struct OfferProperties { #[serde(rename = "offerId", default, skip_serializing_if = "Option::is_none")] pub offer_id: Option, #[doc = "date for creating the notification"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "offer display name"] #[serde(rename = "offerDisplayName", default, skip_serializing_if = "Option::is_none")] pub offer_display_name: Option, @@ -205,8 +205,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -214,8 +214,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs b/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs index 455e4a6a6c3..d30b57d10e5 100644 --- a/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs +++ b/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs @@ -118,8 +118,8 @@ pub struct OfferProperties { #[serde(rename = "offerId", default, skip_serializing_if = "Option::is_none")] pub offer_id: Option, #[doc = "date for creating the notification"] - #[serde(rename = "createdDate", default, skip_serializing_if = "Option::is_none")] - pub created_date: Option, + #[serde(rename = "createdDate", with = "azure_core::date::rfc3339::option")] + pub created_date: Option, #[doc = "offer display name"] #[serde(rename = "offerDisplayName", default, skip_serializing_if = "Option::is_none")] pub offer_display_name: Option, @@ -205,8 +205,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -214,8 +214,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/marketplaceordering/Cargo.toml b/services/mgmt/marketplaceordering/Cargo.toml index 94c8c423ce2..38370a285c8 100644 --- a/services/mgmt/marketplaceordering/Cargo.toml +++ b/services/mgmt/marketplaceordering/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs b/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs index 594bc797d96..c656e78057d 100644 --- a/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs +++ b/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs @@ -23,8 +23,8 @@ pub struct AgreementProperties { #[serde(rename = "privacyPolicyLink", default, skip_serializing_if = "Option::is_none")] pub privacy_policy_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -112,11 +112,11 @@ pub struct OldAgreementProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub offer: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if state is cancelled."] - #[serde(rename = "signDate", default, skip_serializing_if = "Option::is_none")] - pub sign_date: Option, + #[serde(rename = "signDate", with = "azure_core::date::rfc3339::option")] + pub sign_date: Option, #[doc = "Date and time in UTC of when the terms were cancelled. This is empty if state is active."] - #[serde(rename = "cancelDate", default, skip_serializing_if = "Option::is_none")] - pub cancel_date: Option, + #[serde(rename = "cancelDate", with = "azure_core::date::rfc3339::option")] + pub cancel_date: Option, #[doc = "Whether the agreement is active or cancelled"] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, diff --git a/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs b/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs index 1aa64bd5c0d..dc2d93dacfc 100644 --- a/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs +++ b/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs @@ -26,8 +26,8 @@ pub struct AgreementProperties { #[serde(rename = "marketplaceTermsLink", default, skip_serializing_if = "Option::is_none")] pub marketplace_terms_link: Option, #[doc = "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false."] - #[serde(rename = "retrieveDatetime", default, skip_serializing_if = "Option::is_none")] - pub retrieve_datetime: Option, + #[serde(rename = "retrieveDatetime", with = "azure_core::date::rfc3339::option")] + pub retrieve_datetime: Option, #[doc = "Terms signature."] #[serde(default, skip_serializing_if = "Option::is_none")] pub signature: Option, @@ -181,8 +181,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -190,8 +190,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mediaservices/Cargo.toml b/services/mgmt/mediaservices/Cargo.toml index 6db32ce547b..f06f4cee68d 100644 --- a/services/mgmt/mediaservices/Cargo.toml +++ b/services/mgmt/mediaservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/mediaservices/src/package_2020_05/models.rs b/services/mgmt/mediaservices/src/package_2020_05/models.rs index b1f08d61ec3..fc3ccbe1405 100644 --- a/services/mgmt/mediaservices/src/package_2020_05/models.rs +++ b/services/mgmt/mediaservices/src/package_2020_05/models.rs @@ -193,8 +193,8 @@ pub struct AkamaiSignatureHeaderAuthenticationKey { #[serde(rename = "base64Key", default, skip_serializing_if = "Option::is_none")] pub base64_key: Option, #[doc = "The expiration time of the authentication key."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiration: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiration: Option, } impl AkamaiSignatureHeaderAuthenticationKey { pub fn new() -> Self { @@ -336,11 +336,11 @@ pub struct AssetProperties { #[serde(rename = "assetId", default, skip_serializing_if = "Option::is_none")] pub asset_id: Option, #[doc = "The creation date of the Asset."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Asset."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The alternate ID of the Asset."] #[serde(rename = "alternateId", default, skip_serializing_if = "Option::is_none")] pub alternate_id: Option, @@ -414,14 +414,14 @@ pub struct AssetStreamingLocator { #[serde(rename = "assetName", default, skip_serializing_if = "Option::is_none")] pub asset_name: Option, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -1103,11 +1103,11 @@ pub struct ContentKeyPolicyPlayReadyLicense { #[serde(rename = "allowTestDevices")] pub allow_test_devices: bool, #[doc = "The begin date of license"] - #[serde(rename = "beginDate", default, skip_serializing_if = "Option::is_none")] - pub begin_date: Option, + #[serde(rename = "beginDate", with = "azure_core::date::rfc3339::option")] + pub begin_date: Option, #[doc = "The expiration date of license."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The relative begin date of license."] #[serde(rename = "relativeBeginDate", default, skip_serializing_if = "Option::is_none")] pub relative_begin_date: Option, @@ -1358,11 +1358,11 @@ pub struct ContentKeyPolicyProperties { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "The creation date of the Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Policy"] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A description for the Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3064,11 +3064,11 @@ pub struct JobOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub label: Option, #[doc = "The UTC date and time at which this Job Output began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job Output finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobOutput { pub fn new(odata_type: String) -> Self { @@ -3151,8 +3151,8 @@ impl JobOutputAsset { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobProperties { #[doc = "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The current state of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -3162,8 +3162,8 @@ pub struct JobProperties { #[doc = "Base class for inputs to a Job."] pub input: JobInput, #[doc = "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The outputs for the Job."] pub outputs: Vec, #[doc = "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal."] @@ -3173,11 +3173,11 @@ pub struct JobProperties { #[serde(rename = "correlationData", default, skip_serializing_if = "Option::is_none")] pub correlation_data: Option, #[doc = "The UTC date and time at which this Job began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobProperties { pub fn new(input: JobInput, outputs: Vec) -> Self { @@ -3377,8 +3377,8 @@ pub struct ListContainerSasInput { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "The SAS URL expiration time. This must be less than 24 hours from the current time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, } impl ListContainerSasInput { pub fn new() -> Self { @@ -3837,11 +3837,11 @@ pub struct LiveEventProperties { #[serde(rename = "streamOptions", default, skip_serializing_if = "Vec::is_empty")] pub stream_options: Vec, #[doc = "The creation time for the live event"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time of the live event."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl LiveEventProperties { pub fn new(input: LiveEventInput) -> Self { @@ -3990,11 +3990,11 @@ pub struct LiveOutputProperties { #[serde(rename = "outputSnapTime", default, skip_serializing_if = "Option::is_none")] pub output_snap_time: Option, #[doc = "The creation time the live output."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The time the live output was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The provisioning state of the live output."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5429,14 +5429,14 @@ pub struct StreamingEndpointProperties { #[serde(rename = "crossSiteAccessPolicies", default, skip_serializing_if = "Option::is_none")] pub cross_site_access_policies: Option, #[doc = "The free trial expiration time."] - #[serde(rename = "freeTrialEndTime", default, skip_serializing_if = "Option::is_none")] - pub free_trial_end_time: Option, + #[serde(rename = "freeTrialEndTime", with = "azure_core::date::rfc3339::option")] + pub free_trial_end_time: Option, #[doc = "The exact time the streaming endpoint was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The exact time the streaming endpoint was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl StreamingEndpointProperties { pub fn new(scale_units: i32) -> Self { @@ -5640,14 +5640,14 @@ pub struct StreamingLocatorProperties { #[serde(rename = "assetName")] pub asset_name: String, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -5898,8 +5898,8 @@ impl StreamingPolicyPlayReadyConfiguration { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicyProperties { #[doc = "Creation time of Streaming Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Default ContentKey used by current Streaming Policy"] #[serde(rename = "defaultContentKeyPolicyName", default, skip_serializing_if = "Option::is_none")] pub default_content_key_policy_name: Option, @@ -6229,14 +6229,14 @@ pub mod transform_output { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TransformProperties { #[doc = "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "An optional verbose description of the Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "An array of one or more TransformOutputs that the Transform should generate."] pub outputs: Vec, } @@ -6267,10 +6267,11 @@ pub struct UtcClipTime { #[serde(flatten)] pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] - pub time: String, + #[serde(with = "azure_core::date::rfc3339")] + pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { + pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { Self { clip_time, time } } } @@ -6523,8 +6524,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6532,8 +6533,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mediaservices/src/package_2021_05/models.rs b/services/mgmt/mediaservices/src/package_2021_05/models.rs index a4be7dc7325..b61c1227bf4 100644 --- a/services/mgmt/mediaservices/src/package_2021_05/models.rs +++ b/services/mgmt/mediaservices/src/package_2021_05/models.rs @@ -247,8 +247,8 @@ pub struct AkamaiSignatureHeaderAuthenticationKey { #[serde(rename = "base64Key", default, skip_serializing_if = "Option::is_none")] pub base64_key: Option, #[doc = "The expiration time of the authentication key."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiration: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiration: Option, } impl AkamaiSignatureHeaderAuthenticationKey { pub fn new() -> Self { @@ -390,11 +390,11 @@ pub struct AssetProperties { #[serde(rename = "assetId", default, skip_serializing_if = "Option::is_none")] pub asset_id: Option, #[doc = "The creation date of the Asset."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Asset."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The alternate ID of the Asset."] #[serde(rename = "alternateId", default, skip_serializing_if = "Option::is_none")] pub alternate_id: Option, @@ -468,14 +468,14 @@ pub struct AssetStreamingLocator { #[serde(rename = "assetName", default, skip_serializing_if = "Option::is_none")] pub asset_name: Option, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -1157,11 +1157,11 @@ pub struct ContentKeyPolicyPlayReadyLicense { #[serde(rename = "allowTestDevices")] pub allow_test_devices: bool, #[doc = "The begin date of license"] - #[serde(rename = "beginDate", default, skip_serializing_if = "Option::is_none")] - pub begin_date: Option, + #[serde(rename = "beginDate", with = "azure_core::date::rfc3339::option")] + pub begin_date: Option, #[doc = "The expiration date of license."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The relative begin date of license."] #[serde(rename = "relativeBeginDate", default, skip_serializing_if = "Option::is_none")] pub relative_begin_date: Option, @@ -1412,11 +1412,11 @@ pub struct ContentKeyPolicyProperties { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "The creation date of the Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Policy"] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A description for the Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3118,11 +3118,11 @@ pub struct JobOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub label: Option, #[doc = "The UTC date and time at which this Job Output began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job Output finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobOutput { pub fn new(odata_type: String) -> Self { @@ -3205,8 +3205,8 @@ impl JobOutputAsset { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobProperties { #[doc = "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The current state of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -3216,8 +3216,8 @@ pub struct JobProperties { #[doc = "Base class for inputs to a Job."] pub input: JobInput, #[doc = "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The outputs for the Job."] pub outputs: Vec, #[doc = "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal."] @@ -3227,11 +3227,11 @@ pub struct JobProperties { #[serde(rename = "correlationData", default, skip_serializing_if = "Option::is_none")] pub correlation_data: Option, #[doc = "The UTC date and time at which this Job began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobProperties { pub fn new(input: JobInput, outputs: Vec) -> Self { @@ -3441,8 +3441,8 @@ pub struct ListContainerSasInput { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "The SAS URL expiration time. This must be less than 24 hours from the current time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, } impl ListContainerSasInput { pub fn new() -> Self { @@ -3901,11 +3901,11 @@ pub struct LiveEventProperties { #[serde(rename = "streamOptions", default, skip_serializing_if = "Vec::is_empty")] pub stream_options: Vec, #[doc = "The creation time for the live event"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time of the live event."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl LiveEventProperties { pub fn new(input: LiveEventInput) -> Self { @@ -4054,11 +4054,11 @@ pub struct LiveOutputProperties { #[serde(rename = "outputSnapTime", default, skip_serializing_if = "Option::is_none")] pub output_snap_time: Option, #[doc = "The creation time the live output."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The time the live output was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The provisioning state of the live output."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5570,14 +5570,14 @@ pub struct StreamingEndpointProperties { #[serde(rename = "crossSiteAccessPolicies", default, skip_serializing_if = "Option::is_none")] pub cross_site_access_policies: Option, #[doc = "The free trial expiration time."] - #[serde(rename = "freeTrialEndTime", default, skip_serializing_if = "Option::is_none")] - pub free_trial_end_time: Option, + #[serde(rename = "freeTrialEndTime", with = "azure_core::date::rfc3339::option")] + pub free_trial_end_time: Option, #[doc = "The exact time the streaming endpoint was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The exact time the streaming endpoint was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl StreamingEndpointProperties { pub fn new(scale_units: i32) -> Self { @@ -5781,14 +5781,14 @@ pub struct StreamingLocatorProperties { #[serde(rename = "assetName")] pub asset_name: String, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -6039,8 +6039,8 @@ impl StreamingPolicyPlayReadyConfiguration { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicyProperties { #[doc = "Creation time of Streaming Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Default ContentKey used by current Streaming Policy"] #[serde(rename = "defaultContentKeyPolicyName", default, skip_serializing_if = "Option::is_none")] pub default_content_key_policy_name: Option, @@ -6370,14 +6370,14 @@ pub mod transform_output { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TransformProperties { #[doc = "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "An optional verbose description of the Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "An array of one or more TransformOutputs that the Transform should generate."] pub outputs: Vec, } @@ -6408,10 +6408,11 @@ pub struct UtcClipTime { #[serde(flatten)] pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] - pub time: String, + #[serde(with = "azure_core::date::rfc3339")] + pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { + pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { Self { clip_time, time } } } @@ -6664,8 +6665,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6673,8 +6674,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mediaservices/src/package_2021_06/models.rs b/services/mgmt/mediaservices/src/package_2021_06/models.rs index ca9c55508b9..192ec161127 100644 --- a/services/mgmt/mediaservices/src/package_2021_06/models.rs +++ b/services/mgmt/mediaservices/src/package_2021_06/models.rs @@ -254,8 +254,8 @@ pub struct AkamaiSignatureHeaderAuthenticationKey { #[serde(rename = "base64Key", default, skip_serializing_if = "Option::is_none")] pub base64_key: Option, #[doc = "The expiration time of the authentication key."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiration: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiration: Option, } impl AkamaiSignatureHeaderAuthenticationKey { pub fn new() -> Self { @@ -379,11 +379,11 @@ pub struct AssetProperties { #[serde(rename = "assetId", default, skip_serializing_if = "Option::is_none")] pub asset_id: Option, #[doc = "The creation date of the Asset."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Asset."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The alternate ID of the Asset."] #[serde(rename = "alternateId", default, skip_serializing_if = "Option::is_none")] pub alternate_id: Option, @@ -457,14 +457,14 @@ pub struct AssetStreamingLocator { #[serde(rename = "assetName", default, skip_serializing_if = "Option::is_none")] pub asset_name: Option, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -1153,11 +1153,11 @@ pub struct ContentKeyPolicyPlayReadyLicense { #[serde(rename = "allowTestDevices")] pub allow_test_devices: bool, #[doc = "The begin date of license"] - #[serde(rename = "beginDate", default, skip_serializing_if = "Option::is_none")] - pub begin_date: Option, + #[serde(rename = "beginDate", with = "azure_core::date::rfc3339::option")] + pub begin_date: Option, #[doc = "The expiration date of license."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The relative begin date of license."] #[serde(rename = "relativeBeginDate", default, skip_serializing_if = "Option::is_none")] pub relative_begin_date: Option, @@ -1408,11 +1408,11 @@ pub struct ContentKeyPolicyProperties { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "The creation date of the Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Policy"] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A description for the Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3174,11 +3174,11 @@ pub struct JobOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub label: Option, #[doc = "The UTC date and time at which this Job Output began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job Output finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobOutput { pub fn new(odata_type: String) -> Self { @@ -3262,8 +3262,8 @@ impl JobOutputAsset { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobProperties { #[doc = "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The current state of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -3273,8 +3273,8 @@ pub struct JobProperties { #[doc = "Base class for inputs to a Job."] pub input: JobInput, #[doc = "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The outputs for the Job."] pub outputs: Vec, #[doc = "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal."] @@ -3284,11 +3284,11 @@ pub struct JobProperties { #[serde(rename = "correlationData", default, skip_serializing_if = "Option::is_none")] pub correlation_data: Option, #[doc = "The UTC date and time at which this Job began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobProperties { pub fn new(input: JobInput, outputs: Vec) -> Self { @@ -3498,8 +3498,8 @@ pub struct ListContainerSasInput { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "The SAS URL expiration time. This must be less than 24 hours from the current time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, } impl ListContainerSasInput { pub fn new() -> Self { @@ -3962,11 +3962,11 @@ pub struct LiveEventProperties { #[serde(rename = "streamOptions", default, skip_serializing_if = "Vec::is_empty")] pub stream_options: Vec, #[doc = "The creation time for the live event"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time of the live event."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl LiveEventProperties { pub fn new(input: LiveEventInput) -> Self { @@ -4118,11 +4118,11 @@ pub struct LiveOutputProperties { #[serde(rename = "outputSnapTime", default, skip_serializing_if = "Option::is_none")] pub output_snap_time: Option, #[doc = "The creation time the live output."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The time the live output was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The provisioning state of the live output."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5726,14 +5726,14 @@ pub struct StreamingEndpointProperties { #[serde(rename = "crossSiteAccessPolicies", default, skip_serializing_if = "Option::is_none")] pub cross_site_access_policies: Option, #[doc = "The free trial expiration time."] - #[serde(rename = "freeTrialEndTime", default, skip_serializing_if = "Option::is_none")] - pub free_trial_end_time: Option, + #[serde(rename = "freeTrialEndTime", with = "azure_core::date::rfc3339::option")] + pub free_trial_end_time: Option, #[doc = "The exact time the streaming endpoint was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The exact time the streaming endpoint was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl StreamingEndpointProperties { pub fn new(scale_units: i32) -> Self { @@ -5937,14 +5937,14 @@ pub struct StreamingLocatorProperties { #[serde(rename = "assetName")] pub asset_name: String, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -6195,8 +6195,8 @@ impl StreamingPolicyPlayReadyConfiguration { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicyProperties { #[doc = "Creation time of Streaming Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Default ContentKey used by current Streaming Policy"] #[serde(rename = "defaultContentKeyPolicyName", default, skip_serializing_if = "Option::is_none")] pub default_content_key_policy_name: Option, @@ -6526,14 +6526,14 @@ pub mod transform_output { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TransformProperties { #[doc = "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "An optional verbose description of the Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "An array of one or more TransformOutputs that the Transform should generate."] pub outputs: Vec, } @@ -6586,10 +6586,11 @@ pub struct UtcClipTime { #[serde(flatten)] pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] - pub time: String, + #[serde(with = "azure_core::date::rfc3339")] + pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { + pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { Self { clip_time, time } } } @@ -6842,8 +6843,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -6851,8 +6852,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mediaservices/src/package_2021_11/models.rs b/services/mgmt/mediaservices/src/package_2021_11/models.rs index 5172c014573..a6b1ee6d50c 100644 --- a/services/mgmt/mediaservices/src/package_2021_11/models.rs +++ b/services/mgmt/mediaservices/src/package_2021_11/models.rs @@ -254,8 +254,8 @@ pub struct AkamaiSignatureHeaderAuthenticationKey { #[serde(rename = "base64Key", default, skip_serializing_if = "Option::is_none")] pub base64_key: Option, #[doc = "The expiration time of the authentication key."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiration: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiration: Option, } impl AkamaiSignatureHeaderAuthenticationKey { pub fn new() -> Self { @@ -442,11 +442,11 @@ pub struct AssetProperties { #[serde(rename = "assetId", default, skip_serializing_if = "Option::is_none")] pub asset_id: Option, #[doc = "The creation date of the Asset."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Asset."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The alternate ID of the Asset."] #[serde(rename = "alternateId", default, skip_serializing_if = "Option::is_none")] pub alternate_id: Option, @@ -520,14 +520,14 @@ pub struct AssetStreamingLocator { #[serde(rename = "assetName", default, skip_serializing_if = "Option::is_none")] pub asset_name: Option, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -584,11 +584,11 @@ pub struct AssetTrackOperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Operation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Operation status."] pub status: String, #[doc = "The error detail."] @@ -1348,11 +1348,11 @@ pub struct ContentKeyPolicyPlayReadyLicense { #[serde(rename = "allowTestDevices")] pub allow_test_devices: bool, #[doc = "The begin date of license"] - #[serde(rename = "beginDate", default, skip_serializing_if = "Option::is_none")] - pub begin_date: Option, + #[serde(rename = "beginDate", with = "azure_core::date::rfc3339::option")] + pub begin_date: Option, #[doc = "The expiration date of license."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The relative begin date of license."] #[serde(rename = "relativeBeginDate", default, skip_serializing_if = "Option::is_none")] pub relative_begin_date: Option, @@ -1603,11 +1603,11 @@ pub struct ContentKeyPolicyProperties { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "The creation date of the Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Policy"] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A description for the Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3443,11 +3443,11 @@ pub struct JobOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub label: Option, #[doc = "The UTC date and time at which this Job Output began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job Output finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobOutput { pub fn new(odata_type: String) -> Self { @@ -3531,8 +3531,8 @@ impl JobOutputAsset { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobProperties { #[doc = "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The current state of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -3542,8 +3542,8 @@ pub struct JobProperties { #[doc = "Base class for inputs to a Job."] pub input: JobInput, #[doc = "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The outputs for the Job."] pub outputs: Vec, #[doc = "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal."] @@ -3553,11 +3553,11 @@ pub struct JobProperties { #[serde(rename = "correlationData", default, skip_serializing_if = "Option::is_none")] pub correlation_data: Option, #[doc = "The UTC date and time at which this Job began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobProperties { pub fn new(input: JobInput, outputs: Vec) -> Self { @@ -3759,8 +3759,8 @@ pub struct ListContainerSasInput { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "The SAS URL expiration time. This must be less than 24 hours from the current time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, } impl ListContainerSasInput { pub fn new() -> Self { @@ -4223,11 +4223,11 @@ pub struct LiveEventProperties { #[serde(rename = "streamOptions", default, skip_serializing_if = "Vec::is_empty")] pub stream_options: Vec, #[doc = "The creation time for the live event"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time of the live event."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl LiveEventProperties { pub fn new(input: LiveEventInput) -> Self { @@ -4379,11 +4379,11 @@ pub struct LiveOutputProperties { #[serde(rename = "outputSnapTime", default, skip_serializing_if = "Option::is_none")] pub output_snap_time: Option, #[doc = "The creation time the live output."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The time the live output was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The provisioning state of the live output."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -5991,14 +5991,14 @@ pub struct StreamingEndpointProperties { #[serde(rename = "crossSiteAccessPolicies", default, skip_serializing_if = "Option::is_none")] pub cross_site_access_policies: Option, #[doc = "The free trial expiration time."] - #[serde(rename = "freeTrialEndTime", default, skip_serializing_if = "Option::is_none")] - pub free_trial_end_time: Option, + #[serde(rename = "freeTrialEndTime", with = "azure_core::date::rfc3339::option")] + pub free_trial_end_time: Option, #[doc = "The exact time the streaming endpoint was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The exact time the streaming endpoint was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl StreamingEndpointProperties { pub fn new(scale_units: i32) -> Self { @@ -6213,14 +6213,14 @@ pub struct StreamingLocatorProperties { #[serde(rename = "assetName")] pub asset_name: String, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -6471,8 +6471,8 @@ impl StreamingPolicyPlayReadyConfiguration { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicyProperties { #[doc = "Creation time of Streaming Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Default ContentKey used by current Streaming Policy"] #[serde(rename = "defaultContentKeyPolicyName", default, skip_serializing_if = "Option::is_none")] pub default_content_key_policy_name: Option, @@ -6887,14 +6887,14 @@ pub mod transform_output { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TransformProperties { #[doc = "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "An optional verbose description of the Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "An array of one or more TransformOutputs that the Transform should generate."] pub outputs: Vec, } @@ -6947,10 +6947,11 @@ pub struct UtcClipTime { #[serde(flatten)] pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] - pub time: String, + #[serde(with = "azure_core::date::rfc3339")] + pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { + pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { Self { clip_time, time } } } @@ -7214,8 +7215,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -7223,8 +7224,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mediaservices/src/package_account_2021_11/models.rs b/services/mgmt/mediaservices/src/package_account_2021_11/models.rs index 9e945fce29e..a6b197548ef 100644 --- a/services/mgmt/mediaservices/src/package_account_2021_11/models.rs +++ b/services/mgmt/mediaservices/src/package_account_2021_11/models.rs @@ -254,8 +254,8 @@ pub struct AkamaiSignatureHeaderAuthenticationKey { #[serde(rename = "base64Key", default, skip_serializing_if = "Option::is_none")] pub base64_key: Option, #[doc = "The expiration time of the authentication key."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expiration: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expiration: Option, } impl AkamaiSignatureHeaderAuthenticationKey { pub fn new() -> Self { @@ -442,11 +442,11 @@ pub struct AssetProperties { #[serde(rename = "assetId", default, skip_serializing_if = "Option::is_none")] pub asset_id: Option, #[doc = "The creation date of the Asset."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Asset."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The alternate ID of the Asset."] #[serde(rename = "alternateId", default, skip_serializing_if = "Option::is_none")] pub alternate_id: Option, @@ -520,14 +520,14 @@ pub struct AssetStreamingLocator { #[serde(rename = "assetName", default, skip_serializing_if = "Option::is_none")] pub asset_name: Option, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -584,11 +584,11 @@ pub struct AssetTrackOperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Operation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Operation status."] pub status: String, #[doc = "The error detail."] @@ -1348,11 +1348,11 @@ pub struct ContentKeyPolicyPlayReadyLicense { #[serde(rename = "allowTestDevices")] pub allow_test_devices: bool, #[doc = "The begin date of license"] - #[serde(rename = "beginDate", default, skip_serializing_if = "Option::is_none")] - pub begin_date: Option, + #[serde(rename = "beginDate", with = "azure_core::date::rfc3339::option")] + pub begin_date: Option, #[doc = "The expiration date of license."] - #[serde(rename = "expirationDate", default, skip_serializing_if = "Option::is_none")] - pub expiration_date: Option, + #[serde(rename = "expirationDate", with = "azure_core::date::rfc3339::option")] + pub expiration_date: Option, #[doc = "The relative begin date of license."] #[serde(rename = "relativeBeginDate", default, skip_serializing_if = "Option::is_none")] pub relative_begin_date: Option, @@ -1603,11 +1603,11 @@ pub struct ContentKeyPolicyProperties { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "The creation date of the Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified date of the Policy"] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A description for the Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -3443,11 +3443,11 @@ pub struct JobOutput { #[serde(default, skip_serializing_if = "Option::is_none")] pub label: Option, #[doc = "The UTC date and time at which this Job Output began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job Output finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobOutput { pub fn new(odata_type: String) -> Self { @@ -3531,8 +3531,8 @@ impl JobOutputAsset { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobProperties { #[doc = "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The current state of the job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, @@ -3542,8 +3542,8 @@ pub struct JobProperties { #[doc = "Base class for inputs to a Job."] pub input: JobInput, #[doc = "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The outputs for the Job."] pub outputs: Vec, #[doc = "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal."] @@ -3553,11 +3553,11 @@ pub struct JobProperties { #[serde(rename = "correlationData", default, skip_serializing_if = "Option::is_none")] pub correlation_data: Option, #[doc = "The UTC date and time at which this Job began processing."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The UTC date and time at which this Job finished processing."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobProperties { pub fn new(input: JobInput, outputs: Vec) -> Self { @@ -3759,8 +3759,8 @@ pub struct ListContainerSasInput { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "The SAS URL expiration time. This must be less than 24 hours from the current time."] - #[serde(rename = "expiryTime", default, skip_serializing_if = "Option::is_none")] - pub expiry_time: Option, + #[serde(rename = "expiryTime", with = "azure_core::date::rfc3339::option")] + pub expiry_time: Option, } impl ListContainerSasInput { pub fn new() -> Self { @@ -4223,11 +4223,11 @@ pub struct LiveEventProperties { #[serde(rename = "streamOptions", default, skip_serializing_if = "Vec::is_empty")] pub stream_options: Vec, #[doc = "The creation time for the live event"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last modified time of the live event."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl LiveEventProperties { pub fn new(input: LiveEventInput) -> Self { @@ -4379,11 +4379,11 @@ pub struct LiveOutputProperties { #[serde(rename = "outputSnapTime", default, skip_serializing_if = "Option::is_none")] pub output_snap_time: Option, #[doc = "The creation time the live output."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The time the live output was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "The provisioning state of the live output."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -4564,11 +4564,11 @@ pub struct MediaServiceOperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "Operation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Operation status."] pub status: String, #[doc = "The error detail."] @@ -6068,14 +6068,14 @@ pub struct StreamingEndpointProperties { #[serde(rename = "crossSiteAccessPolicies", default, skip_serializing_if = "Option::is_none")] pub cross_site_access_policies: Option, #[doc = "The free trial expiration time."] - #[serde(rename = "freeTrialEndTime", default, skip_serializing_if = "Option::is_none")] - pub free_trial_end_time: Option, + #[serde(rename = "freeTrialEndTime", with = "azure_core::date::rfc3339::option")] + pub free_trial_end_time: Option, #[doc = "The exact time the streaming endpoint was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The exact time the streaming endpoint was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, } impl StreamingEndpointProperties { pub fn new(scale_units: i32) -> Self { @@ -6290,14 +6290,14 @@ pub struct StreamingLocatorProperties { #[serde(rename = "assetName")] pub asset_name: String, #[doc = "The creation time of the Streaming Locator."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The start time of the Streaming Locator."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the Streaming Locator."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The StreamingLocatorId of the Streaming Locator."] #[serde(rename = "streamingLocatorId", default, skip_serializing_if = "Option::is_none")] pub streaming_locator_id: Option, @@ -6548,8 +6548,8 @@ impl StreamingPolicyPlayReadyConfiguration { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicyProperties { #[doc = "Creation time of Streaming Policy"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Default ContentKey used by current Streaming Policy"] #[serde(rename = "defaultContentKeyPolicyName", default, skip_serializing_if = "Option::is_none")] pub default_content_key_policy_name: Option, @@ -6964,14 +6964,14 @@ pub mod transform_output { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TransformProperties { #[doc = "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "An optional verbose description of the Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, #[doc = "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "An array of one or more TransformOutputs that the Transform should generate."] pub outputs: Vec, } @@ -7024,10 +7024,11 @@ pub struct UtcClipTime { #[serde(flatten)] pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] - pub time: String, + #[serde(with = "azure_core::date::rfc3339")] + pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { + pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { Self { clip_time, time } } } @@ -7291,8 +7292,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -7300,8 +7301,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/migrate/Cargo.toml b/services/mgmt/migrate/Cargo.toml index 4bd1ba24525..fa1a524b8de 100644 --- a/services/mgmt/migrate/Cargo.toml +++ b/services/mgmt/migrate/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/migrate/src/package_2018_02/models.rs b/services/mgmt/migrate/src/package_2018_02/models.rs index 7907df9d3b9..7a0232fb2a3 100644 --- a/services/mgmt/migrate/src/package_2018_02/models.rs +++ b/services/mgmt/migrate/src/package_2018_02/models.rs @@ -362,8 +362,8 @@ pub struct AssessedMachineProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, #[doc = "Time when this machine was discovered by Azure Migrate agent. Date-Time represented in ISO-8601 format."] - #[serde(rename = "discoveredTimestamp", default, skip_serializing_if = "Option::is_none")] - pub discovered_timestamp: Option, + #[serde(rename = "discoveredTimestamp", with = "azure_core::date::rfc3339::option")] + pub discovered_timestamp: Option, #[doc = "Boot type of the machine."] #[serde(rename = "bootType", default, skip_serializing_if = "Option::is_none")] pub boot_type: Option, @@ -459,11 +459,11 @@ pub struct AssessedMachineProperties { #[serde(rename = "suitabilityExplanation", default, skip_serializing_if = "Option::is_none")] pub suitability_explanation: Option, #[doc = "Time when this machine was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this machine was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, } impl AssessedMachineProperties { pub fn new() -> Self { @@ -1272,14 +1272,14 @@ pub struct AssessmentProperties { #[serde(rename = "sizingCriterion")] pub sizing_criterion: assessment_properties::SizingCriterion, #[doc = "Time when the Azure Prices were queried. Date-Time represented in ISO-8601 format."] - #[serde(rename = "pricesTimestamp", default, skip_serializing_if = "Option::is_none")] - pub prices_timestamp: Option, + #[serde(rename = "pricesTimestamp", with = "azure_core::date::rfc3339::option")] + pub prices_timestamp: Option, #[doc = "Time when this project was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this project was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "Monthly compute cost estimate for the machines that are part of this assessment as a group, for a 31-day month."] #[serde(rename = "monthlyComputeCost", default, skip_serializing_if = "Option::is_none")] pub monthly_compute_cost: Option, @@ -2138,8 +2138,8 @@ pub struct DownloadUrl { #[serde(rename = "assessmentReportUrl", default, skip_serializing_if = "Option::is_none")] pub assessment_report_url: Option, #[doc = "Expiry date of download url."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, } impl DownloadUrl { pub fn new() -> Self { @@ -2184,11 +2184,11 @@ pub struct GroupProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub assessments: Vec, #[doc = "Time when this project was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this project was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, } impl GroupProperties { pub fn new(machines: Vec) -> Self { @@ -2279,14 +2279,14 @@ pub struct MachineProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, #[doc = "Time when this machine was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this machine was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "Time when this machine was discovered by Azure Migrate agent. Date-Time represented in ISO-8601 format."] - #[serde(rename = "discoveredTimestamp", default, skip_serializing_if = "Option::is_none")] - pub discovered_timestamp: Option, + #[serde(rename = "discoveredTimestamp", with = "azure_core::date::rfc3339::option")] + pub discovered_timestamp: Option, #[doc = "Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object"] #[serde(default, skip_serializing_if = "Option::is_none")] pub disks: Option, @@ -2482,11 +2482,11 @@ impl ProjectKey { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProjectProperties { #[doc = "Time when this project was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this project was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "Reports whether project is under discovery."] #[serde(rename = "discoveryStatus", default, skip_serializing_if = "Option::is_none")] pub discovery_status: Option, @@ -2497,8 +2497,8 @@ pub struct ProjectProperties { #[serde(rename = "customerWorkspaceLocation", default, skip_serializing_if = "Option::is_none")] pub customer_workspace_location: Option, #[doc = "Time when this project was created. Date-Time represented in ISO-8601 format. This value will be null until discovery is complete."] - #[serde(rename = "lastDiscoveryTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_timestamp: Option, + #[serde(rename = "lastDiscoveryTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_discovery_timestamp: Option, #[doc = "Session id of the last discovery."] #[serde(rename = "lastDiscoverySessionId", default, skip_serializing_if = "Option::is_none")] pub last_discovery_session_id: Option, @@ -2512,8 +2512,8 @@ pub struct ProjectProperties { #[serde(rename = "numberOfAssessments", default, skip_serializing_if = "Option::is_none")] pub number_of_assessments: Option, #[doc = "Time when last assessment was created. Date-Time represented in ISO-8601 format. This value will be null until assessment is created."] - #[serde(rename = "lastAssessmentTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_assessment_timestamp: Option, + #[serde(rename = "lastAssessmentTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_assessment_timestamp: Option, #[doc = "Provisioning state of the project."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/migrate/src/package_2019_10/models.rs b/services/mgmt/migrate/src/package_2019_10/models.rs index 7a3279b97a8..03e7be9becf 100644 --- a/services/mgmt/migrate/src/package_2019_10/models.rs +++ b/services/mgmt/migrate/src/package_2019_10/models.rs @@ -536,11 +536,11 @@ pub struct AssessedMachineProperties { #[serde(rename = "suitabilityDetail", default, skip_serializing_if = "Option::is_none")] pub suitability_detail: Option, #[doc = "Time when this machine was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this machine was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, } impl AssessedMachineProperties { pub fn new() -> Self { @@ -1575,11 +1575,11 @@ pub struct AssessmentProperties { #[serde(rename = "timeRange")] pub time_range: assessment_properties::TimeRange, #[doc = "Start time to consider performance data for assessment"] - #[serde(rename = "perfDataStartTime", default, skip_serializing_if = "Option::is_none")] - pub perf_data_start_time: Option, + #[serde(rename = "perfDataStartTime", with = "azure_core::date::rfc3339::option")] + pub perf_data_start_time: Option, #[doc = "End time to consider performance data for assessment"] - #[serde(rename = "perfDataEndTime", default, skip_serializing_if = "Option::is_none")] - pub perf_data_end_time: Option, + #[serde(rename = "perfDataEndTime", with = "azure_core::date::rfc3339::option")] + pub perf_data_end_time: Option, #[doc = "User configurable setting that describes the status of the assessment."] pub stage: assessment_properties::Stage, #[doc = "Currency to report prices in."] @@ -1608,14 +1608,14 @@ pub struct AssessmentProperties { #[serde(rename = "vmUptime")] pub vm_uptime: VmUptime, #[doc = "Time when the Azure Prices were queried. Date-Time represented in ISO-8601 format."] - #[serde(rename = "pricesTimestamp", default, skip_serializing_if = "Option::is_none")] - pub prices_timestamp: Option, + #[serde(rename = "pricesTimestamp", with = "azure_core::date::rfc3339::option")] + pub prices_timestamp: Option, #[doc = "Time when this project was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this project was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "Monthly compute cost estimate for the machines that are part of this assessment as a group, for a 31-day month."] #[serde(rename = "monthlyComputeCost", default, skip_serializing_if = "Option::is_none")] pub monthly_compute_cost: Option, @@ -2541,8 +2541,8 @@ pub struct CollectorAgentProperties { pub id: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[serde(rename = "spnDetails", default, skip_serializing_if = "Option::is_none")] pub spn_details: Option, } @@ -2615,8 +2615,8 @@ pub struct DownloadUrl { #[serde(rename = "assessmentReportUrl", default, skip_serializing_if = "Option::is_none")] pub assessment_report_url: Option, #[doc = "Expiry date of download url."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, } impl DownloadUrl { pub fn new() -> Self { @@ -2723,11 +2723,11 @@ pub struct GroupProperties { #[serde(rename = "areAssessmentsRunning", default, skip_serializing_if = "Option::is_none")] pub are_assessments_running: Option, #[doc = "Time when this group was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this group was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "The type of group."] #[serde(rename = "groupType", default, skip_serializing_if = "Option::is_none")] pub group_type: Option, @@ -2951,11 +2951,11 @@ pub struct MachineProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub groups: Vec, #[doc = "Time when this machine was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this machine was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "Dictionary of disks attached to the machine. Key is ID of disk. Value is a disk object"] #[serde(default, skip_serializing_if = "Option::is_none")] pub disks: Option, @@ -3296,11 +3296,11 @@ impl Project { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProjectProperties { #[doc = "Time when this project was created. Date-Time represented in ISO-8601 format."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "Time when this project was last updated. Date-Time represented in ISO-8601 format."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "Endpoint at which the collector agent can call agent REST API."] #[serde(rename = "serviceEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_endpoint: Option, @@ -3326,8 +3326,8 @@ pub struct ProjectProperties { #[serde(rename = "numberOfAssessments", default, skip_serializing_if = "Option::is_none")] pub number_of_assessments: Option, #[doc = "Time when last assessment was created. Date-Time represented in ISO-8601 format. This value will be null until assessment is created."] - #[serde(rename = "lastAssessmentTimestamp", default, skip_serializing_if = "Option::is_none")] - pub last_assessment_timestamp: Option, + #[serde(rename = "lastAssessmentTimestamp", with = "azure_core::date::rfc3339::option")] + pub last_assessment_timestamp: Option, #[doc = "This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method."] #[serde(rename = "publicNetworkAccess", default, skip_serializing_if = "Option::is_none")] pub public_network_access: Option, diff --git a/services/mgmt/migrate/src/package_2020_01/models.rs b/services/mgmt/migrate/src/package_2020_01/models.rs index c48f186977d..e5fda0b95fe 100644 --- a/services/mgmt/migrate/src/package_2020_01/models.rs +++ b/services/mgmt/migrate/src/package_2020_01/models.rs @@ -578,8 +578,8 @@ pub struct HyperVMachineProperties { #[serde(rename = "numberOfApplications", default, skip_serializing_if = "Option::is_none")] pub number_of_applications: Option, #[doc = "The last time at which the Guest Details of machine was discovered."] - #[serde(rename = "guestDetailsDiscoveryTimestamp", default, skip_serializing_if = "Option::is_none")] - pub guest_details_discovery_timestamp: Option, + #[serde(rename = "guestDetailsDiscoveryTimestamp", with = "azure_core::date::rfc3339::option")] + pub guest_details_discovery_timestamp: Option, #[doc = "Whether Refresh Fabric Layout Guest Details has been completed once. Portal will show discovery in progress, if this value is true."] #[serde(rename = "isGuestDetailsDiscoveryInProgress", default, skip_serializing_if = "Option::is_none")] pub is_guest_details_discovery_in_progress: Option, @@ -830,8 +830,8 @@ impl JobProperties { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Machine { - #[serde(rename = "properties.timestamp", default, skip_serializing_if = "Option::is_none")] - pub properties_timestamp: Option, + #[serde(rename = "properties.timestamp", with = "azure_core::date::rfc3339::option")] + pub properties_timestamp: Option, #[serde(rename = "properties.monitoringState", default, skip_serializing_if = "Option::is_none")] pub properties_monitoring_state: Option, #[serde(rename = "properties.virtualizationState", default, skip_serializing_if = "Option::is_none")] @@ -842,8 +842,8 @@ pub struct Machine { pub properties_computer_name: Option, #[serde(rename = "properties.fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub properties_fully_qualified_domain_name: Option, - #[serde(rename = "properties.bootTime", default, skip_serializing_if = "Option::is_none")] - pub properties_boot_time: Option, + #[serde(rename = "properties.bootTime", with = "azure_core::date::rfc3339::option")] + pub properties_boot_time: Option, #[serde(rename = "properties.timezone", default, skip_serializing_if = "Option::is_none")] pub properties_timezone: Option, #[serde(rename = "properties.agent", default, skip_serializing_if = "Option::is_none")] @@ -1267,8 +1267,8 @@ pub struct SiteAgentProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Last heartbeat time of the agent in UTC."] - #[serde(rename = "lastHeartBeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat_utc: Option, + #[serde(rename = "lastHeartBeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat_utc: Option, #[doc = "Key vault URI."] #[serde(rename = "keyVaultUri", default, skip_serializing_if = "Option::is_none")] pub key_vault_uri: Option, @@ -1733,8 +1733,8 @@ pub struct VMwareMachineProperties { #[serde(rename = "dependencyMapping", default, skip_serializing_if = "Option::is_none")] pub dependency_mapping: Option, #[doc = "When dependency mapping collection is last started."] - #[serde(rename = "dependencyMappingStartTime", default, skip_serializing_if = "Option::is_none")] - pub dependency_mapping_start_time: Option, + #[serde(rename = "dependencyMappingStartTime", with = "azure_core::date::rfc3339::option")] + pub dependency_mapping_start_time: Option, #[doc = "Display name of the machine."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -1757,8 +1757,8 @@ pub struct VMwareMachineProperties { #[serde(rename = "numberOfApplications", default, skip_serializing_if = "Option::is_none")] pub number_of_applications: Option, #[doc = "The last time at which the Guest Details was discovered or the error while discovering guest details based discovery of the machine."] - #[serde(rename = "guestDetailsDiscoveryTimestamp", default, skip_serializing_if = "Option::is_none")] - pub guest_details_discovery_timestamp: Option, + #[serde(rename = "guestDetailsDiscoveryTimestamp", with = "azure_core::date::rfc3339::option")] + pub guest_details_discovery_timestamp: Option, #[doc = "Whether Refresh Fabric Layout Guest Details has been completed once. Portal will show discovery in progress, if this value is true."] #[serde(rename = "isGuestDetailsDiscoveryInProgress", default, skip_serializing_if = "Option::is_none")] pub is_guest_details_discovery_in_progress: Option, diff --git a/services/mgmt/migrate/src/package_2020_05/models.rs b/services/mgmt/migrate/src/package_2020_05/models.rs index c5e678a22b7..a02cd450fdc 100644 --- a/services/mgmt/migrate/src/package_2020_05/models.rs +++ b/services/mgmt/migrate/src/package_2020_05/models.rs @@ -119,8 +119,8 @@ pub struct MigrateProjectProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "Last summary refresh time."] - #[serde(rename = "lastSummaryRefreshedTime", default, skip_serializing_if = "Option::is_none")] - pub last_summary_refreshed_time: Option, + #[serde(rename = "lastSummaryRefreshedTime", with = "azure_core::date::rfc3339::option")] + pub last_summary_refreshed_time: Option, #[doc = "Refresh summary state."] #[serde(rename = "refreshSummaryState", default, skip_serializing_if = "Option::is_none")] pub refresh_summary_state: Option, @@ -470,8 +470,8 @@ pub struct ProjectSummary { #[serde(rename = "refreshSummaryState", default, skip_serializing_if = "Option::is_none")] pub refresh_summary_state: Option, #[doc = "Last summary refresh time."] - #[serde(rename = "lastSummaryRefreshedTime", default, skip_serializing_if = "Option::is_none")] - pub last_summary_refreshed_time: Option, + #[serde(rename = "lastSummaryRefreshedTime", with = "azure_core::date::rfc3339::option")] + pub last_summary_refreshed_time: Option, #[doc = "Extended summary."] #[serde(rename = "extendedSummary", default, skip_serializing_if = "Option::is_none")] pub extended_summary: Option, @@ -512,8 +512,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -521,8 +521,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/migrate/src/package_2020_07/models.rs b/services/mgmt/migrate/src/package_2020_07/models.rs index bd66bb38b27..2c6b1f53bf7 100644 --- a/services/mgmt/migrate/src/package_2020_07/models.rs +++ b/services/mgmt/migrate/src/package_2020_07/models.rs @@ -638,8 +638,8 @@ pub struct HyperVMachineProperties { #[serde(rename = "numberOfApplications", default, skip_serializing_if = "Option::is_none")] pub number_of_applications: Option, #[doc = "The last time at which the Guest Details of machine was discovered."] - #[serde(rename = "guestDetailsDiscoveryTimestamp", default, skip_serializing_if = "Option::is_none")] - pub guest_details_discovery_timestamp: Option, + #[serde(rename = "guestDetailsDiscoveryTimestamp", with = "azure_core::date::rfc3339::option")] + pub guest_details_discovery_timestamp: Option, #[doc = "Whether Refresh Fabric Layout Guest Details has been completed once. Portal will show discovery in progress, if this value is true."] #[serde(rename = "isGuestDetailsDiscoveryInProgress", default, skip_serializing_if = "Option::is_none")] pub is_guest_details_discovery_in_progress: Option, @@ -913,8 +913,8 @@ impl JobProperties { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Machine { - #[serde(rename = "properties.timestamp", default, skip_serializing_if = "Option::is_none")] - pub properties_timestamp: Option, + #[serde(rename = "properties.timestamp", with = "azure_core::date::rfc3339::option")] + pub properties_timestamp: Option, #[serde(rename = "properties.monitoringState", default, skip_serializing_if = "Option::is_none")] pub properties_monitoring_state: Option, #[serde(rename = "properties.virtualizationState", default, skip_serializing_if = "Option::is_none")] @@ -925,8 +925,8 @@ pub struct Machine { pub properties_computer_name: Option, #[serde(rename = "properties.fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub properties_fully_qualified_domain_name: Option, - #[serde(rename = "properties.bootTime", default, skip_serializing_if = "Option::is_none")] - pub properties_boot_time: Option, + #[serde(rename = "properties.bootTime", with = "azure_core::date::rfc3339::option")] + pub properties_boot_time: Option, #[serde(rename = "properties.timezone", default, skip_serializing_if = "Option::is_none")] pub properties_timezone: Option, #[serde(rename = "properties.agent", default, skip_serializing_if = "Option::is_none")] @@ -1564,8 +1564,8 @@ pub struct SiteAgentProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Last heartbeat time of the agent in UTC."] - #[serde(rename = "lastHeartBeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat_utc: Option, + #[serde(rename = "lastHeartBeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat_utc: Option, #[doc = "Key vault URI."] #[serde(rename = "keyVaultUri", default, skip_serializing_if = "Option::is_none")] pub key_vault_uri: Option, @@ -2050,8 +2050,8 @@ pub struct VMwareMachineProperties { #[serde(rename = "dependencyMapping", default, skip_serializing_if = "Option::is_none")] pub dependency_mapping: Option, #[doc = "When dependency mapping collection is last started."] - #[serde(rename = "dependencyMappingStartTime", default, skip_serializing_if = "Option::is_none")] - pub dependency_mapping_start_time: Option, + #[serde(rename = "dependencyMappingStartTime", with = "azure_core::date::rfc3339::option")] + pub dependency_mapping_start_time: Option, #[doc = "Display name of the machine."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -2074,8 +2074,8 @@ pub struct VMwareMachineProperties { #[serde(rename = "numberOfApplications", default, skip_serializing_if = "Option::is_none")] pub number_of_applications: Option, #[doc = "The last time at which the Guest Details was discovered or the error while discovering guest details based discovery of the machine."] - #[serde(rename = "guestDetailsDiscoveryTimestamp", default, skip_serializing_if = "Option::is_none")] - pub guest_details_discovery_timestamp: Option, + #[serde(rename = "guestDetailsDiscoveryTimestamp", with = "azure_core::date::rfc3339::option")] + pub guest_details_discovery_timestamp: Option, #[doc = "Whether Refresh Fabric Layout Guest Details has been completed once. Portal will show discovery in progress, if this value is true."] #[serde(rename = "isGuestDetailsDiscoveryInProgress", default, skip_serializing_if = "Option::is_none")] pub is_guest_details_discovery_in_progress: Option, @@ -2304,8 +2304,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2313,8 +2313,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/migrateprojects/Cargo.toml b/services/mgmt/migrateprojects/Cargo.toml index 8a45bebd2e6..f47abe31a0e 100644 --- a/services/mgmt/migrateprojects/Cargo.toml +++ b/services/mgmt/migrateprojects/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/migrateprojects/src/package_2018_09/models.rs b/services/mgmt/migrateprojects/src/package_2018_09/models.rs index 4f88f2021cc..3b3d06928d3 100644 --- a/services/mgmt/migrateprojects/src/package_2018_09/models.rs +++ b/services/mgmt/migrateprojects/src/package_2018_09/models.rs @@ -45,8 +45,8 @@ pub struct AssessmentDetails { #[serde(rename = "fabricType", default, skip_serializing_if = "Option::is_none")] pub fabric_type: Option, #[doc = "Gets or sets the time of the last modification of the machine details."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Gets or sets the name of the machine."] #[serde(rename = "machineName", default, skip_serializing_if = "Option::is_none")] pub machine_name: Option, @@ -111,8 +111,8 @@ pub struct DatabaseAssessmentDetails { #[serde(rename = "assessmentTargetType", default, skip_serializing_if = "Option::is_none")] pub assessment_target_type: Option, #[doc = "Gets or sets the time when the database was last assessed."] - #[serde(rename = "lastAssessedTime", default, skip_serializing_if = "Option::is_none")] - pub last_assessed_time: Option, + #[serde(rename = "lastAssessedTime", with = "azure_core::date::rfc3339::option")] + pub last_assessed_time: Option, #[doc = "Gets or sets the compatibility level of the database."] #[serde(rename = "compatibilityLevel", default, skip_serializing_if = "Option::is_none")] pub compatibility_level: Option, @@ -120,8 +120,8 @@ pub struct DatabaseAssessmentDetails { #[serde(rename = "databaseSizeInMB", default, skip_serializing_if = "Option::is_none")] pub database_size_in_mb: Option, #[doc = "Gets or sets the time of the last modification of the database details."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Gets or sets the time the message was enqueued."] #[serde(rename = "enqueueTime", default, skip_serializing_if = "Option::is_none")] pub enqueue_time: Option, @@ -198,8 +198,8 @@ impl DatabaseInstanceCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DatabaseInstanceDiscoveryDetails { #[doc = "Gets or sets the time of the last modification of the database instance details."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Gets or sets the database instance Id."] #[serde(rename = "instanceId", default, skip_serializing_if = "Option::is_none")] pub instance_id: Option, @@ -246,8 +246,8 @@ pub struct DatabaseInstanceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "Gets or sets the time of the last modification of the database."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, } impl DatabaseInstanceProperties { pub fn new() -> Self { @@ -304,8 +304,8 @@ pub struct DatabaseProperties { #[serde(rename = "assessmentData", default, skip_serializing_if = "Vec::is_empty")] pub assessment_data: Vec, #[doc = "Gets or sets the time of the last modification of the database."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, } impl DatabaseProperties { pub fn new() -> Self { @@ -380,8 +380,8 @@ pub struct DiscoveryDetails { #[serde(rename = "fabricType", default, skip_serializing_if = "Option::is_none")] pub fabric_type: Option, #[doc = "Gets or sets the time of the last modification of the machine details."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Gets or sets the name of the machine."] #[serde(rename = "machineName", default, skip_serializing_if = "Option::is_none")] pub machine_name: Option, @@ -991,8 +991,8 @@ pub struct MachineProperties { #[serde(rename = "migrationData", default, skip_serializing_if = "Vec::is_empty")] pub migration_data: Vec, #[doc = "Gets or sets the time of the last modification of the machine."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, } impl MachineProperties { pub fn new() -> Self { @@ -1104,8 +1104,8 @@ pub struct MigrateProjectProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "Gets the last time the project summary was refreshed."] - #[serde(rename = "lastSummaryRefreshedTime", default, skip_serializing_if = "Option::is_none")] - pub last_summary_refreshed_time: Option, + #[serde(rename = "lastSummaryRefreshedTime", with = "azure_core::date::rfc3339::option")] + pub last_summary_refreshed_time: Option, #[doc = "Gets the refresh summary state."] #[serde(rename = "refreshSummaryState", default, skip_serializing_if = "Option::is_none")] pub refresh_summary_state: Option, @@ -1205,8 +1205,8 @@ pub struct MigrationDetails { #[serde(rename = "fabricType", default, skip_serializing_if = "Option::is_none")] pub fabric_type: Option, #[doc = "Gets or sets the time of the last modification of the machine details."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Gets or sets the name of the machine."] #[serde(rename = "machineName", default, skip_serializing_if = "Option::is_none")] pub machine_name: Option, @@ -1384,8 +1384,8 @@ pub struct ProjectSummary { #[serde(rename = "refreshSummaryState", default, skip_serializing_if = "Option::is_none")] pub refresh_summary_state: Option, #[doc = "Gets or sets the time when summary was last refreshed."] - #[serde(rename = "lastSummaryRefreshedTime", default, skip_serializing_if = "Option::is_none")] - pub last_summary_refreshed_time: Option, + #[serde(rename = "lastSummaryRefreshedTime", with = "azure_core::date::rfc3339::option")] + pub last_summary_refreshed_time: Option, #[doc = "Gets or sets the extended summary."] #[serde(rename = "extendedSummary", default, skip_serializing_if = "Option::is_none")] pub extended_summary: Option, diff --git a/services/mgmt/mobilenetwork/Cargo.toml b/services/mgmt/mobilenetwork/Cargo.toml index 3db0cbc2953..7edf5dbf0d7 100644 --- a/services/mgmt/mobilenetwork/Cargo.toml +++ b/services/mgmt/mobilenetwork/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs b/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs index e754f094aea..3113a0b82a5 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs @@ -1792,8 +1792,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1801,8 +1801,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs b/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs index ab0a65e4456..6c37a6476ee 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs @@ -1811,8 +1811,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1820,8 +1820,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs b/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs index 45b39024f14..441044e0570 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs @@ -2313,8 +2313,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2322,8 +2322,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/monitor/Cargo.toml b/services/mgmt/monitor/Cargo.toml index a7eccf83023..c782d7fb658 100644 --- a/services/mgmt/monitor/Cargo.toml +++ b/services/mgmt/monitor/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/monitor/src/package_2019_11/models.rs b/services/mgmt/monitor/src/package_2019_11/models.rs index bf9793ed3e1..8dfe7e6e59d 100644 --- a/services/mgmt/monitor/src/package_2019_11/models.rs +++ b/services/mgmt/monitor/src/package_2019_11/models.rs @@ -318,8 +318,8 @@ pub struct AlertRule { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, } impl AlertRule { pub fn new(name: String, is_enabled: bool, condition: RuleCondition) -> Self { @@ -1064,8 +1064,8 @@ pub struct DynamicMetricCriteria { #[serde(rename = "failingPeriods")] pub failing_periods: DynamicThresholdFailingPeriods, #[doc = "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)"] - #[serde(rename = "ignoreDataBefore", default, skip_serializing_if = "Option::is_none")] - pub ignore_data_before: Option, + #[serde(rename = "ignoreDataBefore", with = "azure_core::date::rfc3339::option")] + pub ignore_data_before: Option, } impl DynamicMetricCriteria { pub fn new( @@ -1403,11 +1403,11 @@ pub struct EventData { #[serde(rename = "subStatus", default, skip_serializing_if = "Option::is_none")] pub sub_status: Option, #[doc = "the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure."] - #[serde(rename = "submissionTimestamp", default, skip_serializing_if = "Option::is_none")] - pub submission_timestamp: Option, + #[serde(rename = "submissionTimestamp", with = "azure_core::date::rfc3339::option")] + pub submission_timestamp: Option, #[doc = "the Azure subscription Id usually a GUID."] #[serde(rename = "subscriptionId", default, skip_serializing_if = "Option::is_none")] pub subscription_id: Option, @@ -1486,11 +1486,11 @@ pub struct Incident { #[serde(rename = "isActive", default, skip_serializing_if = "Option::is_none")] pub is_active: Option, #[doc = "The time at which the incident was activated in ISO8601 format."] - #[serde(rename = "activatedTime", default, skip_serializing_if = "Option::is_none")] - pub activated_time: Option, + #[serde(rename = "activatedTime", with = "azure_core::date::rfc3339::option")] + pub activated_time: Option, #[doc = "The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, } impl Incident { pub fn new() -> Self { @@ -1697,8 +1697,8 @@ pub struct LogSearchRule { #[serde(default, skip_serializing_if = "Option::is_none")] pub enabled: Option, #[doc = "Last time the rule was updated in IS08601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Provisioning state of the scheduled query rule"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2185,8 +2185,8 @@ pub struct MetricAlertProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "the value indicating whether this alert rule is migrated."] #[serde(rename = "isMigrated", default, skip_serializing_if = "Option::is_none")] pub is_migrated: Option, @@ -2254,8 +2254,8 @@ pub struct MetricAlertPropertiesPatch { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "the value indicating whether this alert rule is migrated."] #[serde(rename = "isMigrated", default, skip_serializing_if = "Option::is_none")] pub is_migrated: Option, @@ -2371,8 +2371,8 @@ pub struct MetricAlertStatusProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "UTC time when the status was checked."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl MetricAlertStatusProperties { pub fn new() -> Self { @@ -2856,8 +2856,8 @@ impl Default for MetricTriggerType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricValue { #[doc = "the timestamp for the metric value in ISO 8601 format."] - #[serde(rename = "timeStamp")] - pub time_stamp: String, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339")] + pub time_stamp: time::OffsetDateTime, #[doc = "the average value in the time range."] #[serde(default, skip_serializing_if = "Option::is_none")] pub average: Option, @@ -2875,7 +2875,7 @@ pub struct MetricValue { pub count: Option, } impl MetricValue { - pub fn new(time_stamp: String) -> Self { + pub fn new(time_stamp: time::OffsetDateTime) -> Self { Self { time_stamp, average: None, @@ -3111,11 +3111,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start time of the job in standard ISO8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the job in standard ISO8601 format."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The status of the operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4191,7 +4191,7 @@ pub struct TimeSeriesBaseline { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub dimensions: Vec, #[doc = "The list of timestamps of the baselines."] - pub timestamps: Vec, + pub timestamps: Vec, #[doc = "The baseline values for each sensitivity."] pub data: Vec, #[doc = "The baseline metadata values."] @@ -4199,7 +4199,7 @@ pub struct TimeSeriesBaseline { pub metadata_values: Vec, } impl TimeSeriesBaseline { - pub fn new(aggregation: String, timestamps: Vec, data: Vec) -> Self { + pub fn new(aggregation: String, timestamps: Vec, data: Vec) -> Self { Self { aggregation, dimensions: Vec::new(), @@ -4231,12 +4231,14 @@ pub struct TimeWindow { #[serde(rename = "timeZone", default, skip_serializing_if = "Option::is_none")] pub time_zone: Option, #[doc = "the start time for the profile in ISO 8601 format."] - pub start: String, + #[serde(with = "azure_core::date::rfc3339")] + pub start: time::OffsetDateTime, #[doc = "the end time for the profile in ISO 8601 format."] - pub end: String, + #[serde(with = "azure_core::date::rfc3339")] + pub end: time::OffsetDateTime, } impl TimeWindow { - pub fn new(start: String, end: String) -> Self { + pub fn new(start: time::OffsetDateTime, end: time::OffsetDateTime) -> Self { Self { time_zone: None, start, diff --git a/services/mgmt/monitor/src/package_2020_03/models.rs b/services/mgmt/monitor/src/package_2020_03/models.rs index 975c34d212f..d8b8a4a092b 100644 --- a/services/mgmt/monitor/src/package_2020_03/models.rs +++ b/services/mgmt/monitor/src/package_2020_03/models.rs @@ -318,8 +318,8 @@ pub struct AlertRule { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, } impl AlertRule { pub fn new(name: String, is_enabled: bool, condition: RuleCondition) -> Self { @@ -1064,8 +1064,8 @@ pub struct DynamicMetricCriteria { #[serde(rename = "failingPeriods")] pub failing_periods: DynamicThresholdFailingPeriods, #[doc = "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)"] - #[serde(rename = "ignoreDataBefore", default, skip_serializing_if = "Option::is_none")] - pub ignore_data_before: Option, + #[serde(rename = "ignoreDataBefore", with = "azure_core::date::rfc3339::option")] + pub ignore_data_before: Option, } impl DynamicMetricCriteria { pub fn new( @@ -1403,11 +1403,11 @@ pub struct EventData { #[serde(rename = "subStatus", default, skip_serializing_if = "Option::is_none")] pub sub_status: Option, #[doc = "the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure."] - #[serde(rename = "submissionTimestamp", default, skip_serializing_if = "Option::is_none")] - pub submission_timestamp: Option, + #[serde(rename = "submissionTimestamp", with = "azure_core::date::rfc3339::option")] + pub submission_timestamp: Option, #[doc = "the Azure subscription Id usually a GUID."] #[serde(rename = "subscriptionId", default, skip_serializing_if = "Option::is_none")] pub subscription_id: Option, @@ -1486,11 +1486,11 @@ pub struct Incident { #[serde(rename = "isActive", default, skip_serializing_if = "Option::is_none")] pub is_active: Option, #[doc = "The time at which the incident was activated in ISO8601 format."] - #[serde(rename = "activatedTime", default, skip_serializing_if = "Option::is_none")] - pub activated_time: Option, + #[serde(rename = "activatedTime", with = "azure_core::date::rfc3339::option")] + pub activated_time: Option, #[doc = "The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, } impl Incident { pub fn new() -> Self { @@ -1697,8 +1697,8 @@ pub struct LogSearchRule { #[serde(default, skip_serializing_if = "Option::is_none")] pub enabled: Option, #[doc = "Last time the rule was updated in IS08601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Provisioning state of the scheduled query rule"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2185,8 +2185,8 @@ pub struct MetricAlertProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "the value indicating whether this alert rule is migrated."] #[serde(rename = "isMigrated", default, skip_serializing_if = "Option::is_none")] pub is_migrated: Option, @@ -2254,8 +2254,8 @@ pub struct MetricAlertPropertiesPatch { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "the value indicating whether this alert rule is migrated."] #[serde(rename = "isMigrated", default, skip_serializing_if = "Option::is_none")] pub is_migrated: Option, @@ -2371,8 +2371,8 @@ pub struct MetricAlertStatusProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "UTC time when the status was checked."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl MetricAlertStatusProperties { pub fn new() -> Self { @@ -2856,8 +2856,8 @@ impl Default for MetricTriggerType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricValue { #[doc = "the timestamp for the metric value in ISO 8601 format."] - #[serde(rename = "timeStamp")] - pub time_stamp: String, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339")] + pub time_stamp: time::OffsetDateTime, #[doc = "the average value in the time range."] #[serde(default, skip_serializing_if = "Option::is_none")] pub average: Option, @@ -2875,7 +2875,7 @@ pub struct MetricValue { pub count: Option, } impl MetricValue { - pub fn new(time_stamp: String) -> Self { + pub fn new(time_stamp: time::OffsetDateTime) -> Self { Self { time_stamp, average: None, @@ -3111,11 +3111,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start time of the job in standard ISO8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the job in standard ISO8601 format."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The status of the operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4103,7 +4103,7 @@ pub struct TimeSeriesBaseline { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub dimensions: Vec, #[doc = "The list of timestamps of the baselines."] - pub timestamps: Vec, + pub timestamps: Vec, #[doc = "The baseline values for each sensitivity."] pub data: Vec, #[doc = "The baseline metadata values."] @@ -4111,7 +4111,7 @@ pub struct TimeSeriesBaseline { pub metadata_values: Vec, } impl TimeSeriesBaseline { - pub fn new(aggregation: String, timestamps: Vec, data: Vec) -> Self { + pub fn new(aggregation: String, timestamps: Vec, data: Vec) -> Self { Self { aggregation, dimensions: Vec::new(), @@ -4143,12 +4143,14 @@ pub struct TimeWindow { #[serde(rename = "timeZone", default, skip_serializing_if = "Option::is_none")] pub time_zone: Option, #[doc = "the start time for the profile in ISO 8601 format."] - pub start: String, + #[serde(with = "azure_core::date::rfc3339")] + pub start: time::OffsetDateTime, #[doc = "the end time for the profile in ISO 8601 format."] - pub end: String, + #[serde(with = "azure_core::date::rfc3339")] + pub end: time::OffsetDateTime, } impl TimeWindow { - pub fn new(start: String, end: String) -> Self { + pub fn new(start: time::OffsetDateTime, end: time::OffsetDateTime) -> Self { Self { time_zone: None, start, diff --git a/services/mgmt/monitor/src/package_2021_04/models.rs b/services/mgmt/monitor/src/package_2021_04/models.rs index d7216bb4313..a0b6d829afa 100644 --- a/services/mgmt/monitor/src/package_2021_04/models.rs +++ b/services/mgmt/monitor/src/package_2021_04/models.rs @@ -318,8 +318,8 @@ pub struct AlertRule { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, } impl AlertRule { pub fn new(name: String, is_enabled: bool, condition: RuleCondition) -> Self { @@ -1609,8 +1609,8 @@ pub struct DynamicMetricCriteria { #[serde(rename = "failingPeriods")] pub failing_periods: DynamicThresholdFailingPeriods, #[doc = "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)"] - #[serde(rename = "ignoreDataBefore", default, skip_serializing_if = "Option::is_none")] - pub ignore_data_before: Option, + #[serde(rename = "ignoreDataBefore", with = "azure_core::date::rfc3339::option")] + pub ignore_data_before: Option, } impl DynamicMetricCriteria { pub fn new( @@ -1990,11 +1990,11 @@ pub struct EventData { #[serde(rename = "subStatus", default, skip_serializing_if = "Option::is_none")] pub sub_status: Option, #[doc = "the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure."] - #[serde(rename = "submissionTimestamp", default, skip_serializing_if = "Option::is_none")] - pub submission_timestamp: Option, + #[serde(rename = "submissionTimestamp", with = "azure_core::date::rfc3339::option")] + pub submission_timestamp: Option, #[doc = "the Azure subscription Id usually a GUID."] #[serde(rename = "subscriptionId", default, skip_serializing_if = "Option::is_none")] pub subscription_id: Option, @@ -2103,11 +2103,11 @@ pub struct Incident { #[serde(rename = "isActive", default, skip_serializing_if = "Option::is_none")] pub is_active: Option, #[doc = "The time at which the incident was activated in ISO8601 format."] - #[serde(rename = "activatedTime", default, skip_serializing_if = "Option::is_none")] - pub activated_time: Option, + #[serde(rename = "activatedTime", with = "azure_core::date::rfc3339::option")] + pub activated_time: Option, #[doc = "The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, } impl Incident { pub fn new() -> Self { @@ -2332,8 +2332,8 @@ pub struct LogSearchRule { #[serde(default, skip_serializing_if = "Option::is_none")] pub enabled: Option, #[doc = "Last time the rule was updated in IS08601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Provisioning state of the scheduled query rule"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2832,8 +2832,8 @@ pub struct MetricAlertProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "the value indicating whether this alert rule is migrated."] #[serde(rename = "isMigrated", default, skip_serializing_if = "Option::is_none")] pub is_migrated: Option, @@ -2901,8 +2901,8 @@ pub struct MetricAlertPropertiesPatch { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub actions: Vec, #[doc = "Last time the rule was updated in ISO8601 format."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "the value indicating whether this alert rule is migrated."] #[serde(rename = "isMigrated", default, skip_serializing_if = "Option::is_none")] pub is_migrated: Option, @@ -3018,8 +3018,8 @@ pub struct MetricAlertStatusProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "UTC time when the status was checked."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, } impl MetricAlertStatusProperties { pub fn new() -> Self { @@ -3503,8 +3503,8 @@ impl Default for MetricTriggerType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricValue { #[doc = "the timestamp for the metric value in ISO 8601 format."] - #[serde(rename = "timeStamp")] - pub time_stamp: String, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339")] + pub time_stamp: time::OffsetDateTime, #[doc = "the average value in the time range."] #[serde(default, skip_serializing_if = "Option::is_none")] pub average: Option, @@ -3522,7 +3522,7 @@ pub struct MetricValue { pub count: Option, } impl MetricValue { - pub fn new(time_stamp: String) -> Self { + pub fn new(time_stamp: time::OffsetDateTime) -> Self { Self { time_stamp, average: None, @@ -3810,11 +3810,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Start time of the job in standard ISO8601 format."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the job in standard ISO8601 format."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The status of the operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -4856,7 +4856,7 @@ pub struct TimeSeriesBaseline { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub dimensions: Vec, #[doc = "The list of timestamps of the baselines."] - pub timestamps: Vec, + pub timestamps: Vec, #[doc = "The baseline values for each sensitivity."] pub data: Vec, #[doc = "The baseline metadata values."] @@ -4864,7 +4864,7 @@ pub struct TimeSeriesBaseline { pub metadata_values: Vec, } impl TimeSeriesBaseline { - pub fn new(aggregation: String, timestamps: Vec, data: Vec) -> Self { + pub fn new(aggregation: String, timestamps: Vec, data: Vec) -> Self { Self { aggregation, dimensions: Vec::new(), @@ -4896,12 +4896,14 @@ pub struct TimeWindow { #[serde(rename = "timeZone", default, skip_serializing_if = "Option::is_none")] pub time_zone: Option, #[doc = "the start time for the profile in ISO 8601 format."] - pub start: String, + #[serde(with = "azure_core::date::rfc3339")] + pub start: time::OffsetDateTime, #[doc = "the end time for the profile in ISO 8601 format."] - pub end: String, + #[serde(with = "azure_core::date::rfc3339")] + pub end: time::OffsetDateTime, } impl TimeWindow { - pub fn new(start: String, end: String) -> Self { + pub fn new(start: time::OffsetDateTime, end: time::OffsetDateTime) -> Self { Self { time_zone: None, start, @@ -5272,8 +5274,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -5281,8 +5283,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/msi/Cargo.toml b/services/mgmt/msi/Cargo.toml index cfbfee5370f..59a15e034fe 100644 --- a/services/mgmt/msi/Cargo.toml +++ b/services/mgmt/msi/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/mysql/Cargo.toml b/services/mgmt/mysql/Cargo.toml index 6efa9b4fc43..8185b36d6e6 100644 --- a/services/mgmt/mysql/Cargo.toml +++ b/services/mgmt/mysql/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs b/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs index ea0089ee569..48fed0a636c 100644 --- a/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs @@ -852,8 +852,8 @@ pub struct ServerKeyProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "The key creation date."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl ServerKeyProperties { pub fn new(server_key_type: server_key_properties::ServerKeyType) -> Self { @@ -954,8 +954,8 @@ pub struct ServerProperties { #[serde(rename = "fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub fully_qualified_domain_name: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, #[doc = "Storage Profile properties of a server"] #[serde(rename = "storageProfile", default, skip_serializing_if = "Option::is_none")] pub storage_profile: Option, @@ -975,8 +975,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerId", default, skip_serializing_if = "Option::is_none")] pub source_server_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime", default, skip_serializing_if = "Option::is_none")] - pub restore_point_in_time: Option, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339::option")] + pub restore_point_in_time: Option, #[doc = "availability Zone information of the server."] #[serde(rename = "availabilityZone", default, skip_serializing_if = "Option::is_none")] pub availability_zone: Option, diff --git a/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs b/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs index 1cd58327c68..6dcb01d03b0 100644 --- a/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs +++ b/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs @@ -846,8 +846,8 @@ pub struct ServerKeyProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub uri: Option, #[doc = "The key creation date."] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, } impl ServerKeyProperties { pub fn new(server_key_type: server_key_properties::ServerKeyType) -> Self { @@ -948,8 +948,8 @@ pub struct ServerProperties { #[serde(rename = "fullyQualifiedDomainName", default, skip_serializing_if = "Option::is_none")] pub fully_qualified_domain_name: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, #[doc = "Storage Profile properties of a server"] #[serde(rename = "storageProfile", default, skip_serializing_if = "Option::is_none")] pub storage_profile: Option, @@ -969,8 +969,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerId", default, skip_serializing_if = "Option::is_none")] pub source_server_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime", default, skip_serializing_if = "Option::is_none")] - pub restore_point_in_time: Option, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339::option")] + pub restore_point_in_time: Option, #[doc = "availability Zone information of the server."] #[serde(rename = "availabilityZone", default, skip_serializing_if = "Option::is_none")] pub availability_zone: Option, diff --git a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs index 8100eaa151c..fcb57528946 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs @@ -14,8 +14,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -1010,8 +1010,8 @@ pub struct ServerBackupProperties { #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, #[doc = "Backup completed time (ISO8601 format)."] - #[serde(rename = "completedTime", default, skip_serializing_if = "Option::is_none")] - pub completed_time: Option, + #[serde(rename = "completedTime", with = "azure_core::date::rfc3339::option")] + pub completed_time: Option, #[doc = "Backup source"] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -1103,8 +1103,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime", default, skip_serializing_if = "Option::is_none")] - pub restore_point_in_time: Option, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339::option")] + pub restore_point_in_time: Option, #[doc = "The replication role."] #[serde(rename = "replicationRole", default, skip_serializing_if = "Option::is_none")] pub replication_role: Option, @@ -1527,8 +1527,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1536,8 +1536,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs index 565db31b691..922a61c84a0 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs @@ -14,8 +14,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -976,8 +976,8 @@ pub struct ServerBackupProperties { #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, #[doc = "Backup completed time (ISO8601 format)."] - #[serde(rename = "completedTime", default, skip_serializing_if = "Option::is_none")] - pub completed_time: Option, + #[serde(rename = "completedTime", with = "azure_core::date::rfc3339::option")] + pub completed_time: Option, #[doc = "Backup source"] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -1066,8 +1066,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime", default, skip_serializing_if = "Option::is_none")] - pub restore_point_in_time: Option, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339::option")] + pub restore_point_in_time: Option, #[doc = "The replication role."] #[serde(rename = "replicationRole", default, skip_serializing_if = "Option::is_none")] pub replication_role: Option, @@ -1463,8 +1463,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1472,8 +1472,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/mysql/src/package_flexibleserver_2021_12_01_preview/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2021_12_01_preview/models.rs index b03e04f09ef..a06b84ae620 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2021_12_01_preview/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2021_12_01_preview/models.rs @@ -14,8 +14,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "Earliest restore point creation time (ISO8601 format)"] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -822,14 +822,14 @@ pub struct LogFileProperties { #[serde(rename = "sizeInKB", default, skip_serializing_if = "Option::is_none")] pub size_in_kb: Option, #[doc = "Creation timestamp of the log file."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Type of the log file."] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, #[doc = "Last modified timestamp of the log file."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The url to download the log file from."] #[serde(default, skip_serializing_if = "Option::is_none")] pub url: Option, @@ -1115,8 +1115,8 @@ pub struct ServerBackupProperties { #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, #[doc = "Backup completed time (ISO8601 format)."] - #[serde(rename = "completedTime", default, skip_serializing_if = "Option::is_none")] - pub completed_time: Option, + #[serde(rename = "completedTime", with = "azure_core::date::rfc3339::option")] + pub completed_time: Option, #[doc = "Backup source"] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -1208,8 +1208,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from."] - #[serde(rename = "restorePointInTime", default, skip_serializing_if = "Option::is_none")] - pub restore_point_in_time: Option, + #[serde(rename = "restorePointInTime", with = "azure_core::date::rfc3339::option")] + pub restore_point_in_time: Option, #[doc = "The replication role."] #[serde(rename = "replicationRole", default, skip_serializing_if = "Option::is_none")] pub replication_role: Option, @@ -1635,8 +1635,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1644,8 +1644,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/netapp/Cargo.toml b/services/mgmt/netapp/Cargo.toml index 3efafb70e3c..7bc7592f79a 100644 --- a/services/mgmt/netapp/Cargo.toml +++ b/services/mgmt/netapp/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs b/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs index 8dd738df952..4840d1b9ccb 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs @@ -833,8 +833,8 @@ pub struct BackupProperties { #[serde(rename = "backupId", default, skip_serializing_if = "Option::is_none")] pub backup_id: Option, #[doc = "The creation date of the backup"] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2255,8 +2255,8 @@ pub struct SnapshotProperties { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The creation date of the snapshot"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2294,8 +2294,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2303,8 +2303,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs b/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs index 23a2535c5c5..dc14cf8e3c4 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs @@ -837,8 +837,8 @@ pub struct BackupProperties { #[serde(rename = "backupId", default, skip_serializing_if = "Option::is_none")] pub backup_id: Option, #[doc = "The creation date of the backup"] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2220,8 +2220,8 @@ pub struct SnapshotProperties { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The creation date of the snapshot"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2259,8 +2259,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2268,8 +2268,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs b/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs index 128df241ab9..1c64eaf83f9 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs @@ -840,8 +840,8 @@ pub struct BackupProperties { #[serde(rename = "backupId", default, skip_serializing_if = "Option::is_none")] pub backup_id: Option, #[doc = "The creation date of the backup"] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2261,8 +2261,8 @@ pub struct SnapshotProperties { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The creation date of the snapshot"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2365,17 +2365,17 @@ pub struct SubvolumeModelProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "Creation time and date"] - #[serde(rename = "creationTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub creation_time_stamp: Option, + #[serde(rename = "creationTimeStamp", with = "azure_core::date::rfc3339::option")] + pub creation_time_stamp: Option, #[doc = "Most recent access time and date"] - #[serde(rename = "accessedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub accessed_time_stamp: Option, + #[serde(rename = "accessedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub accessed_time_stamp: Option, #[doc = "Most recent modification time and date"] - #[serde(rename = "modifiedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub modified_time_stamp: Option, + #[serde(rename = "modifiedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub modified_time_stamp: Option, #[doc = "Most recent change time and date"] - #[serde(rename = "changedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub changed_time_stamp: Option, + #[serde(rename = "changedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub changed_time_stamp: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2464,8 +2464,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2473,8 +2473,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs b/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs index a632f5a852a..7b289b24eb0 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs @@ -840,8 +840,8 @@ pub struct BackupProperties { #[serde(rename = "backupId", default, skip_serializing_if = "Option::is_none")] pub backup_id: Option, #[doc = "The creation date of the backup"] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2380,8 +2380,8 @@ pub struct SnapshotProperties { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The creation date of the snapshot"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2481,17 +2481,17 @@ pub struct SubvolumeModelProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "Creation time and date"] - #[serde(rename = "creationTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub creation_time_stamp: Option, + #[serde(rename = "creationTimeStamp", with = "azure_core::date::rfc3339::option")] + pub creation_time_stamp: Option, #[doc = "Most recent access time and date"] - #[serde(rename = "accessedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub accessed_time_stamp: Option, + #[serde(rename = "accessedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub accessed_time_stamp: Option, #[doc = "Most recent modification time and date"] - #[serde(rename = "modifiedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub modified_time_stamp: Option, + #[serde(rename = "modifiedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub modified_time_stamp: Option, #[doc = "Most recent change time and date"] - #[serde(rename = "changedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub changed_time_stamp: Option, + #[serde(rename = "changedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub changed_time_stamp: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2580,8 +2580,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2589,8 +2589,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/netapp/src/package_netapp_2022_03_01/models.rs b/services/mgmt/netapp/src/package_netapp_2022_03_01/models.rs index ea46579ef27..7bc1261439b 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_03_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_03_01/models.rs @@ -840,8 +840,8 @@ pub struct BackupProperties { #[serde(rename = "backupId", default, skip_serializing_if = "Option::is_none")] pub backup_id: Option, #[doc = "The creation date of the backup"] - #[serde(rename = "creationDate", default, skip_serializing_if = "Option::is_none")] - pub creation_date: Option, + #[serde(rename = "creationDate", with = "azure_core::date::rfc3339::option")] + pub creation_date: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2395,8 +2395,8 @@ pub struct SnapshotProperties { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The creation date of the snapshot"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2496,17 +2496,17 @@ pub struct SubvolumeModelProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub permissions: Option, #[doc = "Creation time and date"] - #[serde(rename = "creationTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub creation_time_stamp: Option, + #[serde(rename = "creationTimeStamp", with = "azure_core::date::rfc3339::option")] + pub creation_time_stamp: Option, #[doc = "Most recent access time and date"] - #[serde(rename = "accessedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub accessed_time_stamp: Option, + #[serde(rename = "accessedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub accessed_time_stamp: Option, #[doc = "Most recent modification time and date"] - #[serde(rename = "modifiedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub modified_time_stamp: Option, + #[serde(rename = "modifiedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub modified_time_stamp: Option, #[doc = "Most recent change time and date"] - #[serde(rename = "changedTimeStamp", default, skip_serializing_if = "Option::is_none")] - pub changed_time_stamp: Option, + #[serde(rename = "changedTimeStamp", with = "azure_core::date::rfc3339::option")] + pub changed_time_stamp: Option, #[doc = "Azure lifecycle management"] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, @@ -2595,8 +2595,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2604,8 +2604,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/network/Cargo.toml b/services/mgmt/network/Cargo.toml index be42ca57d83..4ede9895d81 100644 --- a/services/mgmt/network/Cargo.toml +++ b/services/mgmt/network/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/network/src/package_2021_05/models.rs b/services/mgmt/network/src/package_2021_05/models.rs index 1c271ac1f0c..e5f34d2c4fb 100644 --- a/services/mgmt/network/src/package_2021_05/models.rs +++ b/services/mgmt/network/src/package_2021_05/models.rs @@ -3824,8 +3824,8 @@ impl AzureReachabilityReportItem { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureReachabilityReportLatencyInfo { #[doc = "The time stamp."] - #[serde(rename = "timeStamp", default, skip_serializing_if = "Option::is_none")] - pub time_stamp: Option, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339::option")] + pub time_stamp: Option, #[doc = "The relative latency score between 1 and 100, higher values indicating a faster connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub score: Option, @@ -3869,14 +3869,18 @@ pub struct AzureReachabilityReportParameters { #[serde(rename = "azureLocations", default, skip_serializing_if = "Vec::is_empty")] pub azure_locations: Vec, #[doc = "The start time for the Azure reachability report."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "The end time for the Azure reachability report."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, } impl AzureReachabilityReportParameters { - pub fn new(provider_location: AzureReachabilityReportLocation, start_time: String, end_time: String) -> Self { + pub fn new( + provider_location: AzureReachabilityReportLocation, + start_time: time::OffsetDateTime, + end_time: time::OffsetDateTime, + ) -> Self { Self { provider_location, providers: Vec::new(), @@ -5483,8 +5487,8 @@ pub struct ConnectionMonitorResultProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The date and time when the connection monitor was started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The monitoring status of the connection monitor."] #[serde(rename = "monitoringStatus", default, skip_serializing_if = "Option::is_none")] pub monitoring_status: Option, @@ -5859,11 +5863,11 @@ pub struct ConnectionStateSnapshot { #[serde(rename = "connectionState", default, skip_serializing_if = "Option::is_none")] pub connection_state: Option, #[doc = "The start time of the connection snapshot."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the connection snapshot."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Connectivity analysis evaluation state."] #[serde(rename = "evaluationState", default, skip_serializing_if = "Option::is_none")] pub evaluation_state: Option, @@ -15280,8 +15284,8 @@ pub struct PacketCaptureQueryStatusResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The start time of the packet capture session."] - #[serde(rename = "captureStartTime", default, skip_serializing_if = "Option::is_none")] - pub capture_start_time: Option, + #[serde(rename = "captureStartTime", with = "azure_core::date::rfc3339::option")] + pub capture_start_time: Option, #[doc = "The status of the packet capture session."] #[serde(rename = "packetCaptureStatus", default, skip_serializing_if = "Option::is_none")] pub packet_capture_status: Option, @@ -19179,11 +19183,11 @@ pub struct Topology { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The datetime when the topology was initially created for the resource group."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The datetime when the topology was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A list of topology resources."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub resources: Vec, @@ -19513,11 +19517,11 @@ impl TroubleshootingRecommendedActions { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TroubleshootingResult { #[doc = "The start time of the troubleshooting."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the troubleshooting."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The result code of the troubleshooting."] #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, diff --git a/services/mgmt/network/src/package_2021_08/models.rs b/services/mgmt/network/src/package_2021_08/models.rs index 01004203bc6..2fb268437ea 100644 --- a/services/mgmt/network/src/package_2021_08/models.rs +++ b/services/mgmt/network/src/package_2021_08/models.rs @@ -4042,8 +4042,8 @@ impl AzureReachabilityReportItem { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureReachabilityReportLatencyInfo { #[doc = "The time stamp."] - #[serde(rename = "timeStamp", default, skip_serializing_if = "Option::is_none")] - pub time_stamp: Option, + #[serde(rename = "timeStamp", with = "azure_core::date::rfc3339::option")] + pub time_stamp: Option, #[doc = "The relative latency score between 1 and 100, higher values indicating a faster connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub score: Option, @@ -4087,14 +4087,18 @@ pub struct AzureReachabilityReportParameters { #[serde(rename = "azureLocations", default, skip_serializing_if = "Vec::is_empty")] pub azure_locations: Vec, #[doc = "The start time for the Azure reachability report."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "The end time for the Azure reachability report."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, } impl AzureReachabilityReportParameters { - pub fn new(provider_location: AzureReachabilityReportLocation, start_time: String, end_time: String) -> Self { + pub fn new( + provider_location: AzureReachabilityReportLocation, + start_time: time::OffsetDateTime, + end_time: time::OffsetDateTime, + ) -> Self { Self { provider_location, providers: Vec::new(), @@ -5704,8 +5708,8 @@ pub struct ConnectionMonitorResultProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The date and time when the connection monitor was started."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The monitoring status of the connection monitor."] #[serde(rename = "monitoringStatus", default, skip_serializing_if = "Option::is_none")] pub monitoring_status: Option, @@ -6080,11 +6084,11 @@ pub struct ConnectionStateSnapshot { #[serde(rename = "connectionState", default, skip_serializing_if = "Option::is_none")] pub connection_state: Option, #[doc = "The start time of the connection snapshot."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the connection snapshot."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Connectivity analysis evaluation state."] #[serde(rename = "evaluationState", default, skip_serializing_if = "Option::is_none")] pub evaluation_state: Option, @@ -15821,8 +15825,8 @@ pub struct PacketCaptureQueryStatusResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The start time of the packet capture session."] - #[serde(rename = "captureStartTime", default, skip_serializing_if = "Option::is_none")] - pub capture_start_time: Option, + #[serde(rename = "captureStartTime", with = "azure_core::date::rfc3339::option")] + pub capture_start_time: Option, #[doc = "The status of the packet capture session."] #[serde(rename = "packetCaptureStatus", default, skip_serializing_if = "Option::is_none")] pub packet_capture_status: Option, @@ -19720,11 +19724,11 @@ pub struct Topology { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The datetime when the topology was initially created for the resource group."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "The datetime when the topology was last modified."] - #[serde(rename = "lastModified", default, skip_serializing_if = "Option::is_none")] - pub last_modified: Option, + #[serde(rename = "lastModified", with = "azure_core::date::rfc3339::option")] + pub last_modified: Option, #[doc = "A list of topology resources."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub resources: Vec, @@ -20054,11 +20058,11 @@ impl TroubleshootingRecommendedActions { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TroubleshootingResult { #[doc = "The start time of the troubleshooting."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the troubleshooting."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The result code of the troubleshooting."] #[serde(default, skip_serializing_if = "Option::is_none")] pub code: Option, diff --git a/services/mgmt/networkfunction/Cargo.toml b/services/mgmt/networkfunction/Cargo.toml index 21ecb4b05d1..1fa5b5f5d14 100644 --- a/services/mgmt/networkfunction/Cargo.toml +++ b/services/mgmt/networkfunction/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs b/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs index e0ca715b141..925b68c7d0a 100644 --- a/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs @@ -516,8 +516,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/networkfunction/src/package_2022_05_01/models.rs b/services/mgmt/networkfunction/src/package_2022_05_01/models.rs index e0ca715b141..925b68c7d0a 100644 --- a/services/mgmt/networkfunction/src/package_2022_05_01/models.rs +++ b/services/mgmt/networkfunction/src/package_2022_05_01/models.rs @@ -516,8 +516,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/networkfunction/src/package_2022_08_01/models.rs b/services/mgmt/networkfunction/src/package_2022_08_01/models.rs index a6c063865a2..b9af305cd86 100644 --- a/services/mgmt/networkfunction/src/package_2022_08_01/models.rs +++ b/services/mgmt/networkfunction/src/package_2022_08_01/models.rs @@ -513,8 +513,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/nginx/Cargo.toml b/services/mgmt/nginx/Cargo.toml index 67b232724ea..e588ea23691 100644 --- a/services/mgmt/nginx/Cargo.toml +++ b/services/mgmt/nginx/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs b/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs index c759bf3e15f..290090797bb 100644 --- a/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs +++ b/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs @@ -563,8 +563,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -572,8 +572,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/notificationhubs/Cargo.toml b/services/mgmt/notificationhubs/Cargo.toml index fbb3250c27c..c8081c05ca8 100644 --- a/services/mgmt/notificationhubs/Cargo.toml +++ b/services/mgmt/notificationhubs/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/notificationhubs/src/package_2014_09/models.rs b/services/mgmt/notificationhubs/src/package_2014_09/models.rs index 9cbfd5a3f86..522892308ab 100644 --- a/services/mgmt/notificationhubs/src/package_2014_09/models.rs +++ b/services/mgmt/notificationhubs/src/package_2014_09/models.rs @@ -263,8 +263,8 @@ pub struct NamespaceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Endpoint you can use to perform NotificationHub operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -536,11 +536,11 @@ pub struct SharedAccessAuthorizationRuleProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub rights: Vec, #[doc = "The time at which the authorization rule was created."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The most recent time the rule was updated."] - #[serde(rename = "modifiedTime", default, skip_serializing_if = "Option::is_none")] - pub modified_time: Option, + #[serde(rename = "modifiedTime", with = "azure_core::date::rfc3339::option")] + pub modified_time: Option, #[doc = "The revision number for the rule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub revision: Option, diff --git a/services/mgmt/notificationhubs/src/package_2016_03/models.rs b/services/mgmt/notificationhubs/src/package_2016_03/models.rs index 18fa6ae190c..e5758d8ebcf 100644 --- a/services/mgmt/notificationhubs/src/package_2016_03/models.rs +++ b/services/mgmt/notificationhubs/src/package_2016_03/models.rs @@ -276,8 +276,8 @@ pub struct NamespaceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Endpoint you can use to perform NotificationHub operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, diff --git a/services/mgmt/notificationhubs/src/package_2017_04/models.rs b/services/mgmt/notificationhubs/src/package_2017_04/models.rs index 939150f42af..8d9a5131eac 100644 --- a/services/mgmt/notificationhubs/src/package_2017_04/models.rs +++ b/services/mgmt/notificationhubs/src/package_2017_04/models.rs @@ -348,11 +348,11 @@ pub struct NamespaceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform NotificationHub operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, diff --git a/services/mgmt/oep/Cargo.toml b/services/mgmt/oep/Cargo.toml index d458ae75372..a58fee56852 100644 --- a/services/mgmt/oep/Cargo.toml +++ b/services/mgmt/oep/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/oep/src/package_2021_06_01_preview/models.rs b/services/mgmt/oep/src/package_2021_06_01_preview/models.rs index f6e561daeaa..c97b23d277f 100644 --- a/services/mgmt/oep/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/oep/src/package_2021_06_01_preview/models.rs @@ -430,8 +430,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -439,8 +439,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/oep/src/package_2022_04_04_preview/models.rs b/services/mgmt/oep/src/package_2022_04_04_preview/models.rs index 057b59fd685..afe296c4088 100644 --- a/services/mgmt/oep/src/package_2022_04_04_preview/models.rs +++ b/services/mgmt/oep/src/package_2022_04_04_preview/models.rs @@ -486,8 +486,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -495,8 +495,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/operationalinsights/Cargo.toml b/services/mgmt/operationalinsights/Cargo.toml index ae1a91a3ab7..0c15c188622 100644 --- a/services/mgmt/operationalinsights/Cargo.toml +++ b/services/mgmt/operationalinsights/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs b/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs index 68f696271a7..e89ecc14af4 100644 --- a/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs @@ -1006,11 +1006,11 @@ pub struct ManagementGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The datetime that the management group was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last datetime that the management group received data."] - #[serde(rename = "dataReceived", default, skip_serializing_if = "Option::is_none")] - pub data_received: Option, + #[serde(rename = "dataReceived", with = "azure_core::date::rfc3339::option")] + pub data_received: Option, #[doc = "The version of System Center that is managing the management group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, @@ -1327,11 +1327,11 @@ pub struct SearchMetadata { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time for the search."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time of last update."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The ETag of the search results."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -1713,8 +1713,8 @@ pub struct UsageMetric { #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, #[doc = "The time that the metric's value will reset."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "The quota period that determines the length of time between value resets."] #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, diff --git a/services/mgmt/operationalinsights/src/package_2020_08/models.rs b/services/mgmt/operationalinsights/src/package_2020_08/models.rs index db12c968bc5..10b834e195c 100644 --- a/services/mgmt/operationalinsights/src/package_2020_08/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_08/models.rs @@ -926,11 +926,11 @@ pub struct ManagementGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The datetime that the management group was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last datetime that the management group received data."] - #[serde(rename = "dataReceived", default, skip_serializing_if = "Option::is_none")] - pub data_received: Option, + #[serde(rename = "dataReceived", with = "azure_core::date::rfc3339::option")] + pub data_received: Option, #[doc = "The version of System Center that is managing the management group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, @@ -1247,11 +1247,11 @@ pub struct SearchMetadata { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time for the search."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time of last update."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The ETag of the search results."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -1633,8 +1633,8 @@ pub struct UsageMetric { #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, #[doc = "The time that the metric's value will reset."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "The quota period that determines the length of time between value resets."] #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, diff --git a/services/mgmt/operationalinsights/src/package_2020_10/models.rs b/services/mgmt/operationalinsights/src/package_2020_10/models.rs index 1c99c3856b6..1f990ddbc61 100644 --- a/services/mgmt/operationalinsights/src/package_2020_10/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_10/models.rs @@ -991,11 +991,11 @@ pub struct ManagementGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The datetime that the management group was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last datetime that the management group received data."] - #[serde(rename = "dataReceived", default, skip_serializing_if = "Option::is_none")] - pub data_received: Option, + #[serde(rename = "dataReceived", with = "azure_core::date::rfc3339::option")] + pub data_received: Option, #[doc = "The version of System Center that is managing the management group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, @@ -1312,11 +1312,11 @@ pub struct SearchMetadata { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time for the search."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time of last update."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The ETag of the search results."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -1698,8 +1698,8 @@ pub struct UsageMetric { #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, #[doc = "The time that the metric's value will reset."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "The quota period that determines the length of time between value resets."] #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, diff --git a/services/mgmt/operationalinsights/src/package_2021_06/models.rs b/services/mgmt/operationalinsights/src/package_2021_06/models.rs index 5ddcdfd1ba6..0ceb92da40f 100644 --- a/services/mgmt/operationalinsights/src/package_2021_06/models.rs +++ b/services/mgmt/operationalinsights/src/package_2021_06/models.rs @@ -994,11 +994,11 @@ pub struct ManagementGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The datetime that the management group was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last datetime that the management group received data."] - #[serde(rename = "dataReceived", default, skip_serializing_if = "Option::is_none")] - pub data_received: Option, + #[serde(rename = "dataReceived", with = "azure_core::date::rfc3339::option")] + pub data_received: Option, #[doc = "The version of System Center that is managing the management group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, @@ -1315,11 +1315,11 @@ pub struct SearchMetadata { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time for the search."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time of last update."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The ETag of the search results."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -1701,8 +1701,8 @@ pub struct UsageMetric { #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, #[doc = "The time that the metric's value will reset."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "The quota period that determines the length of time between value resets."] #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, diff --git a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs index 3d18bb8193e..12e12b16cdb 100644 --- a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs @@ -1129,11 +1129,11 @@ pub struct ManagementGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, #[doc = "The datetime that the management group was created."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The last datetime that the management group received data."] - #[serde(rename = "dataReceived", default, skip_serializing_if = "Option::is_none")] - pub data_received: Option, + #[serde(rename = "dataReceived", with = "azure_core::date::rfc3339::option")] + pub data_received: Option, #[doc = "The version of System Center that is managing the management group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, @@ -1346,11 +1346,11 @@ impl Resource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RestoredLogs { #[doc = "The timestamp to start the restore from (UTC)."] - #[serde(rename = "startRestoreTime", default, skip_serializing_if = "Option::is_none")] - pub start_restore_time: Option, + #[serde(rename = "startRestoreTime", with = "azure_core::date::rfc3339::option")] + pub start_restore_time: Option, #[doc = "The timestamp to end the restore by (UTC)."] - #[serde(rename = "endRestoreTime", default, skip_serializing_if = "Option::is_none")] - pub end_restore_time: Option, + #[serde(rename = "endRestoreTime", with = "azure_core::date::rfc3339::option")] + pub end_restore_time: Option, #[doc = "The table to restore data from."] #[serde(rename = "sourceTable", default, skip_serializing_if = "Option::is_none")] pub source_table: Option, @@ -1653,11 +1653,11 @@ pub struct SearchMetadata { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time for the search."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The time of last update."] - #[serde(rename = "lastUpdated", default, skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + #[serde(rename = "lastUpdated", with = "azure_core::date::rfc3339::option")] + pub last_updated: Option, #[doc = "The ETag of the search results."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -1716,11 +1716,11 @@ pub struct SearchResults { #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, #[doc = "The timestamp to start the search from (UTC)"] - #[serde(rename = "startSearchTime", default, skip_serializing_if = "Option::is_none")] - pub start_search_time: Option, + #[serde(rename = "startSearchTime", with = "azure_core::date::rfc3339::option")] + pub start_search_time: Option, #[doc = "The timestamp to end the search by (UTC)"] - #[serde(rename = "endSearchTime", default, skip_serializing_if = "Option::is_none")] - pub end_search_time: Option, + #[serde(rename = "endSearchTime", with = "azure_core::date::rfc3339::option")] + pub end_search_time: Option, #[doc = "The table used in the search job."] #[serde(rename = "sourceTable", default, skip_serializing_if = "Option::is_none")] pub source_table: Option, @@ -2175,8 +2175,8 @@ pub struct UsageMetric { #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, #[doc = "The time that the metric's value will reset."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "The quota period that determines the length of time between value resets."] #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, @@ -2734,8 +2734,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2743,8 +2743,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/operationsmanagement/Cargo.toml b/services/mgmt/operationsmanagement/Cargo.toml index e8964b614ed..efa0e6df8cc 100644 --- a/services/mgmt/operationsmanagement/Cargo.toml +++ b/services/mgmt/operationsmanagement/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/orbital/Cargo.toml b/services/mgmt/orbital/Cargo.toml index 38acae5aa2d..328b968667b 100644 --- a/services/mgmt/orbital/Cargo.toml +++ b/services/mgmt/orbital/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs b/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs index 0673048ba05..f49cfdb526b 100644 --- a/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs +++ b/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs @@ -175,17 +175,17 @@ pub struct ContactInstanceProperties { #[serde(rename = "maximumElevationDegrees", default, skip_serializing_if = "Option::is_none")] pub maximum_elevation_degrees: Option, #[doc = "Time at which antenna transmit will be enabled."] - #[serde(rename = "txStartTime", default, skip_serializing_if = "Option::is_none")] - pub tx_start_time: Option, + #[serde(rename = "txStartTime", with = "azure_core::date::rfc3339::option")] + pub tx_start_time: Option, #[doc = "Time at which antenna transmit will be disabled."] - #[serde(rename = "txEndTime", default, skip_serializing_if = "Option::is_none")] - pub tx_end_time: Option, + #[serde(rename = "txEndTime", with = "azure_core::date::rfc3339::option")] + pub tx_end_time: Option, #[doc = "Earliest time to receive a signal."] - #[serde(rename = "rxStartTime", default, skip_serializing_if = "Option::is_none")] - pub rx_start_time: Option, + #[serde(rename = "rxStartTime", with = "azure_core::date::rfc3339::option")] + pub rx_start_time: Option, #[doc = "Time to lost receiving a signal."] - #[serde(rename = "rxEndTime", default, skip_serializing_if = "Option::is_none")] - pub rx_end_time: Option, + #[serde(rename = "rxEndTime", with = "azure_core::date::rfc3339::option")] + pub rx_end_time: Option, #[doc = "Azimuth of the antenna at the start of the contact in decimal degrees."] #[serde(rename = "startAzimuthDegrees", default, skip_serializing_if = "Option::is_none")] pub start_azimuth_degrees: Option, @@ -235,14 +235,19 @@ pub struct ContactParameters { #[serde(rename = "groundStationName")] pub ground_station_name: String, #[doc = "Start time of a contact."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "End time of a contact."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, } impl ContactParameters { - pub fn new(contact_profile: ResourceReference, ground_station_name: String, start_time: String, end_time: String) -> Self { + pub fn new( + contact_profile: ResourceReference, + ground_station_name: String, + start_time: time::OffsetDateTime, + end_time: time::OffsetDateTime, + ) -> Self { Self { contact_profile, ground_station_name, @@ -501,23 +506,23 @@ pub struct ContactsProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Reservation start time of a contact."] - #[serde(rename = "reservationStartTime")] - pub reservation_start_time: String, + #[serde(rename = "reservationStartTime", with = "azure_core::date::rfc3339")] + pub reservation_start_time: time::OffsetDateTime, #[doc = "Reservation end time of a contact."] - #[serde(rename = "reservationEndTime")] - pub reservation_end_time: String, + #[serde(rename = "reservationEndTime", with = "azure_core::date::rfc3339")] + pub reservation_end_time: time::OffsetDateTime, #[doc = "Receive start time of a contact."] - #[serde(rename = "rxStartTime", default, skip_serializing_if = "Option::is_none")] - pub rx_start_time: Option, + #[serde(rename = "rxStartTime", with = "azure_core::date::rfc3339::option")] + pub rx_start_time: Option, #[doc = "Receive end time of a contact."] - #[serde(rename = "rxEndTime", default, skip_serializing_if = "Option::is_none")] - pub rx_end_time: Option, + #[serde(rename = "rxEndTime", with = "azure_core::date::rfc3339::option")] + pub rx_end_time: Option, #[doc = "Transmit start time of a contact."] - #[serde(rename = "txStartTime", default, skip_serializing_if = "Option::is_none")] - pub tx_start_time: Option, + #[serde(rename = "txStartTime", with = "azure_core::date::rfc3339::option")] + pub tx_start_time: Option, #[doc = "Transmit end time of a contact."] - #[serde(rename = "txEndTime", default, skip_serializing_if = "Option::is_none")] - pub tx_end_time: Option, + #[serde(rename = "txEndTime", with = "azure_core::date::rfc3339::option")] + pub tx_end_time: Option, #[doc = "Any error message while scheduling a contact."] #[serde(rename = "errorMessage", default, skip_serializing_if = "Option::is_none")] pub error_message: Option, @@ -545,8 +550,8 @@ pub struct ContactsProperties { } impl ContactsProperties { pub fn new( - reservation_start_time: String, - reservation_end_time: String, + reservation_start_time: time::OffsetDateTime, + reservation_end_time: time::OffsetDateTime, ground_station_name: String, contact_profile: ResourceReference, ) -> Self { @@ -1109,8 +1114,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1118,8 +1123,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/orbital/src/package_2022_03_01/models.rs b/services/mgmt/orbital/src/package_2022_03_01/models.rs index ca667741afe..a3d1d34c816 100644 --- a/services/mgmt/orbital/src/package_2022_03_01/models.rs +++ b/services/mgmt/orbital/src/package_2022_03_01/models.rs @@ -271,17 +271,17 @@ pub struct ContactInstanceProperties { #[serde(rename = "maximumElevationDegrees", default, skip_serializing_if = "Option::is_none")] pub maximum_elevation_degrees: Option, #[doc = "Time at which antenna transmit will be enabled (ISO 8601 UTC standard)."] - #[serde(rename = "txStartTime", default, skip_serializing_if = "Option::is_none")] - pub tx_start_time: Option, + #[serde(rename = "txStartTime", with = "azure_core::date::rfc3339::option")] + pub tx_start_time: Option, #[doc = "Time at which antenna transmit will be disabled (ISO 8601 UTC standard)."] - #[serde(rename = "txEndTime", default, skip_serializing_if = "Option::is_none")] - pub tx_end_time: Option, + #[serde(rename = "txEndTime", with = "azure_core::date::rfc3339::option")] + pub tx_end_time: Option, #[doc = "Earliest time to receive a signal (ISO 8601 UTC standard)."] - #[serde(rename = "rxStartTime", default, skip_serializing_if = "Option::is_none")] - pub rx_start_time: Option, + #[serde(rename = "rxStartTime", with = "azure_core::date::rfc3339::option")] + pub rx_start_time: Option, #[doc = "Time to lost receiving a signal (ISO 8601 UTC standard)."] - #[serde(rename = "rxEndTime", default, skip_serializing_if = "Option::is_none")] - pub rx_end_time: Option, + #[serde(rename = "rxEndTime", with = "azure_core::date::rfc3339::option")] + pub rx_end_time: Option, #[doc = "Azimuth of the antenna at the start of the contact in decimal degrees."] #[serde(rename = "startAzimuthDegrees", default, skip_serializing_if = "Option::is_none")] pub start_azimuth_degrees: Option, @@ -331,14 +331,19 @@ pub struct ContactParameters { #[serde(rename = "groundStationName")] pub ground_station_name: String, #[doc = "Start time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "End time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, } impl ContactParameters { - pub fn new(contact_profile: serde_json::Value, ground_station_name: String, start_time: String, end_time: String) -> Self { + pub fn new( + contact_profile: serde_json::Value, + ground_station_name: String, + start_time: time::OffsetDateTime, + end_time: time::OffsetDateTime, + ) -> Self { Self { contact_profile, ground_station_name, @@ -624,23 +629,23 @@ pub struct ContactsProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Reservation start time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "reservationStartTime")] - pub reservation_start_time: String, + #[serde(rename = "reservationStartTime", with = "azure_core::date::rfc3339")] + pub reservation_start_time: time::OffsetDateTime, #[doc = "Reservation end time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "reservationEndTime")] - pub reservation_end_time: String, + #[serde(rename = "reservationEndTime", with = "azure_core::date::rfc3339")] + pub reservation_end_time: time::OffsetDateTime, #[doc = "Receive start time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "rxStartTime", default, skip_serializing_if = "Option::is_none")] - pub rx_start_time: Option, + #[serde(rename = "rxStartTime", with = "azure_core::date::rfc3339::option")] + pub rx_start_time: Option, #[doc = "Receive end time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "rxEndTime", default, skip_serializing_if = "Option::is_none")] - pub rx_end_time: Option, + #[serde(rename = "rxEndTime", with = "azure_core::date::rfc3339::option")] + pub rx_end_time: Option, #[doc = "Transmit start time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "txStartTime", default, skip_serializing_if = "Option::is_none")] - pub tx_start_time: Option, + #[serde(rename = "txStartTime", with = "azure_core::date::rfc3339::option")] + pub tx_start_time: Option, #[doc = "Transmit end time of a contact (ISO 8601 UTC standard)."] - #[serde(rename = "txEndTime", default, skip_serializing_if = "Option::is_none")] - pub tx_end_time: Option, + #[serde(rename = "txEndTime", with = "azure_core::date::rfc3339::option")] + pub tx_end_time: Option, #[doc = "Any error message while scheduling a contact."] #[serde(rename = "errorMessage", default, skip_serializing_if = "Option::is_none")] pub error_message: Option, @@ -671,8 +676,8 @@ pub struct ContactsProperties { } impl ContactsProperties { pub fn new( - reservation_start_time: String, - reservation_end_time: String, + reservation_start_time: time::OffsetDateTime, + reservation_end_time: time::OffsetDateTime, ground_station_name: String, contact_profile: serde_json::Value, ) -> Self { @@ -989,11 +994,11 @@ pub struct OperationResult { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The operation start time (ISO 8601 UTC standard)."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The operation end time (ISO 8601 UTC standard)."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Percentage completed."] #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, @@ -1419,8 +1424,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1428,8 +1433,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/peering/Cargo.toml b/services/mgmt/peering/Cargo.toml index 08116238948..58187efb714 100644 --- a/services/mgmt/peering/Cargo.toml +++ b/services/mgmt/peering/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/peering/src/package_2020_04_01/models.rs b/services/mgmt/peering/src/package_2020_04_01/models.rs index a7964479c5a..53b64e2d712 100644 --- a/services/mgmt/peering/src/package_2020_04_01/models.rs +++ b/services/mgmt/peering/src/package_2020_04_01/models.rs @@ -1573,8 +1573,8 @@ impl PeeringServicePrefix { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PeeringServicePrefixEvent { #[doc = "The timestamp of the event associated with a prefix."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "The type of the event associated with a prefix."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, diff --git a/services/mgmt/peering/src/package_2020_10_01/models.rs b/services/mgmt/peering/src/package_2020_10_01/models.rs index 0e641dff080..0e2f42062f7 100644 --- a/services/mgmt/peering/src/package_2020_10_01/models.rs +++ b/services/mgmt/peering/src/package_2020_10_01/models.rs @@ -1635,8 +1635,8 @@ impl PeeringServicePrefix { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PeeringServicePrefixEvent { #[doc = "The timestamp of the event associated with a prefix."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "The type of the event associated with a prefix."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, diff --git a/services/mgmt/peering/src/package_2021_01_01/models.rs b/services/mgmt/peering/src/package_2021_01_01/models.rs index 551d44db8d3..1f4a9d5d8a3 100644 --- a/services/mgmt/peering/src/package_2021_01_01/models.rs +++ b/services/mgmt/peering/src/package_2021_01_01/models.rs @@ -1639,8 +1639,8 @@ impl PeeringServicePrefix { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PeeringServicePrefixEvent { #[doc = "The timestamp of the event associated with a prefix."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "The type of the event associated with a prefix."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, diff --git a/services/mgmt/peering/src/package_2021_06_01/models.rs b/services/mgmt/peering/src/package_2021_06_01/models.rs index 0f32c9f2e05..36ac2726175 100644 --- a/services/mgmt/peering/src/package_2021_06_01/models.rs +++ b/services/mgmt/peering/src/package_2021_06_01/models.rs @@ -1883,8 +1883,8 @@ impl PeeringServicePrefix { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PeeringServicePrefixEvent { #[doc = "The timestamp of the event associated with a prefix."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "The type of the event associated with a prefix."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, diff --git a/services/mgmt/peering/src/package_2022_01_01/models.rs b/services/mgmt/peering/src/package_2022_01_01/models.rs index 1a6a2b600cb..5fa495f9e44 100644 --- a/services/mgmt/peering/src/package_2022_01_01/models.rs +++ b/services/mgmt/peering/src/package_2022_01_01/models.rs @@ -1887,8 +1887,8 @@ impl PeeringServicePrefix { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PeeringServicePrefixEvent { #[doc = "The timestamp of the event associated with a prefix."] - #[serde(rename = "eventTimestamp", default, skip_serializing_if = "Option::is_none")] - pub event_timestamp: Option, + #[serde(rename = "eventTimestamp", with = "azure_core::date::rfc3339::option")] + pub event_timestamp: Option, #[doc = "The type of the event associated with a prefix."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, diff --git a/services/mgmt/policyinsights/Cargo.toml b/services/mgmt/policyinsights/Cargo.toml index f2d569b04a1..ea17c07c8f4 100644 --- a/services/mgmt/policyinsights/Cargo.toml +++ b/services/mgmt/policyinsights/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/policyinsights/src/package_2020_07/models.rs b/services/mgmt/policyinsights/src/package_2020_07/models.rs index 8a811e630eb..c7315503448 100644 --- a/services/mgmt/policyinsights/src/package_2020_07/models.rs +++ b/services/mgmt/policyinsights/src/package_2020_07/models.rs @@ -102,8 +102,8 @@ pub struct ComponentEventDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp for component policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Tenant ID for the policy event record."] #[serde(rename = "tenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -132,8 +132,8 @@ pub struct ComponentStateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Component compliance evaluation timestamp."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Component compliance state."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -495,8 +495,8 @@ pub struct PolicyEvent { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -746,8 +746,8 @@ pub struct PolicyState { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy state record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -890,8 +890,8 @@ pub struct PolicyTrackedResource { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Timestamp of the last update to the tracked resource."] - #[serde(rename = "lastUpdateUtc", default, skip_serializing_if = "Option::is_none")] - pub last_update_utc: Option, + #[serde(rename = "lastUpdateUtc", with = "azure_core::date::rfc3339::option")] + pub last_update_utc: Option, } impl PolicyTrackedResource { pub fn new() -> Self { @@ -995,11 +995,11 @@ pub struct RemediationDeployment { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation deployment was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, } impl RemediationDeployment { pub fn new() -> Self { @@ -1094,11 +1094,11 @@ pub struct RemediationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, #[doc = "The filters that will be applied to determine which resources to remediate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filters: Option, @@ -1248,8 +1248,8 @@ pub struct TrackedResourceModificationDetails { #[serde(rename = "deploymentId", default, skip_serializing_if = "Option::is_none")] pub deployment_id: Option, #[doc = "Timestamp of the deployment that created or modified the tracked resource."] - #[serde(rename = "deploymentTime", default, skip_serializing_if = "Option::is_none")] - pub deployment_time: Option, + #[serde(rename = "deploymentTime", with = "azure_core::date::rfc3339::option")] + pub deployment_time: Option, } impl TrackedResourceModificationDetails { pub fn new() -> Self { diff --git a/services/mgmt/policyinsights/src/package_2020_07/operations.rs b/services/mgmt/policyinsights/src/package_2020_07/operations.rs index ec09257966d..de4be2184da 100644 --- a/services/mgmt/policyinsights/src/package_2020_07/operations.rs +++ b/services/mgmt/policyinsights/src/package_2020_07/operations.rs @@ -2902,8 +2902,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -2925,12 +2925,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3003,10 +3003,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3052,8 +3052,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3075,12 +3075,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3152,10 +3152,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3202,8 +3202,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3225,12 +3225,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3303,10 +3303,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3352,8 +3352,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -3376,12 +3376,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3458,10 +3458,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3512,8 +3512,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3535,12 +3535,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3607,10 +3607,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3658,8 +3658,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3681,12 +3681,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3753,10 +3753,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3804,8 +3804,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3827,12 +3827,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3899,10 +3899,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3951,8 +3951,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3974,12 +3974,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4046,10 +4046,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4616,8 +4616,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4639,12 +4639,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4717,10 +4717,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4765,8 +4765,8 @@ pub mod policy_states { pub(crate) management_groups_namespace: String, pub(crate) management_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -4776,12 +4776,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4815,10 +4815,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4855,8 +4855,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4878,12 +4878,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4955,10 +4955,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5002,8 +5002,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) subscription_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5013,12 +5013,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5051,10 +5051,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5092,8 +5092,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5115,12 +5115,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5193,10 +5193,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5241,8 +5241,8 @@ pub mod policy_states { pub(crate) subscription_id: String, pub(crate) resource_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5252,12 +5252,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5291,10 +5291,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5331,8 +5331,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -5355,12 +5355,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5437,10 +5437,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5487,8 +5487,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) resource_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5498,12 +5498,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5536,10 +5536,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5677,8 +5677,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5700,12 +5700,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5772,10 +5772,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5821,8 +5821,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_set_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5832,12 +5832,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5865,10 +5865,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5907,8 +5907,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5930,12 +5930,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6002,10 +6002,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6051,8 +6051,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6062,12 +6062,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6095,10 +6095,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6137,8 +6137,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6160,12 +6160,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6232,10 +6232,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6281,8 +6281,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6292,12 +6292,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6325,10 +6325,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6368,8 +6368,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6391,12 +6391,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6463,10 +6463,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6513,8 +6513,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6524,12 +6524,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6557,10 +6557,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); diff --git a/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs b/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs index 8a811e630eb..c7315503448 100644 --- a/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs +++ b/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs @@ -102,8 +102,8 @@ pub struct ComponentEventDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp for component policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Tenant ID for the policy event record."] #[serde(rename = "tenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -132,8 +132,8 @@ pub struct ComponentStateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Component compliance evaluation timestamp."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Component compliance state."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -495,8 +495,8 @@ pub struct PolicyEvent { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -746,8 +746,8 @@ pub struct PolicyState { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy state record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -890,8 +890,8 @@ pub struct PolicyTrackedResource { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Timestamp of the last update to the tracked resource."] - #[serde(rename = "lastUpdateUtc", default, skip_serializing_if = "Option::is_none")] - pub last_update_utc: Option, + #[serde(rename = "lastUpdateUtc", with = "azure_core::date::rfc3339::option")] + pub last_update_utc: Option, } impl PolicyTrackedResource { pub fn new() -> Self { @@ -995,11 +995,11 @@ pub struct RemediationDeployment { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation deployment was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, } impl RemediationDeployment { pub fn new() -> Self { @@ -1094,11 +1094,11 @@ pub struct RemediationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, #[doc = "The filters that will be applied to determine which resources to remediate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filters: Option, @@ -1248,8 +1248,8 @@ pub struct TrackedResourceModificationDetails { #[serde(rename = "deploymentId", default, skip_serializing_if = "Option::is_none")] pub deployment_id: Option, #[doc = "Timestamp of the deployment that created or modified the tracked resource."] - #[serde(rename = "deploymentTime", default, skip_serializing_if = "Option::is_none")] - pub deployment_time: Option, + #[serde(rename = "deploymentTime", with = "azure_core::date::rfc3339::option")] + pub deployment_time: Option, } impl TrackedResourceModificationDetails { pub fn new() -> Self { diff --git a/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs b/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs index f9faf96d6b2..d0770bac771 100644 --- a/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs +++ b/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs @@ -2902,8 +2902,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -2925,12 +2925,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3003,10 +3003,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3052,8 +3052,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3075,12 +3075,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3152,10 +3152,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3202,8 +3202,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3225,12 +3225,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3303,10 +3303,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3352,8 +3352,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -3376,12 +3376,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3458,10 +3458,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3512,8 +3512,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3535,12 +3535,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3607,10 +3607,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3658,8 +3658,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3681,12 +3681,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3753,10 +3753,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3804,8 +3804,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3827,12 +3827,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3899,10 +3899,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3951,8 +3951,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3974,12 +3974,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4046,10 +4046,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4616,8 +4616,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4639,12 +4639,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4717,10 +4717,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4765,8 +4765,8 @@ pub mod policy_states { pub(crate) management_groups_namespace: String, pub(crate) management_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -4776,12 +4776,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4815,10 +4815,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4855,8 +4855,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4878,12 +4878,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4955,10 +4955,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5002,8 +5002,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) subscription_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5013,12 +5013,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5051,10 +5051,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5092,8 +5092,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5115,12 +5115,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5193,10 +5193,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5241,8 +5241,8 @@ pub mod policy_states { pub(crate) subscription_id: String, pub(crate) resource_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5252,12 +5252,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5291,10 +5291,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5331,8 +5331,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -5355,12 +5355,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5437,10 +5437,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5487,8 +5487,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) resource_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5498,12 +5498,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5536,10 +5536,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5677,8 +5677,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5700,12 +5700,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5772,10 +5772,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5821,8 +5821,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_set_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5832,12 +5832,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5865,10 +5865,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5907,8 +5907,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5930,12 +5930,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6002,10 +6002,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6051,8 +6051,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6062,12 +6062,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6095,10 +6095,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6137,8 +6137,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6160,12 +6160,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6232,10 +6232,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6281,8 +6281,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6292,12 +6292,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6325,10 +6325,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6368,8 +6368,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6391,12 +6391,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6463,10 +6463,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6513,8 +6513,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6524,12 +6524,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6557,10 +6557,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); diff --git a/services/mgmt/policyinsights/src/package_2021_01/models.rs b/services/mgmt/policyinsights/src/package_2021_01/models.rs index 8c18fe316d3..9bbafbd91c7 100644 --- a/services/mgmt/policyinsights/src/package_2021_01/models.rs +++ b/services/mgmt/policyinsights/src/package_2021_01/models.rs @@ -73,8 +73,8 @@ pub struct AttestationProperties { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "The time the compliance state should expire."] - #[serde(rename = "expiresOn", default, skip_serializing_if = "Option::is_none")] - pub expires_on: Option, + #[serde(rename = "expiresOn", with = "azure_core::date::rfc3339::option")] + pub expires_on: Option, #[doc = "The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID."] #[serde(default, skip_serializing_if = "Option::is_none")] pub owner: Option, @@ -88,8 +88,8 @@ pub struct AttestationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time the compliance state was last changed in this attestation."] - #[serde(rename = "lastComplianceStateChangeAt", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_state_change_at: Option, + #[serde(rename = "lastComplianceStateChangeAt", with = "azure_core::date::rfc3339::option")] + pub last_compliance_state_change_at: Option, } impl AttestationProperties { pub fn new(policy_assignment_id: String) -> Self { @@ -246,8 +246,8 @@ pub struct ComponentEventDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp for component policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Tenant ID for the policy event record."] #[serde(rename = "tenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -276,8 +276,8 @@ pub struct ComponentStateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Component compliance evaluation timestamp."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Component compliance state."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -639,8 +639,8 @@ pub struct PolicyEvent { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -890,8 +890,8 @@ pub struct PolicyState { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy state record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -1034,8 +1034,8 @@ pub struct PolicyTrackedResource { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Timestamp of the last update to the tracked resource."] - #[serde(rename = "lastUpdateUtc", default, skip_serializing_if = "Option::is_none")] - pub last_update_utc: Option, + #[serde(rename = "lastUpdateUtc", with = "azure_core::date::rfc3339::option")] + pub last_update_utc: Option, } impl PolicyTrackedResource { pub fn new() -> Self { @@ -1139,11 +1139,11 @@ pub struct RemediationDeployment { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation deployment was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, } impl RemediationDeployment { pub fn new() -> Self { @@ -1238,11 +1238,11 @@ pub struct RemediationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, #[doc = "The filters that will be applied to determine which resources to remediate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filters: Option, @@ -1410,8 +1410,8 @@ pub struct TrackedResourceModificationDetails { #[serde(rename = "deploymentId", default, skip_serializing_if = "Option::is_none")] pub deployment_id: Option, #[doc = "Timestamp of the deployment that created or modified the tracked resource."] - #[serde(rename = "deploymentTime", default, skip_serializing_if = "Option::is_none")] - pub deployment_time: Option, + #[serde(rename = "deploymentTime", with = "azure_core::date::rfc3339::option")] + pub deployment_time: Option, } impl TrackedResourceModificationDetails { pub fn new() -> Self { @@ -1443,8 +1443,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1452,8 +1452,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/policyinsights/src/package_2021_01/operations.rs b/services/mgmt/policyinsights/src/package_2021_01/operations.rs index 86ec5a77bd9..59ec7fd2afe 100644 --- a/services/mgmt/policyinsights/src/package_2021_01/operations.rs +++ b/services/mgmt/policyinsights/src/package_2021_01/operations.rs @@ -2905,8 +2905,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -2928,12 +2928,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3006,10 +3006,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3055,8 +3055,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3078,12 +3078,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3155,10 +3155,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3205,8 +3205,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3228,12 +3228,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3306,10 +3306,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3355,8 +3355,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -3379,12 +3379,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3461,10 +3461,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3515,8 +3515,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3538,12 +3538,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3610,10 +3610,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3661,8 +3661,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3684,12 +3684,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3756,10 +3756,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3807,8 +3807,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3830,12 +3830,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3902,10 +3902,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3954,8 +3954,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3977,12 +3977,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4049,10 +4049,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4619,8 +4619,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4642,12 +4642,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4720,10 +4720,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4768,8 +4768,8 @@ pub mod policy_states { pub(crate) management_groups_namespace: String, pub(crate) management_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -4779,12 +4779,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4818,10 +4818,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4858,8 +4858,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4881,12 +4881,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4958,10 +4958,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5005,8 +5005,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) subscription_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5016,12 +5016,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5054,10 +5054,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5095,8 +5095,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5118,12 +5118,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5196,10 +5196,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5244,8 +5244,8 @@ pub mod policy_states { pub(crate) subscription_id: String, pub(crate) resource_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5255,12 +5255,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5294,10 +5294,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5334,8 +5334,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -5358,12 +5358,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5440,10 +5440,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5490,8 +5490,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) resource_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5501,12 +5501,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5539,10 +5539,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5680,8 +5680,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5703,12 +5703,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5775,10 +5775,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5824,8 +5824,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_set_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5835,12 +5835,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5868,10 +5868,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5910,8 +5910,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5933,12 +5933,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6005,10 +6005,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6054,8 +6054,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6065,12 +6065,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6098,10 +6098,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6140,8 +6140,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6163,12 +6163,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6235,10 +6235,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6284,8 +6284,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6295,12 +6295,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6328,10 +6328,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6371,8 +6371,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6394,12 +6394,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6466,10 +6466,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6516,8 +6516,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6527,12 +6527,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6560,10 +6560,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); diff --git a/services/mgmt/policyinsights/src/package_2021_10/models.rs b/services/mgmt/policyinsights/src/package_2021_10/models.rs index fffae81ba59..2e15bea6e88 100644 --- a/services/mgmt/policyinsights/src/package_2021_10/models.rs +++ b/services/mgmt/policyinsights/src/package_2021_10/models.rs @@ -73,8 +73,8 @@ pub struct AttestationProperties { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "The time the compliance state should expire."] - #[serde(rename = "expiresOn", default, skip_serializing_if = "Option::is_none")] - pub expires_on: Option, + #[serde(rename = "expiresOn", with = "azure_core::date::rfc3339::option")] + pub expires_on: Option, #[doc = "The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID."] #[serde(default, skip_serializing_if = "Option::is_none")] pub owner: Option, @@ -88,8 +88,8 @@ pub struct AttestationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time the compliance state was last changed in this attestation."] - #[serde(rename = "lastComplianceStateChangeAt", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_state_change_at: Option, + #[serde(rename = "lastComplianceStateChangeAt", with = "azure_core::date::rfc3339::option")] + pub last_compliance_state_change_at: Option, } impl AttestationProperties { pub fn new(policy_assignment_id: String) -> Self { @@ -246,8 +246,8 @@ pub struct ComponentEventDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp for component policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Tenant ID for the policy event record."] #[serde(rename = "tenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -276,8 +276,8 @@ pub struct ComponentStateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Component compliance evaluation timestamp."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Component compliance state."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -639,8 +639,8 @@ pub struct PolicyEvent { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -890,8 +890,8 @@ pub struct PolicyState { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy state record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -1034,8 +1034,8 @@ pub struct PolicyTrackedResource { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Timestamp of the last update to the tracked resource."] - #[serde(rename = "lastUpdateUtc", default, skip_serializing_if = "Option::is_none")] - pub last_update_utc: Option, + #[serde(rename = "lastUpdateUtc", with = "azure_core::date::rfc3339::option")] + pub last_update_utc: Option, } impl PolicyTrackedResource { pub fn new() -> Self { @@ -1142,11 +1142,11 @@ pub struct RemediationDeployment { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation deployment was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, } impl RemediationDeployment { pub fn new() -> Self { @@ -1241,11 +1241,11 @@ pub struct RemediationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, #[doc = "The filters that will be applied to determine which resources to remediate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filters: Option, @@ -1440,8 +1440,8 @@ pub struct TrackedResourceModificationDetails { #[serde(rename = "deploymentId", default, skip_serializing_if = "Option::is_none")] pub deployment_id: Option, #[doc = "Timestamp of the deployment that created or modified the tracked resource."] - #[serde(rename = "deploymentTime", default, skip_serializing_if = "Option::is_none")] - pub deployment_time: Option, + #[serde(rename = "deploymentTime", with = "azure_core::date::rfc3339::option")] + pub deployment_time: Option, } impl TrackedResourceModificationDetails { pub fn new() -> Self { @@ -1473,8 +1473,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1482,8 +1482,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/policyinsights/src/package_2021_10/operations.rs b/services/mgmt/policyinsights/src/package_2021_10/operations.rs index a72e420b97e..0eef33d4460 100644 --- a/services/mgmt/policyinsights/src/package_2021_10/operations.rs +++ b/services/mgmt/policyinsights/src/package_2021_10/operations.rs @@ -2905,8 +2905,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -2928,12 +2928,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3006,10 +3006,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3055,8 +3055,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3078,12 +3078,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3155,10 +3155,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3205,8 +3205,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3228,12 +3228,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3306,10 +3306,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3355,8 +3355,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -3379,12 +3379,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3461,10 +3461,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3515,8 +3515,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3538,12 +3538,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3610,10 +3610,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3661,8 +3661,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3684,12 +3684,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3756,10 +3756,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3807,8 +3807,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3830,12 +3830,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3902,10 +3902,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3954,8 +3954,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3977,12 +3977,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4049,10 +4049,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4619,8 +4619,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4642,12 +4642,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4720,10 +4720,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4768,8 +4768,8 @@ pub mod policy_states { pub(crate) management_groups_namespace: String, pub(crate) management_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -4779,12 +4779,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4818,10 +4818,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4858,8 +4858,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4881,12 +4881,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4958,10 +4958,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5005,8 +5005,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) subscription_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5016,12 +5016,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5054,10 +5054,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5095,8 +5095,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5118,12 +5118,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5196,10 +5196,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5244,8 +5244,8 @@ pub mod policy_states { pub(crate) subscription_id: String, pub(crate) resource_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5255,12 +5255,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5294,10 +5294,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5334,8 +5334,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -5358,12 +5358,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5440,10 +5440,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5490,8 +5490,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) resource_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5501,12 +5501,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5539,10 +5539,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5680,8 +5680,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5703,12 +5703,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5775,10 +5775,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5824,8 +5824,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_set_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5835,12 +5835,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5868,10 +5868,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5910,8 +5910,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5933,12 +5933,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6005,10 +6005,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6054,8 +6054,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6065,12 +6065,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6098,10 +6098,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6140,8 +6140,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6163,12 +6163,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6235,10 +6235,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6284,8 +6284,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6295,12 +6295,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6328,10 +6328,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6371,8 +6371,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6394,12 +6394,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6466,10 +6466,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6516,8 +6516,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6527,12 +6527,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6560,10 +6560,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); diff --git a/services/mgmt/policyinsights/src/package_2022_03/models.rs b/services/mgmt/policyinsights/src/package_2022_03/models.rs index 6a903040d04..a4a4a9195e2 100644 --- a/services/mgmt/policyinsights/src/package_2022_03/models.rs +++ b/services/mgmt/policyinsights/src/package_2022_03/models.rs @@ -73,8 +73,8 @@ pub struct AttestationProperties { #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, #[doc = "The time the compliance state should expire."] - #[serde(rename = "expiresOn", default, skip_serializing_if = "Option::is_none")] - pub expires_on: Option, + #[serde(rename = "expiresOn", with = "azure_core::date::rfc3339::option")] + pub expires_on: Option, #[doc = "The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID."] #[serde(default, skip_serializing_if = "Option::is_none")] pub owner: Option, @@ -88,8 +88,8 @@ pub struct AttestationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time the compliance state was last changed in this attestation."] - #[serde(rename = "lastComplianceStateChangeAt", default, skip_serializing_if = "Option::is_none")] - pub last_compliance_state_change_at: Option, + #[serde(rename = "lastComplianceStateChangeAt", with = "azure_core::date::rfc3339::option")] + pub last_compliance_state_change_at: Option, } impl AttestationProperties { pub fn new(policy_assignment_id: String) -> Self { @@ -261,8 +261,8 @@ pub struct ComponentEventDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp for component policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Tenant ID for the policy event record."] #[serde(rename = "tenantId", default, skip_serializing_if = "Option::is_none")] pub tenant_id: Option, @@ -291,8 +291,8 @@ pub struct ComponentStateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Component compliance evaluation timestamp."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Component compliance state."] #[serde(rename = "complianceState", default, skip_serializing_if = "Option::is_none")] pub compliance_state: Option, @@ -654,8 +654,8 @@ pub struct PolicyEvent { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy event record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -905,8 +905,8 @@ pub struct PolicyState { #[serde(rename = "@odata.context", default, skip_serializing_if = "Option::is_none")] pub odata_context: Option, #[doc = "Timestamp for the policy state record."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Resource ID."] #[serde(rename = "resourceId", default, skip_serializing_if = "Option::is_none")] pub resource_id: Option, @@ -1049,8 +1049,8 @@ pub struct PolicyTrackedResource { #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, #[doc = "Timestamp of the last update to the tracked resource."] - #[serde(rename = "lastUpdateUtc", default, skip_serializing_if = "Option::is_none")] - pub last_update_utc: Option, + #[serde(rename = "lastUpdateUtc", with = "azure_core::date::rfc3339::option")] + pub last_update_utc: Option, } impl PolicyTrackedResource { pub fn new() -> Self { @@ -1157,11 +1157,11 @@ pub struct RemediationDeployment { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation deployment was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, } impl RemediationDeployment { pub fn new() -> Self { @@ -1256,11 +1256,11 @@ pub struct RemediationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time at which the remediation was created."] - #[serde(rename = "createdOn", default, skip_serializing_if = "Option::is_none")] - pub created_on: Option, + #[serde(rename = "createdOn", with = "azure_core::date::rfc3339::option")] + pub created_on: Option, #[doc = "The time at which the remediation was last updated."] - #[serde(rename = "lastUpdatedOn", default, skip_serializing_if = "Option::is_none")] - pub last_updated_on: Option, + #[serde(rename = "lastUpdatedOn", with = "azure_core::date::rfc3339::option")] + pub last_updated_on: Option, #[doc = "The filters that will be applied to determine which resources to remediate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filters: Option, @@ -1455,8 +1455,8 @@ pub struct TrackedResourceModificationDetails { #[serde(rename = "deploymentId", default, skip_serializing_if = "Option::is_none")] pub deployment_id: Option, #[doc = "Timestamp of the deployment that created or modified the tracked resource."] - #[serde(rename = "deploymentTime", default, skip_serializing_if = "Option::is_none")] - pub deployment_time: Option, + #[serde(rename = "deploymentTime", with = "azure_core::date::rfc3339::option")] + pub deployment_time: Option, } impl TrackedResourceModificationDetails { pub fn new() -> Self { @@ -1488,8 +1488,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1497,8 +1497,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/policyinsights/src/package_2022_03/operations.rs b/services/mgmt/policyinsights/src/package_2022_03/operations.rs index 84e09174757..b8eeabdb036 100644 --- a/services/mgmt/policyinsights/src/package_2022_03/operations.rs +++ b/services/mgmt/policyinsights/src/package_2022_03/operations.rs @@ -2905,8 +2905,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -2928,12 +2928,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3006,10 +3006,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3055,8 +3055,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3078,12 +3078,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3155,10 +3155,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3205,8 +3205,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3228,12 +3228,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3306,10 +3306,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3355,8 +3355,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -3379,12 +3379,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3461,10 +3461,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3515,8 +3515,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3538,12 +3538,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3610,10 +3610,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3661,8 +3661,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3684,12 +3684,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3756,10 +3756,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3807,8 +3807,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3830,12 +3830,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -3902,10 +3902,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -3954,8 +3954,8 @@ pub mod policy_events { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -3977,12 +3977,12 @@ pub mod policy_events { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4049,10 +4049,10 @@ pub mod policy_events { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4619,8 +4619,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4642,12 +4642,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4720,10 +4720,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4768,8 +4768,8 @@ pub mod policy_states { pub(crate) management_groups_namespace: String, pub(crate) management_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -4779,12 +4779,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4818,10 +4818,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -4858,8 +4858,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -4881,12 +4881,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -4958,10 +4958,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5005,8 +5005,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) subscription_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5016,12 +5016,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5054,10 +5054,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5095,8 +5095,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5118,12 +5118,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5196,10 +5196,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5244,8 +5244,8 @@ pub mod policy_states { pub(crate) subscription_id: String, pub(crate) resource_group_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5255,12 +5255,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5294,10 +5294,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5334,8 +5334,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) expand: Option, @@ -5358,12 +5358,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5440,10 +5440,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5490,8 +5490,8 @@ pub mod policy_states { pub(crate) policy_states_summary_resource: String, pub(crate) resource_id: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5501,12 +5501,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5539,10 +5539,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5680,8 +5680,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5703,12 +5703,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5775,10 +5775,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5824,8 +5824,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_set_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -5835,12 +5835,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -5868,10 +5868,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -5910,8 +5910,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -5933,12 +5933,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6005,10 +6005,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6054,8 +6054,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_definition_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6065,12 +6065,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6098,10 +6098,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6140,8 +6140,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6163,12 +6163,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6235,10 +6235,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6284,8 +6284,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6295,12 +6295,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6328,10 +6328,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6371,8 +6371,8 @@ pub mod policy_states { pub(crate) top: Option, pub(crate) orderby: Option, pub(crate) select: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, pub(crate) apply: Option, pub(crate) skiptoken: Option, @@ -6394,12 +6394,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6466,10 +6466,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$select", select); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); @@ -6516,8 +6516,8 @@ pub mod policy_states { pub(crate) authorization_namespace: String, pub(crate) policy_assignment_name: String, pub(crate) top: Option, - pub(crate) from: Option, - pub(crate) to: Option, + pub(crate) from: Option, + pub(crate) to: Option, pub(crate) filter: Option, } impl Builder { @@ -6527,12 +6527,12 @@ pub mod policy_states { self } #[doc = "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day)."] - pub fn from(mut self, from: impl Into) -> Self { + pub fn from(mut self, from: impl Into) -> Self { self.from = Some(from.into()); self } #[doc = "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time."] - pub fn to(mut self, to: impl Into) -> Self { + pub fn to(mut self, to: impl Into) -> Self { self.to = Some(to.into()); self } @@ -6560,10 +6560,10 @@ pub mod policy_states { req.url_mut().query_pairs_mut().append_pair("$top", &top.to_string()); } if let Some(from) = &this.from { - req.url_mut().query_pairs_mut().append_pair("$from", from); + req.url_mut().query_pairs_mut().append_pair("$from", &from.to_string()); } if let Some(to) = &this.to { - req.url_mut().query_pairs_mut().append_pair("$to", to); + req.url_mut().query_pairs_mut().append_pair("$to", &to.to_string()); } if let Some(filter) = &this.filter { req.url_mut().query_pairs_mut().append_pair("$filter", filter); diff --git a/services/mgmt/portal/Cargo.toml b/services/mgmt/portal/Cargo.toml index 82b77be1829..2d217e83454 100644 --- a/services/mgmt/portal/Cargo.toml +++ b/services/mgmt/portal/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/postgresql/Cargo.toml b/services/mgmt/postgresql/Cargo.toml index e5a0591214f..e498a257acc 100644 --- a/services/mgmt/postgresql/Cargo.toml +++ b/services/mgmt/postgresql/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs b/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs index 67d59b6c3f4..9ba2a9ded94 100644 --- a/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs +++ b/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs @@ -49,8 +49,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "The earliest restore point time (ISO8601 format) for server."] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -814,8 +814,8 @@ pub struct MigrationResourceProperties { pub setup_logical_replication_on_source_db_if_needed: Option, #[serde(rename = "overwriteDBsInTarget", default, skip_serializing_if = "Option::is_none")] pub overwrite_d_bs_in_target: Option, - #[serde(rename = "migrationWindowStartTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub migration_window_start_time_in_utc: Option, + #[serde(rename = "migrationWindowStartTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub migration_window_start_time_in_utc: Option, #[serde(rename = "startDataMigration", default, skip_serializing_if = "Option::is_none")] pub start_data_migration: Option, #[serde(rename = "triggerCutover", default, skip_serializing_if = "Option::is_none")] @@ -849,8 +849,8 @@ pub struct MigrationResourcePropertiesForPatch { pub setup_logical_replication_on_source_db_if_needed: Option, #[serde(rename = "overwriteDBsInTarget", default, skip_serializing_if = "Option::is_none")] pub overwrite_d_bs_in_target: Option, - #[serde(rename = "migrationWindowStartTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub migration_window_start_time_in_utc: Option, + #[serde(rename = "migrationWindowStartTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub migration_window_start_time_in_utc: Option, #[serde(rename = "startDataMigration", default, skip_serializing_if = "Option::is_none")] pub start_data_migration: Option, #[serde(rename = "triggerCutover", default, skip_serializing_if = "Option::is_none")] @@ -1431,8 +1431,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'."] - #[serde(rename = "pointInTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub point_in_time_utc: Option, + #[serde(rename = "pointInTimeUTC", with = "azure_core::date::rfc3339::option")] + pub point_in_time_utc: Option, #[doc = "availability zone information of the server."] #[serde(rename = "availabilityZone", default, skip_serializing_if = "Option::is_none")] pub availability_zone: Option, @@ -1919,8 +1919,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1928,8 +1928,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs index 97fccf69af7..20f6b1b1515 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs @@ -14,8 +14,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "The earliest restore point time (ISO8601 format) for server."] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -1054,8 +1054,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'."] - #[serde(rename = "pointInTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub point_in_time_utc: Option, + #[serde(rename = "pointInTimeUTC", with = "azure_core::date::rfc3339::option")] + pub point_in_time_utc: Option, #[doc = "availability zone information of the server."] #[serde(rename = "availabilityZone", default, skip_serializing_if = "Option::is_none")] pub availability_zone: Option, @@ -1475,8 +1475,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1484,8 +1484,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs index 124ce150200..073340f4c79 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs @@ -57,8 +57,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "The earliest restore point time (ISO8601 format) for server."] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -987,11 +987,11 @@ pub struct QueryStatisticProperties { #[serde(rename = "queryId", default, skip_serializing_if = "Option::is_none")] pub query_id: Option, #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Aggregation function name."] #[serde(rename = "aggregationFunction", default, skip_serializing_if = "Option::is_none")] pub aggregation_function: Option, @@ -1096,11 +1096,11 @@ pub struct RecommendationActionProperties { #[serde(rename = "actionId", default, skip_serializing_if = "Option::is_none")] pub action_id: Option, #[doc = "Recommendation action creation time."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "Recommendation action expiration time."] - #[serde(rename = "expirationTime", default, skip_serializing_if = "Option::is_none")] - pub expiration_time: Option, + #[serde(rename = "expirationTime", with = "azure_core::date::rfc3339::option")] + pub expiration_time: Option, #[doc = "Recommendation action reason."] #[serde(default, skip_serializing_if = "Option::is_none")] pub reason: Option, @@ -1320,8 +1320,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'."] - #[serde(rename = "pointInTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub point_in_time_utc: Option, + #[serde(rename = "pointInTimeUTC", with = "azure_core::date::rfc3339::option")] + pub point_in_time_utc: Option, #[doc = "availability zone information of the server."] #[serde(rename = "availabilityZone", default, skip_serializing_if = "Option::is_none")] pub availability_zone: Option, @@ -1679,11 +1679,11 @@ pub struct TopQueryStatisticsInputProperties { #[serde(rename = "observedMetric")] pub observed_metric: String, #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, @@ -1693,8 +1693,8 @@ impl TopQueryStatisticsInputProperties { number_of_top_queries: i32, aggregation_function: String, observed_metric: String, - observation_start_time: String, - observation_end_time: String, + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, aggregation_window: String, ) -> Self { Self { @@ -1813,11 +1813,11 @@ impl WaitStatistic { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WaitStatisticProperties { #[doc = "Observation start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Observation end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Wait event name."] #[serde(rename = "eventName", default, skip_serializing_if = "Option::is_none")] pub event_name: Option, @@ -1860,17 +1860,21 @@ impl WaitStatisticsInput { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WaitStatisticsInputProperties { #[doc = "Observation start time."] - #[serde(rename = "observationStartTime")] - pub observation_start_time: String, + #[serde(rename = "observationStartTime", with = "azure_core::date::rfc3339")] + pub observation_start_time: time::OffsetDateTime, #[doc = "Observation end time."] - #[serde(rename = "observationEndTime")] - pub observation_end_time: String, + #[serde(rename = "observationEndTime", with = "azure_core::date::rfc3339")] + pub observation_end_time: time::OffsetDateTime, #[doc = "Aggregation interval type in ISO 8601 format."] #[serde(rename = "aggregationWindow")] pub aggregation_window: String, } impl WaitStatisticsInputProperties { - pub fn new(observation_start_time: String, observation_end_time: String, aggregation_window: String) -> Self { + pub fn new( + observation_start_time: time::OffsetDateTime, + observation_end_time: time::OffsetDateTime, + aggregation_window: String, + ) -> Self { Self { observation_start_time, observation_end_time, @@ -1909,8 +1913,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1918,8 +1922,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs index 4be093da984..1e81bd482a2 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs @@ -2777,7 +2777,7 @@ pub mod query_texts { .append_pair(azure_core::query_param::API_VERSION, "2021-06-01-preview"); let query_ids = &this.query_ids; for value in &this.query_ids { - req.url_mut().query_pairs_mut().append_pair("queryIds", value); + req.url_mut().query_pairs_mut().append_pair("queryIds", &value.to_string()); } let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs index d76094f3733..3102a9d2b06 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs @@ -14,8 +14,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "The earliest restore point time (ISO8601 format) for server."] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -1020,8 +1020,8 @@ pub struct ServerBackupProperties { #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, #[doc = "Backup completed time (ISO8601 format)."] - #[serde(rename = "completedTime", default, skip_serializing_if = "Option::is_none")] - pub completed_time: Option, + #[serde(rename = "completedTime", with = "azure_core::date::rfc3339::option")] + pub completed_time: Option, #[doc = "Backup source"] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -1112,8 +1112,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'."] - #[serde(rename = "pointInTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub point_in_time_utc: Option, + #[serde(rename = "pointInTimeUTC", with = "azure_core::date::rfc3339::option")] + pub point_in_time_utc: Option, #[doc = "availability zone information of the server."] #[serde(rename = "availabilityZone", default, skip_serializing_if = "Option::is_none")] pub availability_zone: Option, @@ -1533,8 +1533,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1542,8 +1542,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs index 6a336e16046..5e39367a851 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs @@ -14,8 +14,8 @@ pub struct Backup { #[serde(rename = "geoRedundantBackup", default, skip_serializing_if = "Option::is_none")] pub geo_redundant_backup: Option, #[doc = "The earliest restore point time (ISO8601 format) for server."] - #[serde(rename = "earliestRestoreDate", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_date: Option, + #[serde(rename = "earliestRestoreDate", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_date: Option, } impl Backup { pub fn new() -> Self { @@ -1047,8 +1047,8 @@ pub struct ServerBackupProperties { #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, #[doc = "Backup completed time (ISO8601 format)."] - #[serde(rename = "completedTime", default, skip_serializing_if = "Option::is_none")] - pub completed_time: Option, + #[serde(rename = "completedTime", with = "azure_core::date::rfc3339::option")] + pub completed_time: Option, #[doc = "Backup source"] #[serde(default, skip_serializing_if = "Option::is_none")] pub source: Option, @@ -1139,8 +1139,8 @@ pub struct ServerProperties { #[serde(rename = "sourceServerResourceId", default, skip_serializing_if = "Option::is_none")] pub source_server_resource_id: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'."] - #[serde(rename = "pointInTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub point_in_time_utc: Option, + #[serde(rename = "pointInTimeUTC", with = "azure_core::date::rfc3339::option")] + pub point_in_time_utc: Option, #[doc = "availability zone information of the server."] #[serde(rename = "availabilityZone", default, skip_serializing_if = "Option::is_none")] pub availability_zone: Option, @@ -1560,8 +1560,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1569,8 +1569,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/postgresqlhsc/Cargo.toml b/services/mgmt/postgresqlhsc/Cargo.toml index 94988873dc7..65bbfd84c7e 100644 --- a/services/mgmt/postgresqlhsc/Cargo.toml +++ b/services/mgmt/postgresqlhsc/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs index e2cd640ad05..bb4321292b8 100644 --- a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs +++ b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs @@ -760,8 +760,8 @@ pub struct ServerGroupProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub state: Option, #[doc = "The earliest restore point time (ISO8601 format) for server group."] - #[serde(rename = "earliestRestoreTime", default, skip_serializing_if = "Option::is_none")] - pub earliest_restore_time: Option, + #[serde(rename = "earliestRestoreTime", with = "azure_core::date::rfc3339::option")] + pub earliest_restore_time: Option, #[doc = "The resource provider type of server group."] #[serde(rename = "resourceProviderType", default, skip_serializing_if = "Option::is_none")] pub resource_provider_type: Option, @@ -802,8 +802,8 @@ pub struct ServerGroupProperties { #[serde(rename = "sourceLocation", default, skip_serializing_if = "Option::is_none")] pub source_location: Option, #[doc = "Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'"] - #[serde(rename = "pointInTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub point_in_time_utc: Option, + #[serde(rename = "pointInTimeUTC", with = "azure_core::date::rfc3339::option")] + pub point_in_time_utc: Option, } impl ServerGroupProperties { pub fn new() -> Self { @@ -1312,8 +1312,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1321,8 +1321,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/powerbidedicated/Cargo.toml b/services/mgmt/powerbidedicated/Cargo.toml index 6355cf00d4e..b16cbea185d 100644 --- a/services/mgmt/powerbidedicated/Cargo.toml +++ b/services/mgmt/powerbidedicated/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs b/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs index 6eaafa5780f..9c3f8d4fda8 100644 --- a/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs +++ b/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs @@ -844,8 +844,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)"] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "An identifier for the identity that last modified the resource"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -853,8 +853,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/powerbiembedded/Cargo.toml b/services/mgmt/powerbiembedded/Cargo.toml index a5f22d63231..8458893525d 100644 --- a/services/mgmt/powerbiembedded/Cargo.toml +++ b/services/mgmt/powerbiembedded/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/powerbiprivatelinks/Cargo.toml b/services/mgmt/powerbiprivatelinks/Cargo.toml index 5034274cfe6..a59d47514a0 100644 --- a/services/mgmt/powerbiprivatelinks/Cargo.toml +++ b/services/mgmt/powerbiprivatelinks/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs b/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs index a174b13cc9d..b84ccd4f619 100644 --- a/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs +++ b/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs @@ -627,8 +627,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -636,8 +636,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/powerplatform/Cargo.toml b/services/mgmt/powerplatform/Cargo.toml index 818d94f1bd0..12a35e75b65 100644 --- a/services/mgmt/powerplatform/Cargo.toml +++ b/services/mgmt/powerplatform/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs b/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs index 84bd7390f1c..6f38e5815b8 100644 --- a/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs +++ b/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs @@ -888,8 +888,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -897,8 +897,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/privatedns/Cargo.toml b/services/mgmt/privatedns/Cargo.toml index 287d7867728..6449c737a04 100644 --- a/services/mgmt/privatedns/Cargo.toml +++ b/services/mgmt/privatedns/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/providerhub/Cargo.toml b/services/mgmt/providerhub/Cargo.toml index 49ef088efc7..d0e6545e5a1 100644 --- a/services/mgmt/providerhub/Cargo.toml +++ b/services/mgmt/providerhub/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/providerhub/src/package_2020_11_20/models.rs b/services/mgmt/providerhub/src/package_2020_11_20/models.rs index e5611fdfa57..988253d9797 100644 --- a/services/mgmt/providerhub/src/package_2020_11_20/models.rs +++ b/services/mgmt/providerhub/src/package_2020_11_20/models.rs @@ -357,8 +357,8 @@ pub struct DefaultRolloutStatus { pub rollout_status_base: RolloutStatusBase, #[serde(rename = "nextTrafficRegion", default, skip_serializing_if = "Option::is_none")] pub next_traffic_region: Option, - #[serde(rename = "nextTrafficRegionScheduledTime", default, skip_serializing_if = "Option::is_none")] - pub next_traffic_region_scheduled_time: Option, + #[serde(rename = "nextTrafficRegionScheduledTime", with = "azure_core::date::rfc3339::option")] + pub next_traffic_region_scheduled_time: Option, #[serde(rename = "subscriptionReregistrationResult", default, skip_serializing_if = "Option::is_none")] pub subscription_reregistration_result: Option, } diff --git a/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs index b2eb574ae3e..c3dce35b749 100644 --- a/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs @@ -237,8 +237,8 @@ pub struct DefaultRolloutStatus { pub rollout_status_base: RolloutStatusBase, #[serde(rename = "nextTrafficRegion", default, skip_serializing_if = "Option::is_none")] pub next_traffic_region: Option, - #[serde(rename = "nextTrafficRegionScheduledTime", default, skip_serializing_if = "Option::is_none")] - pub next_traffic_region_scheduled_time: Option, + #[serde(rename = "nextTrafficRegionScheduledTime", with = "azure_core::date::rfc3339::option")] + pub next_traffic_region_scheduled_time: Option, #[serde(rename = "subscriptionReregistrationResult", default, skip_serializing_if = "Option::is_none")] pub subscription_reregistration_result: Option, } diff --git a/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs index ecb06acec68..9f34ef79735 100644 --- a/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs @@ -244,8 +244,8 @@ pub struct DefaultRolloutStatus { pub rollout_status_base: RolloutStatusBase, #[serde(rename = "nextTrafficRegion", default, skip_serializing_if = "Option::is_none")] pub next_traffic_region: Option, - #[serde(rename = "nextTrafficRegionScheduledTime", default, skip_serializing_if = "Option::is_none")] - pub next_traffic_region_scheduled_time: Option, + #[serde(rename = "nextTrafficRegionScheduledTime", with = "azure_core::date::rfc3339::option")] + pub next_traffic_region_scheduled_time: Option, #[serde(rename = "subscriptionReregistrationResult", default, skip_serializing_if = "Option::is_none")] pub subscription_reregistration_result: Option, } @@ -3168,8 +3168,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3177,8 +3177,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs index 45ffb8212f2..5bbe7826708 100644 --- a/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs @@ -244,8 +244,8 @@ pub struct DefaultRolloutStatus { pub rollout_status_base: RolloutStatusBase, #[serde(rename = "nextTrafficRegion", default, skip_serializing_if = "Option::is_none")] pub next_traffic_region: Option, - #[serde(rename = "nextTrafficRegionScheduledTime", default, skip_serializing_if = "Option::is_none")] - pub next_traffic_region_scheduled_time: Option, + #[serde(rename = "nextTrafficRegionScheduledTime", with = "azure_core::date::rfc3339::option")] + pub next_traffic_region_scheduled_time: Option, #[serde(rename = "subscriptionReregistrationResult", default, skip_serializing_if = "Option::is_none")] pub subscription_reregistration_result: Option, } @@ -3225,8 +3225,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -3234,8 +3234,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/purview/Cargo.toml b/services/mgmt/purview/Cargo.toml index b865b65f794..a0323ad5b4f 100644 --- a/services/mgmt/purview/Cargo.toml +++ b/services/mgmt/purview/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/purview/src/package_2020_12_01_preview/models.rs b/services/mgmt/purview/src/package_2020_12_01_preview/models.rs index 44b52ab005f..da77cd8e8ee 100644 --- a/services/mgmt/purview/src/package_2020_12_01_preview/models.rs +++ b/services/mgmt/purview/src/package_2020_12_01_preview/models.rs @@ -87,8 +87,8 @@ pub struct AccountProperties { #[serde(rename = "cloudConnectors", default, skip_serializing_if = "Option::is_none")] pub cloud_connectors: Option, #[doc = "Gets the time at which the entity was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets the creator of the entity."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -958,8 +958,8 @@ impl ProxyResource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SystemData { #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that created the resource."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -967,8 +967,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of the last modification the resource (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/purview/src/package_2021_07_01/models.rs b/services/mgmt/purview/src/package_2021_07_01/models.rs index 82a4c51192e..9dc8b2c671b 100644 --- a/services/mgmt/purview/src/package_2021_07_01/models.rs +++ b/services/mgmt/purview/src/package_2021_07_01/models.rs @@ -88,8 +88,8 @@ pub struct AccountProperties { #[serde(rename = "cloudConnectors", default, skip_serializing_if = "Option::is_none")] pub cloud_connectors: Option, #[doc = "Gets the time at which the entity was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "Gets the creator of the entity."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -979,8 +979,8 @@ impl ProxyResource { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SystemData { #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that created the resource."] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -988,8 +988,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of the last modification the resource (UTC)."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, diff --git a/services/mgmt/quantum/Cargo.toml b/services/mgmt/quantum/Cargo.toml index d72ad530dda..c753798fdc0 100644 --- a/services/mgmt/quantum/Cargo.toml +++ b/services/mgmt/quantum/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs b/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs index 239ce3c107b..d4b8dce85d4 100644 --- a/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs +++ b/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs @@ -740,8 +740,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -749,8 +749,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs b/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs index dae2732f5f4..1dc87320bd8 100644 --- a/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs +++ b/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs @@ -743,8 +743,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -752,8 +752,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/quota/Cargo.toml b/services/mgmt/quota/Cargo.toml index 597cc13bd19..6a53dd4f066 100644 --- a/services/mgmt/quota/Cargo.toml +++ b/services/mgmt/quota/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/quota/src/package_2021_03_15/models.rs b/services/mgmt/quota/src/package_2021_03_15/models.rs index b84cc6c1c3d..b18a64cfac1 100644 --- a/services/mgmt/quota/src/package_2021_03_15/models.rs +++ b/services/mgmt/quota/src/package_2021_03_15/models.rs @@ -268,8 +268,8 @@ pub struct QuotaRequestProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The quota request submission time. The date conforms to the following format specified by the ISO 8601 standard: yyyy-MM-ddTHH:mm:ssZ"] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "Quota request details."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub value: Vec, @@ -752,8 +752,8 @@ pub struct QuotaRequestOneResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "Quota request submission time. The date conforms to the following ISO 8601 standard format: yyyy-MM-ddTHH:mm:ssZ."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "Quota limit."] #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, diff --git a/services/mgmt/quota/src/package_2021_03_15_preview/models.rs b/services/mgmt/quota/src/package_2021_03_15_preview/models.rs index f7724ddeebd..eba8dc64c8b 100644 --- a/services/mgmt/quota/src/package_2021_03_15_preview/models.rs +++ b/services/mgmt/quota/src/package_2021_03_15_preview/models.rs @@ -393,8 +393,8 @@ pub struct QuotaRequestProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, #[doc = "The quota request submission time. The date conforms to the following format specified by the ISO 8601 standard: yyyy-MM-ddTHH:mm:ssZ"] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "Quota request details."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub value: Vec, @@ -713,8 +713,8 @@ pub struct QuotaRequestOneResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "Quota request submission time. The date conforms to the following ISO 8601 standard format: yyyy-MM-ddTHH:mm:ssZ."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "The resource quota limit value."] #[serde(default, skip_serializing_if = "Option::is_none")] pub limit: Option, diff --git a/services/mgmt/recommendationsservice/Cargo.toml b/services/mgmt/recommendationsservice/Cargo.toml index 5776ef8ad48..2c6609f2f0f 100644 --- a/services/mgmt/recommendationsservice/Cargo.toml +++ b/services/mgmt/recommendationsservice/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs b/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs index 98b918d1910..68b49b1cb1e 100644 --- a/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs +++ b/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs @@ -773,11 +773,11 @@ pub struct OperationStatusResult { #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, #[doc = "The start time of the operation."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the operation."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The operations list."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub operations: Vec, @@ -920,8 +920,8 @@ pub struct StageStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time of the status."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub time: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub time: Option, } impl StageStatus { pub fn new() -> Self { @@ -966,8 +966,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -975,8 +975,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/recoveryservices/Cargo.toml b/services/mgmt/recoveryservices/Cargo.toml index 34efcc3e907..954c314e67b 100644 --- a/services/mgmt/recoveryservices/Cargo.toml +++ b/services/mgmt/recoveryservices/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/recoveryservices/src/package_2022_02/models.rs b/services/mgmt/recoveryservices/src/package_2022_02/models.rs index 43888995986..3ce8df2043c 100644 --- a/services/mgmt/recoveryservices/src/package_2022_02/models.rs +++ b/services/mgmt/recoveryservices/src/package_2022_02/models.rs @@ -370,8 +370,8 @@ impl NameInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -385,8 +385,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl OperationResource { pub fn new() -> Self { @@ -878,11 +878,11 @@ pub struct ResourceCertificateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Certificate Validity start Date time."] - #[serde(rename = "validFrom", default, skip_serializing_if = "Option::is_none")] - pub valid_from: Option, + #[serde(rename = "validFrom", with = "azure_core::date::rfc3339::option")] + pub valid_from: Option, #[doc = "Certificate Validity End Date time."] - #[serde(rename = "validTo", default, skip_serializing_if = "Option::is_none")] - pub valid_to: Option, + #[serde(rename = "validTo", with = "azure_core::date::rfc3339::option")] + pub valid_to: Option, } impl ResourceCertificateDetails { pub fn new(auth_type: String) -> Self { @@ -996,14 +996,14 @@ pub struct UpgradeDetails { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "UTC time at which the upgrade operation has started."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "UTC time at which the upgrade operation status was last updated."] - #[serde(rename = "lastUpdatedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time_utc: Option, + #[serde(rename = "lastUpdatedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub last_updated_time_utc: Option, #[doc = "UTC time at which the upgrade operation has ended."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc3339::option")] + pub end_time_utc: Option, #[doc = "Status of the vault upgrade operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1402,11 +1402,11 @@ pub mod vault_properties { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "Start Time of the Resource Move Operation"] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "End Time of the Resource Move Operation"] - #[serde(rename = "completionTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub completion_time_utc: Option, + #[serde(rename = "completionTimeUtc", with = "azure_core::date::rfc3339::option")] + pub completion_time_utc: Option, #[doc = "Source Resource of the Resource Move Operation"] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -1522,8 +1522,8 @@ pub struct VaultUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -1615,8 +1615,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1624,8 +1624,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/recoveryservices/src/package_2022_03/models.rs b/services/mgmt/recoveryservices/src/package_2022_03/models.rs index 071f7b19fad..186e93708b5 100644 --- a/services/mgmt/recoveryservices/src/package_2022_03/models.rs +++ b/services/mgmt/recoveryservices/src/package_2022_03/models.rs @@ -485,8 +485,8 @@ impl NameInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -500,8 +500,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl OperationResource { pub fn new() -> Self { @@ -993,11 +993,11 @@ pub struct ResourceCertificateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Certificate Validity start Date time."] - #[serde(rename = "validFrom", default, skip_serializing_if = "Option::is_none")] - pub valid_from: Option, + #[serde(rename = "validFrom", with = "azure_core::date::rfc3339::option")] + pub valid_from: Option, #[doc = "Certificate Validity End Date time."] - #[serde(rename = "validTo", default, skip_serializing_if = "Option::is_none")] - pub valid_to: Option, + #[serde(rename = "validTo", with = "azure_core::date::rfc3339::option")] + pub valid_to: Option, } impl ResourceCertificateDetails { pub fn new(auth_type: String) -> Self { @@ -1111,14 +1111,14 @@ pub struct UpgradeDetails { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "UTC time at which the upgrade operation has started."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "UTC time at which the upgrade operation status was last updated."] - #[serde(rename = "lastUpdatedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time_utc: Option, + #[serde(rename = "lastUpdatedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub last_updated_time_utc: Option, #[doc = "UTC time at which the upgrade operation has ended."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc3339::option")] + pub end_time_utc: Option, #[doc = "Status of the vault upgrade operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1520,11 +1520,11 @@ pub mod vault_properties { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "Start Time of the Resource Move Operation"] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "End Time of the Resource Move Operation"] - #[serde(rename = "completionTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub completion_time_utc: Option, + #[serde(rename = "completionTimeUtc", with = "azure_core::date::rfc3339::option")] + pub completion_time_utc: Option, #[doc = "Source Resource of the Resource Move Operation"] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -1640,8 +1640,8 @@ pub struct VaultUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -1733,8 +1733,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1742,8 +1742,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/recoveryservices/src/package_2022_04/models.rs b/services/mgmt/recoveryservices/src/package_2022_04/models.rs index 6148d5877d1..3e0253a0980 100644 --- a/services/mgmt/recoveryservices/src/package_2022_04/models.rs +++ b/services/mgmt/recoveryservices/src/package_2022_04/models.rs @@ -485,8 +485,8 @@ impl NameInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -500,8 +500,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl OperationResource { pub fn new() -> Self { @@ -997,11 +997,11 @@ pub struct ResourceCertificateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Certificate Validity start Date time."] - #[serde(rename = "validFrom", default, skip_serializing_if = "Option::is_none")] - pub valid_from: Option, + #[serde(rename = "validFrom", with = "azure_core::date::rfc3339::option")] + pub valid_from: Option, #[doc = "Certificate Validity End Date time."] - #[serde(rename = "validTo", default, skip_serializing_if = "Option::is_none")] - pub valid_to: Option, + #[serde(rename = "validTo", with = "azure_core::date::rfc3339::option")] + pub valid_to: Option, } impl ResourceCertificateDetails { pub fn new(auth_type: String) -> Self { @@ -1115,14 +1115,14 @@ pub struct UpgradeDetails { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "UTC time at which the upgrade operation has started."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "UTC time at which the upgrade operation status was last updated."] - #[serde(rename = "lastUpdatedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time_utc: Option, + #[serde(rename = "lastUpdatedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub last_updated_time_utc: Option, #[doc = "UTC time at which the upgrade operation has ended."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc3339::option")] + pub end_time_utc: Option, #[doc = "Status of the vault upgrade operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1527,11 +1527,11 @@ pub mod vault_properties { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "Start Time of the Resource Move Operation"] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "End Time of the Resource Move Operation"] - #[serde(rename = "completionTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub completion_time_utc: Option, + #[serde(rename = "completionTimeUtc", with = "azure_core::date::rfc3339::option")] + pub completion_time_utc: Option, #[doc = "Source Resource of the Resource Move Operation"] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -1741,8 +1741,8 @@ pub struct VaultUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -1834,8 +1834,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1843,8 +1843,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs b/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs index 43888995986..3ce8df2043c 100644 --- a/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs +++ b/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs @@ -370,8 +370,8 @@ impl NameInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -385,8 +385,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl OperationResource { pub fn new() -> Self { @@ -878,11 +878,11 @@ pub struct ResourceCertificateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Certificate Validity start Date time."] - #[serde(rename = "validFrom", default, skip_serializing_if = "Option::is_none")] - pub valid_from: Option, + #[serde(rename = "validFrom", with = "azure_core::date::rfc3339::option")] + pub valid_from: Option, #[doc = "Certificate Validity End Date time."] - #[serde(rename = "validTo", default, skip_serializing_if = "Option::is_none")] - pub valid_to: Option, + #[serde(rename = "validTo", with = "azure_core::date::rfc3339::option")] + pub valid_to: Option, } impl ResourceCertificateDetails { pub fn new(auth_type: String) -> Self { @@ -996,14 +996,14 @@ pub struct UpgradeDetails { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "UTC time at which the upgrade operation has started."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "UTC time at which the upgrade operation status was last updated."] - #[serde(rename = "lastUpdatedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time_utc: Option, + #[serde(rename = "lastUpdatedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub last_updated_time_utc: Option, #[doc = "UTC time at which the upgrade operation has ended."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc3339::option")] + pub end_time_utc: Option, #[doc = "Status of the vault upgrade operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1402,11 +1402,11 @@ pub mod vault_properties { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "Start Time of the Resource Move Operation"] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "End Time of the Resource Move Operation"] - #[serde(rename = "completionTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub completion_time_utc: Option, + #[serde(rename = "completionTimeUtc", with = "azure_core::date::rfc3339::option")] + pub completion_time_utc: Option, #[doc = "Source Resource of the Resource Move Operation"] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -1522,8 +1522,8 @@ pub struct VaultUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -1615,8 +1615,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1624,8 +1624,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs b/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs index f22f5045c95..cd02e1c974e 100644 --- a/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs +++ b/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs @@ -475,8 +475,8 @@ impl NameInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResource { #[doc = "End time of the operation"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The resource management error response."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -490,8 +490,8 @@ pub struct OperationResource { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Start time of the operation"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl OperationResource { pub fn new() -> Self { @@ -1012,11 +1012,11 @@ pub struct ResourceCertificateDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub thumbprint: Option, #[doc = "Certificate Validity start Date time."] - #[serde(rename = "validFrom", default, skip_serializing_if = "Option::is_none")] - pub valid_from: Option, + #[serde(rename = "validFrom", with = "azure_core::date::rfc3339::option")] + pub valid_from: Option, #[doc = "Certificate Validity End Date time."] - #[serde(rename = "validTo", default, skip_serializing_if = "Option::is_none")] - pub valid_to: Option, + #[serde(rename = "validTo", with = "azure_core::date::rfc3339::option")] + pub valid_to: Option, } impl ResourceCertificateDetails { pub fn new(auth_type: String) -> Self { @@ -1130,14 +1130,14 @@ pub struct UpgradeDetails { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "UTC time at which the upgrade operation has started."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "UTC time at which the upgrade operation status was last updated."] - #[serde(rename = "lastUpdatedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time_utc: Option, + #[serde(rename = "lastUpdatedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub last_updated_time_utc: Option, #[doc = "UTC time at which the upgrade operation has ended."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc3339::option")] + pub end_time_utc: Option, #[doc = "Status of the vault upgrade operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -1536,11 +1536,11 @@ pub mod vault_properties { #[serde(rename = "operationId", default, skip_serializing_if = "Option::is_none")] pub operation_id: Option, #[doc = "Start Time of the Resource Move Operation"] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "End Time of the Resource Move Operation"] - #[serde(rename = "completionTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub completion_time_utc: Option, + #[serde(rename = "completionTimeUtc", with = "azure_core::date::rfc3339::option")] + pub completion_time_utc: Option, #[doc = "Source Resource of the Resource Move Operation"] #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, @@ -1656,8 +1656,8 @@ pub struct VaultUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -1749,8 +1749,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1758,8 +1758,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The type of identity that last modified the resource."] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/recoveryservicesbackup/Cargo.toml b/services/mgmt/recoveryservicesbackup/Cargo.toml index d84bfff56b2..89f48710584 100644 --- a/services/mgmt/recoveryservicesbackup/Cargo.toml +++ b/services/mgmt/recoveryservicesbackup/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs index f6ed728a70c..b223771bc34 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs @@ -43,8 +43,8 @@ pub struct AzureFileShareBackupRequest { #[serde(flatten)] pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl AzureFileShareBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -253,8 +253,8 @@ pub struct AzureFileShareRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Contains Url to the snapshot of fileshare, if applicable"] #[serde(rename = "fileShareSnapshotUri", default, skip_serializing_if = "Option::is_none")] pub file_share_snapshot_uri: Option, @@ -456,8 +456,8 @@ pub struct AzureFileshareProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Health details of different KPIs"] #[serde(rename = "kpisHealths", default, skip_serializing_if = "Option::is_none")] pub kpis_healths: Option, @@ -532,8 +532,8 @@ pub mod azure_fileshare_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureFileshareProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -544,8 +544,8 @@ pub struct AzureFileshareProtectedItemExtendedInfo { #[serde(rename = "resourceState", default, skip_serializing_if = "Option::is_none")] pub resource_state: Option, #[doc = "The resource state sync time for this backup item."] - #[serde(rename = "resourceStateSyncTime", default, skip_serializing_if = "Option::is_none")] - pub resource_state_sync_time: Option, + #[serde(rename = "resourceStateSyncTime", with = "azure_core::date::rfc3339::option")] + pub resource_state_sync_time: Option, } impl AzureFileshareProtectedItemExtendedInfo { pub fn new() -> Self { @@ -729,11 +729,11 @@ pub struct AzureIaaSvmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The instanceId."] #[serde(rename = "instanceId", default, skip_serializing_if = "Option::is_none")] pub instance_id: Option, @@ -822,8 +822,8 @@ pub struct AzureIaaSvmProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Data ID of the protected item."] #[serde(rename = "protectedItemDataId", default, skip_serializing_if = "Option::is_none")] pub protected_item_data_id: Option, @@ -947,8 +947,8 @@ pub mod azure_iaa_svm_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureIaaSvmProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1165,8 +1165,8 @@ pub mod azure_sql_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureSqlProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1580,8 +1580,8 @@ pub struct AzureVmWorkloadProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Error Detail class which encapsulates Code, Message and Recommendations."] #[serde(rename = "lastBackupErrorDetail", default, skip_serializing_if = "Option::is_none")] pub last_backup_error_detail: Option, @@ -1757,8 +1757,8 @@ pub mod azure_vm_workload_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureVmWorkloadProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -2089,8 +2089,8 @@ pub struct AzureWorkloadBackupRequest { #[serde(rename = "enableCompression", default, skip_serializing_if = "Option::is_none")] pub enable_compression: Option, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl AzureWorkloadBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -2159,8 +2159,8 @@ pub struct AzureWorkloadContainer { #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, #[doc = "Time stamp when this container was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Extended information of the container."] #[serde(rename = "extendedInfo", default, skip_serializing_if = "Option::is_none")] pub extended_info: Option, @@ -2436,8 +2436,8 @@ pub struct AzureWorkloadPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_restore_request: AzureWorkloadRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadPointInTimeRestoreRequest { pub fn new(azure_workload_restore_request: AzureWorkloadRestoreRequest) -> Self { @@ -2453,8 +2453,8 @@ pub struct AzureWorkloadRecoveryPoint { #[serde(flatten)] pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] - #[serde(rename = "recoveryPointTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time_in_utc: Option, + #[serde(rename = "recoveryPointTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time_in_utc: Option, #[doc = "Type of restore point"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -2663,8 +2663,8 @@ pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { @@ -2830,8 +2830,8 @@ pub struct AzureWorkloadSqlPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSqlPointInTimeRestoreRequest { pub fn new(azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest) -> Self { @@ -2879,8 +2879,8 @@ impl AzureWorkloadSqlRecoveryPoint { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureWorkloadSqlRecoveryPointExtendedInfo { #[doc = "UTC time at which data directory info was captured"] - #[serde(rename = "dataDirectoryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub data_directory_time_in_utc: Option, + #[serde(rename = "dataDirectoryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub data_directory_time_in_utc: Option, #[doc = "List of data directory paths during restore operation."] #[serde(rename = "dataDirectoryPaths", default, skip_serializing_if = "Vec::is_empty")] pub data_directory_paths: Vec, @@ -3548,11 +3548,11 @@ pub mod bmspo_query_object { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BmsrpQueryObject { #[doc = "Backup copies created after this time."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Backup copies created before this time."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "RestorePoint type"] #[serde(rename = "restorePointQueryType", default, skip_serializing_if = "Option::is_none")] pub restore_point_query_type: Option, @@ -4144,8 +4144,8 @@ pub struct BackupEngineExtendedInfo { #[serde(rename = "availableDiskSpace", default, skip_serializing_if = "Option::is_none")] pub available_disk_space: Option, #[doc = "Last refresh time in the backup engine."] - #[serde(rename = "refreshedAt", default, skip_serializing_if = "Option::is_none")] - pub refreshed_at: Option, + #[serde(rename = "refreshedAt", with = "azure_core::date::rfc3339::option")] + pub refreshed_at: Option, #[doc = "Protected instances in the backup engine."] #[serde(rename = "azureProtectedInstances", default, skip_serializing_if = "Option::is_none")] pub azure_protected_instances: Option, @@ -4165,8 +4165,8 @@ pub struct BackupManagementUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -5369,8 +5369,8 @@ impl ContainerIdentityInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DpmContainerExtendedInfo { #[doc = "Last refresh time of the DPMContainer."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, } impl DpmContainerExtendedInfo { pub fn new() -> Self { @@ -5471,20 +5471,20 @@ pub struct DpmProtectedItemExtendedInfo { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Last refresh time on backup item."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Oldest cloud recovery point time."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "cloud recovery point count."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, #[doc = "Oldest disk recovery point time."] - #[serde(rename = "onPremiseOldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_oldest_recovery_point: Option, + #[serde(rename = "onPremiseOldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_oldest_recovery_point: Option, #[doc = "latest disk recovery point time."] - #[serde(rename = "onPremiseLatestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_latest_recovery_point: Option, + #[serde(rename = "onPremiseLatestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_latest_recovery_point: Option, #[doc = "disk recovery point count."] #[serde(rename = "onPremiseRecoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub on_premise_recovery_point_count: Option, @@ -5523,7 +5523,7 @@ impl DailyRetentionFormat { pub struct DailyRetentionSchedule { #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -5537,7 +5537,7 @@ impl DailyRetentionSchedule { pub struct DailySchedule { #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, } impl DailySchedule { pub fn new() -> Self { @@ -5745,11 +5745,11 @@ pub struct DpmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -6036,8 +6036,8 @@ pub struct GenericRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -6071,8 +6071,8 @@ pub struct HourlySchedule { #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, #[doc = "To specify start time of the backup window"] - #[serde(rename = "scheduleWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub schedule_window_start_time: Option, + #[serde(rename = "scheduleWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub schedule_window_start_time: Option, #[doc = "To specify duration of the backup window"] #[serde(rename = "scheduleWindowDuration", default, skip_serializing_if = "Option::is_none")] pub schedule_window_duration: Option, @@ -6164,8 +6164,8 @@ pub struct IaasVmBackupRequest { #[serde(flatten)] pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl IaasVmBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -6213,8 +6213,8 @@ pub struct IaasVmRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -6539,11 +6539,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "ActivityId of job."] #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, @@ -6638,11 +6638,11 @@ pub struct JobQueryObject { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Job has started at this time. Value is in UTC."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Job has ended at this time. Value is in UTC."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobQueryObject { pub fn new() -> Self { @@ -7079,8 +7079,8 @@ impl MabContainer { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabContainerExtendedInfo { #[doc = "Time stamp when this container was refreshed."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Type of backup items associated with this container."] #[serde(rename = "backupItemType", default, skip_serializing_if = "Option::is_none")] pub backup_item_type: Option, @@ -7201,8 +7201,8 @@ pub struct MabFileFolderProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Protected, ProtectionStopped, IRPending or ProtectionError"] #[serde(rename = "protectionState", default, skip_serializing_if = "Option::is_none")] pub protection_state: Option, @@ -7231,11 +7231,11 @@ impl MabFileFolderProtectedItem { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabFileFolderProtectedItemExtendedInfo { #[doc = "Last time when the agent data synced to service."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "The oldest backup copy available."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies associated with the backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -7452,11 +7452,11 @@ pub struct MabJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -7504,7 +7504,7 @@ pub struct MonthlyRetentionSchedule { pub retention_schedule_weekly: Option, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -7708,11 +7708,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Operation start time. Format: ISO-8601."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time. Format: ISO-8601."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Error information associated with operation status call."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -7944,11 +7944,11 @@ pub mod operation_worker_response { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PointInTimeRange { #[doc = "Start time of the time range for log recovery."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the time range for log recovery."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl PointInTimeRange { pub fn new() -> Self { @@ -8593,8 +8593,8 @@ pub struct ProtectedItem { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "Timestamp when the last (latest) backup copy was created for this backup item."] - #[serde(rename = "lastRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point: Option, + #[serde(rename = "lastRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point: Option, #[doc = "Name of the backup set the backup item belongs to"] #[serde(rename = "backupSetName", default, skip_serializing_if = "Option::is_none")] pub backup_set_name: Option, @@ -8602,8 +8602,8 @@ pub struct ProtectedItem { #[serde(rename = "createMode", default, skip_serializing_if = "Option::is_none")] pub create_mode: Option, #[doc = "Time for deferred deletion in UTC"] - #[serde(rename = "deferredDeleteTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub deferred_delete_time_in_utc: Option, + #[serde(rename = "deferredDeleteTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub deferred_delete_time_in_utc: Option, #[doc = "Flag to identify whether the DS is scheduled for deferred delete"] #[serde(rename = "isScheduledForDeferredDelete", default, skip_serializing_if = "Option::is_none")] pub is_scheduled_for_deferred_delete: Option, @@ -10512,7 +10512,7 @@ pub struct SimpleSchedulePolicy { pub schedule_run_days: Vec, #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, #[serde(rename = "hourlySchedule", default, skip_serializing_if = "Option::is_none")] pub hourly_schedule: Option, #[doc = "At every number weeks this schedule has to be run."] @@ -11072,7 +11072,7 @@ pub struct WeeklyRetentionSchedule { pub days_of_the_week: Vec, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -11088,7 +11088,7 @@ pub struct WeeklySchedule { pub schedule_run_days: Vec, #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, } impl WeeklySchedule { pub fn new() -> Self { @@ -11350,7 +11350,7 @@ pub struct YearlyRetentionSchedule { pub retention_schedule_weekly: Option, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs index f6ed728a70c..b223771bc34 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs @@ -43,8 +43,8 @@ pub struct AzureFileShareBackupRequest { #[serde(flatten)] pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl AzureFileShareBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -253,8 +253,8 @@ pub struct AzureFileShareRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Contains Url to the snapshot of fileshare, if applicable"] #[serde(rename = "fileShareSnapshotUri", default, skip_serializing_if = "Option::is_none")] pub file_share_snapshot_uri: Option, @@ -456,8 +456,8 @@ pub struct AzureFileshareProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Health details of different KPIs"] #[serde(rename = "kpisHealths", default, skip_serializing_if = "Option::is_none")] pub kpis_healths: Option, @@ -532,8 +532,8 @@ pub mod azure_fileshare_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureFileshareProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -544,8 +544,8 @@ pub struct AzureFileshareProtectedItemExtendedInfo { #[serde(rename = "resourceState", default, skip_serializing_if = "Option::is_none")] pub resource_state: Option, #[doc = "The resource state sync time for this backup item."] - #[serde(rename = "resourceStateSyncTime", default, skip_serializing_if = "Option::is_none")] - pub resource_state_sync_time: Option, + #[serde(rename = "resourceStateSyncTime", with = "azure_core::date::rfc3339::option")] + pub resource_state_sync_time: Option, } impl AzureFileshareProtectedItemExtendedInfo { pub fn new() -> Self { @@ -729,11 +729,11 @@ pub struct AzureIaaSvmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The instanceId."] #[serde(rename = "instanceId", default, skip_serializing_if = "Option::is_none")] pub instance_id: Option, @@ -822,8 +822,8 @@ pub struct AzureIaaSvmProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Data ID of the protected item."] #[serde(rename = "protectedItemDataId", default, skip_serializing_if = "Option::is_none")] pub protected_item_data_id: Option, @@ -947,8 +947,8 @@ pub mod azure_iaa_svm_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureIaaSvmProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1165,8 +1165,8 @@ pub mod azure_sql_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureSqlProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1580,8 +1580,8 @@ pub struct AzureVmWorkloadProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Error Detail class which encapsulates Code, Message and Recommendations."] #[serde(rename = "lastBackupErrorDetail", default, skip_serializing_if = "Option::is_none")] pub last_backup_error_detail: Option, @@ -1757,8 +1757,8 @@ pub mod azure_vm_workload_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureVmWorkloadProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -2089,8 +2089,8 @@ pub struct AzureWorkloadBackupRequest { #[serde(rename = "enableCompression", default, skip_serializing_if = "Option::is_none")] pub enable_compression: Option, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl AzureWorkloadBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -2159,8 +2159,8 @@ pub struct AzureWorkloadContainer { #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, #[doc = "Time stamp when this container was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Extended information of the container."] #[serde(rename = "extendedInfo", default, skip_serializing_if = "Option::is_none")] pub extended_info: Option, @@ -2436,8 +2436,8 @@ pub struct AzureWorkloadPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_restore_request: AzureWorkloadRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadPointInTimeRestoreRequest { pub fn new(azure_workload_restore_request: AzureWorkloadRestoreRequest) -> Self { @@ -2453,8 +2453,8 @@ pub struct AzureWorkloadRecoveryPoint { #[serde(flatten)] pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] - #[serde(rename = "recoveryPointTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time_in_utc: Option, + #[serde(rename = "recoveryPointTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time_in_utc: Option, #[doc = "Type of restore point"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -2663,8 +2663,8 @@ pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { @@ -2830,8 +2830,8 @@ pub struct AzureWorkloadSqlPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSqlPointInTimeRestoreRequest { pub fn new(azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest) -> Self { @@ -2879,8 +2879,8 @@ impl AzureWorkloadSqlRecoveryPoint { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureWorkloadSqlRecoveryPointExtendedInfo { #[doc = "UTC time at which data directory info was captured"] - #[serde(rename = "dataDirectoryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub data_directory_time_in_utc: Option, + #[serde(rename = "dataDirectoryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub data_directory_time_in_utc: Option, #[doc = "List of data directory paths during restore operation."] #[serde(rename = "dataDirectoryPaths", default, skip_serializing_if = "Vec::is_empty")] pub data_directory_paths: Vec, @@ -3548,11 +3548,11 @@ pub mod bmspo_query_object { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BmsrpQueryObject { #[doc = "Backup copies created after this time."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Backup copies created before this time."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "RestorePoint type"] #[serde(rename = "restorePointQueryType", default, skip_serializing_if = "Option::is_none")] pub restore_point_query_type: Option, @@ -4144,8 +4144,8 @@ pub struct BackupEngineExtendedInfo { #[serde(rename = "availableDiskSpace", default, skip_serializing_if = "Option::is_none")] pub available_disk_space: Option, #[doc = "Last refresh time in the backup engine."] - #[serde(rename = "refreshedAt", default, skip_serializing_if = "Option::is_none")] - pub refreshed_at: Option, + #[serde(rename = "refreshedAt", with = "azure_core::date::rfc3339::option")] + pub refreshed_at: Option, #[doc = "Protected instances in the backup engine."] #[serde(rename = "azureProtectedInstances", default, skip_serializing_if = "Option::is_none")] pub azure_protected_instances: Option, @@ -4165,8 +4165,8 @@ pub struct BackupManagementUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -5369,8 +5369,8 @@ impl ContainerIdentityInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DpmContainerExtendedInfo { #[doc = "Last refresh time of the DPMContainer."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, } impl DpmContainerExtendedInfo { pub fn new() -> Self { @@ -5471,20 +5471,20 @@ pub struct DpmProtectedItemExtendedInfo { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Last refresh time on backup item."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Oldest cloud recovery point time."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "cloud recovery point count."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, #[doc = "Oldest disk recovery point time."] - #[serde(rename = "onPremiseOldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_oldest_recovery_point: Option, + #[serde(rename = "onPremiseOldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_oldest_recovery_point: Option, #[doc = "latest disk recovery point time."] - #[serde(rename = "onPremiseLatestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_latest_recovery_point: Option, + #[serde(rename = "onPremiseLatestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_latest_recovery_point: Option, #[doc = "disk recovery point count."] #[serde(rename = "onPremiseRecoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub on_premise_recovery_point_count: Option, @@ -5523,7 +5523,7 @@ impl DailyRetentionFormat { pub struct DailyRetentionSchedule { #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -5537,7 +5537,7 @@ impl DailyRetentionSchedule { pub struct DailySchedule { #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, } impl DailySchedule { pub fn new() -> Self { @@ -5745,11 +5745,11 @@ pub struct DpmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -6036,8 +6036,8 @@ pub struct GenericRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -6071,8 +6071,8 @@ pub struct HourlySchedule { #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, #[doc = "To specify start time of the backup window"] - #[serde(rename = "scheduleWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub schedule_window_start_time: Option, + #[serde(rename = "scheduleWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub schedule_window_start_time: Option, #[doc = "To specify duration of the backup window"] #[serde(rename = "scheduleWindowDuration", default, skip_serializing_if = "Option::is_none")] pub schedule_window_duration: Option, @@ -6164,8 +6164,8 @@ pub struct IaasVmBackupRequest { #[serde(flatten)] pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl IaasVmBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -6213,8 +6213,8 @@ pub struct IaasVmRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -6539,11 +6539,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "ActivityId of job."] #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, @@ -6638,11 +6638,11 @@ pub struct JobQueryObject { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Job has started at this time. Value is in UTC."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Job has ended at this time. Value is in UTC."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobQueryObject { pub fn new() -> Self { @@ -7079,8 +7079,8 @@ impl MabContainer { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabContainerExtendedInfo { #[doc = "Time stamp when this container was refreshed."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Type of backup items associated with this container."] #[serde(rename = "backupItemType", default, skip_serializing_if = "Option::is_none")] pub backup_item_type: Option, @@ -7201,8 +7201,8 @@ pub struct MabFileFolderProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Protected, ProtectionStopped, IRPending or ProtectionError"] #[serde(rename = "protectionState", default, skip_serializing_if = "Option::is_none")] pub protection_state: Option, @@ -7231,11 +7231,11 @@ impl MabFileFolderProtectedItem { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabFileFolderProtectedItemExtendedInfo { #[doc = "Last time when the agent data synced to service."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "The oldest backup copy available."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies associated with the backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -7452,11 +7452,11 @@ pub struct MabJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -7504,7 +7504,7 @@ pub struct MonthlyRetentionSchedule { pub retention_schedule_weekly: Option, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -7708,11 +7708,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Operation start time. Format: ISO-8601."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time. Format: ISO-8601."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Error information associated with operation status call."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -7944,11 +7944,11 @@ pub mod operation_worker_response { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PointInTimeRange { #[doc = "Start time of the time range for log recovery."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the time range for log recovery."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl PointInTimeRange { pub fn new() -> Self { @@ -8593,8 +8593,8 @@ pub struct ProtectedItem { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "Timestamp when the last (latest) backup copy was created for this backup item."] - #[serde(rename = "lastRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point: Option, + #[serde(rename = "lastRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point: Option, #[doc = "Name of the backup set the backup item belongs to"] #[serde(rename = "backupSetName", default, skip_serializing_if = "Option::is_none")] pub backup_set_name: Option, @@ -8602,8 +8602,8 @@ pub struct ProtectedItem { #[serde(rename = "createMode", default, skip_serializing_if = "Option::is_none")] pub create_mode: Option, #[doc = "Time for deferred deletion in UTC"] - #[serde(rename = "deferredDeleteTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub deferred_delete_time_in_utc: Option, + #[serde(rename = "deferredDeleteTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub deferred_delete_time_in_utc: Option, #[doc = "Flag to identify whether the DS is scheduled for deferred delete"] #[serde(rename = "isScheduledForDeferredDelete", default, skip_serializing_if = "Option::is_none")] pub is_scheduled_for_deferred_delete: Option, @@ -10512,7 +10512,7 @@ pub struct SimpleSchedulePolicy { pub schedule_run_days: Vec, #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, #[serde(rename = "hourlySchedule", default, skip_serializing_if = "Option::is_none")] pub hourly_schedule: Option, #[doc = "At every number weeks this schedule has to be run."] @@ -11072,7 +11072,7 @@ pub struct WeeklyRetentionSchedule { pub days_of_the_week: Vec, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -11088,7 +11088,7 @@ pub struct WeeklySchedule { pub schedule_run_days: Vec, #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, } impl WeeklySchedule { pub fn new() -> Self { @@ -11350,7 +11350,7 @@ pub struct YearlyRetentionSchedule { pub retention_schedule_weekly: Option, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_06_01_preview/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_06_01_preview/models.rs index 05f4f59a4fe..2b8dd8ee770 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_06_01_preview/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_06_01_preview/models.rs @@ -43,8 +43,8 @@ pub struct AzureFileShareBackupRequest { #[serde(flatten)] pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl AzureFileShareBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -256,8 +256,8 @@ pub struct AzureFileShareRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Contains Url to the snapshot of fileshare, if applicable"] #[serde(rename = "fileShareSnapshotUri", default, skip_serializing_if = "Option::is_none")] pub file_share_snapshot_uri: Option, @@ -459,8 +459,8 @@ pub struct AzureFileshareProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Health details of different KPIs"] #[serde(rename = "kpisHealths", default, skip_serializing_if = "Option::is_none")] pub kpis_healths: Option, @@ -535,8 +535,8 @@ pub mod azure_fileshare_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureFileshareProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -547,8 +547,8 @@ pub struct AzureFileshareProtectedItemExtendedInfo { #[serde(rename = "resourceState", default, skip_serializing_if = "Option::is_none")] pub resource_state: Option, #[doc = "The resource state sync time for this backup item."] - #[serde(rename = "resourceStateSyncTime", default, skip_serializing_if = "Option::is_none")] - pub resource_state_sync_time: Option, + #[serde(rename = "resourceStateSyncTime", with = "azure_core::date::rfc3339::option")] + pub resource_state_sync_time: Option, } impl AzureFileshareProtectedItemExtendedInfo { pub fn new() -> Self { @@ -732,11 +732,11 @@ pub struct AzureIaaSvmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The instanceId."] #[serde(rename = "instanceId", default, skip_serializing_if = "Option::is_none")] pub instance_id: Option, @@ -825,8 +825,8 @@ pub struct AzureIaaSvmProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Data ID of the protected item."] #[serde(rename = "protectedItemDataId", default, skip_serializing_if = "Option::is_none")] pub protected_item_data_id: Option, @@ -950,17 +950,17 @@ pub mod azure_iaa_svm_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureIaaSvmProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item across all tiers."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "The oldest backup copy available for this backup item in vault tier"] - #[serde(rename = "oldestRecoveryPointInVault", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point_in_vault: Option, + #[serde(rename = "oldestRecoveryPointInVault", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point_in_vault: Option, #[doc = "The oldest backup copy available for this backup item in archive tier"] - #[serde(rename = "oldestRecoveryPointInArchive", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point_in_archive: Option, + #[serde(rename = "oldestRecoveryPointInArchive", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point_in_archive: Option, #[doc = "The latest backup copy available for this backup item in archive tier"] - #[serde(rename = "newestRecoveryPointInArchive", default, skip_serializing_if = "Option::is_none")] - pub newest_recovery_point_in_archive: Option, + #[serde(rename = "newestRecoveryPointInArchive", with = "azure_core::date::rfc3339::option")] + pub newest_recovery_point_in_archive: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1181,8 +1181,8 @@ pub mod azure_sql_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureSqlProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1596,8 +1596,8 @@ pub struct AzureVmWorkloadProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Error Detail class which encapsulates Code, Message and Recommendations."] #[serde(rename = "lastBackupErrorDetail", default, skip_serializing_if = "Option::is_none")] pub last_backup_error_detail: Option, @@ -1773,17 +1773,17 @@ pub mod azure_vm_workload_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureVmWorkloadProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item across all tiers."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "The oldest backup copy available for this backup item in vault tier"] - #[serde(rename = "oldestRecoveryPointInVault", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point_in_vault: Option, + #[serde(rename = "oldestRecoveryPointInVault", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point_in_vault: Option, #[doc = "The oldest backup copy available for this backup item in archive tier"] - #[serde(rename = "oldestRecoveryPointInArchive", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point_in_archive: Option, + #[serde(rename = "oldestRecoveryPointInArchive", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point_in_archive: Option, #[doc = "The latest backup copy available for this backup item in archive tier"] - #[serde(rename = "newestRecoveryPointInArchive", default, skip_serializing_if = "Option::is_none")] - pub newest_recovery_point_in_archive: Option, + #[serde(rename = "newestRecoveryPointInArchive", with = "azure_core::date::rfc3339::option")] + pub newest_recovery_point_in_archive: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -2156,8 +2156,8 @@ pub struct AzureWorkloadBackupRequest { #[serde(rename = "enableCompression", default, skip_serializing_if = "Option::is_none")] pub enable_compression: Option, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl AzureWorkloadBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -2230,8 +2230,8 @@ pub struct AzureWorkloadContainer { #[serde(rename = "sourceResourceId", default, skip_serializing_if = "Option::is_none")] pub source_resource_id: Option, #[doc = "Time stamp when this container was updated."] - #[serde(rename = "lastUpdatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_time: Option, + #[serde(rename = "lastUpdatedTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_time: Option, #[doc = "Extended information of the container."] #[serde(rename = "extendedInfo", default, skip_serializing_if = "Option::is_none")] pub extended_info: Option, @@ -2510,8 +2510,8 @@ pub struct AzureWorkloadPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_restore_request: AzureWorkloadRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadPointInTimeRestoreRequest { pub fn new(azure_workload_restore_request: AzureWorkloadRestoreRequest) -> Self { @@ -2527,8 +2527,8 @@ pub struct AzureWorkloadRecoveryPoint { #[serde(flatten)] pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] - #[serde(rename = "recoveryPointTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time_in_utc: Option, + #[serde(rename = "recoveryPointTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time_in_utc: Option, #[doc = "Type of restore point"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -2741,8 +2741,8 @@ pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { @@ -2911,8 +2911,8 @@ pub struct AzureWorkloadSqlPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSqlPointInTimeRestoreRequest { pub fn new(azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest) -> Self { @@ -2960,8 +2960,8 @@ impl AzureWorkloadSqlRecoveryPoint { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureWorkloadSqlRecoveryPointExtendedInfo { #[doc = "UTC time at which data directory info was captured"] - #[serde(rename = "dataDirectoryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub data_directory_time_in_utc: Option, + #[serde(rename = "dataDirectoryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub data_directory_time_in_utc: Option, #[doc = "List of data directory paths during restore operation."] #[serde(rename = "dataDirectoryPaths", default, skip_serializing_if = "Vec::is_empty")] pub data_directory_paths: Vec, @@ -3638,11 +3638,11 @@ pub mod bmspo_query_object { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BmsrpQueryObject { #[doc = "Backup copies created after this time."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Backup copies created before this time."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "RestorePoint type"] #[serde(rename = "restorePointQueryType", default, skip_serializing_if = "Option::is_none")] pub restore_point_query_type: Option, @@ -4244,8 +4244,8 @@ pub struct BackupEngineExtendedInfo { #[serde(rename = "availableDiskSpace", default, skip_serializing_if = "Option::is_none")] pub available_disk_space: Option, #[doc = "Last refresh time in the backup engine."] - #[serde(rename = "refreshedAt", default, skip_serializing_if = "Option::is_none")] - pub refreshed_at: Option, + #[serde(rename = "refreshedAt", with = "azure_core::date::rfc3339::option")] + pub refreshed_at: Option, #[doc = "Protected instances in the backup engine."] #[serde(rename = "azureProtectedInstances", default, skip_serializing_if = "Option::is_none")] pub azure_protected_instances: Option, @@ -4265,8 +4265,8 @@ pub struct BackupManagementUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -5472,8 +5472,8 @@ impl ContainerIdentityInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DpmContainerExtendedInfo { #[doc = "Last refresh time of the DPMContainer."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, } impl DpmContainerExtendedInfo { pub fn new() -> Self { @@ -5574,20 +5574,20 @@ pub struct DpmProtectedItemExtendedInfo { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Last refresh time on backup item."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Oldest cloud recovery point time."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "cloud recovery point count."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, #[doc = "Oldest disk recovery point time."] - #[serde(rename = "onPremiseOldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_oldest_recovery_point: Option, + #[serde(rename = "onPremiseOldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_oldest_recovery_point: Option, #[doc = "latest disk recovery point time."] - #[serde(rename = "onPremiseLatestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_latest_recovery_point: Option, + #[serde(rename = "onPremiseLatestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_latest_recovery_point: Option, #[doc = "disk recovery point count."] #[serde(rename = "onPremiseRecoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub on_premise_recovery_point_count: Option, @@ -5626,7 +5626,7 @@ impl DailyRetentionFormat { pub struct DailyRetentionSchedule { #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -5640,7 +5640,7 @@ impl DailyRetentionSchedule { pub struct DailySchedule { #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, } impl DailySchedule { pub fn new() -> Self { @@ -5848,11 +5848,11 @@ pub struct DpmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -6139,8 +6139,8 @@ pub struct GenericRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -6174,8 +6174,8 @@ pub struct HourlySchedule { #[serde(default, skip_serializing_if = "Option::is_none")] pub interval: Option, #[doc = "To specify start time of the backup window"] - #[serde(rename = "scheduleWindowStartTime", default, skip_serializing_if = "Option::is_none")] - pub schedule_window_start_time: Option, + #[serde(rename = "scheduleWindowStartTime", with = "azure_core::date::rfc3339::option")] + pub schedule_window_start_time: Option, #[doc = "To specify duration of the backup window"] #[serde(rename = "scheduleWindowDuration", default, skip_serializing_if = "Option::is_none")] pub schedule_window_duration: Option, @@ -6267,8 +6267,8 @@ pub struct IaasVmBackupRequest { #[serde(flatten)] pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] - #[serde(rename = "recoveryPointExpiryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_expiry_time_in_utc: Option, + #[serde(rename = "recoveryPointExpiryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_expiry_time_in_utc: Option, } impl IaasVmBackupRequest { pub fn new(backup_request: BackupRequest) -> Self { @@ -6316,8 +6316,8 @@ pub struct IaasVmRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -6642,11 +6642,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "ActivityId of job."] #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, @@ -6741,11 +6741,11 @@ pub struct JobQueryObject { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Job has started at this time. Value is in UTC."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Job has ended at this time. Value is in UTC."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobQueryObject { pub fn new() -> Self { @@ -7182,8 +7182,8 @@ impl MabContainer { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabContainerExtendedInfo { #[doc = "Time stamp when this container was refreshed."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Type of backup items associated with this container."] #[serde(rename = "backupItemType", default, skip_serializing_if = "Option::is_none")] pub backup_item_type: Option, @@ -7307,8 +7307,8 @@ pub struct MabFileFolderProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Protected, ProtectionStopped, IRPending or ProtectionError"] #[serde(rename = "protectionState", default, skip_serializing_if = "Option::is_none")] pub protection_state: Option, @@ -7337,11 +7337,11 @@ impl MabFileFolderProtectedItem { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabFileFolderProtectedItemExtendedInfo { #[doc = "Last time when the agent data synced to service."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "The oldest backup copy available."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies associated with the backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -7561,11 +7561,11 @@ pub struct MabJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -7613,7 +7613,7 @@ pub struct MonthlyRetentionSchedule { pub retention_schedule_weekly: Option, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -7817,11 +7817,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Operation start time. Format: ISO-8601."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time. Format: ISO-8601."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Error information associated with operation status call."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -8053,11 +8053,11 @@ pub mod operation_worker_response { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PointInTimeRange { #[doc = "Start time of the time range for log recovery."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the time range for log recovery."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl PointInTimeRange { pub fn new() -> Self { @@ -8705,8 +8705,8 @@ pub struct ProtectedItem { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "Timestamp when the last (latest) backup copy was created for this backup item."] - #[serde(rename = "lastRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point: Option, + #[serde(rename = "lastRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point: Option, #[doc = "Name of the backup set the backup item belongs to"] #[serde(rename = "backupSetName", default, skip_serializing_if = "Option::is_none")] pub backup_set_name: Option, @@ -8714,8 +8714,8 @@ pub struct ProtectedItem { #[serde(rename = "createMode", default, skip_serializing_if = "Option::is_none")] pub create_mode: Option, #[doc = "Time for deferred deletion in UTC"] - #[serde(rename = "deferredDeleteTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub deferred_delete_time_in_utc: Option, + #[serde(rename = "deferredDeleteTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub deferred_delete_time_in_utc: Option, #[doc = "Flag to identify whether the DS is scheduled for deferred delete"] #[serde(rename = "isScheduledForDeferredDelete", default, skip_serializing_if = "Option::is_none")] pub is_scheduled_for_deferred_delete: Option, @@ -10633,7 +10633,7 @@ pub struct SimpleSchedulePolicy { pub schedule_run_days: Vec, #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, #[serde(rename = "hourlySchedule", default, skip_serializing_if = "Option::is_none")] pub hourly_schedule: Option, #[doc = "At every number weeks this schedule has to be run."] @@ -11305,7 +11305,7 @@ pub struct WeeklyRetentionSchedule { pub days_of_the_week: Vec, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, @@ -11321,7 +11321,7 @@ pub struct WeeklySchedule { pub schedule_run_days: Vec, #[doc = "List of times of day this schedule has to be run."] #[serde(rename = "scheduleRunTimes", default, skip_serializing_if = "Vec::is_empty")] - pub schedule_run_times: Vec, + pub schedule_run_times: Vec, } impl WeeklySchedule { pub fn new() -> Self { @@ -11583,7 +11583,7 @@ pub struct YearlyRetentionSchedule { pub retention_schedule_weekly: Option, #[doc = "Retention times of retention policy."] #[serde(rename = "retentionTimes", default, skip_serializing_if = "Vec::is_empty")] - pub retention_times: Vec, + pub retention_times: Vec, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, diff --git a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs index c67c1726fbb..53ede996d04 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs @@ -43,8 +43,8 @@ pub struct AzureFileShareRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Contains Url to the snapshot of fileshare, if applicable"] #[serde(rename = "fileShareSnapshotUri", default, skip_serializing_if = "Option::is_none")] pub file_share_snapshot_uri: Option, @@ -249,8 +249,8 @@ pub struct AzureFileshareProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Health details of different KPIs"] #[serde(rename = "kpisHealths", default, skip_serializing_if = "Option::is_none")] pub kpis_healths: Option, @@ -367,8 +367,8 @@ pub mod azure_fileshare_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureFileshareProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -379,8 +379,8 @@ pub struct AzureFileshareProtectedItemExtendedInfo { #[serde(rename = "resourceState", default, skip_serializing_if = "Option::is_none")] pub resource_state: Option, #[doc = "The resource state sync time for this backup item."] - #[serde(rename = "resourceStateSyncTime", default, skip_serializing_if = "Option::is_none")] - pub resource_state_sync_time: Option, + #[serde(rename = "resourceStateSyncTime", with = "azure_core::date::rfc3339::option")] + pub resource_state_sync_time: Option, } impl AzureFileshareProtectedItemExtendedInfo { pub fn new() -> Self { @@ -512,11 +512,11 @@ pub struct AzureIaaSvmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The instanceId."] #[serde(rename = "instanceId", default, skip_serializing_if = "Option::is_none")] pub instance_id: Option, @@ -568,8 +568,8 @@ pub struct AzureIaaSvmProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Data ID of the protected item."] #[serde(rename = "protectedItemDataId", default, skip_serializing_if = "Option::is_none")] pub protected_item_data_id: Option, @@ -693,8 +693,8 @@ pub mod azure_iaa_svm_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureIaaSvmProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -785,8 +785,8 @@ pub mod azure_sql_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureSqlProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -914,8 +914,8 @@ pub struct AzureVmWorkloadProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Error Detail class which encapsulates Code, Message and Recommendations."] #[serde(rename = "lastBackupErrorDetail", default, skip_serializing_if = "Option::is_none")] pub last_backup_error_detail: Option, @@ -1091,8 +1091,8 @@ pub mod azure_vm_workload_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureVmWorkloadProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1257,8 +1257,8 @@ pub struct AzureWorkloadPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_restore_request: AzureWorkloadRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadPointInTimeRestoreRequest { pub fn new(azure_workload_restore_request: AzureWorkloadRestoreRequest) -> Self { @@ -1274,8 +1274,8 @@ pub struct AzureWorkloadRecoveryPoint { #[serde(flatten)] pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] - #[serde(rename = "recoveryPointTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time_in_utc: Option, + #[serde(rename = "recoveryPointTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time_in_utc: Option, #[doc = "Type of restore point"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -1484,8 +1484,8 @@ pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { @@ -1544,8 +1544,8 @@ pub struct AzureWorkloadSqlPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSqlPointInTimeRestoreRequest { pub fn new(azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest) -> Self { @@ -1576,8 +1576,8 @@ impl AzureWorkloadSqlRecoveryPoint { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureWorkloadSqlRecoveryPointExtendedInfo { #[doc = "UTC time at which data directory info was captured"] - #[serde(rename = "dataDirectoryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub data_directory_time_in_utc: Option, + #[serde(rename = "dataDirectoryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub data_directory_time_in_utc: Option, #[doc = "List of data directory paths during restore operation."] #[serde(rename = "dataDirectoryPaths", default, skip_serializing_if = "Vec::is_empty")] pub data_directory_paths: Vec, @@ -1759,11 +1759,11 @@ pub mod bms_backup_summaries_query_object { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BmsrpQueryObject { #[doc = "Backup copies created after this time."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Backup copies created before this time."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "RestorePoint type"] #[serde(rename = "restorePointQueryType", default, skip_serializing_if = "Option::is_none")] pub restore_point_query_type: Option, @@ -1839,8 +1839,8 @@ pub struct BackupManagementUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -2384,20 +2384,20 @@ pub struct DpmProtectedItemExtendedInfo { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Last refresh time on backup item."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Oldest cloud recovery point time."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "cloud recovery point count."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, #[doc = "Oldest disk recovery point time."] - #[serde(rename = "onPremiseOldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_oldest_recovery_point: Option, + #[serde(rename = "onPremiseOldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_oldest_recovery_point: Option, #[doc = "latest disk recovery point time."] - #[serde(rename = "onPremiseLatestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_latest_recovery_point: Option, + #[serde(rename = "onPremiseLatestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_latest_recovery_point: Option, #[doc = "disk recovery point count."] #[serde(rename = "onPremiseRecoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub on_premise_recovery_point_count: Option, @@ -2531,11 +2531,11 @@ pub struct DpmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -2714,8 +2714,8 @@ pub struct GenericRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -2740,8 +2740,8 @@ pub struct IaasVmRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -3001,11 +3001,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "ActivityId of job."] #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, @@ -3100,11 +3100,11 @@ pub struct JobQueryObject { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Job has started at this time. Value is in UTC."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Job has ended at this time. Value is in UTC."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobQueryObject { pub fn new() -> Self { @@ -3433,8 +3433,8 @@ pub struct MabFileFolderProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Protected, ProtectionStopped, IRPending or ProtectionError"] #[serde(rename = "protectionState", default, skip_serializing_if = "Option::is_none")] pub protection_state: Option, @@ -3463,11 +3463,11 @@ impl MabFileFolderProtectedItem { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabFileFolderProtectedItemExtendedInfo { #[doc = "Last time when the agent data synced to service."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "The oldest backup copy available."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies associated with the backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -3684,11 +3684,11 @@ pub struct MabJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -3774,11 +3774,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Operation start time. Format: ISO-8601."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time. Format: ISO-8601."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Error information associated with operation status call."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -3944,11 +3944,11 @@ impl OperationStatusRecoveryPointExtendedInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PointInTimeRange { #[doc = "Start time of the time range for log recovery."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the time range for log recovery."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl PointInTimeRange { pub fn new() -> Self { @@ -3977,8 +3977,8 @@ pub struct ProtectedItem { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "Timestamp when the last (latest) backup copy was created for this backup item."] - #[serde(rename = "lastRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point: Option, + #[serde(rename = "lastRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point: Option, #[doc = "Name of the backup set the backup item belongs to"] #[serde(rename = "backupSetName", default, skip_serializing_if = "Option::is_none")] pub backup_set_name: Option, @@ -3986,8 +3986,8 @@ pub struct ProtectedItem { #[serde(rename = "createMode", default, skip_serializing_if = "Option::is_none")] pub create_mode: Option, #[doc = "Time for deferred deletion in UTC"] - #[serde(rename = "deferredDeleteTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub deferred_delete_time_in_utc: Option, + #[serde(rename = "deferredDeleteTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub deferred_delete_time_in_utc: Option, #[doc = "Flag to identify whether the DS is scheduled for deferred delete"] #[serde(rename = "isScheduledForDeferredDelete", default, skip_serializing_if = "Option::is_none")] pub is_scheduled_for_deferred_delete: Option, diff --git a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs index c67c1726fbb..53ede996d04 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs @@ -43,8 +43,8 @@ pub struct AzureFileShareRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Contains Url to the snapshot of fileshare, if applicable"] #[serde(rename = "fileShareSnapshotUri", default, skip_serializing_if = "Option::is_none")] pub file_share_snapshot_uri: Option, @@ -249,8 +249,8 @@ pub struct AzureFileshareProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Health details of different KPIs"] #[serde(rename = "kpisHealths", default, skip_serializing_if = "Option::is_none")] pub kpis_healths: Option, @@ -367,8 +367,8 @@ pub mod azure_fileshare_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureFileshareProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -379,8 +379,8 @@ pub struct AzureFileshareProtectedItemExtendedInfo { #[serde(rename = "resourceState", default, skip_serializing_if = "Option::is_none")] pub resource_state: Option, #[doc = "The resource state sync time for this backup item."] - #[serde(rename = "resourceStateSyncTime", default, skip_serializing_if = "Option::is_none")] - pub resource_state_sync_time: Option, + #[serde(rename = "resourceStateSyncTime", with = "azure_core::date::rfc3339::option")] + pub resource_state_sync_time: Option, } impl AzureFileshareProtectedItemExtendedInfo { pub fn new() -> Self { @@ -512,11 +512,11 @@ pub struct AzureIaaSvmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The instanceId."] #[serde(rename = "instanceId", default, skip_serializing_if = "Option::is_none")] pub instance_id: Option, @@ -568,8 +568,8 @@ pub struct AzureIaaSvmProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Data ID of the protected item."] #[serde(rename = "protectedItemDataId", default, skip_serializing_if = "Option::is_none")] pub protected_item_data_id: Option, @@ -693,8 +693,8 @@ pub mod azure_iaa_svm_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureIaaSvmProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -785,8 +785,8 @@ pub mod azure_sql_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureSqlProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this item in the service."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of available backup copies associated with this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -914,8 +914,8 @@ pub struct AzureVmWorkloadProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Error Detail class which encapsulates Code, Message and Recommendations."] #[serde(rename = "lastBackupErrorDetail", default, skip_serializing_if = "Option::is_none")] pub last_backup_error_detail: Option, @@ -1091,8 +1091,8 @@ pub mod azure_vm_workload_protected_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureVmWorkloadProtectedItemExtendedInfo { #[doc = "The oldest backup copy available for this backup item."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies available for this backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -1257,8 +1257,8 @@ pub struct AzureWorkloadPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_restore_request: AzureWorkloadRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadPointInTimeRestoreRequest { pub fn new(azure_workload_restore_request: AzureWorkloadRestoreRequest) -> Self { @@ -1274,8 +1274,8 @@ pub struct AzureWorkloadRecoveryPoint { #[serde(flatten)] pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] - #[serde(rename = "recoveryPointTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time_in_utc: Option, + #[serde(rename = "recoveryPointTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time_in_utc: Option, #[doc = "Type of restore point"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -1484,8 +1484,8 @@ pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { @@ -1544,8 +1544,8 @@ pub struct AzureWorkloadSqlPointInTimeRestoreRequest { #[serde(flatten)] pub azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest, #[doc = "PointInTime value"] - #[serde(rename = "pointInTime", default, skip_serializing_if = "Option::is_none")] - pub point_in_time: Option, + #[serde(rename = "pointInTime", with = "azure_core::date::rfc3339::option")] + pub point_in_time: Option, } impl AzureWorkloadSqlPointInTimeRestoreRequest { pub fn new(azure_workload_sql_restore_request: AzureWorkloadSqlRestoreRequest) -> Self { @@ -1576,8 +1576,8 @@ impl AzureWorkloadSqlRecoveryPoint { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureWorkloadSqlRecoveryPointExtendedInfo { #[doc = "UTC time at which data directory info was captured"] - #[serde(rename = "dataDirectoryTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub data_directory_time_in_utc: Option, + #[serde(rename = "dataDirectoryTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub data_directory_time_in_utc: Option, #[doc = "List of data directory paths during restore operation."] #[serde(rename = "dataDirectoryPaths", default, skip_serializing_if = "Vec::is_empty")] pub data_directory_paths: Vec, @@ -1759,11 +1759,11 @@ pub mod bms_backup_summaries_query_object { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BmsrpQueryObject { #[doc = "Backup copies created after this time."] - #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")] - pub start_date: Option, + #[serde(rename = "startDate", with = "azure_core::date::rfc3339::option")] + pub start_date: Option, #[doc = "Backup copies created before this time."] - #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")] - pub end_date: Option, + #[serde(rename = "endDate", with = "azure_core::date::rfc3339::option")] + pub end_date: Option, #[doc = "RestorePoint type"] #[serde(rename = "restorePointQueryType", default, skip_serializing_if = "Option::is_none")] pub restore_point_query_type: Option, @@ -1839,8 +1839,8 @@ pub struct BackupManagementUsage { #[serde(rename = "quotaPeriod", default, skip_serializing_if = "Option::is_none")] pub quota_period: Option, #[doc = "Next reset time of usage."] - #[serde(rename = "nextResetTime", default, skip_serializing_if = "Option::is_none")] - pub next_reset_time: Option, + #[serde(rename = "nextResetTime", with = "azure_core::date::rfc3339::option")] + pub next_reset_time: Option, #[doc = "Current value of usage."] #[serde(rename = "currentValue", default, skip_serializing_if = "Option::is_none")] pub current_value: Option, @@ -2384,20 +2384,20 @@ pub struct DpmProtectedItemExtendedInfo { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Last refresh time on backup item."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "Oldest cloud recovery point time."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "cloud recovery point count."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, #[doc = "Oldest disk recovery point time."] - #[serde(rename = "onPremiseOldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_oldest_recovery_point: Option, + #[serde(rename = "onPremiseOldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_oldest_recovery_point: Option, #[doc = "latest disk recovery point time."] - #[serde(rename = "onPremiseLatestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub on_premise_latest_recovery_point: Option, + #[serde(rename = "onPremiseLatestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub on_premise_latest_recovery_point: Option, #[doc = "disk recovery point count."] #[serde(rename = "onPremiseRecoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub on_premise_recovery_point_count: Option, @@ -2531,11 +2531,11 @@ pub struct DpmJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -2714,8 +2714,8 @@ pub struct GenericRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -2740,8 +2740,8 @@ pub struct IaasVmRecoveryPoint { #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, #[doc = "Time at which this backup copy was created."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "Additional information associated with this backup copy."] #[serde(rename = "recoveryPointAdditionalInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_additional_info: Option, @@ -3001,11 +3001,11 @@ pub struct Job { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "ActivityId of job."] #[serde(rename = "activityId", default, skip_serializing_if = "Option::is_none")] pub activity_id: Option, @@ -3100,11 +3100,11 @@ pub struct JobQueryObject { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Job has started at this time. Value is in UTC."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Job has ended at this time. Value is in UTC."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl JobQueryObject { pub fn new() -> Self { @@ -3433,8 +3433,8 @@ pub struct MabFileFolderProtectedItem { #[serde(rename = "lastBackupStatus", default, skip_serializing_if = "Option::is_none")] pub last_backup_status: Option, #[doc = "Timestamp of the last backup operation on this backup item."] - #[serde(rename = "lastBackupTime", default, skip_serializing_if = "Option::is_none")] - pub last_backup_time: Option, + #[serde(rename = "lastBackupTime", with = "azure_core::date::rfc3339::option")] + pub last_backup_time: Option, #[doc = "Protected, ProtectionStopped, IRPending or ProtectionError"] #[serde(rename = "protectionState", default, skip_serializing_if = "Option::is_none")] pub protection_state: Option, @@ -3463,11 +3463,11 @@ impl MabFileFolderProtectedItem { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MabFileFolderProtectedItemExtendedInfo { #[doc = "Last time when the agent data synced to service."] - #[serde(rename = "lastRefreshedAt", default, skip_serializing_if = "Option::is_none")] - pub last_refreshed_at: Option, + #[serde(rename = "lastRefreshedAt", with = "azure_core::date::rfc3339::option")] + pub last_refreshed_at: Option, #[doc = "The oldest backup copy available."] - #[serde(rename = "oldestRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub oldest_recovery_point: Option, + #[serde(rename = "oldestRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub oldest_recovery_point: Option, #[doc = "Number of backup copies associated with the backup item."] #[serde(rename = "recoveryPointCount", default, skip_serializing_if = "Option::is_none")] pub recovery_point_count: Option, @@ -3684,11 +3684,11 @@ pub struct MabJobTaskDetails { #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Time elapsed for task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -3774,11 +3774,11 @@ pub struct OperationStatus { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "Operation start time. Format: ISO-8601."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Operation end time. Format: ISO-8601."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Error information associated with operation status call."] #[serde(default, skip_serializing_if = "Option::is_none")] pub error: Option, @@ -3944,11 +3944,11 @@ impl OperationStatusRecoveryPointExtendedInfo { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PointInTimeRange { #[doc = "Start time of the time range for log recovery."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "End time of the time range for log recovery."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl PointInTimeRange { pub fn new() -> Self { @@ -3977,8 +3977,8 @@ pub struct ProtectedItem { #[serde(rename = "policyId", default, skip_serializing_if = "Option::is_none")] pub policy_id: Option, #[doc = "Timestamp when the last (latest) backup copy was created for this backup item."] - #[serde(rename = "lastRecoveryPoint", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point: Option, + #[serde(rename = "lastRecoveryPoint", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point: Option, #[doc = "Name of the backup set the backup item belongs to"] #[serde(rename = "backupSetName", default, skip_serializing_if = "Option::is_none")] pub backup_set_name: Option, @@ -3986,8 +3986,8 @@ pub struct ProtectedItem { #[serde(rename = "createMode", default, skip_serializing_if = "Option::is_none")] pub create_mode: Option, #[doc = "Time for deferred deletion in UTC"] - #[serde(rename = "deferredDeleteTimeInUTC", default, skip_serializing_if = "Option::is_none")] - pub deferred_delete_time_in_utc: Option, + #[serde(rename = "deferredDeleteTimeInUTC", with = "azure_core::date::rfc3339::option")] + pub deferred_delete_time_in_utc: Option, #[doc = "Flag to identify whether the DS is scheduled for deferred delete"] #[serde(rename = "isScheduledForDeferredDelete", default, skip_serializing_if = "Option::is_none")] pub is_scheduled_for_deferred_delete: Option, diff --git a/services/mgmt/recoveryservicessiterecovery/Cargo.toml b/services/mgmt/recoveryservicessiterecovery/Cargo.toml index ecf12fb3d56..c6de6c09776 100644 --- a/services/mgmt/recoveryservicessiterecovery/Cargo.toml +++ b/services/mgmt/recoveryservicessiterecovery/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs index dc955f35477..b93f0b95921 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs @@ -1306,20 +1306,20 @@ pub struct A2aReplicationDetails { #[serde(rename = "monitoringJobType", default, skip_serializing_if = "Option::is_none")] pub monitoring_job_type: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The agent version."] #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether replication agent update is required."] #[serde(rename = "isReplicationAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_replication_agent_update_required: Option, #[doc = "Agent certificate expiry date."] - #[serde(rename = "agentCertificateExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_certificate_expiry_date: Option, + #[serde(rename = "agentCertificateExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_certificate_expiry_date: Option, #[doc = "A value indicating whether agent certificate update is required."] #[serde( rename = "isReplicationAgentCertificateUpdateRequired", @@ -1346,8 +1346,8 @@ pub struct A2aReplicationDetails { #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The time (in UTC) when the last RPO value was calculated by Protection Service."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The primary availability zone."] #[serde(rename = "primaryAvailabilityZone", default, skip_serializing_if = "Option::is_none")] pub primary_availability_zone: Option, @@ -2254,11 +2254,11 @@ pub struct AsrTask { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The state/actions applicable on this task."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -3121,8 +3121,8 @@ pub struct CurrentJobDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentJobDetails { pub fn new() -> Self { @@ -3139,8 +3139,8 @@ pub struct CurrentScenarioDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Start time of the workflow."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentScenarioDetails { pub fn new() -> Self { @@ -3382,8 +3382,8 @@ pub struct DraDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the DRA."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -3539,8 +3539,8 @@ pub struct EncryptionDetails { #[serde(rename = "kekCertThumbprint", default, skip_serializing_if = "Option::is_none")] pub kek_cert_thumbprint: Option, #[doc = "The key encryption key certificate expiry date."] - #[serde(rename = "kekCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub kek_cert_expiry_date: Option, + #[serde(rename = "kekCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub kek_cert_expiry_date: Option, } impl EncryptionDetails { pub fn new() -> Self { @@ -3604,8 +3604,8 @@ pub struct EventProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "The time of occurrence of the event."] - #[serde(rename = "timeOfOccurrence", default, skip_serializing_if = "Option::is_none")] - pub time_of_occurrence: Option, + #[serde(rename = "timeOfOccurrence", with = "azure_core::date::rfc3339::option")] + pub time_of_occurrence: Option, #[doc = "The ARM ID of the fabric."] #[serde(rename = "fabricId", default, skip_serializing_if = "Option::is_none")] pub fabric_id: Option, @@ -3658,11 +3658,11 @@ pub struct EventQueryParameter { #[serde(rename = "affectedObjectCorrelationId", default, skip_serializing_if = "Option::is_none")] pub affected_object_correlation_id: Option, #[doc = "The start time of the time range within which the events are to be queried."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the time range within which the events are to be queried."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl EventQueryParameter { pub fn new() -> Self { @@ -4129,8 +4129,8 @@ pub struct FailoverReplicationProtectedItemDetails { #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl FailoverReplicationProtectedItemDetails { pub fn new() -> Self { @@ -4189,8 +4189,8 @@ pub struct HealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -4995,14 +4995,14 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "recoveryAzureLogStorageAccountId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_log_storage_account_id: Option, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "Last RPO value."] #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -5061,8 +5061,8 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "sqlServerLicenseType", default, skip_serializing_if = "Option::is_none")] pub sql_server_license_type: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The target VM tags."] #[serde(rename = "targetVmTags", default, skip_serializing_if = "Option::is_none")] pub target_vm_tags: Option, @@ -5401,8 +5401,8 @@ pub struct HyperVReplicaBaseReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5520,8 +5520,8 @@ pub struct HyperVReplicaBlueReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5675,8 +5675,8 @@ pub struct HyperVReplicaReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -6026,8 +6026,8 @@ pub struct InMageAgentDetails { #[serde(rename = "postUpdateRebootStatus", default, skip_serializing_if = "Option::is_none")] pub post_update_reboot_status: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, } impl InMageAgentDetails { pub fn new() -> Self { @@ -6577,8 +6577,8 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -6589,11 +6589,11 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -6668,8 +6668,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether installed agent needs to be updated."] #[serde(rename = "isAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_agent_update_required: Option, @@ -6677,8 +6677,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "isRebootAfterUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_reboot_after_update_required: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -6782,11 +6782,11 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -6797,8 +6797,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "protectedManagedDisks", default, skip_serializing_if = "Vec::is_empty")] pub protected_managed_disks: Vec, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The firmware type of this protected item."] #[serde(rename = "firmwareType", default, skip_serializing_if = "Option::is_none")] pub firmware_type: Option, @@ -7493,8 +7493,8 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -7505,11 +7505,11 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -7653,17 +7653,17 @@ pub struct InMageRcmDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8147,17 +8147,17 @@ pub struct InMageRcmFailbackDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmFailbackDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8213,14 +8213,14 @@ pub struct InMageRcmFailbackMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -8390,8 +8390,8 @@ pub struct InMageRcmFailbackProtectedDiskDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The last sync time."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, } impl InMageRcmFailbackProtectedDiskDetails { pub fn new() -> Self { @@ -8473,8 +8473,8 @@ pub struct InMageRcmFailbackReplicationDetails { #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, #[doc = "The last planned failover start time."] - #[serde(rename = "lastPlannedFailoverStartTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_start_time: Option, + #[serde(rename = "lastPlannedFailoverStartTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_start_time: Option, #[doc = "The last planned failover status."] #[serde(rename = "lastPlannedFailoverStatus", default, skip_serializing_if = "Option::is_none")] pub last_planned_failover_status: Option, @@ -8852,14 +8852,14 @@ pub struct InMageRcmMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -9341,14 +9341,14 @@ pub struct InMageRcmReplicationDetails { #[serde(rename = "failoverRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub failover_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point objective value."] #[serde(rename = "lastRpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub last_rpo_in_seconds: Option, #[doc = "The last recovery point objective calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -9975,11 +9975,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The retention window start time."] - #[serde(rename = "retentionWindowStart", default, skip_serializing_if = "Option::is_none")] - pub retention_window_start: Option, + #[serde(rename = "retentionWindowStart", with = "azure_core::date::rfc3339::option")] + pub retention_window_start: Option, #[doc = "The retention window end time."] - #[serde(rename = "retentionWindowEnd", default, skip_serializing_if = "Option::is_none")] - pub retention_window_end: Option, + #[serde(rename = "retentionWindowEnd", with = "azure_core::date::rfc3339::option")] + pub retention_window_end: Option, #[doc = "The compressed data change rate in MB."] #[serde(rename = "compressedDataRateInMB", default, skip_serializing_if = "Option::is_none")] pub compressed_data_rate_in_mb: Option, @@ -9996,8 +9996,8 @@ pub struct InMageReplicationDetails { #[serde(rename = "ipAddress", default, skip_serializing_if = "Option::is_none")] pub ip_address: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -10047,11 +10047,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -10391,8 +10391,8 @@ pub struct InnerHealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -10560,8 +10560,8 @@ pub struct JobErrorDetails { #[serde(rename = "errorLevel", default, skip_serializing_if = "Option::is_none")] pub error_level: Option, #[doc = "The creation time of job error."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Id of the task."] #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, @@ -10596,11 +10596,11 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The Allowed action the job."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -10861,8 +10861,8 @@ pub struct MarsAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the Mars agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the Mars agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -10938,8 +10938,8 @@ pub struct MasterTargetServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -10962,14 +10962,14 @@ pub struct MasterTargetServer { #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "MARS agent version."] #[serde(rename = "marsAgentVersion", default, skip_serializing_if = "Option::is_none")] pub mars_agent_version: Option, #[doc = "MARS agent expiry date."] - #[serde(rename = "marsAgentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub mars_agent_expiry_date: Option, + #[serde(rename = "marsAgentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub mars_agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11071,8 +11071,8 @@ pub struct MigrationItemProperties { #[serde(rename = "migrationStateDescription", default, skip_serializing_if = "Option::is_none")] pub migration_state_description: Option, #[doc = "The last test migration time."] - #[serde(rename = "lastTestMigrationTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_migration_time: Option, + #[serde(rename = "lastTestMigrationTime", with = "azure_core::date::rfc3339::option")] + pub last_test_migration_time: Option, #[doc = "The status of the last test migration."] #[serde(rename = "lastTestMigrationStatus", default, skip_serializing_if = "Option::is_none")] pub last_test_migration_status: Option, @@ -11319,8 +11319,8 @@ impl MigrationRecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MigrationRecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -11873,8 +11873,8 @@ pub struct ProcessServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -11924,8 +11924,8 @@ pub struct ProcessServer { #[serde(rename = "psServiceStatus", default, skip_serializing_if = "Option::is_none")] pub ps_service_status: Option, #[doc = "The PS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -11936,8 +11936,8 @@ pub struct ProcessServer { #[serde(rename = "healthErrors", default, skip_serializing_if = "Vec::is_empty")] pub health_errors: Vec, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11945,8 +11945,8 @@ pub struct ProcessServer { #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, #[doc = "The process server stats refresh time."] - #[serde(rename = "psStatsRefreshTime", default, skip_serializing_if = "Option::is_none")] - pub ps_stats_refresh_time: Option, + #[serde(rename = "psStatsRefreshTime", with = "azure_core::date::rfc3339::option")] + pub ps_stats_refresh_time: Option, #[doc = "The uploading pending data in bytes."] #[serde(rename = "throughputUploadPendingDataInBytes", default, skip_serializing_if = "Option::is_none")] pub throughput_upload_pending_data_in_bytes: Option, @@ -12040,8 +12040,8 @@ pub struct ProcessServerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the process server."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The total memory."] #[serde(rename = "totalMemoryInBytes", default, skip_serializing_if = "Option::is_none")] pub total_memory_in_bytes: Option, @@ -12787,8 +12787,8 @@ pub struct PushInstallerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the push installer."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the push installer."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -12870,8 +12870,8 @@ pub struct RcmProxyDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the RCM proxy."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the RCM proxy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -13893,14 +13893,14 @@ pub struct RecoveryPlanProperties { #[serde(rename = "allowedOperations", default, skip_serializing_if = "Vec::is_empty")] pub allowed_operations: Vec, #[doc = "The start time of the last planned failover."] - #[serde(rename = "lastPlannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_time: Option, + #[serde(rename = "lastPlannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_time: Option, #[doc = "The start time of the last unplanned failover."] - #[serde(rename = "lastUnplannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_unplanned_failover_time: Option, + #[serde(rename = "lastUnplannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_unplanned_failover_time: Option, #[doc = "The start time of the last test failover."] - #[serde(rename = "lastTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_failover_time: Option, + #[serde(rename = "lastTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -14306,8 +14306,8 @@ impl RecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type: ApplicationConsistent, CrashConsistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -14398,14 +14398,14 @@ pub struct RecoveryServicesProviderProperties { #[serde(rename = "providerVersionState", default, skip_serializing_if = "Option::is_none")] pub provider_version_state: Option, #[doc = "Expiry date of the version."] - #[serde(rename = "providerVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub provider_version_expiry_date: Option, + #[serde(rename = "providerVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub provider_version_expiry_date: Option, #[doc = "The fabric friendly name."] #[serde(rename = "fabricFriendlyName", default, skip_serializing_if = "Option::is_none")] pub fabric_friendly_name: Option, #[doc = "Time when last heartbeat was sent by the DRA."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "A value indicating whether DRA is responsive."] #[serde(rename = "connectionStatus", default, skip_serializing_if = "Option::is_none")] pub connection_status: Option, @@ -14570,8 +14570,8 @@ pub struct ReplicationAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the replication agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the replication agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -14851,11 +14851,11 @@ pub struct ReplicationProtectedItemProperties { #[serde(rename = "policyFriendlyName", default, skip_serializing_if = "Option::is_none")] pub policy_friendly_name: Option, #[doc = "The Last successful failover time."] - #[serde(rename = "lastSuccessfulFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_failover_time: Option, + #[serde(rename = "lastSuccessfulFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_failover_time: Option, #[doc = "The Last successful test failover time."] - #[serde(rename = "lastSuccessfulTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_test_failover_time: Option, + #[serde(rename = "lastSuccessfulTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -15033,8 +15033,8 @@ pub struct ReprotectAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the reprotect agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the reprotect agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -15051,8 +15051,8 @@ pub struct ReprotectAgentDetails { #[serde(rename = "vcenterId", default, skip_serializing_if = "Option::is_none")] pub vcenter_id: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_in_utc: Option, + #[serde(rename = "lastDiscoveryInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_in_utc: Option, } impl ReprotectAgentDetails { pub fn new() -> Self { @@ -16397,8 +16397,8 @@ pub struct VCenterProperties { #[serde(rename = "internalId", default, skip_serializing_if = "Option::is_none")] pub internal_id: Option, #[doc = "The time when the last heartbeat was received by vCenter."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The VCenter discovery status."] #[serde(rename = "discoveryStatus", default, skip_serializing_if = "Option::is_none")] pub discovery_status: Option, @@ -16975,8 +16975,8 @@ pub struct VMwareCbtMigrationDetails { #[serde(rename = "migrationRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub migration_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -17701,14 +17701,14 @@ pub struct VMwareDetails { #[serde(rename = "hostName", default, skip_serializing_if = "Option::is_none")] pub host_name: Option, #[doc = "The last heartbeat received from CS server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, #[doc = "CS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -17716,8 +17716,8 @@ pub struct VMwareDetails { #[serde(rename = "psTemplateVersion", default, skip_serializing_if = "Option::is_none")] pub ps_template_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -18002,8 +18002,8 @@ pub struct VersionDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Version expiry date."] - #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] - pub expiry_date: Option, + #[serde(rename = "expiryDate", with = "azure_core::date::rfc3339::option")] + pub expiry_date: Option, #[doc = "A value indicating whether security update required."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs index f624f3d17df..289fbb0b5b3 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs @@ -1306,20 +1306,20 @@ pub struct A2aReplicationDetails { #[serde(rename = "monitoringJobType", default, skip_serializing_if = "Option::is_none")] pub monitoring_job_type: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The agent version."] #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether replication agent update is required."] #[serde(rename = "isReplicationAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_replication_agent_update_required: Option, #[doc = "Agent certificate expiry date."] - #[serde(rename = "agentCertificateExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_certificate_expiry_date: Option, + #[serde(rename = "agentCertificateExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_certificate_expiry_date: Option, #[doc = "A value indicating whether agent certificate update is required."] #[serde( rename = "isReplicationAgentCertificateUpdateRequired", @@ -1346,8 +1346,8 @@ pub struct A2aReplicationDetails { #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The time (in UTC) when the last RPO value was calculated by Protection Service."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The primary availability zone."] #[serde(rename = "primaryAvailabilityZone", default, skip_serializing_if = "Option::is_none")] pub primary_availability_zone: Option, @@ -2254,11 +2254,11 @@ pub struct AsrTask { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The state/actions applicable on this task."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -3121,8 +3121,8 @@ pub struct CurrentJobDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentJobDetails { pub fn new() -> Self { @@ -3139,8 +3139,8 @@ pub struct CurrentScenarioDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Start time of the workflow."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentScenarioDetails { pub fn new() -> Self { @@ -3382,8 +3382,8 @@ pub struct DraDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the DRA."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -3539,8 +3539,8 @@ pub struct EncryptionDetails { #[serde(rename = "kekCertThumbprint", default, skip_serializing_if = "Option::is_none")] pub kek_cert_thumbprint: Option, #[doc = "The key encryption key certificate expiry date."] - #[serde(rename = "kekCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub kek_cert_expiry_date: Option, + #[serde(rename = "kekCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub kek_cert_expiry_date: Option, } impl EncryptionDetails { pub fn new() -> Self { @@ -3604,8 +3604,8 @@ pub struct EventProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "The time of occurrence of the event."] - #[serde(rename = "timeOfOccurrence", default, skip_serializing_if = "Option::is_none")] - pub time_of_occurrence: Option, + #[serde(rename = "timeOfOccurrence", with = "azure_core::date::rfc3339::option")] + pub time_of_occurrence: Option, #[doc = "The ARM ID of the fabric."] #[serde(rename = "fabricId", default, skip_serializing_if = "Option::is_none")] pub fabric_id: Option, @@ -3658,11 +3658,11 @@ pub struct EventQueryParameter { #[serde(rename = "affectedObjectCorrelationId", default, skip_serializing_if = "Option::is_none")] pub affected_object_correlation_id: Option, #[doc = "The start time of the time range within which the events are to be queried."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the time range within which the events are to be queried."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl EventQueryParameter { pub fn new() -> Self { @@ -4129,8 +4129,8 @@ pub struct FailoverReplicationProtectedItemDetails { #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl FailoverReplicationProtectedItemDetails { pub fn new() -> Self { @@ -4189,8 +4189,8 @@ pub struct HealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -4995,14 +4995,14 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "recoveryAzureLogStorageAccountId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_log_storage_account_id: Option, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "Last RPO value."] #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -5061,8 +5061,8 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "sqlServerLicenseType", default, skip_serializing_if = "Option::is_none")] pub sql_server_license_type: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The target VM tags."] #[serde(rename = "targetVmTags", default, skip_serializing_if = "Option::is_none")] pub target_vm_tags: Option, @@ -5401,8 +5401,8 @@ pub struct HyperVReplicaBaseReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5520,8 +5520,8 @@ pub struct HyperVReplicaBlueReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5675,8 +5675,8 @@ pub struct HyperVReplicaReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -6026,8 +6026,8 @@ pub struct InMageAgentDetails { #[serde(rename = "postUpdateRebootStatus", default, skip_serializing_if = "Option::is_none")] pub post_update_reboot_status: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, } impl InMageAgentDetails { pub fn new() -> Self { @@ -6577,8 +6577,8 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -6589,11 +6589,11 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -6668,8 +6668,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether installed agent needs to be updated."] #[serde(rename = "isAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_agent_update_required: Option, @@ -6677,8 +6677,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "isRebootAfterUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_reboot_after_update_required: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -6782,11 +6782,11 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -6797,8 +6797,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "protectedManagedDisks", default, skip_serializing_if = "Vec::is_empty")] pub protected_managed_disks: Vec, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The firmware type of this protected item."] #[serde(rename = "firmwareType", default, skip_serializing_if = "Option::is_none")] pub firmware_type: Option, @@ -7493,8 +7493,8 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -7505,11 +7505,11 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -7653,17 +7653,17 @@ pub struct InMageRcmDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8147,17 +8147,17 @@ pub struct InMageRcmFailbackDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmFailbackDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8213,14 +8213,14 @@ pub struct InMageRcmFailbackMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -8390,8 +8390,8 @@ pub struct InMageRcmFailbackProtectedDiskDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The last sync time."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, } impl InMageRcmFailbackProtectedDiskDetails { pub fn new() -> Self { @@ -8473,8 +8473,8 @@ pub struct InMageRcmFailbackReplicationDetails { #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, #[doc = "The last planned failover start time."] - #[serde(rename = "lastPlannedFailoverStartTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_start_time: Option, + #[serde(rename = "lastPlannedFailoverStartTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_start_time: Option, #[doc = "The last planned failover status."] #[serde(rename = "lastPlannedFailoverStatus", default, skip_serializing_if = "Option::is_none")] pub last_planned_failover_status: Option, @@ -8852,14 +8852,14 @@ pub struct InMageRcmMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -9341,14 +9341,14 @@ pub struct InMageRcmReplicationDetails { #[serde(rename = "failoverRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub failover_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point objective value."] #[serde(rename = "lastRpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub last_rpo_in_seconds: Option, #[doc = "The last recovery point objective calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -9975,11 +9975,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The retention window start time."] - #[serde(rename = "retentionWindowStart", default, skip_serializing_if = "Option::is_none")] - pub retention_window_start: Option, + #[serde(rename = "retentionWindowStart", with = "azure_core::date::rfc3339::option")] + pub retention_window_start: Option, #[doc = "The retention window end time."] - #[serde(rename = "retentionWindowEnd", default, skip_serializing_if = "Option::is_none")] - pub retention_window_end: Option, + #[serde(rename = "retentionWindowEnd", with = "azure_core::date::rfc3339::option")] + pub retention_window_end: Option, #[doc = "The compressed data change rate in MB."] #[serde(rename = "compressedDataRateInMB", default, skip_serializing_if = "Option::is_none")] pub compressed_data_rate_in_mb: Option, @@ -9996,8 +9996,8 @@ pub struct InMageReplicationDetails { #[serde(rename = "ipAddress", default, skip_serializing_if = "Option::is_none")] pub ip_address: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -10047,11 +10047,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -10391,8 +10391,8 @@ pub struct InnerHealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -10560,8 +10560,8 @@ pub struct JobErrorDetails { #[serde(rename = "errorLevel", default, skip_serializing_if = "Option::is_none")] pub error_level: Option, #[doc = "The creation time of job error."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Id of the task."] #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, @@ -10596,11 +10596,11 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The Allowed action the job."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -10861,8 +10861,8 @@ pub struct MarsAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the Mars agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the Mars agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -10938,8 +10938,8 @@ pub struct MasterTargetServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -10962,14 +10962,14 @@ pub struct MasterTargetServer { #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "MARS agent version."] #[serde(rename = "marsAgentVersion", default, skip_serializing_if = "Option::is_none")] pub mars_agent_version: Option, #[doc = "MARS agent expiry date."] - #[serde(rename = "marsAgentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub mars_agent_expiry_date: Option, + #[serde(rename = "marsAgentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub mars_agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11071,8 +11071,8 @@ pub struct MigrationItemProperties { #[serde(rename = "migrationStateDescription", default, skip_serializing_if = "Option::is_none")] pub migration_state_description: Option, #[doc = "The last test migration time."] - #[serde(rename = "lastTestMigrationTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_migration_time: Option, + #[serde(rename = "lastTestMigrationTime", with = "azure_core::date::rfc3339::option")] + pub last_test_migration_time: Option, #[doc = "The status of the last test migration."] #[serde(rename = "lastTestMigrationStatus", default, skip_serializing_if = "Option::is_none")] pub last_test_migration_status: Option, @@ -11319,8 +11319,8 @@ impl MigrationRecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MigrationRecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -11873,8 +11873,8 @@ pub struct ProcessServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -11924,8 +11924,8 @@ pub struct ProcessServer { #[serde(rename = "psServiceStatus", default, skip_serializing_if = "Option::is_none")] pub ps_service_status: Option, #[doc = "The PS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -11936,8 +11936,8 @@ pub struct ProcessServer { #[serde(rename = "healthErrors", default, skip_serializing_if = "Vec::is_empty")] pub health_errors: Vec, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11945,8 +11945,8 @@ pub struct ProcessServer { #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, #[doc = "The process server stats refresh time."] - #[serde(rename = "psStatsRefreshTime", default, skip_serializing_if = "Option::is_none")] - pub ps_stats_refresh_time: Option, + #[serde(rename = "psStatsRefreshTime", with = "azure_core::date::rfc3339::option")] + pub ps_stats_refresh_time: Option, #[doc = "The uploading pending data in bytes."] #[serde(rename = "throughputUploadPendingDataInBytes", default, skip_serializing_if = "Option::is_none")] pub throughput_upload_pending_data_in_bytes: Option, @@ -12040,8 +12040,8 @@ pub struct ProcessServerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the process server."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The total memory."] #[serde(rename = "totalMemoryInBytes", default, skip_serializing_if = "Option::is_none")] pub total_memory_in_bytes: Option, @@ -12787,8 +12787,8 @@ pub struct PushInstallerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the push installer."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the push installer."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -12870,8 +12870,8 @@ pub struct RcmProxyDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the RCM proxy."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the RCM proxy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -13893,14 +13893,14 @@ pub struct RecoveryPlanProperties { #[serde(rename = "allowedOperations", default, skip_serializing_if = "Vec::is_empty")] pub allowed_operations: Vec, #[doc = "The start time of the last planned failover."] - #[serde(rename = "lastPlannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_time: Option, + #[serde(rename = "lastPlannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_time: Option, #[doc = "The start time of the last unplanned failover."] - #[serde(rename = "lastUnplannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_unplanned_failover_time: Option, + #[serde(rename = "lastUnplannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_unplanned_failover_time: Option, #[doc = "The start time of the last test failover."] - #[serde(rename = "lastTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_failover_time: Option, + #[serde(rename = "lastTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -14306,8 +14306,8 @@ impl RecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type: ApplicationConsistent, CrashConsistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -14398,14 +14398,14 @@ pub struct RecoveryServicesProviderProperties { #[serde(rename = "providerVersionState", default, skip_serializing_if = "Option::is_none")] pub provider_version_state: Option, #[doc = "Expiry date of the version."] - #[serde(rename = "providerVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub provider_version_expiry_date: Option, + #[serde(rename = "providerVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub provider_version_expiry_date: Option, #[doc = "The fabric friendly name."] #[serde(rename = "fabricFriendlyName", default, skip_serializing_if = "Option::is_none")] pub fabric_friendly_name: Option, #[doc = "Time when last heartbeat was sent by the DRA."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "A value indicating whether DRA is responsive."] #[serde(rename = "connectionStatus", default, skip_serializing_if = "Option::is_none")] pub connection_status: Option, @@ -14570,8 +14570,8 @@ pub struct ReplicationAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the replication agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the replication agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -14851,11 +14851,11 @@ pub struct ReplicationProtectedItemProperties { #[serde(rename = "policyFriendlyName", default, skip_serializing_if = "Option::is_none")] pub policy_friendly_name: Option, #[doc = "The Last successful failover time."] - #[serde(rename = "lastSuccessfulFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_failover_time: Option, + #[serde(rename = "lastSuccessfulFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_failover_time: Option, #[doc = "The Last successful test failover time."] - #[serde(rename = "lastSuccessfulTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_test_failover_time: Option, + #[serde(rename = "lastSuccessfulTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -15033,8 +15033,8 @@ pub struct ReprotectAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the reprotect agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the reprotect agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -15051,8 +15051,8 @@ pub struct ReprotectAgentDetails { #[serde(rename = "vcenterId", default, skip_serializing_if = "Option::is_none")] pub vcenter_id: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_in_utc: Option, + #[serde(rename = "lastDiscoveryInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_in_utc: Option, } impl ReprotectAgentDetails { pub fn new() -> Self { @@ -16397,8 +16397,8 @@ pub struct VCenterProperties { #[serde(rename = "internalId", default, skip_serializing_if = "Option::is_none")] pub internal_id: Option, #[doc = "The time when the last heartbeat was received by vCenter."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The VCenter discovery status."] #[serde(rename = "discoveryStatus", default, skip_serializing_if = "Option::is_none")] pub discovery_status: Option, @@ -16971,8 +16971,8 @@ pub struct VMwareCbtMigrationDetails { #[serde(rename = "migrationRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub migration_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -17697,14 +17697,14 @@ pub struct VMwareDetails { #[serde(rename = "hostName", default, skip_serializing_if = "Option::is_none")] pub host_name: Option, #[doc = "The last heartbeat received from CS server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, #[doc = "CS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -17712,8 +17712,8 @@ pub struct VMwareDetails { #[serde(rename = "psTemplateVersion", default, skip_serializing_if = "Option::is_none")] pub ps_template_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -17998,8 +17998,8 @@ pub struct VersionDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Version expiry date."] - #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] - pub expiry_date: Option, + #[serde(rename = "expiryDate", with = "azure_core::date::rfc3339::option")] + pub expiry_date: Option, #[doc = "A value indicating whether security update required."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs index 531a41fa1d3..2b84da53b87 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs @@ -1306,20 +1306,20 @@ pub struct A2aReplicationDetails { #[serde(rename = "monitoringJobType", default, skip_serializing_if = "Option::is_none")] pub monitoring_job_type: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The agent version."] #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether replication agent update is required."] #[serde(rename = "isReplicationAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_replication_agent_update_required: Option, #[doc = "Agent certificate expiry date."] - #[serde(rename = "agentCertificateExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_certificate_expiry_date: Option, + #[serde(rename = "agentCertificateExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_certificate_expiry_date: Option, #[doc = "A value indicating whether agent certificate update is required."] #[serde( rename = "isReplicationAgentCertificateUpdateRequired", @@ -1346,8 +1346,8 @@ pub struct A2aReplicationDetails { #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The time (in UTC) when the last RPO value was calculated by Protection Service."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The primary availability zone."] #[serde(rename = "primaryAvailabilityZone", default, skip_serializing_if = "Option::is_none")] pub primary_availability_zone: Option, @@ -2254,11 +2254,11 @@ pub struct AsrTask { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The state/actions applicable on this task."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -3121,8 +3121,8 @@ pub struct CurrentJobDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentJobDetails { pub fn new() -> Self { @@ -3139,8 +3139,8 @@ pub struct CurrentScenarioDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Start time of the workflow."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentScenarioDetails { pub fn new() -> Self { @@ -3382,8 +3382,8 @@ pub struct DraDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the DRA."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -3539,8 +3539,8 @@ pub struct EncryptionDetails { #[serde(rename = "kekCertThumbprint", default, skip_serializing_if = "Option::is_none")] pub kek_cert_thumbprint: Option, #[doc = "The key encryption key certificate expiry date."] - #[serde(rename = "kekCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub kek_cert_expiry_date: Option, + #[serde(rename = "kekCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub kek_cert_expiry_date: Option, } impl EncryptionDetails { pub fn new() -> Self { @@ -3604,8 +3604,8 @@ pub struct EventProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "The time of occurrence of the event."] - #[serde(rename = "timeOfOccurrence", default, skip_serializing_if = "Option::is_none")] - pub time_of_occurrence: Option, + #[serde(rename = "timeOfOccurrence", with = "azure_core::date::rfc3339::option")] + pub time_of_occurrence: Option, #[doc = "The ARM ID of the fabric."] #[serde(rename = "fabricId", default, skip_serializing_if = "Option::is_none")] pub fabric_id: Option, @@ -3658,11 +3658,11 @@ pub struct EventQueryParameter { #[serde(rename = "affectedObjectCorrelationId", default, skip_serializing_if = "Option::is_none")] pub affected_object_correlation_id: Option, #[doc = "The start time of the time range within which the events are to be queried."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the time range within which the events are to be queried."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl EventQueryParameter { pub fn new() -> Self { @@ -4129,8 +4129,8 @@ pub struct FailoverReplicationProtectedItemDetails { #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl FailoverReplicationProtectedItemDetails { pub fn new() -> Self { @@ -4189,8 +4189,8 @@ pub struct HealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -4995,14 +4995,14 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "recoveryAzureLogStorageAccountId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_log_storage_account_id: Option, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "Last RPO value."] #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -5061,8 +5061,8 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "sqlServerLicenseType", default, skip_serializing_if = "Option::is_none")] pub sql_server_license_type: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The target VM tags."] #[serde(rename = "targetVmTags", default, skip_serializing_if = "Option::is_none")] pub target_vm_tags: Option, @@ -5401,8 +5401,8 @@ pub struct HyperVReplicaBaseReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5520,8 +5520,8 @@ pub struct HyperVReplicaBlueReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5675,8 +5675,8 @@ pub struct HyperVReplicaReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -6026,8 +6026,8 @@ pub struct InMageAgentDetails { #[serde(rename = "postUpdateRebootStatus", default, skip_serializing_if = "Option::is_none")] pub post_update_reboot_status: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, } impl InMageAgentDetails { pub fn new() -> Self { @@ -6577,8 +6577,8 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -6589,11 +6589,11 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -6668,8 +6668,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether installed agent needs to be updated."] #[serde(rename = "isAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_agent_update_required: Option, @@ -6677,8 +6677,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "isRebootAfterUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_reboot_after_update_required: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -6782,11 +6782,11 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -6797,8 +6797,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "protectedManagedDisks", default, skip_serializing_if = "Vec::is_empty")] pub protected_managed_disks: Vec, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The firmware type of this protected item."] #[serde(rename = "firmwareType", default, skip_serializing_if = "Option::is_none")] pub firmware_type: Option, @@ -7493,8 +7493,8 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -7505,11 +7505,11 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -7653,17 +7653,17 @@ pub struct InMageRcmDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8147,17 +8147,17 @@ pub struct InMageRcmFailbackDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmFailbackDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8213,14 +8213,14 @@ pub struct InMageRcmFailbackMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -8390,8 +8390,8 @@ pub struct InMageRcmFailbackProtectedDiskDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The last sync time."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, } impl InMageRcmFailbackProtectedDiskDetails { pub fn new() -> Self { @@ -8473,8 +8473,8 @@ pub struct InMageRcmFailbackReplicationDetails { #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, #[doc = "The last planned failover start time."] - #[serde(rename = "lastPlannedFailoverStartTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_start_time: Option, + #[serde(rename = "lastPlannedFailoverStartTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_start_time: Option, #[doc = "The last planned failover status."] #[serde(rename = "lastPlannedFailoverStatus", default, skip_serializing_if = "Option::is_none")] pub last_planned_failover_status: Option, @@ -8852,14 +8852,14 @@ pub struct InMageRcmMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -9341,14 +9341,14 @@ pub struct InMageRcmReplicationDetails { #[serde(rename = "failoverRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub failover_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point objective value."] #[serde(rename = "lastRpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub last_rpo_in_seconds: Option, #[doc = "The last recovery point objective calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -9975,11 +9975,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The retention window start time."] - #[serde(rename = "retentionWindowStart", default, skip_serializing_if = "Option::is_none")] - pub retention_window_start: Option, + #[serde(rename = "retentionWindowStart", with = "azure_core::date::rfc3339::option")] + pub retention_window_start: Option, #[doc = "The retention window end time."] - #[serde(rename = "retentionWindowEnd", default, skip_serializing_if = "Option::is_none")] - pub retention_window_end: Option, + #[serde(rename = "retentionWindowEnd", with = "azure_core::date::rfc3339::option")] + pub retention_window_end: Option, #[doc = "The compressed data change rate in MB."] #[serde(rename = "compressedDataRateInMB", default, skip_serializing_if = "Option::is_none")] pub compressed_data_rate_in_mb: Option, @@ -9996,8 +9996,8 @@ pub struct InMageReplicationDetails { #[serde(rename = "ipAddress", default, skip_serializing_if = "Option::is_none")] pub ip_address: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -10047,11 +10047,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -10391,8 +10391,8 @@ pub struct InnerHealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -10560,8 +10560,8 @@ pub struct JobErrorDetails { #[serde(rename = "errorLevel", default, skip_serializing_if = "Option::is_none")] pub error_level: Option, #[doc = "The creation time of job error."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Id of the task."] #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, @@ -10596,11 +10596,11 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The Allowed action the job."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -10861,8 +10861,8 @@ pub struct MarsAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the Mars agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the Mars agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -10938,8 +10938,8 @@ pub struct MasterTargetServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -10962,14 +10962,14 @@ pub struct MasterTargetServer { #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "MARS agent version."] #[serde(rename = "marsAgentVersion", default, skip_serializing_if = "Option::is_none")] pub mars_agent_version: Option, #[doc = "MARS agent expiry date."] - #[serde(rename = "marsAgentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub mars_agent_expiry_date: Option, + #[serde(rename = "marsAgentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub mars_agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11071,8 +11071,8 @@ pub struct MigrationItemProperties { #[serde(rename = "migrationStateDescription", default, skip_serializing_if = "Option::is_none")] pub migration_state_description: Option, #[doc = "The last test migration time."] - #[serde(rename = "lastTestMigrationTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_migration_time: Option, + #[serde(rename = "lastTestMigrationTime", with = "azure_core::date::rfc3339::option")] + pub last_test_migration_time: Option, #[doc = "The status of the last test migration."] #[serde(rename = "lastTestMigrationStatus", default, skip_serializing_if = "Option::is_none")] pub last_test_migration_status: Option, @@ -11319,8 +11319,8 @@ impl MigrationRecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MigrationRecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -11873,8 +11873,8 @@ pub struct ProcessServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -11924,8 +11924,8 @@ pub struct ProcessServer { #[serde(rename = "psServiceStatus", default, skip_serializing_if = "Option::is_none")] pub ps_service_status: Option, #[doc = "The PS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -11936,8 +11936,8 @@ pub struct ProcessServer { #[serde(rename = "healthErrors", default, skip_serializing_if = "Vec::is_empty")] pub health_errors: Vec, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11945,8 +11945,8 @@ pub struct ProcessServer { #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, #[doc = "The process server stats refresh time."] - #[serde(rename = "psStatsRefreshTime", default, skip_serializing_if = "Option::is_none")] - pub ps_stats_refresh_time: Option, + #[serde(rename = "psStatsRefreshTime", with = "azure_core::date::rfc3339::option")] + pub ps_stats_refresh_time: Option, #[doc = "The uploading pending data in bytes."] #[serde(rename = "throughputUploadPendingDataInBytes", default, skip_serializing_if = "Option::is_none")] pub throughput_upload_pending_data_in_bytes: Option, @@ -12040,8 +12040,8 @@ pub struct ProcessServerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the process server."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The total memory."] #[serde(rename = "totalMemoryInBytes", default, skip_serializing_if = "Option::is_none")] pub total_memory_in_bytes: Option, @@ -12787,8 +12787,8 @@ pub struct PushInstallerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the push installer."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the push installer."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -12870,8 +12870,8 @@ pub struct RcmProxyDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the RCM proxy."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the RCM proxy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -13893,14 +13893,14 @@ pub struct RecoveryPlanProperties { #[serde(rename = "allowedOperations", default, skip_serializing_if = "Vec::is_empty")] pub allowed_operations: Vec, #[doc = "The start time of the last planned failover."] - #[serde(rename = "lastPlannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_time: Option, + #[serde(rename = "lastPlannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_time: Option, #[doc = "The start time of the last unplanned failover."] - #[serde(rename = "lastUnplannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_unplanned_failover_time: Option, + #[serde(rename = "lastUnplannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_unplanned_failover_time: Option, #[doc = "The start time of the last test failover."] - #[serde(rename = "lastTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_failover_time: Option, + #[serde(rename = "lastTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -14306,8 +14306,8 @@ impl RecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type: ApplicationConsistent, CrashConsistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -14398,14 +14398,14 @@ pub struct RecoveryServicesProviderProperties { #[serde(rename = "providerVersionState", default, skip_serializing_if = "Option::is_none")] pub provider_version_state: Option, #[doc = "Expiry date of the version."] - #[serde(rename = "providerVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub provider_version_expiry_date: Option, + #[serde(rename = "providerVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub provider_version_expiry_date: Option, #[doc = "The fabric friendly name."] #[serde(rename = "fabricFriendlyName", default, skip_serializing_if = "Option::is_none")] pub fabric_friendly_name: Option, #[doc = "Time when last heartbeat was sent by the DRA."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "A value indicating whether DRA is responsive."] #[serde(rename = "connectionStatus", default, skip_serializing_if = "Option::is_none")] pub connection_status: Option, @@ -14570,8 +14570,8 @@ pub struct ReplicationAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the replication agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the replication agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -14851,11 +14851,11 @@ pub struct ReplicationProtectedItemProperties { #[serde(rename = "policyFriendlyName", default, skip_serializing_if = "Option::is_none")] pub policy_friendly_name: Option, #[doc = "The Last successful failover time."] - #[serde(rename = "lastSuccessfulFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_failover_time: Option, + #[serde(rename = "lastSuccessfulFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_failover_time: Option, #[doc = "The Last successful test failover time."] - #[serde(rename = "lastSuccessfulTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_test_failover_time: Option, + #[serde(rename = "lastSuccessfulTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -15033,8 +15033,8 @@ pub struct ReprotectAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the reprotect agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the reprotect agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -15051,8 +15051,8 @@ pub struct ReprotectAgentDetails { #[serde(rename = "vcenterId", default, skip_serializing_if = "Option::is_none")] pub vcenter_id: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_in_utc: Option, + #[serde(rename = "lastDiscoveryInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_in_utc: Option, } impl ReprotectAgentDetails { pub fn new() -> Self { @@ -16397,8 +16397,8 @@ pub struct VCenterProperties { #[serde(rename = "internalId", default, skip_serializing_if = "Option::is_none")] pub internal_id: Option, #[doc = "The time when the last heartbeat was received by vCenter."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The VCenter discovery status."] #[serde(rename = "discoveryStatus", default, skip_serializing_if = "Option::is_none")] pub discovery_status: Option, @@ -16979,8 +16979,8 @@ pub struct VMwareCbtMigrationDetails { #[serde(rename = "migrationRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub migration_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -17770,14 +17770,14 @@ pub struct VMwareDetails { #[serde(rename = "hostName", default, skip_serializing_if = "Option::is_none")] pub host_name: Option, #[doc = "The last heartbeat received from CS server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, #[doc = "CS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -17785,8 +17785,8 @@ pub struct VMwareDetails { #[serde(rename = "psTemplateVersion", default, skip_serializing_if = "Option::is_none")] pub ps_template_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -18071,8 +18071,8 @@ pub struct VersionDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Version expiry date."] - #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] - pub expiry_date: Option, + #[serde(rename = "expiryDate", with = "azure_core::date::rfc3339::option")] + pub expiry_date: Option, #[doc = "A value indicating whether security update required."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs index 4c5cb054435..a5dcc583557 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs @@ -1306,20 +1306,20 @@ pub struct A2aReplicationDetails { #[serde(rename = "monitoringJobType", default, skip_serializing_if = "Option::is_none")] pub monitoring_job_type: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The agent version."] #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether replication agent update is required."] #[serde(rename = "isReplicationAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_replication_agent_update_required: Option, #[doc = "Agent certificate expiry date."] - #[serde(rename = "agentCertificateExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_certificate_expiry_date: Option, + #[serde(rename = "agentCertificateExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_certificate_expiry_date: Option, #[doc = "A value indicating whether agent certificate update is required."] #[serde( rename = "isReplicationAgentCertificateUpdateRequired", @@ -1346,8 +1346,8 @@ pub struct A2aReplicationDetails { #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The time (in UTC) when the last RPO value was calculated by Protection Service."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The primary availability zone."] #[serde(rename = "primaryAvailabilityZone", default, skip_serializing_if = "Option::is_none")] pub primary_availability_zone: Option, @@ -2254,11 +2254,11 @@ pub struct AsrTask { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The state/actions applicable on this task."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -3121,8 +3121,8 @@ pub struct CurrentJobDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentJobDetails { pub fn new() -> Self { @@ -3139,8 +3139,8 @@ pub struct CurrentScenarioDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Start time of the workflow."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentScenarioDetails { pub fn new() -> Self { @@ -3382,8 +3382,8 @@ pub struct DraDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the DRA."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -3539,8 +3539,8 @@ pub struct EncryptionDetails { #[serde(rename = "kekCertThumbprint", default, skip_serializing_if = "Option::is_none")] pub kek_cert_thumbprint: Option, #[doc = "The key encryption key certificate expiry date."] - #[serde(rename = "kekCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub kek_cert_expiry_date: Option, + #[serde(rename = "kekCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub kek_cert_expiry_date: Option, } impl EncryptionDetails { pub fn new() -> Self { @@ -3604,8 +3604,8 @@ pub struct EventProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "The time of occurrence of the event."] - #[serde(rename = "timeOfOccurrence", default, skip_serializing_if = "Option::is_none")] - pub time_of_occurrence: Option, + #[serde(rename = "timeOfOccurrence", with = "azure_core::date::rfc3339::option")] + pub time_of_occurrence: Option, #[doc = "The ARM ID of the fabric."] #[serde(rename = "fabricId", default, skip_serializing_if = "Option::is_none")] pub fabric_id: Option, @@ -3658,11 +3658,11 @@ pub struct EventQueryParameter { #[serde(rename = "affectedObjectCorrelationId", default, skip_serializing_if = "Option::is_none")] pub affected_object_correlation_id: Option, #[doc = "The start time of the time range within which the events are to be queried."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the time range within which the events are to be queried."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl EventQueryParameter { pub fn new() -> Self { @@ -4129,8 +4129,8 @@ pub struct FailoverReplicationProtectedItemDetails { #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl FailoverReplicationProtectedItemDetails { pub fn new() -> Self { @@ -4189,8 +4189,8 @@ pub struct HealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -4995,14 +4995,14 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "recoveryAzureLogStorageAccountId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_log_storage_account_id: Option, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "Last RPO value."] #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -5061,8 +5061,8 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "sqlServerLicenseType", default, skip_serializing_if = "Option::is_none")] pub sql_server_license_type: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The target VM tags."] #[serde(rename = "targetVmTags", default, skip_serializing_if = "Option::is_none")] pub target_vm_tags: Option, @@ -5401,8 +5401,8 @@ pub struct HyperVReplicaBaseReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5520,8 +5520,8 @@ pub struct HyperVReplicaBlueReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5675,8 +5675,8 @@ pub struct HyperVReplicaReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -6026,8 +6026,8 @@ pub struct InMageAgentDetails { #[serde(rename = "postUpdateRebootStatus", default, skip_serializing_if = "Option::is_none")] pub post_update_reboot_status: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, } impl InMageAgentDetails { pub fn new() -> Self { @@ -6577,8 +6577,8 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -6589,11 +6589,11 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -6668,8 +6668,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether installed agent needs to be updated."] #[serde(rename = "isAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_agent_update_required: Option, @@ -6677,8 +6677,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "isRebootAfterUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_reboot_after_update_required: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -6782,11 +6782,11 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -6797,8 +6797,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "protectedManagedDisks", default, skip_serializing_if = "Vec::is_empty")] pub protected_managed_disks: Vec, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The firmware type of this protected item."] #[serde(rename = "firmwareType", default, skip_serializing_if = "Option::is_none")] pub firmware_type: Option, @@ -7493,8 +7493,8 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -7505,11 +7505,11 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -7653,17 +7653,17 @@ pub struct InMageRcmDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8147,17 +8147,17 @@ pub struct InMageRcmFailbackDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmFailbackDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8213,14 +8213,14 @@ pub struct InMageRcmFailbackMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -8390,8 +8390,8 @@ pub struct InMageRcmFailbackProtectedDiskDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The last sync time."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, } impl InMageRcmFailbackProtectedDiskDetails { pub fn new() -> Self { @@ -8473,8 +8473,8 @@ pub struct InMageRcmFailbackReplicationDetails { #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, #[doc = "The last planned failover start time."] - #[serde(rename = "lastPlannedFailoverStartTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_start_time: Option, + #[serde(rename = "lastPlannedFailoverStartTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_start_time: Option, #[doc = "The last planned failover status."] #[serde(rename = "lastPlannedFailoverStatus", default, skip_serializing_if = "Option::is_none")] pub last_planned_failover_status: Option, @@ -8852,14 +8852,14 @@ pub struct InMageRcmMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -9341,14 +9341,14 @@ pub struct InMageRcmReplicationDetails { #[serde(rename = "failoverRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub failover_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point objective value."] #[serde(rename = "lastRpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub last_rpo_in_seconds: Option, #[doc = "The last recovery point objective calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -9975,11 +9975,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The retention window start time."] - #[serde(rename = "retentionWindowStart", default, skip_serializing_if = "Option::is_none")] - pub retention_window_start: Option, + #[serde(rename = "retentionWindowStart", with = "azure_core::date::rfc3339::option")] + pub retention_window_start: Option, #[doc = "The retention window end time."] - #[serde(rename = "retentionWindowEnd", default, skip_serializing_if = "Option::is_none")] - pub retention_window_end: Option, + #[serde(rename = "retentionWindowEnd", with = "azure_core::date::rfc3339::option")] + pub retention_window_end: Option, #[doc = "The compressed data change rate in MB."] #[serde(rename = "compressedDataRateInMB", default, skip_serializing_if = "Option::is_none")] pub compressed_data_rate_in_mb: Option, @@ -9996,8 +9996,8 @@ pub struct InMageReplicationDetails { #[serde(rename = "ipAddress", default, skip_serializing_if = "Option::is_none")] pub ip_address: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -10047,11 +10047,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -10391,8 +10391,8 @@ pub struct InnerHealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -10560,8 +10560,8 @@ pub struct JobErrorDetails { #[serde(rename = "errorLevel", default, skip_serializing_if = "Option::is_none")] pub error_level: Option, #[doc = "The creation time of job error."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Id of the task."] #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, @@ -10596,11 +10596,11 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The Allowed action the job."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -10861,8 +10861,8 @@ pub struct MarsAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the Mars agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the Mars agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -10938,8 +10938,8 @@ pub struct MasterTargetServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -10962,14 +10962,14 @@ pub struct MasterTargetServer { #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "MARS agent version."] #[serde(rename = "marsAgentVersion", default, skip_serializing_if = "Option::is_none")] pub mars_agent_version: Option, #[doc = "MARS agent expiry date."] - #[serde(rename = "marsAgentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub mars_agent_expiry_date: Option, + #[serde(rename = "marsAgentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub mars_agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11071,8 +11071,8 @@ pub struct MigrationItemProperties { #[serde(rename = "migrationStateDescription", default, skip_serializing_if = "Option::is_none")] pub migration_state_description: Option, #[doc = "The last test migration time."] - #[serde(rename = "lastTestMigrationTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_migration_time: Option, + #[serde(rename = "lastTestMigrationTime", with = "azure_core::date::rfc3339::option")] + pub last_test_migration_time: Option, #[doc = "The status of the last test migration."] #[serde(rename = "lastTestMigrationStatus", default, skip_serializing_if = "Option::is_none")] pub last_test_migration_status: Option, @@ -11319,8 +11319,8 @@ impl MigrationRecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MigrationRecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -11873,8 +11873,8 @@ pub struct ProcessServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -11924,8 +11924,8 @@ pub struct ProcessServer { #[serde(rename = "psServiceStatus", default, skip_serializing_if = "Option::is_none")] pub ps_service_status: Option, #[doc = "The PS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -11936,8 +11936,8 @@ pub struct ProcessServer { #[serde(rename = "healthErrors", default, skip_serializing_if = "Vec::is_empty")] pub health_errors: Vec, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11945,8 +11945,8 @@ pub struct ProcessServer { #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, #[doc = "The process server stats refresh time."] - #[serde(rename = "psStatsRefreshTime", default, skip_serializing_if = "Option::is_none")] - pub ps_stats_refresh_time: Option, + #[serde(rename = "psStatsRefreshTime", with = "azure_core::date::rfc3339::option")] + pub ps_stats_refresh_time: Option, #[doc = "The uploading pending data in bytes."] #[serde(rename = "throughputUploadPendingDataInBytes", default, skip_serializing_if = "Option::is_none")] pub throughput_upload_pending_data_in_bytes: Option, @@ -12040,8 +12040,8 @@ pub struct ProcessServerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the process server."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The total memory."] #[serde(rename = "totalMemoryInBytes", default, skip_serializing_if = "Option::is_none")] pub total_memory_in_bytes: Option, @@ -12787,8 +12787,8 @@ pub struct PushInstallerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the push installer."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the push installer."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -12870,8 +12870,8 @@ pub struct RcmProxyDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the RCM proxy."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the RCM proxy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -13893,14 +13893,14 @@ pub struct RecoveryPlanProperties { #[serde(rename = "allowedOperations", default, skip_serializing_if = "Vec::is_empty")] pub allowed_operations: Vec, #[doc = "The start time of the last planned failover."] - #[serde(rename = "lastPlannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_time: Option, + #[serde(rename = "lastPlannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_time: Option, #[doc = "The start time of the last unplanned failover."] - #[serde(rename = "lastUnplannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_unplanned_failover_time: Option, + #[serde(rename = "lastUnplannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_unplanned_failover_time: Option, #[doc = "The start time of the last test failover."] - #[serde(rename = "lastTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_failover_time: Option, + #[serde(rename = "lastTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -14306,8 +14306,8 @@ impl RecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type: ApplicationConsistent, CrashConsistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -14398,14 +14398,14 @@ pub struct RecoveryServicesProviderProperties { #[serde(rename = "providerVersionState", default, skip_serializing_if = "Option::is_none")] pub provider_version_state: Option, #[doc = "Expiry date of the version."] - #[serde(rename = "providerVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub provider_version_expiry_date: Option, + #[serde(rename = "providerVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub provider_version_expiry_date: Option, #[doc = "The fabric friendly name."] #[serde(rename = "fabricFriendlyName", default, skip_serializing_if = "Option::is_none")] pub fabric_friendly_name: Option, #[doc = "Time when last heartbeat was sent by the DRA."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "A value indicating whether DRA is responsive."] #[serde(rename = "connectionStatus", default, skip_serializing_if = "Option::is_none")] pub connection_status: Option, @@ -14570,8 +14570,8 @@ pub struct ReplicationAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the replication agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the replication agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -14851,11 +14851,11 @@ pub struct ReplicationProtectedItemProperties { #[serde(rename = "policyFriendlyName", default, skip_serializing_if = "Option::is_none")] pub policy_friendly_name: Option, #[doc = "The Last successful failover time."] - #[serde(rename = "lastSuccessfulFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_failover_time: Option, + #[serde(rename = "lastSuccessfulFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_failover_time: Option, #[doc = "The Last successful test failover time."] - #[serde(rename = "lastSuccessfulTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_test_failover_time: Option, + #[serde(rename = "lastSuccessfulTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -15033,8 +15033,8 @@ pub struct ReprotectAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the reprotect agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the reprotect agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -15051,8 +15051,8 @@ pub struct ReprotectAgentDetails { #[serde(rename = "vcenterId", default, skip_serializing_if = "Option::is_none")] pub vcenter_id: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_in_utc: Option, + #[serde(rename = "lastDiscoveryInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_in_utc: Option, } impl ReprotectAgentDetails { pub fn new() -> Self { @@ -16397,8 +16397,8 @@ pub struct VCenterProperties { #[serde(rename = "internalId", default, skip_serializing_if = "Option::is_none")] pub internal_id: Option, #[doc = "The time when the last heartbeat was received by vCenter."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The VCenter discovery status."] #[serde(rename = "discoveryStatus", default, skip_serializing_if = "Option::is_none")] pub discovery_status: Option, @@ -16979,8 +16979,8 @@ pub struct VMwareCbtMigrationDetails { #[serde(rename = "migrationRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub migration_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -17774,14 +17774,14 @@ pub struct VMwareDetails { #[serde(rename = "hostName", default, skip_serializing_if = "Option::is_none")] pub host_name: Option, #[doc = "The last heartbeat received from CS server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, #[doc = "CS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -17789,8 +17789,8 @@ pub struct VMwareDetails { #[serde(rename = "psTemplateVersion", default, skip_serializing_if = "Option::is_none")] pub ps_template_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -18075,8 +18075,8 @@ pub struct VersionDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Version expiry date."] - #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] - pub expiry_date: Option, + #[serde(rename = "expiryDate", with = "azure_core::date::rfc3339::option")] + pub expiry_date: Option, #[doc = "A value indicating whether security update required."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs index 4c5cb054435..a5dcc583557 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs @@ -1306,20 +1306,20 @@ pub struct A2aReplicationDetails { #[serde(rename = "monitoringJobType", default, skip_serializing_if = "Option::is_none")] pub monitoring_job_type: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The agent version."] #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether replication agent update is required."] #[serde(rename = "isReplicationAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_replication_agent_update_required: Option, #[doc = "Agent certificate expiry date."] - #[serde(rename = "agentCertificateExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_certificate_expiry_date: Option, + #[serde(rename = "agentCertificateExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_certificate_expiry_date: Option, #[doc = "A value indicating whether agent certificate update is required."] #[serde( rename = "isReplicationAgentCertificateUpdateRequired", @@ -1346,8 +1346,8 @@ pub struct A2aReplicationDetails { #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The time (in UTC) when the last RPO value was calculated by Protection Service."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The primary availability zone."] #[serde(rename = "primaryAvailabilityZone", default, skip_serializing_if = "Option::is_none")] pub primary_availability_zone: Option, @@ -2254,11 +2254,11 @@ pub struct AsrTask { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The state/actions applicable on this task."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -3121,8 +3121,8 @@ pub struct CurrentJobDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "The start time of the job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentJobDetails { pub fn new() -> Self { @@ -3139,8 +3139,8 @@ pub struct CurrentScenarioDetails { #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, #[doc = "Start time of the workflow."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl CurrentScenarioDetails { pub fn new() -> Self { @@ -3382,8 +3382,8 @@ pub struct DraDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the DRA."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -3539,8 +3539,8 @@ pub struct EncryptionDetails { #[serde(rename = "kekCertThumbprint", default, skip_serializing_if = "Option::is_none")] pub kek_cert_thumbprint: Option, #[doc = "The key encryption key certificate expiry date."] - #[serde(rename = "kekCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub kek_cert_expiry_date: Option, + #[serde(rename = "kekCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub kek_cert_expiry_date: Option, } impl EncryptionDetails { pub fn new() -> Self { @@ -3604,8 +3604,8 @@ pub struct EventProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, #[doc = "The time of occurrence of the event."] - #[serde(rename = "timeOfOccurrence", default, skip_serializing_if = "Option::is_none")] - pub time_of_occurrence: Option, + #[serde(rename = "timeOfOccurrence", with = "azure_core::date::rfc3339::option")] + pub time_of_occurrence: Option, #[doc = "The ARM ID of the fabric."] #[serde(rename = "fabricId", default, skip_serializing_if = "Option::is_none")] pub fabric_id: Option, @@ -3658,11 +3658,11 @@ pub struct EventQueryParameter { #[serde(rename = "affectedObjectCorrelationId", default, skip_serializing_if = "Option::is_none")] pub affected_object_correlation_id: Option, #[doc = "The start time of the time range within which the events are to be queried."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the time range within which the events are to be queried."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl EventQueryParameter { pub fn new() -> Self { @@ -4129,8 +4129,8 @@ pub struct FailoverReplicationProtectedItemDetails { #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, } impl FailoverReplicationProtectedItemDetails { pub fn new() -> Self { @@ -4189,8 +4189,8 @@ pub struct HealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -4995,14 +4995,14 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "recoveryAzureLogStorageAccountId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_log_storage_account_id: Option, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "Last RPO value."] #[serde(rename = "rpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub rpo_in_seconds: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -5061,8 +5061,8 @@ pub struct HyperVReplicaAzureReplicationDetails { #[serde(rename = "sqlServerLicenseType", default, skip_serializing_if = "Option::is_none")] pub sql_server_license_type: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The target VM tags."] #[serde(rename = "targetVmTags", default, skip_serializing_if = "Option::is_none")] pub target_vm_tags: Option, @@ -5401,8 +5401,8 @@ pub struct HyperVReplicaBaseReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5520,8 +5520,8 @@ pub struct HyperVReplicaBlueReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -5675,8 +5675,8 @@ pub struct HyperVReplicaReplicationDetails { #[serde(flatten)] pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] - #[serde(rename = "lastReplicatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_replicated_time: Option, + #[serde(rename = "lastReplicatedTime", with = "azure_core::date::rfc3339::option")] + pub last_replicated_time: Option, #[doc = "The PE Network details."] #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, @@ -6026,8 +6026,8 @@ pub struct InMageAgentDetails { #[serde(rename = "postUpdateRebootStatus", default, skip_serializing_if = "Option::is_none")] pub post_update_reboot_status: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, } impl InMageAgentDetails { pub fn new() -> Self { @@ -6577,8 +6577,8 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -6589,11 +6589,11 @@ pub struct InMageAzureV2ProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -6668,8 +6668,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "A value indicating whether installed agent needs to be updated."] #[serde(rename = "isAgentUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_agent_update_required: Option, @@ -6677,8 +6677,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "isRebootAfterUpdateRequired", default, skip_serializing_if = "Option::is_none")] pub is_reboot_after_update_required: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -6782,11 +6782,11 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -6797,8 +6797,8 @@ pub struct InMageAzureV2ReplicationDetails { #[serde(rename = "protectedManagedDisks", default, skip_serializing_if = "Vec::is_empty")] pub protected_managed_disks: Vec, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The firmware type of this protected item."] #[serde(rename = "firmwareType", default, skip_serializing_if = "Option::is_none")] pub firmware_type: Option, @@ -7493,8 +7493,8 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "diskResized", default, skip_serializing_if = "Option::is_none")] pub disk_resized: Option, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The resync processed bytes."] #[serde(rename = "resyncProcessedBytes", default, skip_serializing_if = "Option::is_none")] pub resync_processed_bytes: Option, @@ -7505,11 +7505,11 @@ pub struct InMageProtectedDiskDetails { #[serde(rename = "resyncLast15MinutesTransferredBytes", default, skip_serializing_if = "Option::is_none")] pub resync_last15_minutes_transferred_bytes: Option, #[doc = "The last data transfer time in UTC."] - #[serde(rename = "resyncLastDataTransferTimeUTC", default, skip_serializing_if = "Option::is_none")] - pub resync_last_data_transfer_time_utc: Option, + #[serde(rename = "resyncLastDataTransferTimeUTC", with = "azure_core::date::rfc3339::option")] + pub resync_last_data_transfer_time_utc: Option, #[doc = "The resync start time."] - #[serde(rename = "resyncStartTime", default, skip_serializing_if = "Option::is_none")] - pub resync_start_time: Option, + #[serde(rename = "resyncStartTime", with = "azure_core::date::rfc3339::option")] + pub resync_start_time: Option, #[doc = "The Progress Health."] #[serde(rename = "progressHealth", default, skip_serializing_if = "Option::is_none")] pub progress_health: Option, @@ -7653,17 +7653,17 @@ pub struct InMageRcmDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8147,17 +8147,17 @@ pub struct InMageRcmFailbackDiscoveredProtectedVmDetails { #[serde(rename = "osName", default, skip_serializing_if = "Option::is_none")] pub os_name: Option, #[doc = "The SDS created timestamp."] - #[serde(rename = "createdTimestamp", default, skip_serializing_if = "Option::is_none")] - pub created_timestamp: Option, + #[serde(rename = "createdTimestamp", with = "azure_core::date::rfc3339::option")] + pub created_timestamp: Option, #[doc = "The SDS updated timestamp."] - #[serde(rename = "updatedTimestamp", default, skip_serializing_if = "Option::is_none")] - pub updated_timestamp: Option, + #[serde(rename = "updatedTimestamp", with = "azure_core::date::rfc3339::option")] + pub updated_timestamp: Option, #[doc = "A value indicating whether the VM is deleted."] #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")] pub is_deleted: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryTimeInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_time_in_utc: Option, + #[serde(rename = "lastDiscoveryTimeInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_time_in_utc: Option, } impl InMageRcmFailbackDiscoveredProtectedVmDetails { pub fn new() -> Self { @@ -8213,14 +8213,14 @@ pub struct InMageRcmFailbackMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -8390,8 +8390,8 @@ pub struct InMageRcmFailbackProtectedDiskDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The last sync time."] - #[serde(rename = "lastSyncTime", default, skip_serializing_if = "Option::is_none")] - pub last_sync_time: Option, + #[serde(rename = "lastSyncTime", with = "azure_core::date::rfc3339::option")] + pub last_sync_time: Option, } impl InMageRcmFailbackProtectedDiskDetails { pub fn new() -> Self { @@ -8473,8 +8473,8 @@ pub struct InMageRcmFailbackReplicationDetails { #[serde(rename = "vmNics", default, skip_serializing_if = "Vec::is_empty")] pub vm_nics: Vec, #[doc = "The last planned failover start time."] - #[serde(rename = "lastPlannedFailoverStartTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_start_time: Option, + #[serde(rename = "lastPlannedFailoverStartTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_start_time: Option, #[doc = "The last planned failover status."] #[serde(rename = "lastPlannedFailoverStatus", default, skip_serializing_if = "Option::is_none")] pub last_planned_failover_status: Option, @@ -8852,14 +8852,14 @@ pub struct InMageRcmMobilityAgentDetails { #[serde(rename = "latestUpgradableVersionWithoutReboot", default, skip_serializing_if = "Option::is_none")] pub latest_upgradable_version_without_reboot: Option, #[doc = "The agent version expiry date."] - #[serde(rename = "agentVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_version_expiry_date: Option, + #[serde(rename = "agentVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_version_expiry_date: Option, #[doc = "The driver version expiry date."] - #[serde(rename = "driverVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub driver_version_expiry_date: Option, + #[serde(rename = "driverVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub driver_version_expiry_date: Option, #[doc = "The time of the last heartbeat received from the agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The whether update is possible or not."] #[serde(rename = "reasonsBlockingUpgrade", default, skip_serializing_if = "Vec::is_empty")] pub reasons_blocking_upgrade: Vec, @@ -9341,14 +9341,14 @@ pub struct InMageRcmReplicationDetails { #[serde(rename = "failoverRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub failover_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point objective value."] #[serde(rename = "lastRpoInSeconds", default, skip_serializing_if = "Option::is_none")] pub last_rpo_in_seconds: Option, #[doc = "The last recovery point objective calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -9975,11 +9975,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "resyncDetails", default, skip_serializing_if = "Option::is_none")] pub resync_details: Option, #[doc = "The retention window start time."] - #[serde(rename = "retentionWindowStart", default, skip_serializing_if = "Option::is_none")] - pub retention_window_start: Option, + #[serde(rename = "retentionWindowStart", with = "azure_core::date::rfc3339::option")] + pub retention_window_start: Option, #[doc = "The retention window end time."] - #[serde(rename = "retentionWindowEnd", default, skip_serializing_if = "Option::is_none")] - pub retention_window_end: Option, + #[serde(rename = "retentionWindowEnd", with = "azure_core::date::rfc3339::option")] + pub retention_window_end: Option, #[doc = "The compressed data change rate in MB."] #[serde(rename = "compressedDataRateInMB", default, skip_serializing_if = "Option::is_none")] pub compressed_data_rate_in_mb: Option, @@ -9996,8 +9996,8 @@ pub struct InMageReplicationDetails { #[serde(rename = "ipAddress", default, skip_serializing_if = "Option::is_none")] pub ip_address: Option, #[doc = "The last heartbeat received from the source server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The process server Id."] #[serde(rename = "processServerId", default, skip_serializing_if = "Option::is_none")] pub process_server_id: Option, @@ -10047,11 +10047,11 @@ pub struct InMageReplicationDetails { #[serde(rename = "validationErrors", default, skip_serializing_if = "Vec::is_empty")] pub validation_errors: Vec, #[doc = "The last RPO calculated time."] - #[serde(rename = "lastRpoCalculatedTime", default, skip_serializing_if = "Option::is_none")] - pub last_rpo_calculated_time: Option, + #[serde(rename = "lastRpoCalculatedTime", with = "azure_core::date::rfc3339::option")] + pub last_rpo_calculated_time: Option, #[doc = "The last update time received from on-prem components."] - #[serde(rename = "lastUpdateReceivedTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_received_time: Option, + #[serde(rename = "lastUpdateReceivedTime", with = "azure_core::date::rfc3339::option")] + pub last_update_received_time: Option, #[doc = "The replica id of the protected item."] #[serde(rename = "replicaId", default, skip_serializing_if = "Option::is_none")] pub replica_id: Option, @@ -10391,8 +10391,8 @@ pub struct InnerHealthError { #[serde(rename = "recommendedAction", default, skip_serializing_if = "Option::is_none")] pub recommended_action: Option, #[doc = "Error creation time (UTC)."] - #[serde(rename = "creationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub creation_time_utc: Option, + #[serde(rename = "creationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub creation_time_utc: Option, #[doc = "DRA error message."] #[serde(rename = "recoveryProviderErrorMessage", default, skip_serializing_if = "Option::is_none")] pub recovery_provider_error_message: Option, @@ -10560,8 +10560,8 @@ pub struct JobErrorDetails { #[serde(rename = "errorLevel", default, skip_serializing_if = "Option::is_none")] pub error_level: Option, #[doc = "The creation time of job error."] - #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")] - pub creation_time: Option, + #[serde(rename = "creationTime", with = "azure_core::date::rfc3339::option")] + pub creation_time: Option, #[doc = "The Id of the task."] #[serde(rename = "taskId", default, skip_serializing_if = "Option::is_none")] pub task_id: Option, @@ -10596,11 +10596,11 @@ pub struct JobProperties { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub errors: Vec, #[doc = "The start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The Allowed action the job."] #[serde(rename = "allowedActions", default, skip_serializing_if = "Vec::is_empty")] pub allowed_actions: Vec, @@ -10861,8 +10861,8 @@ pub struct MarsAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the Mars agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the Mars agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -10938,8 +10938,8 @@ pub struct MasterTargetServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -10962,14 +10962,14 @@ pub struct MasterTargetServer { #[serde(rename = "osVersion", default, skip_serializing_if = "Option::is_none")] pub os_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "MARS agent version."] #[serde(rename = "marsAgentVersion", default, skip_serializing_if = "Option::is_none")] pub mars_agent_version: Option, #[doc = "MARS agent expiry date."] - #[serde(rename = "marsAgentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub mars_agent_expiry_date: Option, + #[serde(rename = "marsAgentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub mars_agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11071,8 +11071,8 @@ pub struct MigrationItemProperties { #[serde(rename = "migrationStateDescription", default, skip_serializing_if = "Option::is_none")] pub migration_state_description: Option, #[doc = "The last test migration time."] - #[serde(rename = "lastTestMigrationTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_migration_time: Option, + #[serde(rename = "lastTestMigrationTime", with = "azure_core::date::rfc3339::option")] + pub last_test_migration_time: Option, #[doc = "The status of the last test migration."] #[serde(rename = "lastTestMigrationStatus", default, skip_serializing_if = "Option::is_none")] pub last_test_migration_status: Option, @@ -11319,8 +11319,8 @@ impl MigrationRecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MigrationRecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -11873,8 +11873,8 @@ pub struct ProcessServer { #[serde(rename = "agentVersion", default, skip_serializing_if = "Option::is_none")] pub agent_version: Option, #[doc = "The last heartbeat received from the server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, @@ -11924,8 +11924,8 @@ pub struct ProcessServer { #[serde(rename = "psServiceStatus", default, skip_serializing_if = "Option::is_none")] pub ps_service_status: Option, #[doc = "The PS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -11936,8 +11936,8 @@ pub struct ProcessServer { #[serde(rename = "healthErrors", default, skip_serializing_if = "Vec::is_empty")] pub health_errors: Vec, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -11945,8 +11945,8 @@ pub struct ProcessServer { #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, #[doc = "The process server stats refresh time."] - #[serde(rename = "psStatsRefreshTime", default, skip_serializing_if = "Option::is_none")] - pub ps_stats_refresh_time: Option, + #[serde(rename = "psStatsRefreshTime", with = "azure_core::date::rfc3339::option")] + pub ps_stats_refresh_time: Option, #[doc = "The uploading pending data in bytes."] #[serde(rename = "throughputUploadPendingDataInBytes", default, skip_serializing_if = "Option::is_none")] pub throughput_upload_pending_data_in_bytes: Option, @@ -12040,8 +12040,8 @@ pub struct ProcessServerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the process server."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The total memory."] #[serde(rename = "totalMemoryInBytes", default, skip_serializing_if = "Option::is_none")] pub total_memory_in_bytes: Option, @@ -12787,8 +12787,8 @@ pub struct PushInstallerDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the push installer."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the push installer."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -12870,8 +12870,8 @@ pub struct RcmProxyDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the RCM proxy."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the RCM proxy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -13893,14 +13893,14 @@ pub struct RecoveryPlanProperties { #[serde(rename = "allowedOperations", default, skip_serializing_if = "Vec::is_empty")] pub allowed_operations: Vec, #[doc = "The start time of the last planned failover."] - #[serde(rename = "lastPlannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_planned_failover_time: Option, + #[serde(rename = "lastPlannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_planned_failover_time: Option, #[doc = "The start time of the last unplanned failover."] - #[serde(rename = "lastUnplannedFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_unplanned_failover_time: Option, + #[serde(rename = "lastUnplannedFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_unplanned_failover_time: Option, #[doc = "The start time of the last test failover."] - #[serde(rename = "lastTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_test_failover_time: Option, + #[serde(rename = "lastTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -14306,8 +14306,8 @@ impl RecoveryPointCollection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoveryPointProperties { #[doc = "The recovery point time."] - #[serde(rename = "recoveryPointTime", default, skip_serializing_if = "Option::is_none")] - pub recovery_point_time: Option, + #[serde(rename = "recoveryPointTime", with = "azure_core::date::rfc3339::option")] + pub recovery_point_time: Option, #[doc = "The recovery point type: ApplicationConsistent, CrashConsistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -14398,14 +14398,14 @@ pub struct RecoveryServicesProviderProperties { #[serde(rename = "providerVersionState", default, skip_serializing_if = "Option::is_none")] pub provider_version_state: Option, #[doc = "Expiry date of the version."] - #[serde(rename = "providerVersionExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub provider_version_expiry_date: Option, + #[serde(rename = "providerVersionExpiryDate", with = "azure_core::date::rfc3339::option")] + pub provider_version_expiry_date: Option, #[doc = "The fabric friendly name."] #[serde(rename = "fabricFriendlyName", default, skip_serializing_if = "Option::is_none")] pub fabric_friendly_name: Option, #[doc = "Time when last heartbeat was sent by the DRA."] - #[serde(rename = "lastHeartBeat", default, skip_serializing_if = "Option::is_none")] - pub last_heart_beat: Option, + #[serde(rename = "lastHeartBeat", with = "azure_core::date::rfc3339::option")] + pub last_heart_beat: Option, #[doc = "A value indicating whether DRA is responsive."] #[serde(rename = "connectionStatus", default, skip_serializing_if = "Option::is_none")] pub connection_status: Option, @@ -14570,8 +14570,8 @@ pub struct ReplicationAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the replication agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the replication agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -14851,11 +14851,11 @@ pub struct ReplicationProtectedItemProperties { #[serde(rename = "policyFriendlyName", default, skip_serializing_if = "Option::is_none")] pub policy_friendly_name: Option, #[doc = "The Last successful failover time."] - #[serde(rename = "lastSuccessfulFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_failover_time: Option, + #[serde(rename = "lastSuccessfulFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_failover_time: Option, #[doc = "The Last successful test failover time."] - #[serde(rename = "lastSuccessfulTestFailoverTime", default, skip_serializing_if = "Option::is_none")] - pub last_successful_test_failover_time: Option, + #[serde(rename = "lastSuccessfulTestFailoverTime", with = "azure_core::date::rfc3339::option")] + pub last_successful_test_failover_time: Option, #[doc = "Current scenario details of the protected entity."] #[serde(rename = "currentScenario", default, skip_serializing_if = "Option::is_none")] pub current_scenario: Option, @@ -15033,8 +15033,8 @@ pub struct ReprotectAgentDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "The last heartbeat received from the reprotect agent."] - #[serde(rename = "lastHeartbeatUtc", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat_utc: Option, + #[serde(rename = "lastHeartbeatUtc", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat_utc: Option, #[doc = "The health of the reprotect agent."] #[serde(default, skip_serializing_if = "Option::is_none")] pub health: Option, @@ -15051,8 +15051,8 @@ pub struct ReprotectAgentDetails { #[serde(rename = "vcenterId", default, skip_serializing_if = "Option::is_none")] pub vcenter_id: Option, #[doc = "The last time when SDS information discovered in SRS."] - #[serde(rename = "lastDiscoveryInUtc", default, skip_serializing_if = "Option::is_none")] - pub last_discovery_in_utc: Option, + #[serde(rename = "lastDiscoveryInUtc", with = "azure_core::date::rfc3339::option")] + pub last_discovery_in_utc: Option, } impl ReprotectAgentDetails { pub fn new() -> Self { @@ -16397,8 +16397,8 @@ pub struct VCenterProperties { #[serde(rename = "internalId", default, skip_serializing_if = "Option::is_none")] pub internal_id: Option, #[doc = "The time when the last heartbeat was received by vCenter."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "The VCenter discovery status."] #[serde(rename = "discoveryStatus", default, skip_serializing_if = "Option::is_none")] pub discovery_status: Option, @@ -16979,8 +16979,8 @@ pub struct VMwareCbtMigrationDetails { #[serde(rename = "migrationRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub migration_recovery_point_id: Option, #[doc = "The last recovery point received time."] - #[serde(rename = "lastRecoveryPointReceived", default, skip_serializing_if = "Option::is_none")] - pub last_recovery_point_received: Option, + #[serde(rename = "lastRecoveryPointReceived", with = "azure_core::date::rfc3339::option")] + pub last_recovery_point_received: Option, #[doc = "The last recovery point Id."] #[serde(rename = "lastRecoveryPointId", default, skip_serializing_if = "Option::is_none")] pub last_recovery_point_id: Option, @@ -17774,14 +17774,14 @@ pub struct VMwareDetails { #[serde(rename = "hostName", default, skip_serializing_if = "Option::is_none")] pub host_name: Option, #[doc = "The last heartbeat received from CS server."] - #[serde(rename = "lastHeartbeat", default, skip_serializing_if = "Option::is_none")] - pub last_heartbeat: Option, + #[serde(rename = "lastHeartbeat", with = "azure_core::date::rfc3339::option")] + pub last_heartbeat: Option, #[doc = "Version status."] #[serde(rename = "versionStatus", default, skip_serializing_if = "Option::is_none")] pub version_status: Option, #[doc = "CS SSL cert expiry date."] - #[serde(rename = "sslCertExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub ssl_cert_expiry_date: Option, + #[serde(rename = "sslCertExpiryDate", with = "azure_core::date::rfc3339::option")] + pub ssl_cert_expiry_date: Option, #[doc = "CS SSL cert expiry date."] #[serde(rename = "sslCertExpiryRemainingDays", default, skip_serializing_if = "Option::is_none")] pub ssl_cert_expiry_remaining_days: Option, @@ -17789,8 +17789,8 @@ pub struct VMwareDetails { #[serde(rename = "psTemplateVersion", default, skip_serializing_if = "Option::is_none")] pub ps_template_version: Option, #[doc = "Agent expiry date."] - #[serde(rename = "agentExpiryDate", default, skip_serializing_if = "Option::is_none")] - pub agent_expiry_date: Option, + #[serde(rename = "agentExpiryDate", with = "azure_core::date::rfc3339::option")] + pub agent_expiry_date: Option, #[doc = "Version related details."] #[serde(rename = "agentVersionDetails", default, skip_serializing_if = "Option::is_none")] pub agent_version_details: Option, @@ -18075,8 +18075,8 @@ pub struct VersionDetails { #[serde(default, skip_serializing_if = "Option::is_none")] pub version: Option, #[doc = "Version expiry date."] - #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] - pub expiry_date: Option, + #[serde(rename = "expiryDate", with = "azure_core::date::rfc3339::option")] + pub expiry_date: Option, #[doc = "A value indicating whether security update required."] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/services/mgmt/redhatopenshift/Cargo.toml b/services/mgmt/redhatopenshift/Cargo.toml index b22faca7219..9f0c9782960 100644 --- a/services/mgmt/redhatopenshift/Cargo.toml +++ b/services/mgmt/redhatopenshift/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs b/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs index 8132b803dfe..9427d786e77 100644 --- a/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs @@ -660,8 +660,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -669,8 +669,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs b/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs index 8d11dda3e36..6f8a7a35768 100644 --- a/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs +++ b/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs @@ -557,8 +557,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -566,8 +566,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/redis/Cargo.toml b/services/mgmt/redis/Cargo.toml index 155da9a48fb..a850457275f 100644 --- a/services/mgmt/redis/Cargo.toml +++ b/services/mgmt/redis/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/redis/src/package_2018_03/models.rs b/services/mgmt/redis/src/package_2018_03/models.rs index be8bfccac4f..2ac9d4b921f 100644 --- a/services/mgmt/redis/src/package_2018_03/models.rs +++ b/services/mgmt/redis/src/package_2018_03/models.rs @@ -933,8 +933,8 @@ pub struct UpgradeNotification { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp when upgrade notification occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Details about this upgrade notification"] #[serde(rename = "upsellNotification", default, skip_serializing_if = "Option::is_none")] pub upsell_notification: Option, diff --git a/services/mgmt/redis/src/package_2019_07_preview/models.rs b/services/mgmt/redis/src/package_2019_07_preview/models.rs index f928e3319b3..13d15219779 100644 --- a/services/mgmt/redis/src/package_2019_07_preview/models.rs +++ b/services/mgmt/redis/src/package_2019_07_preview/models.rs @@ -964,8 +964,8 @@ pub struct UpgradeNotification { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp when upgrade notification occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Details about this upgrade notification"] #[serde(rename = "upsellNotification", default, skip_serializing_if = "Option::is_none")] pub upsell_notification: Option, diff --git a/services/mgmt/redis/src/package_2020_06/models.rs b/services/mgmt/redis/src/package_2020_06/models.rs index 4845c59382e..23f1bc6acf5 100644 --- a/services/mgmt/redis/src/package_2020_06/models.rs +++ b/services/mgmt/redis/src/package_2020_06/models.rs @@ -1326,8 +1326,8 @@ pub struct UpgradeNotification { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp when upgrade notification occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Details about this upgrade notification"] #[serde(rename = "upsellNotification", default, skip_serializing_if = "Option::is_none")] pub upsell_notification: Option, diff --git a/services/mgmt/redis/src/package_2020_12/models.rs b/services/mgmt/redis/src/package_2020_12/models.rs index 3c737c09fd9..a2ad30a1ee2 100644 --- a/services/mgmt/redis/src/package_2020_12/models.rs +++ b/services/mgmt/redis/src/package_2020_12/models.rs @@ -1350,8 +1350,8 @@ pub struct UpgradeNotification { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp when upgrade notification occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Details about this upgrade notification"] #[serde(rename = "upsellNotification", default, skip_serializing_if = "Option::is_none")] pub upsell_notification: Option, diff --git a/services/mgmt/redis/src/package_2021_06/models.rs b/services/mgmt/redis/src/package_2021_06/models.rs index 36eaa95b2b3..c368e0b4ccc 100644 --- a/services/mgmt/redis/src/package_2021_06/models.rs +++ b/services/mgmt/redis/src/package_2021_06/models.rs @@ -292,11 +292,11 @@ pub struct OperationStatusResult { #[serde(rename = "percentComplete", default, skip_serializing_if = "Option::is_none")] pub percent_complete: Option, #[doc = "The start time of the operation."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The end time of the operation."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The operations list."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub operations: Vec, @@ -1499,8 +1499,8 @@ pub struct UpgradeNotification { #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, #[doc = "Timestamp when upgrade notification occurred."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "Details about this upgrade notification"] #[serde(rename = "upsellNotification", default, skip_serializing_if = "Option::is_none")] pub upsell_notification: Option, diff --git a/services/mgmt/redisenterprise/Cargo.toml b/services/mgmt/redisenterprise/Cargo.toml index 9ebb8ac408e..fece66c129d 100644 --- a/services/mgmt/redisenterprise/Cargo.toml +++ b/services/mgmt/redisenterprise/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/relay/Cargo.toml b/services/mgmt/relay/Cargo.toml index 706d298eddb..b27b97014ad 100644 --- a/services/mgmt/relay/Cargo.toml +++ b/services/mgmt/relay/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/relay/src/package_2016_07/models.rs b/services/mgmt/relay/src/package_2016_07/models.rs index 0e9b4d92756..0df68ffb4c2 100644 --- a/services/mgmt/relay/src/package_2016_07/models.rs +++ b/services/mgmt/relay/src/package_2016_07/models.rs @@ -165,11 +165,11 @@ impl HybridConnectionListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct HybridConnectionProperties { #[doc = "The time the HybridConnection was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "The number of listeners for this HybridConnection. min : 1 and max:25 supported"] #[serde(rename = "listenerCount", default, skip_serializing_if = "Option::is_none")] pub listener_count: Option, @@ -343,11 +343,11 @@ pub struct RelayNamespaceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time the namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -530,11 +530,11 @@ pub struct WcfRelayProperties { #[serde(rename = "relayType", default, skip_serializing_if = "Option::is_none")] pub relay_type: Option, #[doc = "The time the WCFRelay was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "The number of listeners for this relay. min : 1 and max:25 supported"] #[serde(rename = "listenerCount", default, skip_serializing_if = "Option::is_none")] pub listener_count: Option, diff --git a/services/mgmt/relay/src/package_2017_04/models.rs b/services/mgmt/relay/src/package_2017_04/models.rs index 6841d99c42d..a363b877b7d 100644 --- a/services/mgmt/relay/src/package_2017_04/models.rs +++ b/services/mgmt/relay/src/package_2017_04/models.rs @@ -149,11 +149,11 @@ pub mod hybrid_connection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "The time the hybrid connection was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported."] #[serde(rename = "listenerCount", default, skip_serializing_if = "Option::is_none")] pub listener_count: Option, @@ -320,11 +320,11 @@ pub struct RelayNamespaceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time the namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -478,11 +478,11 @@ pub mod wcf_relay { #[serde(rename = "isDynamic", default, skip_serializing_if = "Option::is_none")] pub is_dynamic: Option, #[doc = "The time the WCF relay was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "The number of listeners for this relay. Note that min :1 and max:25 are supported."] #[serde(rename = "listenerCount", default, skip_serializing_if = "Option::is_none")] pub listener_count: Option, diff --git a/services/mgmt/relay/src/package_2018_01_preview/models.rs b/services/mgmt/relay/src/package_2018_01_preview/models.rs index 37ad1ac1843..9aba97ce8f2 100644 --- a/services/mgmt/relay/src/package_2018_01_preview/models.rs +++ b/services/mgmt/relay/src/package_2018_01_preview/models.rs @@ -539,11 +539,11 @@ pub struct RelayNamespaceProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The time the namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, diff --git a/services/mgmt/relay/src/package_2021_11_01/models.rs b/services/mgmt/relay/src/package_2021_11_01/models.rs index 9c4df7b1b2c..e92128d384b 100644 --- a/services/mgmt/relay/src/package_2021_11_01/models.rs +++ b/services/mgmt/relay/src/package_2021_11_01/models.rs @@ -248,11 +248,11 @@ pub mod hybrid_connection { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Properties { #[doc = "The time the hybrid connection was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported."] #[serde(rename = "listenerCount", default, skip_serializing_if = "Option::is_none")] pub listener_count: Option, @@ -786,11 +786,11 @@ pub struct RelayNamespaceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, #[doc = "The time the namespace was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "Endpoint you can use to perform Service Bus operations."] #[serde(rename = "serviceBusEndpoint", default, skip_serializing_if = "Option::is_none")] pub service_bus_endpoint: Option, @@ -1085,11 +1085,11 @@ pub mod wcf_relay { #[serde(rename = "isDynamic", default, skip_serializing_if = "Option::is_none")] pub is_dynamic: Option, #[doc = "The time the WCF relay was created."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The time the namespace was updated."] - #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")] - pub updated_at: Option, + #[serde(rename = "updatedAt", with = "azure_core::date::rfc3339::option")] + pub updated_at: Option, #[doc = "The number of listeners for this relay. Note that min :1 and max:25 are supported."] #[serde(rename = "listenerCount", default, skip_serializing_if = "Option::is_none")] pub listener_count: Option, @@ -1152,8 +1152,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1161,8 +1161,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/reservations/Cargo.toml b/services/mgmt/reservations/Cargo.toml index f33e594a895..bc723b22624 100644 --- a/services/mgmt/reservations/Cargo.toml +++ b/services/mgmt/reservations/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/reservations/src/package_2020_11_preview/models.rs b/services/mgmt/reservations/src/package_2020_11_preview/models.rs index 781d405116e..e5a980f6ed8 100644 --- a/services/mgmt/reservations/src/package_2020_11_preview/models.rs +++ b/services/mgmt/reservations/src/package_2020_11_preview/models.rs @@ -1464,8 +1464,8 @@ pub struct QuotaRequestProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "The quotaRequests."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub value: Vec, @@ -1735,11 +1735,11 @@ pub struct ReservationOrderProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the DateTime when the reservation was initially requested for purchase."] - #[serde(rename = "requestDateTime", default, skip_serializing_if = "Option::is_none")] - pub request_date_time: Option, + #[serde(rename = "requestDateTime", with = "azure_core::date::rfc3339::option")] + pub request_date_time: Option, #[doc = "This is the DateTime when the reservation was created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -1811,11 +1811,11 @@ pub struct ReservationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "DateTime of the Reservation starting when this version is effective from."] - #[serde(rename = "effectiveDateTime", default, skip_serializing_if = "Option::is_none")] - pub effective_date_time: Option, + #[serde(rename = "effectiveDateTime", with = "azure_core::date::rfc3339::option")] + pub effective_date_time: Option, #[doc = "DateTime of the last time the Reservation was updated."] - #[serde(rename = "lastUpdatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_time: Option, + #[serde(rename = "lastUpdatedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -2523,8 +2523,8 @@ pub struct QuotaRequestOneResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "Quota limits."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/reservations/src/package_2021_07_01/models.rs b/services/mgmt/reservations/src/package_2021_07_01/models.rs index 66edee53cfe..393e5ef5788 100644 --- a/services/mgmt/reservations/src/package_2021_07_01/models.rs +++ b/services/mgmt/reservations/src/package_2021_07_01/models.rs @@ -1501,8 +1501,8 @@ pub struct QuotaRequestProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "The quotaRequests."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub value: Vec, @@ -1774,11 +1774,11 @@ pub struct ReservationOrderProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the DateTime when the reservation was initially requested for purchase."] - #[serde(rename = "requestDateTime", default, skip_serializing_if = "Option::is_none")] - pub request_date_time: Option, + #[serde(rename = "requestDateTime", with = "azure_core::date::rfc3339::option")] + pub request_date_time: Option, #[doc = "This is the DateTime when the reservation was created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -2180,11 +2180,11 @@ pub struct ReservationsProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "DateTime of the Reservation starting when this version is effective from."] - #[serde(rename = "effectiveDateTime", default, skip_serializing_if = "Option::is_none")] - pub effective_date_time: Option, + #[serde(rename = "effectiveDateTime", with = "azure_core::date::rfc3339::option")] + pub effective_date_time: Option, #[doc = "DateTime of the last time the Reservation was updated."] - #[serde(rename = "lastUpdatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_time: Option, + #[serde(rename = "lastUpdatedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -2598,8 +2598,8 @@ pub struct QuotaRequestOneResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "Quota properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2619,8 +2619,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2628,8 +2628,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/reservations/src/package_2022_03/models.rs b/services/mgmt/reservations/src/package_2022_03/models.rs index a8ed5b958bb..20af02a1828 100644 --- a/services/mgmt/reservations/src/package_2022_03/models.rs +++ b/services/mgmt/reservations/src/package_2022_03/models.rs @@ -1632,8 +1632,8 @@ pub struct QuotaRequestProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "The quotaRequests."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub value: Vec, @@ -1905,17 +1905,17 @@ pub struct ReservationOrderProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the DateTime when the reservation was initially requested for purchase."] - #[serde(rename = "requestDateTime", default, skip_serializing_if = "Option::is_none")] - pub request_date_time: Option, + #[serde(rename = "requestDateTime", with = "azure_core::date::rfc3339::option")] + pub request_date_time: Option, #[doc = "This is the DateTime when the reservation was created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, #[doc = "This is the DateTime when the reservation benefit started."] - #[serde(rename = "benefitStartTime", default, skip_serializing_if = "Option::is_none")] - pub benefit_start_time: Option, + #[serde(rename = "benefitStartTime", with = "azure_core::date::rfc3339::option")] + pub benefit_start_time: Option, #[doc = "Total Quantity of the SKUs purchased in the Reservation."] #[serde(rename = "originalQuantity", default, skip_serializing_if = "Option::is_none")] pub original_quantity: Option, @@ -2314,14 +2314,14 @@ pub struct ReservationsProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "DateTime of the Reservation starting when this version is effective from."] - #[serde(rename = "effectiveDateTime", default, skip_serializing_if = "Option::is_none")] - pub effective_date_time: Option, + #[serde(rename = "effectiveDateTime", with = "azure_core::date::rfc3339::option")] + pub effective_date_time: Option, #[doc = "This is the DateTime when the reservation benefit started."] - #[serde(rename = "benefitStartTime", default, skip_serializing_if = "Option::is_none")] - pub benefit_start_time: Option, + #[serde(rename = "benefitStartTime", with = "azure_core::date::rfc3339::option")] + pub benefit_start_time: Option, #[doc = "DateTime of the last time the Reservation was updated."] - #[serde(rename = "lastUpdatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_time: Option, + #[serde(rename = "lastUpdatedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -2805,8 +2805,8 @@ pub struct QuotaRequestOneResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "Quota properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2826,8 +2826,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -2835,8 +2835,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/reservations/src/package_preview_2019_04/models.rs b/services/mgmt/reservations/src/package_preview_2019_04/models.rs index 81782de12a2..238144000be 100644 --- a/services/mgmt/reservations/src/package_preview_2019_04/models.rs +++ b/services/mgmt/reservations/src/package_preview_2019_04/models.rs @@ -937,17 +937,17 @@ pub struct ReservationOrderProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the DateTime when the reservation was initially requested for purchase."] - #[serde(rename = "requestDateTime", default, skip_serializing_if = "Option::is_none")] - pub request_date_time: Option, + #[serde(rename = "requestDateTime", with = "azure_core::date::rfc3339::option")] + pub request_date_time: Option, #[doc = "This is the DateTime when the reservation was created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, #[doc = "This is the DateTime when the reservation benefit started."] - #[serde(rename = "benefitStartTime", default, skip_serializing_if = "Option::is_none")] - pub benefit_start_time: Option, + #[serde(rename = "benefitStartTime", with = "azure_core::date::rfc3339::option")] + pub benefit_start_time: Option, #[doc = "Quantity of the SKUs that are part of the Reservation. Must be greater than zero."] #[serde(rename = "originalQuantity", default, skip_serializing_if = "Option::is_none")] pub original_quantity: Option, @@ -1016,14 +1016,14 @@ pub struct ReservationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "DateTime of the Reservation starting when this version is effective from."] - #[serde(rename = "effectiveDateTime", default, skip_serializing_if = "Option::is_none")] - pub effective_date_time: Option, + #[serde(rename = "effectiveDateTime", with = "azure_core::date::rfc3339::option")] + pub effective_date_time: Option, #[doc = "This is the DateTime when the reservation benefit started."] - #[serde(rename = "benefitStartTime", default, skip_serializing_if = "Option::is_none")] - pub benefit_start_time: Option, + #[serde(rename = "benefitStartTime", with = "azure_core::date::rfc3339::option")] + pub benefit_start_time: Option, #[doc = "DateTime of the last time the Reservation was updated."] - #[serde(rename = "lastUpdatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_time: Option, + #[serde(rename = "lastUpdatedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, diff --git a/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs b/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs index e8c39c6ba5a..8d084f86ab1 100644 --- a/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs +++ b/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs @@ -1121,8 +1121,8 @@ pub struct QuotaRequestProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "The quotaRequests."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub value: Vec, @@ -1392,17 +1392,17 @@ pub struct ReservationOrderProperties { #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, #[doc = "This is the DateTime when the reservation was initially requested for purchase."] - #[serde(rename = "requestDateTime", default, skip_serializing_if = "Option::is_none")] - pub request_date_time: Option, + #[serde(rename = "requestDateTime", with = "azure_core::date::rfc3339::option")] + pub request_date_time: Option, #[doc = "This is the DateTime when the reservation was created."] - #[serde(rename = "createdDateTime", default, skip_serializing_if = "Option::is_none")] - pub created_date_time: Option, + #[serde(rename = "createdDateTime", with = "azure_core::date::rfc3339::option")] + pub created_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, #[doc = "This is the DateTime when the reservation benefit started."] - #[serde(rename = "benefitStartTime", default, skip_serializing_if = "Option::is_none")] - pub benefit_start_time: Option, + #[serde(rename = "benefitStartTime", with = "azure_core::date::rfc3339::option")] + pub benefit_start_time: Option, #[doc = "Quantity of the SKUs that are part of the Reservation. Must be greater than zero."] #[serde(rename = "originalQuantity", default, skip_serializing_if = "Option::is_none")] pub original_quantity: Option, @@ -1471,14 +1471,14 @@ pub struct ReservationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "DateTime of the Reservation starting when this version is effective from."] - #[serde(rename = "effectiveDateTime", default, skip_serializing_if = "Option::is_none")] - pub effective_date_time: Option, + #[serde(rename = "effectiveDateTime", with = "azure_core::date::rfc3339::option")] + pub effective_date_time: Option, #[doc = "This is the DateTime when the reservation benefit started."] - #[serde(rename = "benefitStartTime", default, skip_serializing_if = "Option::is_none")] - pub benefit_start_time: Option, + #[serde(rename = "benefitStartTime", with = "azure_core::date::rfc3339::option")] + pub benefit_start_time: Option, #[doc = "DateTime of the last time the Reservation was updated."] - #[serde(rename = "lastUpdatedDateTime", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_time: Option, + #[serde(rename = "lastUpdatedDateTime", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_time: Option, #[doc = "This is the date when the Reservation will expire."] #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] pub expiry_date: Option, @@ -2119,8 +2119,8 @@ pub struct QuotaRequestOneResourceProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub message: Option, #[doc = "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard."] - #[serde(rename = "requestSubmitTime", default, skip_serializing_if = "Option::is_none")] - pub request_submit_time: Option, + #[serde(rename = "requestSubmitTime", with = "azure_core::date::rfc3339::option")] + pub request_submit_time: Option, #[doc = "Quota limits."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/resourceconnector/Cargo.toml b/services/mgmt/resourceconnector/Cargo.toml index ab4e12ff5e5..d831519af87 100644 --- a/services/mgmt/resourceconnector/Cargo.toml +++ b/services/mgmt/resourceconnector/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs b/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs index 2051612158a..10fe1e5ecd6 100644 --- a/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs +++ b/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs @@ -546,8 +546,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -555,8 +555,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/resourceconnector/src/package_2022_04_15_preview/models.rs b/services/mgmt/resourceconnector/src/package_2022_04_15_preview/models.rs index df0d7289f2d..2d18b568e31 100644 --- a/services/mgmt/resourceconnector/src/package_2022_04_15_preview/models.rs +++ b/services/mgmt/resourceconnector/src/package_2022_04_15_preview/models.rs @@ -749,8 +749,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -758,8 +758,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/resourcegraph/Cargo.toml b/services/mgmt/resourcegraph/Cargo.toml index c149ebc9f44..a493cdadfab 100644 --- a/services/mgmt/resourcegraph/Cargo.toml +++ b/services/mgmt/resourcegraph/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs b/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs index 22018d160f4..5e5da518269 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs @@ -36,12 +36,14 @@ pub enum ColumnDataType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DateTimeInterval { #[doc = "A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error."] - pub start: String, + #[serde(with = "azure_core::date::rfc3339")] + pub start: time::OffsetDateTime, #[doc = "A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error."] - pub end: String, + #[serde(with = "azure_core::date::rfc3339")] + pub end: time::OffsetDateTime, } impl DateTimeInterval { - pub fn new(start: String, end: String) -> Self { + pub fn new(start: time::OffsetDateTime, end: time::OffsetDateTime) -> Self { Self { start, end } } } @@ -519,13 +521,14 @@ pub struct ResourceSnapshotData { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The time when the snapshot was created.\nThe snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed."] - pub timestamp: String, + #[serde(with = "azure_core::date::rfc3339")] + pub timestamp: time::OffsetDateTime, #[doc = "The resource snapshot content (in resourceChangeDetails response only)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, } impl ResourceSnapshotData { - pub fn new(timestamp: String) -> Self { + pub fn new(timestamp: time::OffsetDateTime) -> Self { Self { snapshot_id: None, timestamp, diff --git a/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs b/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs index f8010a0965d..ef1fe33f380 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs @@ -36,12 +36,14 @@ pub enum ColumnDataType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DateTimeInterval { #[doc = "A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error."] - pub start: String, + #[serde(with = "azure_core::date::rfc3339")] + pub start: time::OffsetDateTime, #[doc = "A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error."] - pub end: String, + #[serde(with = "azure_core::date::rfc3339")] + pub end: time::OffsetDateTime, } impl DateTimeInterval { - pub fn new(start: String, end: String) -> Self { + pub fn new(start: time::OffsetDateTime, end: time::OffsetDateTime) -> Self { Self { start, end } } } @@ -532,13 +534,14 @@ pub struct ResourceSnapshotData { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The time when the snapshot was created.\nThe snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed."] - pub timestamp: String, + #[serde(with = "azure_core::date::rfc3339")] + pub timestamp: time::OffsetDateTime, #[doc = "The resource snapshot content (in resourceChangeDetails response only)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, } impl ResourceSnapshotData { - pub fn new(timestamp: String) -> Self { + pub fn new(timestamp: time::OffsetDateTime) -> Self { Self { snapshot_id: None, timestamp, diff --git a/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs b/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs index 5f9260c7fc4..094cb438da6 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs @@ -36,12 +36,14 @@ pub enum ColumnDataType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DateTimeInterval { #[doc = "A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error."] - pub start: String, + #[serde(with = "azure_core::date::rfc3339")] + pub start: time::OffsetDateTime, #[doc = "A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error."] - pub end: String, + #[serde(with = "azure_core::date::rfc3339")] + pub end: time::OffsetDateTime, } impl DateTimeInterval { - pub fn new(start: String, end: String) -> Self { + pub fn new(start: time::OffsetDateTime, end: time::OffsetDateTime) -> Self { Self { start, end } } } @@ -540,13 +542,14 @@ pub struct ResourceSnapshotData { #[serde(rename = "snapshotId", default, skip_serializing_if = "Option::is_none")] pub snapshot_id: Option, #[doc = "The time when the snapshot was created.\nThe snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed."] - pub timestamp: String, + #[serde(with = "azure_core::date::rfc3339")] + pub timestamp: time::OffsetDateTime, #[doc = "The resource snapshot content (in resourceChangeDetails response only)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub content: Option, } impl ResourceSnapshotData { - pub fn new(timestamp: String) -> Self { + pub fn new(timestamp: time::OffsetDateTime) -> Self { Self { snapshot_id: None, timestamp, diff --git a/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs b/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs index 52ecadcca34..e687f4b3c56 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs @@ -38,12 +38,14 @@ pub enum ColumnDataType { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DateTimeInterval { #[doc = "A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error."] - pub start: String, + #[serde(with = "azure_core::date::rfc3339")] + pub start: time::OffsetDateTime, #[doc = "A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error."] - pub end: String, + #[serde(with = "azure_core::date::rfc3339")] + pub end: time::OffsetDateTime, } impl DateTimeInterval { - pub fn new(start: String, end: String) -> Self { + pub fn new(start: time::OffsetDateTime, end: time::OffsetDateTime) -> Self { Self { start, end } } } diff --git a/services/mgmt/resourcehealth/Cargo.toml b/services/mgmt/resourcehealth/Cargo.toml index ab46c9e867b..362db2dddd6 100644 --- a/services/mgmt/resourcehealth/Cargo.toml +++ b/services/mgmt/resourcehealth/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/resourcehealth/src/package_2017_07/models.rs b/services/mgmt/resourcehealth/src/package_2017_07/models.rs index e8f8953422c..028ab31bf0f 100644 --- a/services/mgmt/resourcehealth/src/package_2017_07/models.rs +++ b/services/mgmt/resourcehealth/src/package_2017_07/models.rs @@ -88,8 +88,8 @@ pub mod availability_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received."] - #[serde(rename = "rootCauseAttributionTime", default, skip_serializing_if = "Option::is_none")] - pub root_cause_attribution_time: Option, + #[serde(rename = "rootCauseAttributionTime", with = "azure_core::date::rfc3339::option")] + pub root_cause_attribution_time: Option, #[doc = "In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc."] #[serde(rename = "healthEventType", default, skip_serializing_if = "Option::is_none")] pub health_event_type: Option, @@ -103,17 +103,17 @@ pub mod availability_status { #[serde(rename = "healthEventId", default, skip_serializing_if = "Option::is_none")] pub health_event_id: Option, #[doc = "When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved."] - #[serde(rename = "resolutionETA", default, skip_serializing_if = "Option::is_none")] - pub resolution_eta: Option, + #[serde(rename = "resolutionETA", with = "azure_core::date::rfc3339::option")] + pub resolution_eta: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occuredTime", default, skip_serializing_if = "Option::is_none")] - pub occured_time: Option, + #[serde(rename = "occuredTime", with = "azure_core::date::rfc3339::option")] + pub occured_time: Option, #[doc = "Chronicity of the availability transition."] #[serde(rename = "reasonChronicity", default, skip_serializing_if = "Option::is_none")] pub reason_chronicity: Option, #[doc = "Timestamp for when the health was last checked. "] - #[serde(rename = "reportedTime", default, skip_serializing_if = "Option::is_none")] - pub reported_time: Option, + #[serde(rename = "reportedTime", with = "azure_core::date::rfc3339::option")] + pub reported_time: Option, #[doc = "An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned"] #[serde(rename = "recentlyResolvedState", default, skip_serializing_if = "Option::is_none")] pub recently_resolved_state: Option, @@ -148,11 +148,11 @@ pub mod availability_status { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecentlyResolvedState { #[doc = "Timestamp for when the availabilityState changed to Unavailable"] - #[serde(rename = "unavailableOccurredTime", default, skip_serializing_if = "Option::is_none")] - pub unavailable_occurred_time: Option, + #[serde(rename = "unavailableOccurredTime", with = "azure_core::date::rfc3339::option")] + pub unavailable_occurred_time: Option, #[doc = "Timestamp when the availabilityState changes to Available."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, #[doc = "Brief description of cause of the resource becoming unavailable."] #[serde(rename = "unavailabilitySummary", default, skip_serializing_if = "Option::is_none")] pub unavailability_summary: Option, @@ -188,8 +188,8 @@ impl AvailabilityStatusListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmergingIssue { #[doc = "Timestamp for when last time refreshed for ongoing emerging issue."] - #[serde(rename = "refreshTimestamp", default, skip_serializing_if = "Option::is_none")] - pub refresh_timestamp: Option, + #[serde(rename = "refreshTimestamp", with = "azure_core::date::rfc3339::option")] + pub refresh_timestamp: Option, #[doc = "The list of emerging issues of banner type."] #[serde(rename = "statusBanners", default, skip_serializing_if = "Vec::is_empty")] pub status_banners: Vec, @@ -342,11 +342,11 @@ impl RecommendedAction { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceImpactingEvent { #[doc = "Timestamp for when the event started."] - #[serde(rename = "eventStartTime", default, skip_serializing_if = "Option::is_none")] - pub event_start_time: Option, + #[serde(rename = "eventStartTime", with = "azure_core::date::rfc3339::option")] + pub event_start_time: Option, #[doc = "Timestamp for when event was submitted/detected."] - #[serde(rename = "eventStatusLastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub event_status_last_modified_time: Option, + #[serde(rename = "eventStatusLastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub event_status_last_modified_time: Option, #[doc = "Correlation id for the event"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -411,8 +411,8 @@ pub struct StatusActiveEvent { #[serde(rename = "trackingId", default, skip_serializing_if = "Option::is_none")] pub tracking_id: Option, #[doc = "The impact start time on this active event."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The cloud type of this active event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, @@ -426,8 +426,8 @@ pub struct StatusActiveEvent { #[serde(default, skip_serializing_if = "Option::is_none")] pub published: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The list of emerging issues impacts."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub impacts: Vec, @@ -531,8 +531,8 @@ pub struct StatusBanner { #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StatusBanner { pub fn new() -> Self { diff --git a/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs b/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs index d25ff68cbcb..80686fc8359 100644 --- a/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs +++ b/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs @@ -159,8 +159,8 @@ pub mod availability_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received."] - #[serde(rename = "rootCauseAttributionTime", default, skip_serializing_if = "Option::is_none")] - pub root_cause_attribution_time: Option, + #[serde(rename = "rootCauseAttributionTime", with = "azure_core::date::rfc3339::option")] + pub root_cause_attribution_time: Option, #[doc = "In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc."] #[serde(rename = "healthEventType", default, skip_serializing_if = "Option::is_none")] pub health_event_type: Option, @@ -174,17 +174,17 @@ pub mod availability_status { #[serde(rename = "healthEventId", default, skip_serializing_if = "Option::is_none")] pub health_event_id: Option, #[doc = "When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved."] - #[serde(rename = "resolutionETA", default, skip_serializing_if = "Option::is_none")] - pub resolution_eta: Option, + #[serde(rename = "resolutionETA", with = "azure_core::date::rfc3339::option")] + pub resolution_eta: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occurredTime", default, skip_serializing_if = "Option::is_none")] - pub occurred_time: Option, + #[serde(rename = "occurredTime", with = "azure_core::date::rfc3339::option")] + pub occurred_time: Option, #[doc = "Chronicity of the availability transition."] #[serde(rename = "reasonChronicity", default, skip_serializing_if = "Option::is_none")] pub reason_chronicity: Option, #[doc = "Timestamp for when the health was last checked. "] - #[serde(rename = "reportedTime", default, skip_serializing_if = "Option::is_none")] - pub reported_time: Option, + #[serde(rename = "reportedTime", with = "azure_core::date::rfc3339::option")] + pub reported_time: Option, #[doc = "An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned"] #[serde(rename = "recentlyResolved", default, skip_serializing_if = "Option::is_none")] pub recently_resolved: Option, @@ -284,11 +284,11 @@ pub mod availability_status { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecentlyResolved { #[doc = "Timestamp for when the availabilityState changed to Unavailable"] - #[serde(rename = "unavailableOccurredTime", default, skip_serializing_if = "Option::is_none")] - pub unavailable_occurred_time: Option, + #[serde(rename = "unavailableOccurredTime", with = "azure_core::date::rfc3339::option")] + pub unavailable_occurred_time: Option, #[doc = "Timestamp when the availabilityState changes to Available."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, #[doc = "Brief description of cause of the resource becoming unavailable."] #[serde(rename = "unavailabilitySummary", default, skip_serializing_if = "Option::is_none")] pub unavailability_summary: Option, @@ -324,8 +324,8 @@ impl AvailabilityStatusListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmergingIssue { #[doc = "Timestamp for when last time refreshed for ongoing emerging issue."] - #[serde(rename = "refreshTimestamp", default, skip_serializing_if = "Option::is_none")] - pub refresh_timestamp: Option, + #[serde(rename = "refreshTimestamp", with = "azure_core::date::rfc3339::option")] + pub refresh_timestamp: Option, #[doc = "The list of emerging issues of banner type."] #[serde(rename = "statusBanners", default, skip_serializing_if = "Vec::is_empty")] pub status_banners: Vec, @@ -441,11 +441,11 @@ pub mod event { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub links: Vec, #[doc = "It provides the Timestamp for when the health impacting event started."] - #[serde(rename = "impactStartTime", default, skip_serializing_if = "Option::is_none")] - pub impact_start_time: Option, + #[serde(rename = "impactStartTime", with = "azure_core::date::rfc3339::option")] + pub impact_start_time: Option, #[doc = "It provides the Timestamp for when the health impacting event resolved."] - #[serde(rename = "impactMitigationTime", default, skip_serializing_if = "Option::is_none")] - pub impact_mitigation_time: Option, + #[serde(rename = "impactMitigationTime", with = "azure_core::date::rfc3339::option")] + pub impact_mitigation_time: Option, #[doc = "List services impacted by the service health event."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub impact: Vec, @@ -474,8 +474,8 @@ pub mod event { #[serde(default, skip_serializing_if = "Option::is_none")] pub priority: Option, #[doc = "It provides the Timestamp for when the health impacting event was last updated."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "Stage for HIR Document"] #[serde(rename = "hirStage", default, skip_serializing_if = "Option::is_none")] pub hir_stage: Option, @@ -798,8 +798,8 @@ pub struct ImpactedServiceRegion { #[serde(rename = "impactedSubscriptions", default, skip_serializing_if = "Vec::is_empty")] pub impacted_subscriptions: Vec, #[doc = "It provides the Timestamp for when the last update for the service health event."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "List of updates for given service health event."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub updates: Vec, @@ -1000,11 +1000,11 @@ impl RecommendedAction { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceImpactingEvent { #[doc = "Timestamp for when the event started."] - #[serde(rename = "eventStartTime", default, skip_serializing_if = "Option::is_none")] - pub event_start_time: Option, + #[serde(rename = "eventStartTime", with = "azure_core::date::rfc3339::option")] + pub event_start_time: Option, #[doc = "Timestamp for when event was submitted/detected."] - #[serde(rename = "eventStatusLastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub event_status_last_modified_time: Option, + #[serde(rename = "eventStatusLastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub event_status_last_modified_time: Option, #[doc = "Correlation id for the event"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -1069,8 +1069,8 @@ pub struct StatusActiveEvent { #[serde(rename = "trackingId", default, skip_serializing_if = "Option::is_none")] pub tracking_id: Option, #[doc = "The impact start time on this active event."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The cloud type of this active event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, @@ -1084,8 +1084,8 @@ pub struct StatusActiveEvent { #[serde(default, skip_serializing_if = "Option::is_none")] pub published: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The list of emerging issues impacts."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub impacts: Vec, @@ -1189,8 +1189,8 @@ pub struct StatusBanner { #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StatusBanner { pub fn new() -> Self { @@ -1204,8 +1204,8 @@ pub struct Update { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "It provides the Timestamp for the given update for the service health event."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, } impl Update { pub fn new() -> Self { diff --git a/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs b/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs index 8a5c4a6d522..ce48f81d628 100644 --- a/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs +++ b/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs @@ -159,8 +159,8 @@ pub mod availability_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received."] - #[serde(rename = "rootCauseAttributionTime", default, skip_serializing_if = "Option::is_none")] - pub root_cause_attribution_time: Option, + #[serde(rename = "rootCauseAttributionTime", with = "azure_core::date::rfc3339::option")] + pub root_cause_attribution_time: Option, #[doc = "In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc."] #[serde(rename = "healthEventType", default, skip_serializing_if = "Option::is_none")] pub health_event_type: Option, @@ -174,17 +174,17 @@ pub mod availability_status { #[serde(rename = "healthEventId", default, skip_serializing_if = "Option::is_none")] pub health_event_id: Option, #[doc = "When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved."] - #[serde(rename = "resolutionETA", default, skip_serializing_if = "Option::is_none")] - pub resolution_eta: Option, + #[serde(rename = "resolutionETA", with = "azure_core::date::rfc3339::option")] + pub resolution_eta: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occuredTime", default, skip_serializing_if = "Option::is_none")] - pub occured_time: Option, + #[serde(rename = "occuredTime", with = "azure_core::date::rfc3339::option")] + pub occured_time: Option, #[doc = "Chronicity of the availability transition."] #[serde(rename = "reasonChronicity", default, skip_serializing_if = "Option::is_none")] pub reason_chronicity: Option, #[doc = "Timestamp for when the health was last checked. "] - #[serde(rename = "reportedTime", default, skip_serializing_if = "Option::is_none")] - pub reported_time: Option, + #[serde(rename = "reportedTime", with = "azure_core::date::rfc3339::option")] + pub reported_time: Option, #[doc = "An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned"] #[serde(rename = "recentlyResolved", default, skip_serializing_if = "Option::is_none")] pub recently_resolved: Option, @@ -284,11 +284,11 @@ pub mod availability_status { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecentlyResolved { #[doc = "Timestamp for when the availabilityState changed to Unavailable"] - #[serde(rename = "unavailableOccurredTime", default, skip_serializing_if = "Option::is_none")] - pub unavailable_occurred_time: Option, + #[serde(rename = "unavailableOccurredTime", with = "azure_core::date::rfc3339::option")] + pub unavailable_occurred_time: Option, #[doc = "Timestamp when the availabilityState changes to Available."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, #[doc = "Brief description of cause of the resource becoming unavailable."] #[serde(rename = "unavailabilitySummary", default, skip_serializing_if = "Option::is_none")] pub unavailability_summary: Option, @@ -324,8 +324,8 @@ impl AvailabilityStatusListResult { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmergingIssue { #[doc = "Timestamp for when last time refreshed for ongoing emerging issue."] - #[serde(rename = "refreshTimestamp", default, skip_serializing_if = "Option::is_none")] - pub refresh_timestamp: Option, + #[serde(rename = "refreshTimestamp", with = "azure_core::date::rfc3339::option")] + pub refresh_timestamp: Option, #[doc = "The list of emerging issues of banner type."] #[serde(rename = "statusBanners", default, skip_serializing_if = "Vec::is_empty")] pub status_banners: Vec, @@ -441,11 +441,11 @@ pub mod event { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub links: Vec, #[doc = "It provides the Timestamp for when the health impacting event started."] - #[serde(rename = "impactStartTime", default, skip_serializing_if = "Option::is_none")] - pub impact_start_time: Option, + #[serde(rename = "impactStartTime", with = "azure_core::date::rfc3339::option")] + pub impact_start_time: Option, #[doc = "It provides the Timestamp for when the health impacting event resolved."] - #[serde(rename = "impactMitigationTime", default, skip_serializing_if = "Option::is_none")] - pub impact_mitigation_time: Option, + #[serde(rename = "impactMitigationTime", with = "azure_core::date::rfc3339::option")] + pub impact_mitigation_time: Option, #[doc = "List services impacted by the service health event."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub impact: Vec, @@ -474,8 +474,8 @@ pub mod event { #[serde(default, skip_serializing_if = "Option::is_none")] pub priority: Option, #[doc = "It provides the Timestamp for when the health impacting event was last updated."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "Stage for HIR Document"] #[serde(rename = "hirStage", default, skip_serializing_if = "Option::is_none")] pub hir_stage: Option, @@ -837,8 +837,8 @@ pub mod impacted_resource_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occuredTime", default, skip_serializing_if = "Option::is_none")] - pub occured_time: Option, + #[serde(rename = "occuredTime", with = "azure_core::date::rfc3339::option")] + pub occured_time: Option, } impl Properties { pub fn new() -> Self { @@ -942,8 +942,8 @@ pub struct ImpactedServiceRegion { #[serde(rename = "impactedSubscriptions", default, skip_serializing_if = "Vec::is_empty")] pub impacted_subscriptions: Vec, #[doc = "It provides the Timestamp for when the last update for the service health event."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "List of updates for given service health event."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub updates: Vec, @@ -1144,11 +1144,11 @@ impl RecommendedAction { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceImpactingEvent { #[doc = "Timestamp for when the event started."] - #[serde(rename = "eventStartTime", default, skip_serializing_if = "Option::is_none")] - pub event_start_time: Option, + #[serde(rename = "eventStartTime", with = "azure_core::date::rfc3339::option")] + pub event_start_time: Option, #[doc = "Timestamp for when event was submitted/detected."] - #[serde(rename = "eventStatusLastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub event_status_last_modified_time: Option, + #[serde(rename = "eventStatusLastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub event_status_last_modified_time: Option, #[doc = "Correlation id for the event"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -1213,8 +1213,8 @@ pub struct StatusActiveEvent { #[serde(rename = "trackingId", default, skip_serializing_if = "Option::is_none")] pub tracking_id: Option, #[doc = "The impact start time on this active event."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "The cloud type of this active event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, @@ -1228,8 +1228,8 @@ pub struct StatusActiveEvent { #[serde(default, skip_serializing_if = "Option::is_none")] pub published: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, #[doc = "The list of emerging issues impacts."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub impacts: Vec, @@ -1333,8 +1333,8 @@ pub struct StatusBanner { #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StatusBanner { pub fn new() -> Self { @@ -1348,8 +1348,8 @@ pub struct Update { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "It provides the Timestamp for the given update for the service health event."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, } impl Update { pub fn new() -> Self { diff --git a/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs b/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs index 138a80aff1e..2c67f748c1f 100644 --- a/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs +++ b/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs @@ -106,8 +106,8 @@ pub mod availability_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received."] - #[serde(rename = "rootCauseAttributionTime", default, skip_serializing_if = "Option::is_none")] - pub root_cause_attribution_time: Option, + #[serde(rename = "rootCauseAttributionTime", with = "azure_core::date::rfc3339::option")] + pub root_cause_attribution_time: Option, #[doc = "In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc."] #[serde(rename = "healthEventType", default, skip_serializing_if = "Option::is_none")] pub health_event_type: Option, @@ -121,17 +121,17 @@ pub mod availability_status { #[serde(rename = "healthEventId", default, skip_serializing_if = "Option::is_none")] pub health_event_id: Option, #[doc = "When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved."] - #[serde(rename = "resolutionETA", default, skip_serializing_if = "Option::is_none")] - pub resolution_eta: Option, + #[serde(rename = "resolutionETA", with = "azure_core::date::rfc3339::option")] + pub resolution_eta: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occurredTime", default, skip_serializing_if = "Option::is_none")] - pub occurred_time: Option, + #[serde(rename = "occurredTime", with = "azure_core::date::rfc3339::option")] + pub occurred_time: Option, #[doc = "Chronicity of the availability transition."] #[serde(rename = "reasonChronicity", default, skip_serializing_if = "Option::is_none")] pub reason_chronicity: Option, #[doc = "Timestamp for when the health was last checked. "] - #[serde(rename = "reportedTime", default, skip_serializing_if = "Option::is_none")] - pub reported_time: Option, + #[serde(rename = "reportedTime", with = "azure_core::date::rfc3339::option")] + pub reported_time: Option, #[doc = "An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned"] #[serde(rename = "recentlyResolved", default, skip_serializing_if = "Option::is_none")] pub recently_resolved: Option, @@ -231,11 +231,11 @@ pub mod availability_status { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecentlyResolved { #[doc = "Timestamp for when the availabilityState changed to Unavailable"] - #[serde(rename = "unavailableOccurredTime", default, skip_serializing_if = "Option::is_none")] - pub unavailable_occurred_time: Option, + #[serde(rename = "unavailableOccurredTime", with = "azure_core::date::rfc3339::option")] + pub unavailable_occurred_time: Option, #[doc = "Timestamp when the availabilityState changes to Available."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, #[doc = "Brief description of cause of the resource becoming unavailable."] #[serde(rename = "unavailabilitySummary", default, skip_serializing_if = "Option::is_none")] pub unavailability_summary: Option, @@ -314,8 +314,8 @@ pub mod impacted_resource_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occurredTime", default, skip_serializing_if = "Option::is_none")] - pub occurred_time: Option, + #[serde(rename = "occurredTime", with = "azure_core::date::rfc3339::option")] + pub occurred_time: Option, } impl Properties { pub fn new() -> Self { @@ -478,11 +478,11 @@ impl RecommendedAction { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceImpactingEvent { #[doc = "Timestamp for when the event started."] - #[serde(rename = "eventStartTime", default, skip_serializing_if = "Option::is_none")] - pub event_start_time: Option, + #[serde(rename = "eventStartTime", with = "azure_core::date::rfc3339::option")] + pub event_start_time: Option, #[doc = "Timestamp for when event was submitted/detected."] - #[serde(rename = "eventStatusLastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub event_status_last_modified_time: Option, + #[serde(rename = "eventStatusLastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub event_status_last_modified_time: Option, #[doc = "Correlation id for the event"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -547,8 +547,8 @@ pub struct StatusBanner { #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StatusBanner { pub fn new() -> Self { diff --git a/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs b/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs index 6cad0e7ab31..64a1ec60656 100644 --- a/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs +++ b/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs @@ -106,8 +106,8 @@ pub mod availability_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received."] - #[serde(rename = "rootCauseAttributionTime", default, skip_serializing_if = "Option::is_none")] - pub root_cause_attribution_time: Option, + #[serde(rename = "rootCauseAttributionTime", with = "azure_core::date::rfc3339::option")] + pub root_cause_attribution_time: Option, #[doc = "In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc."] #[serde(rename = "healthEventType", default, skip_serializing_if = "Option::is_none")] pub health_event_type: Option, @@ -121,17 +121,17 @@ pub mod availability_status { #[serde(rename = "healthEventId", default, skip_serializing_if = "Option::is_none")] pub health_event_id: Option, #[doc = "When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved."] - #[serde(rename = "resolutionETA", default, skip_serializing_if = "Option::is_none")] - pub resolution_eta: Option, + #[serde(rename = "resolutionETA", with = "azure_core::date::rfc3339::option")] + pub resolution_eta: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occurredTime", default, skip_serializing_if = "Option::is_none")] - pub occurred_time: Option, + #[serde(rename = "occurredTime", with = "azure_core::date::rfc3339::option")] + pub occurred_time: Option, #[doc = "Chronicity of the availability transition."] #[serde(rename = "reasonChronicity", default, skip_serializing_if = "Option::is_none")] pub reason_chronicity: Option, #[doc = "Timestamp for when the health was last checked. "] - #[serde(rename = "reportedTime", default, skip_serializing_if = "Option::is_none")] - pub reported_time: Option, + #[serde(rename = "reportedTime", with = "azure_core::date::rfc3339::option")] + pub reported_time: Option, #[doc = "An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned"] #[serde(rename = "recentlyResolved", default, skip_serializing_if = "Option::is_none")] pub recently_resolved: Option, @@ -231,11 +231,11 @@ pub mod availability_status { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecentlyResolved { #[doc = "Timestamp for when the availabilityState changed to Unavailable"] - #[serde(rename = "unavailableOccurredTime", default, skip_serializing_if = "Option::is_none")] - pub unavailable_occurred_time: Option, + #[serde(rename = "unavailableOccurredTime", with = "azure_core::date::rfc3339::option")] + pub unavailable_occurred_time: Option, #[doc = "Timestamp when the availabilityState changes to Available."] - #[serde(rename = "resolvedTime", default, skip_serializing_if = "Option::is_none")] - pub resolved_time: Option, + #[serde(rename = "resolvedTime", with = "azure_core::date::rfc3339::option")] + pub resolved_time: Option, #[doc = "Brief description of cause of the resource becoming unavailable."] #[serde(rename = "unavailabilitySummary", default, skip_serializing_if = "Option::is_none")] pub unavailability_summary: Option, @@ -361,8 +361,8 @@ pub mod impacted_resource_status { #[serde(rename = "reasonType", default, skip_serializing_if = "Option::is_none")] pub reason_type: Option, #[doc = "Timestamp for when last change in health status occurred."] - #[serde(rename = "occurredTime", default, skip_serializing_if = "Option::is_none")] - pub occurred_time: Option, + #[serde(rename = "occurredTime", with = "azure_core::date::rfc3339::option")] + pub occurred_time: Option, } impl Properties { pub fn new() -> Self { @@ -466,8 +466,8 @@ pub struct ImpactedServiceRegion { #[serde(rename = "impactedSubscriptions", default, skip_serializing_if = "Vec::is_empty")] pub impacted_subscriptions: Vec, #[doc = "It provides the Timestamp for when the last update for the service health event."] - #[serde(rename = "lastUpdateTime", default, skip_serializing_if = "Option::is_none")] - pub last_update_time: Option, + #[serde(rename = "lastUpdateTime", with = "azure_core::date::rfc3339::option")] + pub last_update_time: Option, #[doc = "List of updates for given service health event."] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub updates: Vec, @@ -668,11 +668,11 @@ impl RecommendedAction { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceImpactingEvent { #[doc = "Timestamp for when the event started."] - #[serde(rename = "eventStartTime", default, skip_serializing_if = "Option::is_none")] - pub event_start_time: Option, + #[serde(rename = "eventStartTime", with = "azure_core::date::rfc3339::option")] + pub event_start_time: Option, #[doc = "Timestamp for when event was submitted/detected."] - #[serde(rename = "eventStatusLastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub event_status_last_modified_time: Option, + #[serde(rename = "eventStatusLastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub event_status_last_modified_time: Option, #[doc = "Correlation id for the event"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -737,8 +737,8 @@ pub struct StatusBanner { #[serde(default, skip_serializing_if = "Option::is_none")] pub cloud: Option, #[doc = "The last time modified on this banner."] - #[serde(rename = "lastModifiedTime", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time: Option, + #[serde(rename = "lastModifiedTime", with = "azure_core::date::rfc3339::option")] + pub last_modified_time: Option, } impl StatusBanner { pub fn new() -> Self { @@ -752,8 +752,8 @@ pub struct Update { #[serde(default, skip_serializing_if = "Option::is_none")] pub summary: Option, #[doc = "It provides the Timestamp for the given update for the service health event."] - #[serde(rename = "updateDateTime", default, skip_serializing_if = "Option::is_none")] - pub update_date_time: Option, + #[serde(rename = "updateDateTime", with = "azure_core::date::rfc3339::option")] + pub update_date_time: Option, } impl Update { pub fn new() -> Self { diff --git a/services/mgmt/resourcemover/Cargo.toml b/services/mgmt/resourcemover/Cargo.toml index 7183ce833a3..9a57f65a416 100644 --- a/services/mgmt/resourcemover/Cargo.toml +++ b/services/mgmt/resourcemover/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/resourcemover/src/package_2021_08_01/models.rs b/services/mgmt/resourcemover/src/package_2021_08_01/models.rs index d0e63e9eaaf..b1700299116 100644 --- a/services/mgmt/resourcemover/src/package_2021_08_01/models.rs +++ b/services/mgmt/resourcemover/src/package_2021_08_01/models.rs @@ -1710,8 +1710,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1719,8 +1719,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/resources/Cargo.toml b/services/mgmt/resources/Cargo.toml index a03a13919d3..8e257785e3a 100644 --- a/services/mgmt/resources/Cargo.toml +++ b/services/mgmt/resources/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/resources/src/package_features_2021_07/models.rs b/services/mgmt/resources/src/package_features_2021_07/models.rs index f7516aa7949..bac6edb3dce 100644 --- a/services/mgmt/resources/src/package_features_2021_07/models.rs +++ b/services/mgmt/resources/src/package_features_2021_07/models.rs @@ -8,8 +8,8 @@ use std::str::FromStr; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationProfile { #[doc = "The requested time"] - #[serde(rename = "requestedTime", default, skip_serializing_if = "Option::is_none")] - pub requested_time: Option, + #[serde(rename = "requestedTime", with = "azure_core::date::rfc3339::option")] + pub requested_time: Option, #[doc = "The requester"] #[serde(default, skip_serializing_if = "Option::is_none")] pub requester: Option, @@ -17,8 +17,8 @@ pub struct AuthorizationProfile { #[serde(rename = "requesterObjectId", default, skip_serializing_if = "Option::is_none")] pub requester_object_id: Option, #[doc = "The approved time"] - #[serde(rename = "approvedTime", default, skip_serializing_if = "Option::is_none")] - pub approved_time: Option, + #[serde(rename = "approvedTime", with = "azure_core::date::rfc3339::option")] + pub approved_time: Option, #[doc = "The approver"] #[serde(default, skip_serializing_if = "Option::is_none")] pub approver: Option, @@ -235,11 +235,11 @@ pub mod subscription_feature_registration { #[serde(default, skip_serializing_if = "Option::is_none")] pub metadata: Option, #[doc = "The feature release date."] - #[serde(rename = "releaseDate", default, skip_serializing_if = "Option::is_none")] - pub release_date: Option, + #[serde(rename = "releaseDate", with = "azure_core::date::rfc3339::option")] + pub release_date: Option, #[doc = "The feature registration date."] - #[serde(rename = "registrationDate", default, skip_serializing_if = "Option::is_none")] - pub registration_date: Option, + #[serde(rename = "registrationDate", with = "azure_core::date::rfc3339::option")] + pub registration_date: Option, #[doc = "The feature documentation link."] #[serde(rename = "documentationLink", default, skip_serializing_if = "Option::is_none")] pub documentation_link: Option, diff --git a/services/mgmt/resources/src/package_locks_2020_05/models.rs b/services/mgmt/resources/src/package_locks_2020_05/models.rs index 515109d433c..76914dc88fe 100644 --- a/services/mgmt/resources/src/package_locks_2020_05/models.rs +++ b/services/mgmt/resources/src/package_locks_2020_05/models.rs @@ -253,8 +253,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -262,8 +262,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/resources/src/package_policy_2021_06/models.rs b/services/mgmt/resources/src/package_policy_2021_06/models.rs index bcfa160c10a..93dd69c82d7 100644 --- a/services/mgmt/resources/src/package_policy_2021_06/models.rs +++ b/services/mgmt/resources/src/package_policy_2021_06/models.rs @@ -921,8 +921,8 @@ pub struct PolicyExemptionProperties { #[serde(rename = "exemptionCategory")] pub exemption_category: policy_exemption_properties::ExemptionCategory, #[doc = "The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption."] - #[serde(rename = "expiresOn", default, skip_serializing_if = "Option::is_none")] - pub expires_on: Option, + #[serde(rename = "expiresOn", with = "azure_core::date::rfc3339::option")] + pub expires_on: Option, #[doc = "The display name of the policy exemption."] #[serde(rename = "displayName", default, skip_serializing_if = "Option::is_none")] pub display_name: Option, @@ -1138,8 +1138,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1147,8 +1147,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/resources/src/package_resources_2021_04/models.rs b/services/mgmt/resources/src/package_resources_2021_04/models.rs index 9a8a6882489..32b0c962135 100644 --- a/services/mgmt/resources/src/package_resources_2021_04/models.rs +++ b/services/mgmt/resources/src/package_resources_2021_04/models.rs @@ -394,8 +394,8 @@ pub struct DeploymentOperationProperties { #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, #[doc = "The date and time of the operation."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The duration of the operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -521,8 +521,8 @@ pub struct DeploymentPropertiesExtended { #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, #[doc = "The timestamp of the template deployment."] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub timestamp: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub timestamp: Option, #[doc = "The duration of the template deployment."] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, @@ -903,11 +903,11 @@ pub struct GenericResourceExpanded { #[serde(flatten)] pub generic_resource: GenericResource, #[doc = "The created time of the resource. This is only present if requested via the $expand query parameter."] - #[serde(rename = "createdTime", default, skip_serializing_if = "Option::is_none")] - pub created_time: Option, + #[serde(rename = "createdTime", with = "azure_core::date::rfc3339::option")] + pub created_time: Option, #[doc = "The changed time of the resource. This is only present if requested via the $expand query parameter."] - #[serde(rename = "changedTime", default, skip_serializing_if = "Option::is_none")] - pub changed_time: Option, + #[serde(rename = "changedTime", with = "azure_core::date::rfc3339::option")] + pub changed_time: Option, #[doc = "The provisioning state of the resource. This is only present if requested via the $expand query parameter."] #[serde(rename = "provisioningState", default, skip_serializing_if = "Option::is_none")] pub provisioning_state: Option, diff --git a/services/mgmt/saas/Cargo.toml b/services/mgmt/saas/Cargo.toml index 5deeba21c89..bef5e2cb3a4 100644 --- a/services/mgmt/saas/Cargo.toml +++ b/services/mgmt/saas/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/scheduler/Cargo.toml b/services/mgmt/scheduler/Cargo.toml index 539041f3133..eea78780f8d 100644 --- a/services/mgmt/scheduler/Cargo.toml +++ b/services/mgmt/scheduler/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/scheduler/src/package_2014_08_preview/models.rs b/services/mgmt/scheduler/src/package_2014_08_preview/models.rs index 9206bddce7a..97466e70cfc 100644 --- a/services/mgmt/scheduler/src/package_2014_08_preview/models.rs +++ b/services/mgmt/scheduler/src/package_2014_08_preview/models.rs @@ -34,8 +34,8 @@ pub struct ClientCertAuthentication { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "Gets or sets the certificate expiration date."] - #[serde(rename = "certificateExpirationDate", default, skip_serializing_if = "Option::is_none")] - pub certificate_expiration_date: Option, + #[serde(rename = "certificateExpirationDate", with = "azure_core::date::rfc3339::option")] + pub certificate_expiration_date: Option, #[doc = "Gets or sets the certificate subject name."] #[serde(rename = "certificateSubjectName", default, skip_serializing_if = "Option::is_none")] pub certificate_subject_name: Option, @@ -292,14 +292,14 @@ impl JobHistoryDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobHistoryDefinitionProperties { #[doc = "Gets the start time for this job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time for this job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the expected execution time for this job."] - #[serde(rename = "expectedExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub expected_execution_time: Option, + #[serde(rename = "expectedExecutionTime", with = "azure_core::date::rfc3339::option")] + pub expected_execution_time: Option, #[doc = "Gets the job history action name."] #[serde(rename = "actionName", default, skip_serializing_if = "Option::is_none")] pub action_name: Option, @@ -410,8 +410,8 @@ pub mod job_max_recurrence { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobProperties { #[doc = "Gets or sets the job start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, #[serde(default, skip_serializing_if = "Option::is_none")] @@ -439,8 +439,8 @@ pub struct JobRecurrence { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "Gets or sets the time at which the job will complete."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub schedule: Option, } @@ -543,11 +543,11 @@ pub struct JobStatus { #[serde(rename = "faultedCount", default, skip_serializing_if = "Option::is_none")] pub faulted_count: Option, #[doc = "Gets the time the last occurrence executed in ISO-8601 format. Could be empty if job has not run yet."] - #[serde(rename = "lastExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub last_execution_time: Option, + #[serde(rename = "lastExecutionTime", with = "azure_core::date::rfc3339::option")] + pub last_execution_time: Option, #[doc = "Gets the time of the next occurrence in ISO-8601 format. Could be empty if the job is completed."] - #[serde(rename = "nextExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub next_execution_time: Option, + #[serde(rename = "nextExecutionTime", with = "azure_core::date::rfc3339::option")] + pub next_execution_time: Option, } impl JobStatus { pub fn new() -> Self { @@ -664,14 +664,14 @@ pub struct ServiceBusBrokeredMessageProperties { #[serde(rename = "replyToSessionId", default, skip_serializing_if = "Option::is_none")] pub reply_to_session_id: Option, #[doc = "Gets or sets the scheduled enqueue time UTC."] - #[serde(rename = "scheduledEnqueueTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub scheduled_enqueue_time_utc: Option, + #[serde(rename = "scheduledEnqueueTimeUtc", with = "azure_core::date::rfc3339::option")] + pub scheduled_enqueue_time_utc: Option, #[doc = "Gets or sets the session id."] #[serde(rename = "sessionId", default, skip_serializing_if = "Option::is_none")] pub session_id: Option, #[doc = "Gets or sets the time to live."] - #[serde(rename = "timeToLive", default, skip_serializing_if = "Option::is_none")] - pub time_to_live: Option, + #[serde(rename = "timeToLive", with = "azure_core::date::rfc3339::option")] + pub time_to_live: Option, #[doc = "Gets or sets the to."] #[serde(default, skip_serializing_if = "Option::is_none")] pub to: Option, diff --git a/services/mgmt/scheduler/src/package_2016_01/models.rs b/services/mgmt/scheduler/src/package_2016_01/models.rs index 9206bddce7a..97466e70cfc 100644 --- a/services/mgmt/scheduler/src/package_2016_01/models.rs +++ b/services/mgmt/scheduler/src/package_2016_01/models.rs @@ -34,8 +34,8 @@ pub struct ClientCertAuthentication { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "Gets or sets the certificate expiration date."] - #[serde(rename = "certificateExpirationDate", default, skip_serializing_if = "Option::is_none")] - pub certificate_expiration_date: Option, + #[serde(rename = "certificateExpirationDate", with = "azure_core::date::rfc3339::option")] + pub certificate_expiration_date: Option, #[doc = "Gets or sets the certificate subject name."] #[serde(rename = "certificateSubjectName", default, skip_serializing_if = "Option::is_none")] pub certificate_subject_name: Option, @@ -292,14 +292,14 @@ impl JobHistoryDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobHistoryDefinitionProperties { #[doc = "Gets the start time for this job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time for this job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the expected execution time for this job."] - #[serde(rename = "expectedExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub expected_execution_time: Option, + #[serde(rename = "expectedExecutionTime", with = "azure_core::date::rfc3339::option")] + pub expected_execution_time: Option, #[doc = "Gets the job history action name."] #[serde(rename = "actionName", default, skip_serializing_if = "Option::is_none")] pub action_name: Option, @@ -410,8 +410,8 @@ pub mod job_max_recurrence { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobProperties { #[doc = "Gets or sets the job start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, #[serde(default, skip_serializing_if = "Option::is_none")] @@ -439,8 +439,8 @@ pub struct JobRecurrence { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "Gets or sets the time at which the job will complete."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub schedule: Option, } @@ -543,11 +543,11 @@ pub struct JobStatus { #[serde(rename = "faultedCount", default, skip_serializing_if = "Option::is_none")] pub faulted_count: Option, #[doc = "Gets the time the last occurrence executed in ISO-8601 format. Could be empty if job has not run yet."] - #[serde(rename = "lastExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub last_execution_time: Option, + #[serde(rename = "lastExecutionTime", with = "azure_core::date::rfc3339::option")] + pub last_execution_time: Option, #[doc = "Gets the time of the next occurrence in ISO-8601 format. Could be empty if the job is completed."] - #[serde(rename = "nextExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub next_execution_time: Option, + #[serde(rename = "nextExecutionTime", with = "azure_core::date::rfc3339::option")] + pub next_execution_time: Option, } impl JobStatus { pub fn new() -> Self { @@ -664,14 +664,14 @@ pub struct ServiceBusBrokeredMessageProperties { #[serde(rename = "replyToSessionId", default, skip_serializing_if = "Option::is_none")] pub reply_to_session_id: Option, #[doc = "Gets or sets the scheduled enqueue time UTC."] - #[serde(rename = "scheduledEnqueueTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub scheduled_enqueue_time_utc: Option, + #[serde(rename = "scheduledEnqueueTimeUtc", with = "azure_core::date::rfc3339::option")] + pub scheduled_enqueue_time_utc: Option, #[doc = "Gets or sets the session id."] #[serde(rename = "sessionId", default, skip_serializing_if = "Option::is_none")] pub session_id: Option, #[doc = "Gets or sets the time to live."] - #[serde(rename = "timeToLive", default, skip_serializing_if = "Option::is_none")] - pub time_to_live: Option, + #[serde(rename = "timeToLive", with = "azure_core::date::rfc3339::option")] + pub time_to_live: Option, #[doc = "Gets or sets the to."] #[serde(default, skip_serializing_if = "Option::is_none")] pub to: Option, diff --git a/services/mgmt/scheduler/src/package_2016_03/models.rs b/services/mgmt/scheduler/src/package_2016_03/models.rs index f2aa259734d..deb4170309a 100644 --- a/services/mgmt/scheduler/src/package_2016_03/models.rs +++ b/services/mgmt/scheduler/src/package_2016_03/models.rs @@ -38,8 +38,8 @@ pub struct ClientCertAuthentication { #[serde(rename = "certificateThumbprint", default, skip_serializing_if = "Option::is_none")] pub certificate_thumbprint: Option, #[doc = "Gets or sets the certificate expiration date."] - #[serde(rename = "certificateExpirationDate", default, skip_serializing_if = "Option::is_none")] - pub certificate_expiration_date: Option, + #[serde(rename = "certificateExpirationDate", with = "azure_core::date::rfc3339::option")] + pub certificate_expiration_date: Option, #[doc = "Gets or sets the certificate subject name."] #[serde(rename = "certificateSubjectName", default, skip_serializing_if = "Option::is_none")] pub certificate_subject_name: Option, @@ -303,14 +303,14 @@ impl JobHistoryDefinition { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobHistoryDefinitionProperties { #[doc = "Gets the start time for this job."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Gets the end time for this job."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "Gets the expected execution time for this job."] - #[serde(rename = "expectedExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub expected_execution_time: Option, + #[serde(rename = "expectedExecutionTime", with = "azure_core::date::rfc3339::option")] + pub expected_execution_time: Option, #[doc = "Gets the job history action name."] #[serde(rename = "actionName", default, skip_serializing_if = "Option::is_none")] pub action_name: Option, @@ -421,8 +421,8 @@ pub mod job_max_recurrence { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct JobProperties { #[doc = "Gets or sets the job start time."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub action: Option, #[serde(default, skip_serializing_if = "Option::is_none")] @@ -450,8 +450,8 @@ pub struct JobRecurrence { #[serde(default, skip_serializing_if = "Option::is_none")] pub count: Option, #[doc = "Gets or sets the time at which the job will complete."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub schedule: Option, } @@ -554,11 +554,11 @@ pub struct JobStatus { #[serde(rename = "faultedCount", default, skip_serializing_if = "Option::is_none")] pub faulted_count: Option, #[doc = "Gets the time the last occurrence executed in ISO-8601 format. Could be empty if job has not run yet."] - #[serde(rename = "lastExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub last_execution_time: Option, + #[serde(rename = "lastExecutionTime", with = "azure_core::date::rfc3339::option")] + pub last_execution_time: Option, #[doc = "Gets the time of the next occurrence in ISO-8601 format. Could be empty if the job is completed."] - #[serde(rename = "nextExecutionTime", default, skip_serializing_if = "Option::is_none")] - pub next_execution_time: Option, + #[serde(rename = "nextExecutionTime", with = "azure_core::date::rfc3339::option")] + pub next_execution_time: Option, } impl JobStatus { pub fn new() -> Self { @@ -681,8 +681,8 @@ pub struct ServiceBusBrokeredMessageProperties { #[serde(rename = "replyToSessionId", default, skip_serializing_if = "Option::is_none")] pub reply_to_session_id: Option, #[doc = "Gets or sets the scheduled enqueue time UTC."] - #[serde(rename = "scheduledEnqueueTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub scheduled_enqueue_time_utc: Option, + #[serde(rename = "scheduledEnqueueTimeUtc", with = "azure_core::date::rfc3339::option")] + pub scheduled_enqueue_time_utc: Option, #[doc = "Gets or sets the session ID."] #[serde(rename = "sessionId", default, skip_serializing_if = "Option::is_none")] pub session_id: Option, diff --git a/services/mgmt/scvmm/Cargo.toml b/services/mgmt/scvmm/Cargo.toml index aa01a45be0f..e60171a4d78 100644 --- a/services/mgmt/scvmm/Cargo.toml +++ b/services/mgmt/scvmm/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs b/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs index e7951e4eb66..dda65dae5ef 100644 --- a/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs +++ b/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs @@ -1844,8 +1844,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1853,8 +1853,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/search/Cargo.toml b/services/mgmt/search/Cargo.toml index 2e4b8462625..231b015cd43 100644 --- a/services/mgmt/search/Cargo.toml +++ b/services/mgmt/search/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/security/Cargo.toml b/services/mgmt/security/Cargo.toml index c7cbb79cfed..b7ef2cd593a 100644 --- a/services/mgmt/security/Cargo.toml +++ b/services/mgmt/security/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/security/src/package_preview_2021_12/models.rs b/services/mgmt/security/src/package_preview_2021_12/models.rs index 72ac6685c1e..0e5523737d6 100644 --- a/services/mgmt/security/src/package_preview_2021_12/models.rs +++ b/services/mgmt/security/src/package_preview_2021_12/models.rs @@ -1403,8 +1403,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1412,8 +1412,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/security/src/package_preview_2022_01/models.rs b/services/mgmt/security/src/package_preview_2022_01/models.rs index 37c16353f5f..4aacf37c79c 100644 --- a/services/mgmt/security/src/package_preview_2022_01/models.rs +++ b/services/mgmt/security/src/package_preview_2022_01/models.rs @@ -183,8 +183,8 @@ pub struct GovernanceAssignmentProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub owner: Option, #[doc = "The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)"] - #[serde(rename = "remediationDueDate")] - pub remediation_due_date: String, + #[serde(rename = "remediationDueDate", with = "azure_core::date::rfc3339")] + pub remediation_due_date: time::OffsetDateTime, #[doc = "The ETA (estimated time of arrival) for remediation"] #[serde(rename = "remediationEta", default, skip_serializing_if = "Option::is_none")] pub remediation_eta: Option, @@ -199,7 +199,7 @@ pub struct GovernanceAssignmentProperties { pub additional_data: Option, } impl GovernanceAssignmentProperties { - pub fn new(remediation_due_date: String) -> Self { + pub fn new(remediation_due_date: time::OffsetDateTime) -> Self { Self { owner: None, remediation_due_date, @@ -499,12 +499,13 @@ pub mod governance_rule_properties { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RemediationEta { #[doc = "ETA for remediation."] - pub eta: String, + #[serde(with = "azure_core::date::rfc3339")] + pub eta: time::OffsetDateTime, #[doc = "Justification for change of Eta."] pub justification: String, } impl RemediationEta { - pub fn new(eta: String, justification: String) -> Self { + pub fn new(eta: time::OffsetDateTime, justification: String) -> Self { Self { eta, justification } } } diff --git a/services/mgmt/security/src/package_preview_2022_05/models.rs b/services/mgmt/security/src/package_preview_2022_05/models.rs index 7211b04930e..332079bf877 100644 --- a/services/mgmt/security/src/package_preview_2022_05/models.rs +++ b/services/mgmt/security/src/package_preview_2022_05/models.rs @@ -465,8 +465,8 @@ pub struct SecurityConnectorProperties { #[serde(rename = "hierarchyIdentifier", default, skip_serializing_if = "Option::is_none")] pub hierarchy_identifier: Option, #[doc = "The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings."] - #[serde(rename = "hierarchyIdentifierTrialEndDate", default, skip_serializing_if = "Option::is_none")] - pub hierarchy_identifier_trial_end_date: Option, + #[serde(rename = "hierarchyIdentifierTrialEndDate", with = "azure_core::date::rfc3339::option")] + pub hierarchy_identifier_trial_end_date: Option, #[doc = "The multi cloud resource's cloud name."] #[serde(rename = "environmentName", default, skip_serializing_if = "Option::is_none")] pub environment_name: Option, @@ -789,8 +789,8 @@ pub mod defender_fo_databases_aws_offering { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServicePrincipalSecretMetadata { #[doc = "expiration date of service principal secret"] - #[serde(rename = "expiryDate", default, skip_serializing_if = "Option::is_none")] - pub expiry_date: Option, + #[serde(rename = "expiryDate", with = "azure_core::date::rfc3339::option")] + pub expiry_date: Option, #[doc = "region of parameter store where secret is kept"] #[serde(rename = "parameterStoreRegion", default, skip_serializing_if = "Option::is_none")] pub parameter_store_region: Option, @@ -1654,8 +1654,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1663,8 +1663,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/securityandcompliance/Cargo.toml b/services/mgmt/securityandcompliance/Cargo.toml index 3bc1dc61c87..72d738455b3 100644 --- a/services/mgmt/securityandcompliance/Cargo.toml +++ b/services/mgmt/securityandcompliance/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs b/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs index c557bcd42a3..5f8890ca574 100644 --- a/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs +++ b/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs @@ -1002,8 +1002,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1011,8 +1011,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs b/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs index afeb4deb5d6..4fa74975a53 100644 --- a/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs +++ b/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs @@ -1040,8 +1040,8 @@ pub struct SystemData { #[serde(rename = "createdByType", default, skip_serializing_if = "Option::is_none")] pub created_by_type: Option, #[doc = "The timestamp of resource creation (UTC)."] - #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")] - pub created_at: Option, + #[serde(rename = "createdAt", with = "azure_core::date::rfc3339::option")] + pub created_at: Option, #[doc = "The identity that last modified the resource."] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1049,8 +1049,8 @@ pub struct SystemData { #[serde(rename = "lastModifiedByType", default, skip_serializing_if = "Option::is_none")] pub last_modified_by_type: Option, #[doc = "The timestamp of resource last modification (UTC)"] - #[serde(rename = "lastModifiedAt", default, skip_serializing_if = "Option::is_none")] - pub last_modified_at: Option, + #[serde(rename = "lastModifiedAt", with = "azure_core::date::rfc3339::option")] + pub last_modified_at: Option, } impl SystemData { pub fn new() -> Self { diff --git a/services/mgmt/securityinsights/Cargo.toml b/services/mgmt/securityinsights/Cargo.toml index 804cfa24913..666d17c349e 100644 --- a/services/mgmt/securityinsights/Cargo.toml +++ b/services/mgmt/securityinsights/Cargo.toml @@ -18,12 +18,12 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" bytes = "1.0" futures = "0.3" +time = "0.3" [dev-dependencies] azure_identity = { path = "../../../sdk/identity" } tokio = { version = "1.0", features = ["macros"] } env_logger = "0.9" -time = "0.3" [package.metadata.docs.rs] all-features = true diff --git a/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs b/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs index 7aa82baecb2..922ca805a25 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs @@ -365,11 +365,11 @@ pub struct ActivityEntityQueriesProperties { #[serde(default, skip_serializing_if = "Option::is_none")] pub enabled: Option, #[doc = "The time the activity was created"] - #[serde(rename = "createdTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub created_time_utc: Option, + #[serde(rename = "createdTimeUtc", with = "azure_core::date::rfc3339::option")] + pub created_time_utc: Option, #[doc = "The last time the activity was updated"] - #[serde(rename = "lastModifiedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time_utc: Option, + #[serde(rename = "lastModifiedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub last_modified_time_utc: Option, } impl ActivityEntityQueriesProperties { pub fn new() -> Self { @@ -485,17 +485,17 @@ pub struct ActivityTimelineItem { #[serde(rename = "queryId")] pub query_id: String, #[doc = "The grouping bucket start time."] - #[serde(rename = "bucketStartTimeUTC")] - pub bucket_start_time_utc: String, + #[serde(rename = "bucketStartTimeUTC", with = "azure_core::date::rfc3339")] + pub bucket_start_time_utc: time::OffsetDateTime, #[doc = "The grouping bucket end time."] - #[serde(rename = "bucketEndTimeUTC")] - pub bucket_end_time_utc: String, + #[serde(rename = "bucketEndTimeUTC", with = "azure_core::date::rfc3339")] + pub bucket_end_time_utc: time::OffsetDateTime, #[doc = "The time of the first activity in the grouping bucket."] - #[serde(rename = "firstActivityTimeUTC")] - pub first_activity_time_utc: String, + #[serde(rename = "firstActivityTimeUTC", with = "azure_core::date::rfc3339")] + pub first_activity_time_utc: time::OffsetDateTime, #[doc = "The time of the last activity in the grouping bucket."] - #[serde(rename = "lastActivityTimeUTC")] - pub last_activity_time_utc: String, + #[serde(rename = "lastActivityTimeUTC", with = "azure_core::date::rfc3339")] + pub last_activity_time_utc: time::OffsetDateTime, #[doc = "The activity timeline content."] pub content: String, #[doc = "The activity timeline title."] @@ -505,10 +505,10 @@ impl ActivityTimelineItem { pub fn new( entity_timeline_item: EntityTimelineItem, query_id: String, - bucket_start_time_utc: String, - bucket_end_time_utc: String, - first_activity_time_utc: String, - last_activity_time_utc: String, + bucket_start_time_utc: time::OffsetDateTime, + bucket_end_time_utc: time::OffsetDateTime, + first_activity_time_utc: time::OffsetDateTime, + last_activity_time_utc: time::OffsetDateTime, content: String, title: String, ) -> Self { @@ -648,11 +648,11 @@ pub struct AlertRuleTemplatePropertiesBase { #[serde(rename = "alertRulesCreatedByTemplateCount", default, skip_serializing_if = "Option::is_none")] pub alert_rules_created_by_template_count: Option, #[doc = "The last time that this alert rule template has been updated."] - #[serde(rename = "lastUpdatedDateUTC", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_utc: Option, + #[serde(rename = "lastUpdatedDateUTC", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_utc: Option, #[doc = "The time that this alert rule template has been added."] - #[serde(rename = "createdDateUTC", default, skip_serializing_if = "Option::is_none")] - pub created_date_utc: Option, + #[serde(rename = "createdDateUTC", with = "azure_core::date::rfc3339::option")] + pub created_date_utc: Option, #[doc = "The description of the alert rule template."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -1008,11 +1008,11 @@ pub struct AutomationRuleProperties { #[doc = "The actions to execute when the automation rule is triggered"] pub actions: Vec, #[doc = "The last time the automation rule was updated"] - #[serde(rename = "lastModifiedTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub last_modified_time_utc: Option, + #[serde(rename = "lastModifiedTimeUtc", with = "azure_core::date::rfc3339::option")] + pub last_modified_time_utc: Option, #[doc = "The time the automation rule was created"] - #[serde(rename = "createdTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub created_time_utc: Option, + #[serde(rename = "createdTimeUtc", with = "azure_core::date::rfc3339::option")] + pub created_time_utc: Option, #[doc = "Information on the client (user or application) that made some action"] #[serde(rename = "lastModifiedBy", default, skip_serializing_if = "Option::is_none")] pub last_modified_by: Option, @@ -1382,8 +1382,8 @@ pub struct AutomationRuleTriggeringLogic { #[serde(rename = "isEnabled")] pub is_enabled: bool, #[doc = "Determines when the automation rule should automatically expire and be disabled."] - #[serde(rename = "expirationTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub expiration_time_utc: Option, + #[serde(rename = "expirationTimeUtc", with = "azure_core::date::rfc3339::option")] + pub expiration_time_utc: Option, #[serde(rename = "triggersOn")] pub triggers_on: TriggersOn, #[serde(rename = "triggersWhen")] @@ -1616,14 +1616,14 @@ impl BookmarkEntityMappings { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BookmarkExpandParameters { #[doc = "The end date filter, so the only expansion results returned are before this date."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The Id of the expansion to perform."] #[serde(rename = "expansionId", default, skip_serializing_if = "Option::is_none")] pub expansion_id: Option, #[doc = "The start date filter, so the only expansion results returned are after this date."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl BookmarkExpandParameters { pub fn new() -> Self { @@ -1687,8 +1687,8 @@ impl BookmarkList { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BookmarkProperties { #[doc = "The time the bookmark was created"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "User information that made some action"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -1707,20 +1707,20 @@ pub struct BookmarkProperties { #[serde(rename = "queryResult", default, skip_serializing_if = "Option::is_none")] pub query_result: Option, #[doc = "The last time the bookmark was updated"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub updated: Option, #[doc = "User information that made some action"] #[serde(rename = "updatedBy", default, skip_serializing_if = "Option::is_none")] pub updated_by: Option, #[doc = "The bookmark event time"] - #[serde(rename = "eventTime", default, skip_serializing_if = "Option::is_none")] - pub event_time: Option, + #[serde(rename = "eventTime", with = "azure_core::date::rfc3339::option")] + pub event_time: Option, #[doc = "The start time for the query"] - #[serde(rename = "queryStartTime", default, skip_serializing_if = "Option::is_none")] - pub query_start_time: Option, + #[serde(rename = "queryStartTime", with = "azure_core::date::rfc3339::option")] + pub query_start_time: Option, #[doc = "The end time for the query"] - #[serde(rename = "queryEndTime", default, skip_serializing_if = "Option::is_none")] - pub query_end_time: Option, + #[serde(rename = "queryEndTime", with = "azure_core::date::rfc3339::option")] + pub query_end_time: Option, #[doc = "Describes related incident information for the bookmark"] #[serde(rename = "incidentInfo", default, skip_serializing_if = "Option::is_none")] pub incident_info: Option, @@ -1771,14 +1771,14 @@ pub struct BookmarkTimelineItem { #[serde(default, skip_serializing_if = "Option::is_none")] pub notes: Option, #[doc = "The bookmark end time."] - #[serde(rename = "endTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub end_time_utc: Option, + #[serde(rename = "endTimeUtc", with = "azure_core::date::rfc3339::option")] + pub end_time_utc: Option, #[doc = "The bookmark start time."] - #[serde(rename = "startTimeUtc", default, skip_serializing_if = "Option::is_none")] - pub start_time_utc: Option, + #[serde(rename = "startTimeUtc", with = "azure_core::date::rfc3339::option")] + pub start_time_utc: Option, #[doc = "The bookmark event time."] - #[serde(rename = "eventTime", default, skip_serializing_if = "Option::is_none")] - pub event_time: Option, + #[serde(rename = "eventTime", with = "azure_core::date::rfc3339::option")] + pub event_time: Option, #[doc = "User information that made some action"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -2880,8 +2880,8 @@ pub struct Deployment { #[serde(rename = "deploymentResult", default, skip_serializing_if = "Option::is_none")] pub deployment_result: Option, #[doc = "The time when the deployment finished."] - #[serde(rename = "deploymentTime", default, skip_serializing_if = "Option::is_none")] - pub deployment_time: Option, + #[serde(rename = "deploymentTime", with = "azure_core::date::rfc3339::option")] + pub deployment_time: Option, #[doc = "Url to access repository action logs."] #[serde(rename = "deploymentLogsUrl", default, skip_serializing_if = "Option::is_none")] pub deployment_logs_url: Option, @@ -3115,14 +3115,14 @@ pub struct EnrichmentDomainWhois { #[serde(default, skip_serializing_if = "Option::is_none")] pub server: Option, #[doc = "The timestamp at which this record was created"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "The timestamp at which this record was last updated"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub updated: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub updated: Option, #[doc = "The timestamp at which this record will expire"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub expires: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub expires: Option, #[doc = "The whois record for a given domain"] #[serde(rename = "parsedWhois", default, skip_serializing_if = "Option::is_none")] pub parsed_whois: Option, @@ -3379,14 +3379,14 @@ impl EntityEdges { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EntityExpandParameters { #[doc = "The end date filter, so the only expansion results returned are before this date."] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, #[doc = "The Id of the expansion to perform."] #[serde(rename = "expansionId", default, skip_serializing_if = "Option::is_none")] pub expansion_id: Option, #[doc = "The start date filter, so the only expansion results returned are after this date."] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, } impl EntityExpandParameters { pub fn new() -> Self { @@ -3445,11 +3445,11 @@ impl EntityFieldMapping { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EntityGetInsightsParameters { #[doc = "The start timeline date, so the results returned are after this date."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "The end timeline date, so the results returned are before this date."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, #[doc = "Indicates if query time range should be extended with default time range of the query. Default value is false"] #[serde(rename = "addDefaultExtendedTimeRange", default, skip_serializing_if = "Option::is_none")] pub add_default_extended_time_range: Option, @@ -3458,7 +3458,7 @@ pub struct EntityGetInsightsParameters { pub insight_query_ids: Vec, } impl EntityGetInsightsParameters { - pub fn new(start_time: String, end_time: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, end_time: time::OffsetDateTime) -> Self { Self { start_time, end_time, @@ -3662,11 +3662,11 @@ pub mod entity_insight_item { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct QueryTimeInterval { #[doc = "Insight query start time"] - #[serde(rename = "startTime", default, skip_serializing_if = "Option::is_none")] - pub start_time: Option, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339::option")] + pub start_time: Option, #[doc = "Insight query end time"] - #[serde(rename = "endTime", default, skip_serializing_if = "Option::is_none")] - pub end_time: Option, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339::option")] + pub end_time: Option, } impl QueryTimeInterval { pub fn new() -> Self { @@ -4032,17 +4032,17 @@ pub struct EntityTimelineParameters { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub kinds: Vec, #[doc = "The start timeline date, so the results returned are after this date."] - #[serde(rename = "startTime")] - pub start_time: String, + #[serde(rename = "startTime", with = "azure_core::date::rfc3339")] + pub start_time: time::OffsetDateTime, #[doc = "The end timeline date, so the results returned are before this date."] - #[serde(rename = "endTime")] - pub end_time: String, + #[serde(rename = "endTime", with = "azure_core::date::rfc3339")] + pub end_time: time::OffsetDateTime, #[doc = "The number of bucket for timeline queries aggregation."] #[serde(rename = "numberOfBucket", default, skip_serializing_if = "Option::is_none")] pub number_of_bucket: Option, } impl EntityTimelineParameters { - pub fn new(start_time: String, end_time: String) -> Self { + pub fn new(start_time: time::OffsetDateTime, end_time: time::OffsetDateTime) -> Self { Self { kinds: Vec::new(), start_time, @@ -4278,8 +4278,8 @@ pub struct FusionAlertRuleProperties { #[serde(rename = "scenarioExclusionPatterns", default, skip_serializing_if = "Vec::is_empty")] pub scenario_exclusion_patterns: Vec, #[doc = "The last time that this alert has been modified."] - #[serde(rename = "lastModifiedUtc", default, skip_serializing_if = "Option::is_none")] - pub last_modified_utc: Option, + #[serde(rename = "lastModifiedUtc", with = "azure_core::date::rfc3339::option")] + pub last_modified_utc: Option, #[doc = "The severity of the alert"] #[serde(default, skip_serializing_if = "Option::is_none")] pub severity: Option, @@ -4330,11 +4330,11 @@ pub struct FusionAlertRuleTemplateProperties { #[serde(rename = "alertRulesCreatedByTemplateCount", default, skip_serializing_if = "Option::is_none")] pub alert_rules_created_by_template_count: Option, #[doc = "The time that this alert rule template has been added."] - #[serde(rename = "createdDateUTC", default, skip_serializing_if = "Option::is_none")] - pub created_date_utc: Option, + #[serde(rename = "createdDateUTC", with = "azure_core::date::rfc3339::option")] + pub created_date_utc: Option, #[doc = "The time that this alert rule template was last updated."] - #[serde(rename = "lastUpdatedDateUTC", default, skip_serializing_if = "Option::is_none")] - pub last_updated_date_utc: Option, + #[serde(rename = "lastUpdatedDateUTC", with = "azure_core::date::rfc3339::option")] + pub last_updated_date_utc: Option, #[doc = "The description of the alert rule template."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, @@ -4708,8 +4708,8 @@ pub struct HuntingBookmarkProperties { #[serde(flatten)] pub entity_common_properties: EntityCommonProperties, #[doc = "The time the bookmark was created"] - #[serde(default, skip_serializing_if = "Option::is_none")] - pub created: Option, + #[serde(with = "azure_core::date::rfc3339::option")] + pub created: Option, #[doc = "User information that made some action"] #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")] pub created_by: Option, @@ -4717,8 +4717,8 @@ pub struct HuntingBookmarkProperties { #[serde(rename = "displayName")] pub display_name: String, #[doc = "The time of the event"] - #[serde(rename = "eventTime", default, skip_serializing_if = "Option::is_none")] - pub event_time: Option, + #[serde(rename = "eventTime", with = "azure_core::date::rfc3339::option")] + pub event_time: Option, #[doc = "List of labels relevant to this bookmark"] #[serde(default, skip_serializing_if = "Vec::is_empty")] pub labels: Vec