@@ -102,12 +102,12 @@ instance ToJSON Empty where
102-- /See:/ 'report' smart constructor.
102-- /See:/ 'report' smart constructor.
103data Report = Report'
103data Report = Report'
104 { _rJobId :: !(Maybe Text)
104 { _rJobId :: !(Maybe Text)
105− , _rStartTime :: !(Maybe Text)
105+ , _rStartTime :: !(Maybe DateTime')
106 , _rDownloadURL :: !(Maybe Text)
106 , _rDownloadURL :: !(Maybe Text)
107− , _rEndTime :: !(Maybe Text)
107+ , _rEndTime :: !(Maybe DateTime')
108 , _rId :: !(Maybe Text)
108 , _rId :: !(Maybe Text)
109− , _rCreateTime :: !(Maybe Text)
109+ , _rCreateTime :: !(Maybe DateTime')
110− , _rJobExpireTime :: !(Maybe Text)
110+ , _rJobExpireTime :: !(Maybe DateTime')
111 } deriving (Eq,Show,Data,Typeable,Generic)
111 } deriving (Eq,Show,Data,Typeable,Generic)
113-- | Creates a value of 'Report' with the minimum fields required to make a request.
113-- | Creates a value of 'Report' with the minimum fields required to make a request.
@@ -146,9 +146,10 @@ rJobId = lens _rJobId (\ s a -> s{_rJobId = a})
147-- | The start of the time period that the report instance covers. The value
147-- | The start of the time period that the report instance covers. The value
148-- is inclusive.
148-- is inclusive.
149−rStartTime :: Lens' Report (Maybe Text)
149+rStartTime :: Lens' Report (Maybe UTCTime)
150rStartTime
150rStartTime
151− = lens _rStartTime (\ s a -> s{_rStartTime = a})
151+ = lens _rStartTime (\ s a -> s{_rStartTime = a}) .
153-- | The URL from which the report can be downloaded (max. 1000 characters).
154-- | The URL from which the report can be downloaded (max. 1000 characters).
154rDownloadURL :: Lens' Report (Maybe Text)
155rDownloadURL :: Lens' Report (Maybe Text)
@@ -157,23 +158,27 @@ rDownloadURL
158-- | The end of the time period that the report instance covers. The value is
159-- | The end of the time period that the report instance covers. The value is
159-- exclusive.
160-- exclusive.
160−rEndTime :: Lens' Report (Maybe Text)
161+rEndTime :: Lens' Report (Maybe UTCTime)
161−rEndTime = lens _rEndTime (\ s a -> s{_rEndTime = a})
163+ = lens _rEndTime (\ s a -> s{_rEndTime = a}) .
163-- | The server-generated ID of the report.
166-- | The server-generated ID of the report.
164rId :: Lens' Report (Maybe Text)
167rId :: Lens' Report (Maybe Text)
165rId = lens _rId (\ s a -> s{_rId = a})
168rId = lens _rId (\ s a -> s{_rId = a})
167-- | The date\/time when this report was created.
170-- | The date\/time when this report was created.
168−rCreateTime :: Lens' Report (Maybe Text)
171+rCreateTime :: Lens' Report (Maybe UTCTime)
169rCreateTime
172rCreateTime
170− = lens _rCreateTime (\ s a -> s{_rCreateTime = a})
173+ = lens _rCreateTime (\ s a -> s{_rCreateTime = a}) .
172-- | The date\/time when the job this report belongs to will expire\/expired.
176-- | The date\/time when the job this report belongs to will expire\/expired.
173−rJobExpireTime :: Lens' Report (Maybe Text)
177+rJobExpireTime :: Lens' Report (Maybe UTCTime)
174rJobExpireTime
178rJobExpireTime
175 = lens _rJobExpireTime
179 = lens _rJobExpireTime
176 (\ s a -> s{_rJobExpireTime = a})
180 (\ s a -> s{_rJobExpireTime = a})
178instance FromJSON Report where
183instance FromJSON Report where
179 parseJSON
184 parseJSON
@@ -295,8 +300,8 @@ data Job = Job'
295 , _jId :: !(Maybe Text)
300 , _jId :: !(Maybe Text)
296 , _jSystemManaged :: !(Maybe Bool)
301 , _jSystemManaged :: !(Maybe Bool)
297 , _jReportTypeId :: !(Maybe Text)
302 , _jReportTypeId :: !(Maybe Text)
298− , _jExpireTime :: !(Maybe Text)
303+ , _jExpireTime :: !(Maybe DateTime')
299− , _jCreateTime :: !(Maybe Text)
304+ , _jCreateTime :: !(Maybe DateTime')
300 } deriving (Eq,Show,Data,Typeable,Generic)
305 } deriving (Eq,Show,Data,Typeable,Generic)
302-- | Creates a value of 'Job' with the minimum fields required to make a request.
307-- | Creates a value of 'Job' with the minimum fields required to make a request.
@@ -350,14 +355,16 @@ jReportTypeId
351-- | The date\/time when this job will expire\/expired. After a job expired,
356-- | The date\/time when this job will expire\/expired. After a job expired,
352-- no new reports are generated.
357-- no new reports are generated.
353−jExpireTime :: Lens' Job (Maybe Text)
358+jExpireTime :: Lens' Job (Maybe UTCTime)
354jExpireTime
359jExpireTime
355− = lens _jExpireTime (\ s a -> s{_jExpireTime = a})
360+ = lens _jExpireTime (\ s a -> s{_jExpireTime = a}) .
357-- | The creation date\/time of the job.
363-- | The creation date\/time of the job.
358−jCreateTime :: Lens' Job (Maybe Text)
364+jCreateTime :: Lens' Job (Maybe UTCTime)
359jCreateTime
365jCreateTime
360− = lens _jCreateTime (\ s a -> s{_jCreateTime = a})
366+ = lens _jCreateTime (\ s a -> s{_jCreateTime = a}) .
362instance FromJSON Job where
369instance FromJSON Job where
363 parseJSON
370 parseJSON
@@ -438,7 +445,7 @@ instance ToJSON ListJobsResponse where
438data ReportType = ReportType'
445data ReportType = ReportType'
439 { _rtName :: !(Maybe Text)
446 { _rtName :: !(Maybe Text)
440 , _rtId :: !(Maybe Text)
447 , _rtId :: !(Maybe Text)
441− , _rtDeprecateTime :: !(Maybe Text)
448+ , _rtDeprecateTime :: !(Maybe DateTime')
442 , _rtSystemManaged :: !(Maybe Bool)
449 , _rtSystemManaged :: !(Maybe Bool)
443 } deriving (Eq,Show,Data,Typeable,Generic)
450 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -472,10 +479,11 @@ rtId :: Lens' ReportType (Maybe Text)
472rtId = lens _rtId (\ s a -> s{_rtId = a})
479rtId = lens _rtId (\ s a -> s{_rtId = a})
474-- | The date\/time when this report type was\/will be deprecated.
481-- | The date\/time when this report type was\/will be deprecated.
475−rtDeprecateTime :: Lens' ReportType (Maybe Text)
482+rtDeprecateTime :: Lens' ReportType (Maybe UTCTime)
476rtDeprecateTime
483rtDeprecateTime
477 = lens _rtDeprecateTime
484 = lens _rtDeprecateTime
478 (\ s a -> s{_rtDeprecateTime = a})
485 (\ s a -> s{_rtDeprecateTime = a})
480-- | True if this a system-managed report type; otherwise false. Reporting
488-- | True if this a system-managed report type; otherwise false. Reporting
481-- jobs for system-managed report types are created automatically and can
489-- jobs for system-managed report types are created automatically and can