CloudExadataInfrastructureMaintenanceWindow.fromMap constructor
CloudExadataInfrastructureMaintenanceWindow.fromMap(
- Map<String, dynamic> map
)
Implementation
factory CloudExadataInfrastructureMaintenanceWindow.fromMap(Map<String, dynamic> map) {
return CloudExadataInfrastructureMaintenanceWindow(
customActionTimeoutInMins: pulumi.Input.fromValue((map['customActionTimeoutInMins'] as num).toInt()),
daysOfWeeks: (() { final guardedValue = map['daysOfWeeks']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<CloudExadataInfrastructureMaintenanceWindowDaysOfWeek>(guardedValue, (value) => CloudExadataInfrastructureMaintenanceWindowDaysOfWeek.fromMap((value as Map).cast<String, dynamic>()))); })(),
hoursOfDays: (() { final guardedValue = map['hoursOfDays']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<int>()); })(),
isCustomActionTimeoutEnabled: pulumi.Input.fromValue(map['isCustomActionTimeoutEnabled'] as bool),
leadTimeInWeeks: (() { final guardedValue = map['leadTimeInWeeks']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as num).toInt()); })(),
months: (() { final guardedValue = map['months']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<CloudExadataInfrastructureMaintenanceWindowMonth>(guardedValue, (value) => CloudExadataInfrastructureMaintenanceWindowMonth.fromMap((value as Map).cast<String, dynamic>()))); })(),
patchingMode: pulumi.Input.fromValue(map['patchingMode'] as String),
preference: pulumi.Input.fromValue(map['preference'] as String),
weeksOfMonths: (() { final guardedValue = map['weeksOfMonths']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as List).cast<int>()); })(),
);
}