@@ -307,6 +307,7 @@ data Operation = Operation'
307 , _oId :: !(Maybe (Textual Word64))
307 , _oId :: !(Maybe (Textual Word64))
308 , _oOperationType :: !(Maybe Text)
308 , _oOperationType :: !(Maybe Text)
309 , _oRegion :: !(Maybe Text)
309 , _oRegion :: !(Maybe Text)
310+ , _oDescription :: !(Maybe Text)
310 , _oTargetLink :: !(Maybe Text)
311 , _oTargetLink :: !(Maybe Text)
311 , _oClientOperationId :: !(Maybe Text)
312 , _oClientOperationId :: !(Maybe Text)
312 } deriving (Eq,Show,Data,Typeable,Generic)
313 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -355,6 +356,8 @@ data Operation = Operation'
356-- * 'oRegion'
357-- * 'oRegion'
358-- * 'oTargetLink'
361-- * 'oTargetLink'
360-- * 'oClientOperationId'
363-- * 'oClientOperationId'
@@ -382,6 +385,7 @@ operation =
382 , _oId = Nothing
385 , _oId = Nothing
383 , _oOperationType = Nothing
386 , _oOperationType = Nothing
384 , _oRegion = Nothing
387 , _oRegion = Nothing
388+ , _oDescription = Nothing
385 , _oTargetLink = Nothing
389 , _oTargetLink = Nothing
386 , _oClientOperationId = Nothing
390 , _oClientOperationId = Nothing
@@ -407,7 +411,7 @@ oStartTime :: Lens' Operation (Maybe Text)
407oStartTime
411oStartTime
408 = lens _oStartTime (\ s a -> s{_oStartTime = a})
412 = lens _oStartTime (\ s a -> s{_oStartTime = a})
410−-- | [Output Only] Type of the resource. Always compute#Operation for
414+-- | [Output Only] Type of the resource. Always compute#operation for
411-- Operation resources.
415-- Operation resources.
412oKind :: Lens' Operation Text
416oKind :: Lens' Operation Text
413oKind = lens _oKind (\ s a -> s{_oKind = a})
417oKind = lens _oKind (\ s a -> s{_oKind = a})
@@ -470,6 +474,10 @@ oOperationType
470oRegion :: Lens' Operation (Maybe Text)
474oRegion :: Lens' Operation (Maybe Text)
471oRegion = lens _oRegion (\ s a -> s{_oRegion = a})
475oRegion = lens _oRegion (\ s a -> s{_oRegion = a})
477+oDescription :: Lens' Operation (Maybe Text)
479+ = lens _oDescription (\ s a -> s{_oDescription = a})
473oTargetLink :: Lens' Operation (Maybe Text)
481oTargetLink :: Lens' Operation (Maybe Text)
474oTargetLink
482oTargetLink
475 = lens _oTargetLink (\ s a -> s{_oTargetLink = a})
483 = lens _oTargetLink (\ s a -> s{_oTargetLink = a})
@@ -503,6 +511,7 @@ instance FromJSON Operation where
503 <*> (o .:? "id")
511 <*> (o .:? "id")
504 <*> (o .:? "operationType")
512 <*> (o .:? "operationType")
505 <*> (o .:? "region")
513 <*> (o .:? "region")
514+ <*> (o .:? "description")
506 <*> (o .:? "targetLink")
515 <*> (o .:? "targetLink")
507 <*> (o .:? "clientOperationId"))
516 <*> (o .:? "clientOperationId"))
@@ -528,6 +537,7 @@ instance ToJSON Operation where
528 ("endTime" .=) <$> _oEndTime, ("id" .=) <$> _oId,
537 ("endTime" .=) <$> _oEndTime, ("id" .=) <$> _oId,
529 ("operationType" .=) <$> _oOperationType,
538 ("operationType" .=) <$> _oOperationType,
530 ("region" .=) <$> _oRegion,
539 ("region" .=) <$> _oRegion,
540+ ("description" .=) <$> _oDescription,
531 ("targetLink" .=) <$> _oTargetLink,
541 ("targetLink" .=) <$> _oTargetLink,
532 ("clientOperationId" .=) <$> _oClientOperationId])
542 ("clientOperationId" .=) <$> _oClientOperationId])
@@ -582,16 +592,15 @@ instance ToJSON
583-- /See:/ 'zone' smart constructor.
593-- /See:/ 'zone' smart constructor.
584data Zone = Zone'
594data Zone = Zone'
585− { _zStatus :: !(Maybe Text)
595+ { _zStatus :: !(Maybe Text)
586− , _zMaintenanceWindows :: !(Maybe [ZoneMaintenanceWindowsItem])
587− , _zKind :: !Text
596+ , _zKind :: !Text
588− , _zSelfLink :: !(Maybe Text)
597+ , _zSelfLink :: !(Maybe Text)
589− , _zName :: !(Maybe Text)
598+ , _zName :: !(Maybe Text)
590− , _zCreationTimestamp :: !(Maybe Text)
599+ , _zCreationTimestamp :: !(Maybe Text)
591− , _zId :: !(Maybe (Textual Word64))
600+ , _zId :: !(Maybe (Textual Word64))
592− , _zRegion :: !(Maybe Text)
601+ , _zRegion :: !(Maybe Text)
593− , _zDescription :: !(Maybe Text)
602+ , _zDescription :: !(Maybe Text)
594− , _zDeprecated :: !(Maybe DeprecationStatus)
603+ , _zDeprecated :: !(Maybe DeprecationStatus)
595 } deriving (Eq,Show,Data,Typeable,Generic)
604 } deriving (Eq,Show,Data,Typeable,Generic)
597-- | Creates a value of 'Zone' with the minimum fields required to make a request.
606-- | Creates a value of 'Zone' with the minimum fields required to make a request.
@@ -600,8 +609,6 @@ data Zone = Zone'
601-- * 'zStatus'
610-- * 'zStatus'
603−-- * 'zMaintenanceWindows'
605-- * 'zKind'
612-- * 'zKind'
607-- * 'zSelfLink'
614-- * 'zSelfLink'
@@ -622,7 +629,6 @@ zone
624 { _zStatus = Nothing
631 { _zStatus = Nothing
625− , _zMaintenanceWindows = Nothing
626 , _zKind = "autoscaler#zone"
632 , _zKind = "autoscaler#zone"
627 , _zSelfLink = Nothing
633 , _zSelfLink = Nothing
628 , _zName = Nothing
634 , _zName = Nothing
@@ -636,18 +642,10 @@ zone =
636zStatus :: Lens' Zone (Maybe Text)
642zStatus :: Lens' Zone (Maybe Text)
637zStatus = lens _zStatus (\ s a -> s{_zStatus = a})
643zStatus = lens _zStatus (\ s a -> s{_zStatus = a})
639−zMaintenanceWindows :: Lens' Zone [ZoneMaintenanceWindowsItem]
641− = lens _zMaintenanceWindows
642− (\ s a -> s{_zMaintenanceWindows = a})
646−-- | [Output Only] Type of the resource. Always kind#zone for zones.
645+-- | [Output Only] Type of the resource. Always compute#zone for zones.
647zKind :: Lens' Zone Text
646zKind :: Lens' Zone Text
648zKind = lens _zKind (\ s a -> s{_zKind = a})
647zKind = lens _zKind (\ s a -> s{_zKind = a})
650−-- | [Output Only] Server defined URL for the resource.
651zSelfLink :: Lens' Zone (Maybe Text)
649zSelfLink :: Lens' Zone (Maybe Text)
653 = lens _zSelfLink (\ s a -> s{_zSelfLink = a})
651 = lens _zSelfLink (\ s a -> s{_zSelfLink = a})
@@ -681,8 +679,7 @@ instance FromJSON Zone where
682 Zone' <$>
680 Zone' <$>
683 (o .:? "status") <*>
681 (o .:? "status") <*>
684− (o .:? "maintenanceWindows" .!= mempty)
685− <*> (o .:? "kind" .!= "autoscaler#zone")
682+ (o .:? "kind" .!= "autoscaler#zone")
686 <*> (o .:? "selfLink")
683 <*> (o .:? "selfLink")
687 <*> (o .:? "name")
684 <*> (o .:? "name")
688 <*> (o .:? "creationTimestamp")
685 <*> (o .:? "creationTimestamp")
@@ -695,9 +692,7 @@ instance ToJSON Zone where
695 toJSON Zone'{..}
692 toJSON Zone'{..}
697 (catMaybes
694 (catMaybes
698− [("status" .=) <$> _zStatus,
695+ [("status" .=) <$> _zStatus, Just ("kind" .= _zKind),
699− ("maintenanceWindows" .=) <$> _zMaintenanceWindows,
700− Just ("kind" .= _zKind),
701 ("selfLink" .=) <$> _zSelfLink,
696 ("selfLink" .=) <$> _zSelfLink,
702 ("name" .=) <$> _zName,
697 ("name" .=) <$> _zName,
703 ("creationTimestamp" .=) <$> _zCreationTimestamp,
698 ("creationTimestamp" .=) <$> _zCreationTimestamp,
@@ -705,71 +700,6 @@ instance ToJSON Zone where
705 ("description" .=) <$> _zDescription,
700 ("description" .=) <$> _zDescription,
706 ("deprecated" .=) <$> _zDeprecated])
701 ("deprecated" .=) <$> _zDeprecated])
709−-- /See:/ 'zoneMaintenanceWindowsItem' smart constructor.
710−data ZoneMaintenanceWindowsItem = ZoneMaintenanceWindowsItem'
711− { _zmwiBeginTime :: !(Maybe Text)
712− , _zmwiName :: !(Maybe Text)
713− , _zmwiEndTime :: !(Maybe Text)
714− , _zmwiDescription :: !(Maybe Text)
715− } deriving (Eq,Show,Data,Typeable,Generic)
717−-- | Creates a value of 'ZoneMaintenanceWindowsItem' with the minimum fields required to make a request.
719−-- Use one of the following lenses to modify other fields as desired:
727−-- * 'zmwiDescription'
728−zoneMaintenanceWindowsItem
729− :: ZoneMaintenanceWindowsItem
730−zoneMaintenanceWindowsItem =
731− ZoneMaintenanceWindowsItem'
732− { _zmwiBeginTime = Nothing
733− , _zmwiName = Nothing
734− , _zmwiEndTime = Nothing
735− , _zmwiDescription = Nothing
738−zmwiBeginTime :: Lens' ZoneMaintenanceWindowsItem (Maybe Text)
740− = lens _zmwiBeginTime
741− (\ s a -> s{_zmwiBeginTime = a})
743−zmwiName :: Lens' ZoneMaintenanceWindowsItem (Maybe Text)
744−zmwiName = lens _zmwiName (\ s a -> s{_zmwiName = a})
746−zmwiEndTime :: Lens' ZoneMaintenanceWindowsItem (Maybe Text)
748− = lens _zmwiEndTime (\ s a -> s{_zmwiEndTime = a})
750−zmwiDescription :: Lens' ZoneMaintenanceWindowsItem (Maybe Text)
752− = lens _zmwiDescription
753− (\ s a -> s{_zmwiDescription = a})
755−instance FromJSON ZoneMaintenanceWindowsItem where
757− = withObject "ZoneMaintenanceWindowsItem"
759− ZoneMaintenanceWindowsItem' <$>
760− (o .:? "beginTime") <*> (o .:? "name") <*>
762− <*> (o .:? "description"))
764−instance ToJSON ZoneMaintenanceWindowsItem where
765− toJSON ZoneMaintenanceWindowsItem'{..}
768− [("beginTime" .=) <$> _zmwiBeginTime,
769− ("name" .=) <$> _zmwiName,
770− ("endTime" .=) <$> _zmwiEndTime,
771− ("description" .=) <$> _zmwiDescription])
774-- /See:/ 'zoneList' smart constructor.
704-- /See:/ 'zoneList' smart constructor.
775data ZoneList = ZoneList'
705data ZoneList = ZoneList'
@@ -818,7 +748,7 @@ zlItems
818 = lens _zlItems (\ s a -> s{_zlItems = a}) . _Default
748 = lens _zlItems (\ s a -> s{_zlItems = a}) . _Default
819 . _Coerce
749 . _Coerce
821−-- | Server defined URL for this resource (output only).
751+-- | [Output Only] Server-defined URL for this resource.
822zlSelfLink :: Lens' ZoneList (Maybe Text)
752zlSelfLink :: Lens' ZoneList (Maybe Text)
823zlSelfLink
753zlSelfLink
824 = lens _zlSelfLink (\ s a -> s{_zlSelfLink = a})
754 = lens _zlSelfLink (\ s a -> s{_zlSelfLink = a})
@@ -960,8 +890,7 @@ apMaxNumReplicas
960 (\ s a -> s{_apMaxNumReplicas = a})
890 (\ s a -> s{_apMaxNumReplicas = a})
961 . mapping _Coerce
891 . mapping _Coerce
963−-- | Exactly one utilization policy should be provided. Configuration
964−-- parameters of CPU based autoscaling policy.
893+-- | Configuration parameters of CPU based autoscaling policy.
965apCPUUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyCPUUtilization)
894apCPUUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyCPUUtilization)
966apCPUUtilization
895apCPUUtilization
967 = lens _apCPUUtilization
896 = lens _apCPUUtilization