{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Compute.Types.Product where
import Network.Google.Compute.Types.Sum
import Network.Google.Prelude
data InstanceAggregatedListWarning =
InstanceAggregatedListWarning'
{ _ialwData :: !(Maybe [InstanceAggregatedListWarningDataItem])
, _ialwCode :: !(Maybe InstanceAggregatedListWarningCode)
, _ialwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceAggregatedListWarning
:: InstanceAggregatedListWarning
instanceAggregatedListWarning =
InstanceAggregatedListWarning'
{_ialwData = Nothing, _ialwCode = Nothing, _ialwMessage = Nothing}
ialwData :: Lens' InstanceAggregatedListWarning [InstanceAggregatedListWarningDataItem]
ialwData
= lens _ialwData (\ s a -> s{_ialwData = a}) .
_Default
. _Coerce
ialwCode :: Lens' InstanceAggregatedListWarning (Maybe InstanceAggregatedListWarningCode)
ialwCode = lens _ialwCode (\ s a -> s{_ialwCode = a})
ialwMessage :: Lens' InstanceAggregatedListWarning (Maybe Text)
ialwMessage
= lens _ialwMessage (\ s a -> s{_ialwMessage = a})
instance FromJSON InstanceAggregatedListWarning where
parseJSON
= withObject "InstanceAggregatedListWarning"
(\ o ->
InstanceAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceAggregatedListWarning where
toJSON InstanceAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ialwData,
("code" .=) <$> _ialwCode,
("message" .=) <$> _ialwMessage])
data TargetHTTPSProxyList =
TargetHTTPSProxyList'
{ _thplNextPageToken :: !(Maybe Text)
, _thplKind :: !Text
, _thplItems :: !(Maybe [TargetHTTPSProxy])
, _thplSelfLink :: !(Maybe Text)
, _thplWarning :: !(Maybe TargetHTTPSProxyListWarning)
, _thplId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPSProxyList
:: TargetHTTPSProxyList
targetHTTPSProxyList =
TargetHTTPSProxyList'
{ _thplNextPageToken = Nothing
, _thplKind = "compute#targetHttpsProxyList"
, _thplItems = Nothing
, _thplSelfLink = Nothing
, _thplWarning = Nothing
, _thplId = Nothing
}
thplNextPageToken :: Lens' TargetHTTPSProxyList (Maybe Text)
thplNextPageToken
= lens _thplNextPageToken
(\ s a -> s{_thplNextPageToken = a})
thplKind :: Lens' TargetHTTPSProxyList Text
thplKind = lens _thplKind (\ s a -> s{_thplKind = a})
thplItems :: Lens' TargetHTTPSProxyList [TargetHTTPSProxy]
thplItems
= lens _thplItems (\ s a -> s{_thplItems = a}) .
_Default
. _Coerce
thplSelfLink :: Lens' TargetHTTPSProxyList (Maybe Text)
thplSelfLink
= lens _thplSelfLink (\ s a -> s{_thplSelfLink = a})
thplWarning :: Lens' TargetHTTPSProxyList (Maybe TargetHTTPSProxyListWarning)
thplWarning
= lens _thplWarning (\ s a -> s{_thplWarning = a})
thplId :: Lens' TargetHTTPSProxyList (Maybe Text)
thplId = lens _thplId (\ s a -> s{_thplId = a})
instance FromJSON TargetHTTPSProxyList where
parseJSON
= withObject "TargetHTTPSProxyList"
(\ o ->
TargetHTTPSProxyList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetHttpsProxyList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetHTTPSProxyList where
toJSON TargetHTTPSProxyList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _thplNextPageToken,
Just ("kind" .= _thplKind),
("items" .=) <$> _thplItems,
("selfLink" .=) <$> _thplSelfLink,
("warning" .=) <$> _thplWarning,
("id" .=) <$> _thplId])
data RoutersScopedList =
RoutersScopedList'
{ _rslRouters :: !(Maybe [Router])
, _rslWarning :: !(Maybe RoutersScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
routersScopedList
:: RoutersScopedList
routersScopedList =
RoutersScopedList' {_rslRouters = Nothing, _rslWarning = Nothing}
rslRouters :: Lens' RoutersScopedList [Router]
rslRouters
= lens _rslRouters (\ s a -> s{_rslRouters = a}) .
_Default
. _Coerce
rslWarning :: Lens' RoutersScopedList (Maybe RoutersScopedListWarning)
rslWarning
= lens _rslWarning (\ s a -> s{_rslWarning = a})
instance FromJSON RoutersScopedList where
parseJSON
= withObject "RoutersScopedList"
(\ o ->
RoutersScopedList' <$>
(o .:? "routers" .!= mempty) <*> (o .:? "warning"))
instance ToJSON RoutersScopedList where
toJSON RoutersScopedList'{..}
= object
(catMaybes
[("routers" .=) <$> _rslRouters,
("warning" .=) <$> _rslWarning])
data RouterStatusResponse =
RouterStatusResponse'
{ _rsrKind :: !Text
, _rsrResult :: !(Maybe RouterStatus)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerStatusResponse
:: RouterStatusResponse
routerStatusResponse =
RouterStatusResponse'
{_rsrKind = "compute#routerStatusResponse", _rsrResult = Nothing}
rsrKind :: Lens' RouterStatusResponse Text
rsrKind = lens _rsrKind (\ s a -> s{_rsrKind = a})
rsrResult :: Lens' RouterStatusResponse (Maybe RouterStatus)
rsrResult
= lens _rsrResult (\ s a -> s{_rsrResult = a})
instance FromJSON RouterStatusResponse where
parseJSON
= withObject "RouterStatusResponse"
(\ o ->
RouterStatusResponse' <$>
(o .:? "kind" .!= "compute#routerStatusResponse") <*>
(o .:? "result"))
instance ToJSON RouterStatusResponse where
toJSON RouterStatusResponse'{..}
= object
(catMaybes
[Just ("kind" .= _rsrKind),
("result" .=) <$> _rsrResult])
newtype RegionInstanceGroupManagersDeleteInstancesRequest =
RegionInstanceGroupManagersDeleteInstancesRequest'
{ _rigmdirInstances :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagersDeleteInstancesRequest
:: RegionInstanceGroupManagersDeleteInstancesRequest
regionInstanceGroupManagersDeleteInstancesRequest =
RegionInstanceGroupManagersDeleteInstancesRequest'
{_rigmdirInstances = Nothing}
rigmdirInstances :: Lens' RegionInstanceGroupManagersDeleteInstancesRequest [Text]
rigmdirInstances
= lens _rigmdirInstances
(\ s a -> s{_rigmdirInstances = a})
. _Default
. _Coerce
instance FromJSON
RegionInstanceGroupManagersDeleteInstancesRequest
where
parseJSON
= withObject
"RegionInstanceGroupManagersDeleteInstancesRequest"
(\ o ->
RegionInstanceGroupManagersDeleteInstancesRequest'
<$> (o .:? "instances" .!= mempty))
instance ToJSON
RegionInstanceGroupManagersDeleteInstancesRequest
where
toJSON
RegionInstanceGroupManagersDeleteInstancesRequest'{..}
= object
(catMaybes [("instances" .=) <$> _rigmdirInstances])
data InterconnectDiagnosticsLinkLACPStatus =
InterconnectDiagnosticsLinkLACPStatus'
{ _idllacpsState :: !(Maybe InterconnectDiagnosticsLinkLACPStatusState)
, _idllacpsNeighborSystemId :: !(Maybe Text)
, _idllacpsGoogleSystemId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectDiagnosticsLinkLACPStatus
:: InterconnectDiagnosticsLinkLACPStatus
interconnectDiagnosticsLinkLACPStatus =
InterconnectDiagnosticsLinkLACPStatus'
{ _idllacpsState = Nothing
, _idllacpsNeighborSystemId = Nothing
, _idllacpsGoogleSystemId = Nothing
}
idllacpsState :: Lens' InterconnectDiagnosticsLinkLACPStatus (Maybe InterconnectDiagnosticsLinkLACPStatusState)
idllacpsState
= lens _idllacpsState
(\ s a -> s{_idllacpsState = a})
idllacpsNeighborSystemId :: Lens' InterconnectDiagnosticsLinkLACPStatus (Maybe Text)
idllacpsNeighborSystemId
= lens _idllacpsNeighborSystemId
(\ s a -> s{_idllacpsNeighborSystemId = a})
idllacpsGoogleSystemId :: Lens' InterconnectDiagnosticsLinkLACPStatus (Maybe Text)
idllacpsGoogleSystemId
= lens _idllacpsGoogleSystemId
(\ s a -> s{_idllacpsGoogleSystemId = a})
instance FromJSON
InterconnectDiagnosticsLinkLACPStatus
where
parseJSON
= withObject "InterconnectDiagnosticsLinkLACPStatus"
(\ o ->
InterconnectDiagnosticsLinkLACPStatus' <$>
(o .:? "state") <*> (o .:? "neighborSystemId") <*>
(o .:? "googleSystemId"))
instance ToJSON InterconnectDiagnosticsLinkLACPStatus
where
toJSON InterconnectDiagnosticsLinkLACPStatus'{..}
= object
(catMaybes
[("state" .=) <$> _idllacpsState,
("neighborSystemId" .=) <$>
_idllacpsNeighborSystemId,
("googleSystemId" .=) <$> _idllacpsGoogleSystemId])
data AddressesScopedList =
AddressesScopedList'
{ _aslAddresses :: !(Maybe [Address])
, _aslWarning :: !(Maybe AddressesScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressesScopedList
:: AddressesScopedList
addressesScopedList =
AddressesScopedList' {_aslAddresses = Nothing, _aslWarning = Nothing}
aslAddresses :: Lens' AddressesScopedList [Address]
aslAddresses
= lens _aslAddresses (\ s a -> s{_aslAddresses = a})
. _Default
. _Coerce
aslWarning :: Lens' AddressesScopedList (Maybe AddressesScopedListWarning)
aslWarning
= lens _aslWarning (\ s a -> s{_aslWarning = a})
instance FromJSON AddressesScopedList where
parseJSON
= withObject "AddressesScopedList"
(\ o ->
AddressesScopedList' <$>
(o .:? "addresses" .!= mempty) <*> (o .:? "warning"))
instance ToJSON AddressesScopedList where
toJSON AddressesScopedList'{..}
= object
(catMaybes
[("addresses" .=) <$> _aslAddresses,
("warning" .=) <$> _aslWarning])
data OperationWarningsItemDataItem =
OperationWarningsItemDataItem'
{ _owidiValue :: !(Maybe Text)
, _owidiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationWarningsItemDataItem
:: OperationWarningsItemDataItem
operationWarningsItemDataItem =
OperationWarningsItemDataItem' {_owidiValue = Nothing, _owidiKey = Nothing}
owidiValue :: Lens' OperationWarningsItemDataItem (Maybe Text)
owidiValue
= lens _owidiValue (\ s a -> s{_owidiValue = a})
owidiKey :: Lens' OperationWarningsItemDataItem (Maybe Text)
owidiKey = lens _owidiKey (\ s a -> s{_owidiKey = a})
instance FromJSON OperationWarningsItemDataItem where
parseJSON
= withObject "OperationWarningsItemDataItem"
(\ o ->
OperationWarningsItemDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON OperationWarningsItemDataItem where
toJSON OperationWarningsItemDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _owidiValue,
("key" .=) <$> _owidiKey])
data InstanceGroupManagerUpdatePolicy =
InstanceGroupManagerUpdatePolicy'
{ _igmupMaxSurge :: !(Maybe FixedOrPercent)
, _igmupMaxUnavailable :: !(Maybe FixedOrPercent)
, _igmupMinimalAction :: !(Maybe InstanceGroupManagerUpdatePolicyMinimalAction)
, _igmupType :: !(Maybe InstanceGroupManagerUpdatePolicyType)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerUpdatePolicy
:: InstanceGroupManagerUpdatePolicy
instanceGroupManagerUpdatePolicy =
InstanceGroupManagerUpdatePolicy'
{ _igmupMaxSurge = Nothing
, _igmupMaxUnavailable = Nothing
, _igmupMinimalAction = Nothing
, _igmupType = Nothing
}
igmupMaxSurge :: Lens' InstanceGroupManagerUpdatePolicy (Maybe FixedOrPercent)
igmupMaxSurge
= lens _igmupMaxSurge
(\ s a -> s{_igmupMaxSurge = a})
igmupMaxUnavailable :: Lens' InstanceGroupManagerUpdatePolicy (Maybe FixedOrPercent)
igmupMaxUnavailable
= lens _igmupMaxUnavailable
(\ s a -> s{_igmupMaxUnavailable = a})
igmupMinimalAction :: Lens' InstanceGroupManagerUpdatePolicy (Maybe InstanceGroupManagerUpdatePolicyMinimalAction)
igmupMinimalAction
= lens _igmupMinimalAction
(\ s a -> s{_igmupMinimalAction = a})
igmupType :: Lens' InstanceGroupManagerUpdatePolicy (Maybe InstanceGroupManagerUpdatePolicyType)
igmupType
= lens _igmupType (\ s a -> s{_igmupType = a})
instance FromJSON InstanceGroupManagerUpdatePolicy
where
parseJSON
= withObject "InstanceGroupManagerUpdatePolicy"
(\ o ->
InstanceGroupManagerUpdatePolicy' <$>
(o .:? "maxSurge") <*> (o .:? "maxUnavailable") <*>
(o .:? "minimalAction")
<*> (o .:? "type"))
instance ToJSON InstanceGroupManagerUpdatePolicy
where
toJSON InstanceGroupManagerUpdatePolicy'{..}
= object
(catMaybes
[("maxSurge" .=) <$> _igmupMaxSurge,
("maxUnavailable" .=) <$> _igmupMaxUnavailable,
("minimalAction" .=) <$> _igmupMinimalAction,
("type" .=) <$> _igmupType])
data RegionInstanceGroupsListInstancesRequest =
RegionInstanceGroupsListInstancesRequest'
{ _riglirInstanceState :: !(Maybe RegionInstanceGroupsListInstancesRequestInstanceState)
, _riglirPortName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupsListInstancesRequest
:: RegionInstanceGroupsListInstancesRequest
regionInstanceGroupsListInstancesRequest =
RegionInstanceGroupsListInstancesRequest'
{_riglirInstanceState = Nothing, _riglirPortName = Nothing}
riglirInstanceState :: Lens' RegionInstanceGroupsListInstancesRequest (Maybe RegionInstanceGroupsListInstancesRequestInstanceState)
riglirInstanceState
= lens _riglirInstanceState
(\ s a -> s{_riglirInstanceState = a})
riglirPortName :: Lens' RegionInstanceGroupsListInstancesRequest (Maybe Text)
riglirPortName
= lens _riglirPortName
(\ s a -> s{_riglirPortName = a})
instance FromJSON
RegionInstanceGroupsListInstancesRequest
where
parseJSON
= withObject
"RegionInstanceGroupsListInstancesRequest"
(\ o ->
RegionInstanceGroupsListInstancesRequest' <$>
(o .:? "instanceState") <*> (o .:? "portName"))
instance ToJSON
RegionInstanceGroupsListInstancesRequest
where
toJSON RegionInstanceGroupsListInstancesRequest'{..}
= object
(catMaybes
[("instanceState" .=) <$> _riglirInstanceState,
("portName" .=) <$> _riglirPortName])
data BackendServiceAggregatedListWarning =
BackendServiceAggregatedListWarning'
{ _bsalwData :: !(Maybe [BackendServiceAggregatedListWarningDataItem])
, _bsalwCode :: !(Maybe BackendServiceAggregatedListWarningCode)
, _bsalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceAggregatedListWarning
:: BackendServiceAggregatedListWarning
backendServiceAggregatedListWarning =
BackendServiceAggregatedListWarning'
{_bsalwData = Nothing, _bsalwCode = Nothing, _bsalwMessage = Nothing}
bsalwData :: Lens' BackendServiceAggregatedListWarning [BackendServiceAggregatedListWarningDataItem]
bsalwData
= lens _bsalwData (\ s a -> s{_bsalwData = a}) .
_Default
. _Coerce
bsalwCode :: Lens' BackendServiceAggregatedListWarning (Maybe BackendServiceAggregatedListWarningCode)
bsalwCode
= lens _bsalwCode (\ s a -> s{_bsalwCode = a})
bsalwMessage :: Lens' BackendServiceAggregatedListWarning (Maybe Text)
bsalwMessage
= lens _bsalwMessage (\ s a -> s{_bsalwMessage = a})
instance FromJSON BackendServiceAggregatedListWarning
where
parseJSON
= withObject "BackendServiceAggregatedListWarning"
(\ o ->
BackendServiceAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON BackendServiceAggregatedListWarning
where
toJSON BackendServiceAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _bsalwData,
("code" .=) <$> _bsalwCode,
("message" .=) <$> _bsalwMessage])
data SSLPolicy =
SSLPolicy'
{ _spKind :: !Text
, _spFingerprint :: !(Maybe Bytes)
, _spProFile :: !(Maybe SSLPolicyProFile)
, _spWarnings :: !(Maybe [SSLPolicyWarningsItem])
, _spCustomFeatures :: !(Maybe [Text])
, _spSelfLink :: !(Maybe Text)
, _spName :: !(Maybe Text)
, _spCreationTimestamp :: !(Maybe Text)
, _spEnabledFeatures :: !(Maybe [Text])
, _spId :: !(Maybe (Textual Word64))
, _spMinTLSVersion :: !(Maybe SSLPolicyMinTLSVersion)
, _spDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPolicy
:: SSLPolicy
sslPolicy =
SSLPolicy'
{ _spKind = "compute#sslPolicy"
, _spFingerprint = Nothing
, _spProFile = Nothing
, _spWarnings = Nothing
, _spCustomFeatures = Nothing
, _spSelfLink = Nothing
, _spName = Nothing
, _spCreationTimestamp = Nothing
, _spEnabledFeatures = Nothing
, _spId = Nothing
, _spMinTLSVersion = Nothing
, _spDescription = Nothing
}
spKind :: Lens' SSLPolicy Text
spKind = lens _spKind (\ s a -> s{_spKind = a})
spFingerprint :: Lens' SSLPolicy (Maybe ByteString)
spFingerprint
= lens _spFingerprint
(\ s a -> s{_spFingerprint = a})
. mapping _Bytes
spProFile :: Lens' SSLPolicy (Maybe SSLPolicyProFile)
spProFile
= lens _spProFile (\ s a -> s{_spProFile = a})
spWarnings :: Lens' SSLPolicy [SSLPolicyWarningsItem]
spWarnings
= lens _spWarnings (\ s a -> s{_spWarnings = a}) .
_Default
. _Coerce
spCustomFeatures :: Lens' SSLPolicy [Text]
spCustomFeatures
= lens _spCustomFeatures
(\ s a -> s{_spCustomFeatures = a})
. _Default
. _Coerce
spSelfLink :: Lens' SSLPolicy (Maybe Text)
spSelfLink
= lens _spSelfLink (\ s a -> s{_spSelfLink = a})
spName :: Lens' SSLPolicy (Maybe Text)
spName = lens _spName (\ s a -> s{_spName = a})
spCreationTimestamp :: Lens' SSLPolicy (Maybe Text)
spCreationTimestamp
= lens _spCreationTimestamp
(\ s a -> s{_spCreationTimestamp = a})
spEnabledFeatures :: Lens' SSLPolicy [Text]
spEnabledFeatures
= lens _spEnabledFeatures
(\ s a -> s{_spEnabledFeatures = a})
. _Default
. _Coerce
spId :: Lens' SSLPolicy (Maybe Word64)
spId
= lens _spId (\ s a -> s{_spId = a}) .
mapping _Coerce
spMinTLSVersion :: Lens' SSLPolicy (Maybe SSLPolicyMinTLSVersion)
spMinTLSVersion
= lens _spMinTLSVersion
(\ s a -> s{_spMinTLSVersion = a})
spDescription :: Lens' SSLPolicy (Maybe Text)
spDescription
= lens _spDescription
(\ s a -> s{_spDescription = a})
instance FromJSON SSLPolicy where
parseJSON
= withObject "SSLPolicy"
(\ o ->
SSLPolicy' <$>
(o .:? "kind" .!= "compute#sslPolicy") <*>
(o .:? "fingerprint")
<*> (o .:? "profile")
<*> (o .:? "warnings" .!= mempty)
<*> (o .:? "customFeatures" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "enabledFeatures" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "minTlsVersion")
<*> (o .:? "description"))
instance ToJSON SSLPolicy where
toJSON SSLPolicy'{..}
= object
(catMaybes
[Just ("kind" .= _spKind),
("fingerprint" .=) <$> _spFingerprint,
("profile" .=) <$> _spProFile,
("warnings" .=) <$> _spWarnings,
("customFeatures" .=) <$> _spCustomFeatures,
("selfLink" .=) <$> _spSelfLink,
("name" .=) <$> _spName,
("creationTimestamp" .=) <$> _spCreationTimestamp,
("enabledFeatures" .=) <$> _spEnabledFeatures,
("id" .=) <$> _spId,
("minTlsVersion" .=) <$> _spMinTLSVersion,
("description" .=) <$> _spDescription])
data BackendServiceListWarningDataItem =
BackendServiceListWarningDataItem'
{ _bslwdiValue :: !(Maybe Text)
, _bslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceListWarningDataItem
:: BackendServiceListWarningDataItem
backendServiceListWarningDataItem =
BackendServiceListWarningDataItem'
{_bslwdiValue = Nothing, _bslwdiKey = Nothing}
bslwdiValue :: Lens' BackendServiceListWarningDataItem (Maybe Text)
bslwdiValue
= lens _bslwdiValue (\ s a -> s{_bslwdiValue = a})
bslwdiKey :: Lens' BackendServiceListWarningDataItem (Maybe Text)
bslwdiKey
= lens _bslwdiKey (\ s a -> s{_bslwdiKey = a})
instance FromJSON BackendServiceListWarningDataItem
where
parseJSON
= withObject "BackendServiceListWarningDataItem"
(\ o ->
BackendServiceListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON BackendServiceListWarningDataItem
where
toJSON BackendServiceListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _bslwdiValue,
("key" .=) <$> _bslwdiKey])
data FirewallDeniedItem =
FirewallDeniedItem'
{ _fdiIPProtocol :: !(Maybe Text)
, _fdiPorts :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
firewallDeniedItem
:: FirewallDeniedItem
firewallDeniedItem =
FirewallDeniedItem' {_fdiIPProtocol = Nothing, _fdiPorts = Nothing}
fdiIPProtocol :: Lens' FirewallDeniedItem (Maybe Text)
fdiIPProtocol
= lens _fdiIPProtocol
(\ s a -> s{_fdiIPProtocol = a})
fdiPorts :: Lens' FirewallDeniedItem [Text]
fdiPorts
= lens _fdiPorts (\ s a -> s{_fdiPorts = a}) .
_Default
. _Coerce
instance FromJSON FirewallDeniedItem where
parseJSON
= withObject "FirewallDeniedItem"
(\ o ->
FirewallDeniedItem' <$>
(o .:? "IPProtocol") <*> (o .:? "ports" .!= mempty))
instance ToJSON FirewallDeniedItem where
toJSON FirewallDeniedItem'{..}
= object
(catMaybes
[("IPProtocol" .=) <$> _fdiIPProtocol,
("ports" .=) <$> _fdiPorts])
newtype InstanceGroupManagersAbandonInstancesRequest =
InstanceGroupManagersAbandonInstancesRequest'
{ _igmairInstances :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersAbandonInstancesRequest
:: InstanceGroupManagersAbandonInstancesRequest
instanceGroupManagersAbandonInstancesRequest =
InstanceGroupManagersAbandonInstancesRequest' {_igmairInstances = Nothing}
igmairInstances :: Lens' InstanceGroupManagersAbandonInstancesRequest [Text]
igmairInstances
= lens _igmairInstances
(\ s a -> s{_igmairInstances = a})
. _Default
. _Coerce
instance FromJSON
InstanceGroupManagersAbandonInstancesRequest
where
parseJSON
= withObject
"InstanceGroupManagersAbandonInstancesRequest"
(\ o ->
InstanceGroupManagersAbandonInstancesRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON
InstanceGroupManagersAbandonInstancesRequest
where
toJSON
InstanceGroupManagersAbandonInstancesRequest'{..}
= object
(catMaybes [("instances" .=) <$> _igmairInstances])
newtype MachineTypeAggregatedListItems =
MachineTypeAggregatedListItems'
{ _mtaliAddtional :: HashMap Text MachineTypesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeAggregatedListItems
:: HashMap Text MachineTypesScopedList
-> MachineTypeAggregatedListItems
machineTypeAggregatedListItems pMtaliAddtional_ =
MachineTypeAggregatedListItems' {_mtaliAddtional = _Coerce # pMtaliAddtional_}
mtaliAddtional :: Lens' MachineTypeAggregatedListItems (HashMap Text MachineTypesScopedList)
mtaliAddtional
= lens _mtaliAddtional
(\ s a -> s{_mtaliAddtional = a})
. _Coerce
instance FromJSON MachineTypeAggregatedListItems
where
parseJSON
= withObject "MachineTypeAggregatedListItems"
(\ o ->
MachineTypeAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON MachineTypeAggregatedListItems where
toJSON = toJSON . _mtaliAddtional
newtype DiskTypeAggregatedListItems =
DiskTypeAggregatedListItems'
{ _dtaliAddtional :: HashMap Text DiskTypesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypeAggregatedListItems
:: HashMap Text DiskTypesScopedList
-> DiskTypeAggregatedListItems
diskTypeAggregatedListItems pDtaliAddtional_ =
DiskTypeAggregatedListItems' {_dtaliAddtional = _Coerce # pDtaliAddtional_}
dtaliAddtional :: Lens' DiskTypeAggregatedListItems (HashMap Text DiskTypesScopedList)
dtaliAddtional
= lens _dtaliAddtional
(\ s a -> s{_dtaliAddtional = a})
. _Coerce
instance FromJSON DiskTypeAggregatedListItems where
parseJSON
= withObject "DiskTypeAggregatedListItems"
(\ o ->
DiskTypeAggregatedListItems' <$> (parseJSONObject o))
instance ToJSON DiskTypeAggregatedListItems where
toJSON = toJSON . _dtaliAddtional
data InstancesSetLabelsRequest =
InstancesSetLabelsRequest'
{ _islrLabels :: !(Maybe InstancesSetLabelsRequestLabels)
, _islrLabelFingerprint :: !(Maybe Bytes)
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesSetLabelsRequest
:: InstancesSetLabelsRequest
instancesSetLabelsRequest =
InstancesSetLabelsRequest'
{_islrLabels = Nothing, _islrLabelFingerprint = Nothing}
islrLabels :: Lens' InstancesSetLabelsRequest (Maybe InstancesSetLabelsRequestLabels)
islrLabels
= lens _islrLabels (\ s a -> s{_islrLabels = a})
islrLabelFingerprint :: Lens' InstancesSetLabelsRequest (Maybe ByteString)
islrLabelFingerprint
= lens _islrLabelFingerprint
(\ s a -> s{_islrLabelFingerprint = a})
. mapping _Bytes
instance FromJSON InstancesSetLabelsRequest where
parseJSON
= withObject "InstancesSetLabelsRequest"
(\ o ->
InstancesSetLabelsRequest' <$>
(o .:? "labels") <*> (o .:? "labelFingerprint"))
instance ToJSON InstancesSetLabelsRequest where
toJSON InstancesSetLabelsRequest'{..}
= object
(catMaybes
[("labels" .=) <$> _islrLabels,
("labelFingerprint" .=) <$> _islrLabelFingerprint])
data RouterAggregatedList =
RouterAggregatedList'
{ _ralNextPageToken :: !(Maybe Text)
, _ralKind :: !Text
, _ralItems :: !(Maybe RouterAggregatedListItems)
, _ralSelfLink :: !(Maybe Text)
, _ralWarning :: !(Maybe RouterAggregatedListWarning)
, _ralId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerAggregatedList
:: RouterAggregatedList
routerAggregatedList =
RouterAggregatedList'
{ _ralNextPageToken = Nothing
, _ralKind = "compute#routerAggregatedList"
, _ralItems = Nothing
, _ralSelfLink = Nothing
, _ralWarning = Nothing
, _ralId = Nothing
}
ralNextPageToken :: Lens' RouterAggregatedList (Maybe Text)
ralNextPageToken
= lens _ralNextPageToken
(\ s a -> s{_ralNextPageToken = a})
ralKind :: Lens' RouterAggregatedList Text
ralKind = lens _ralKind (\ s a -> s{_ralKind = a})
ralItems :: Lens' RouterAggregatedList (Maybe RouterAggregatedListItems)
ralItems = lens _ralItems (\ s a -> s{_ralItems = a})
ralSelfLink :: Lens' RouterAggregatedList (Maybe Text)
ralSelfLink
= lens _ralSelfLink (\ s a -> s{_ralSelfLink = a})
ralWarning :: Lens' RouterAggregatedList (Maybe RouterAggregatedListWarning)
ralWarning
= lens _ralWarning (\ s a -> s{_ralWarning = a})
ralId :: Lens' RouterAggregatedList (Maybe Text)
ralId = lens _ralId (\ s a -> s{_ralId = a})
instance FromJSON RouterAggregatedList where
parseJSON
= withObject "RouterAggregatedList"
(\ o ->
RouterAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#routerAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RouterAggregatedList where
toJSON RouterAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ralNextPageToken,
Just ("kind" .= _ralKind),
("items" .=) <$> _ralItems,
("selfLink" .=) <$> _ralSelfLink,
("warning" .=) <$> _ralWarning,
("id" .=) <$> _ralId])
data FirewallList =
FirewallList'
{ _flNextPageToken :: !(Maybe Text)
, _flKind :: !Text
, _flItems :: !(Maybe [Firewall])
, _flSelfLink :: !(Maybe Text)
, _flWarning :: !(Maybe FirewallListWarning)
, _flId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
firewallList
:: FirewallList
firewallList =
FirewallList'
{ _flNextPageToken = Nothing
, _flKind = "compute#firewallList"
, _flItems = Nothing
, _flSelfLink = Nothing
, _flWarning = Nothing
, _flId = Nothing
}
flNextPageToken :: Lens' FirewallList (Maybe Text)
flNextPageToken
= lens _flNextPageToken
(\ s a -> s{_flNextPageToken = a})
flKind :: Lens' FirewallList Text
flKind = lens _flKind (\ s a -> s{_flKind = a})
flItems :: Lens' FirewallList [Firewall]
flItems
= lens _flItems (\ s a -> s{_flItems = a}) . _Default
. _Coerce
flSelfLink :: Lens' FirewallList (Maybe Text)
flSelfLink
= lens _flSelfLink (\ s a -> s{_flSelfLink = a})
flWarning :: Lens' FirewallList (Maybe FirewallListWarning)
flWarning
= lens _flWarning (\ s a -> s{_flWarning = a})
flId :: Lens' FirewallList (Maybe Text)
flId = lens _flId (\ s a -> s{_flId = a})
instance FromJSON FirewallList where
parseJSON
= withObject "FirewallList"
(\ o ->
FirewallList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#firewallList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON FirewallList where
toJSON FirewallList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _flNextPageToken,
Just ("kind" .= _flKind), ("items" .=) <$> _flItems,
("selfLink" .=) <$> _flSelfLink,
("warning" .=) <$> _flWarning, ("id" .=) <$> _flId])
data InstancesScopedListWarning =
InstancesScopedListWarning'
{ _islwData :: !(Maybe [InstancesScopedListWarningDataItem])
, _islwCode :: !(Maybe InstancesScopedListWarningCode)
, _islwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesScopedListWarning
:: InstancesScopedListWarning
instancesScopedListWarning =
InstancesScopedListWarning'
{_islwData = Nothing, _islwCode = Nothing, _islwMessage = Nothing}
islwData :: Lens' InstancesScopedListWarning [InstancesScopedListWarningDataItem]
islwData
= lens _islwData (\ s a -> s{_islwData = a}) .
_Default
. _Coerce
islwCode :: Lens' InstancesScopedListWarning (Maybe InstancesScopedListWarningCode)
islwCode = lens _islwCode (\ s a -> s{_islwCode = a})
islwMessage :: Lens' InstancesScopedListWarning (Maybe Text)
islwMessage
= lens _islwMessage (\ s a -> s{_islwMessage = a})
instance FromJSON InstancesScopedListWarning where
parseJSON
= withObject "InstancesScopedListWarning"
(\ o ->
InstancesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstancesScopedListWarning where
toJSON InstancesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _islwData,
("code" .=) <$> _islwCode,
("message" .=) <$> _islwMessage])
newtype RegionInstanceGroupManagersRecreateRequest =
RegionInstanceGroupManagersRecreateRequest'
{ _rigmrrInstances :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagersRecreateRequest
:: RegionInstanceGroupManagersRecreateRequest
regionInstanceGroupManagersRecreateRequest =
RegionInstanceGroupManagersRecreateRequest' {_rigmrrInstances = Nothing}
rigmrrInstances :: Lens' RegionInstanceGroupManagersRecreateRequest [Text]
rigmrrInstances
= lens _rigmrrInstances
(\ s a -> s{_rigmrrInstances = a})
. _Default
. _Coerce
instance FromJSON
RegionInstanceGroupManagersRecreateRequest
where
parseJSON
= withObject
"RegionInstanceGroupManagersRecreateRequest"
(\ o ->
RegionInstanceGroupManagersRecreateRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON
RegionInstanceGroupManagersRecreateRequest
where
toJSON
RegionInstanceGroupManagersRecreateRequest'{..}
= object
(catMaybes [("instances" .=) <$> _rigmrrInstances])
newtype InstanceLabels =
InstanceLabels'
{ _ilAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceLabels
:: HashMap Text Text
-> InstanceLabels
instanceLabels pIlAddtional_ =
InstanceLabels' {_ilAddtional = _Coerce # pIlAddtional_}
ilAddtional :: Lens' InstanceLabels (HashMap Text Text)
ilAddtional
= lens _ilAddtional (\ s a -> s{_ilAddtional = a}) .
_Coerce
instance FromJSON InstanceLabels where
parseJSON
= withObject "InstanceLabels"
(\ o -> InstanceLabels' <$> (parseJSONObject o))
instance ToJSON InstanceLabels where
toJSON = toJSON . _ilAddtional
data BackendServicesScopedListWarning =
BackendServicesScopedListWarning'
{ _bsslwData :: !(Maybe [BackendServicesScopedListWarningDataItem])
, _bsslwCode :: !(Maybe BackendServicesScopedListWarningCode)
, _bsslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServicesScopedListWarning
:: BackendServicesScopedListWarning
backendServicesScopedListWarning =
BackendServicesScopedListWarning'
{_bsslwData = Nothing, _bsslwCode = Nothing, _bsslwMessage = Nothing}
bsslwData :: Lens' BackendServicesScopedListWarning [BackendServicesScopedListWarningDataItem]
bsslwData
= lens _bsslwData (\ s a -> s{_bsslwData = a}) .
_Default
. _Coerce
bsslwCode :: Lens' BackendServicesScopedListWarning (Maybe BackendServicesScopedListWarningCode)
bsslwCode
= lens _bsslwCode (\ s a -> s{_bsslwCode = a})
bsslwMessage :: Lens' BackendServicesScopedListWarning (Maybe Text)
bsslwMessage
= lens _bsslwMessage (\ s a -> s{_bsslwMessage = a})
instance FromJSON BackendServicesScopedListWarning
where
parseJSON
= withObject "BackendServicesScopedListWarning"
(\ o ->
BackendServicesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON BackendServicesScopedListWarning
where
toJSON BackendServicesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _bsslwData,
("code" .=) <$> _bsslwCode,
("message" .=) <$> _bsslwMessage])
data SecurityPolicyRuleMatcher =
SecurityPolicyRuleMatcher'
{ _sprmVersionedExpr :: !(Maybe SecurityPolicyRuleMatcherVersionedExpr)
, _sprmConfig :: !(Maybe SecurityPolicyRuleMatcherConfig)
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicyRuleMatcher
:: SecurityPolicyRuleMatcher
securityPolicyRuleMatcher =
SecurityPolicyRuleMatcher'
{_sprmVersionedExpr = Nothing, _sprmConfig = Nothing}
sprmVersionedExpr :: Lens' SecurityPolicyRuleMatcher (Maybe SecurityPolicyRuleMatcherVersionedExpr)
sprmVersionedExpr
= lens _sprmVersionedExpr
(\ s a -> s{_sprmVersionedExpr = a})
sprmConfig :: Lens' SecurityPolicyRuleMatcher (Maybe SecurityPolicyRuleMatcherConfig)
sprmConfig
= lens _sprmConfig (\ s a -> s{_sprmConfig = a})
instance FromJSON SecurityPolicyRuleMatcher where
parseJSON
= withObject "SecurityPolicyRuleMatcher"
(\ o ->
SecurityPolicyRuleMatcher' <$>
(o .:? "versionedExpr") <*> (o .:? "config"))
instance ToJSON SecurityPolicyRuleMatcher where
toJSON SecurityPolicyRuleMatcher'{..}
= object
(catMaybes
[("versionedExpr" .=) <$> _sprmVersionedExpr,
("config" .=) <$> _sprmConfig])
data InstanceGroupList =
InstanceGroupList'
{ _iglNextPageToken :: !(Maybe Text)
, _iglKind :: !Text
, _iglItems :: !(Maybe [InstanceGroup])
, _iglSelfLink :: !(Maybe Text)
, _iglWarning :: !(Maybe InstanceGroupListWarning)
, _iglId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupList
:: InstanceGroupList
instanceGroupList =
InstanceGroupList'
{ _iglNextPageToken = Nothing
, _iglKind = "compute#instanceGroupList"
, _iglItems = Nothing
, _iglSelfLink = Nothing
, _iglWarning = Nothing
, _iglId = Nothing
}
iglNextPageToken :: Lens' InstanceGroupList (Maybe Text)
iglNextPageToken
= lens _iglNextPageToken
(\ s a -> s{_iglNextPageToken = a})
iglKind :: Lens' InstanceGroupList Text
iglKind = lens _iglKind (\ s a -> s{_iglKind = a})
iglItems :: Lens' InstanceGroupList [InstanceGroup]
iglItems
= lens _iglItems (\ s a -> s{_iglItems = a}) .
_Default
. _Coerce
iglSelfLink :: Lens' InstanceGroupList (Maybe Text)
iglSelfLink
= lens _iglSelfLink (\ s a -> s{_iglSelfLink = a})
iglWarning :: Lens' InstanceGroupList (Maybe InstanceGroupListWarning)
iglWarning
= lens _iglWarning (\ s a -> s{_iglWarning = a})
iglId :: Lens' InstanceGroupList (Maybe Text)
iglId = lens _iglId (\ s a -> s{_iglId = a})
instance FromJSON InstanceGroupList where
parseJSON
= withObject "InstanceGroupList"
(\ o ->
InstanceGroupList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#instanceGroupList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceGroupList where
toJSON InstanceGroupList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _iglNextPageToken,
Just ("kind" .= _iglKind),
("items" .=) <$> _iglItems,
("selfLink" .=) <$> _iglSelfLink,
("warning" .=) <$> _iglWarning,
("id" .=) <$> _iglId])
newtype InstancesSetMachineTypeRequest =
InstancesSetMachineTypeRequest'
{ _ismtrMachineType :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesSetMachineTypeRequest
:: InstancesSetMachineTypeRequest
instancesSetMachineTypeRequest =
InstancesSetMachineTypeRequest' {_ismtrMachineType = Nothing}
ismtrMachineType :: Lens' InstancesSetMachineTypeRequest (Maybe Text)
ismtrMachineType
= lens _ismtrMachineType
(\ s a -> s{_ismtrMachineType = a})
instance FromJSON InstancesSetMachineTypeRequest
where
parseJSON
= withObject "InstancesSetMachineTypeRequest"
(\ o ->
InstancesSetMachineTypeRequest' <$>
(o .:? "machineType"))
instance ToJSON InstancesSetMachineTypeRequest where
toJSON InstancesSetMachineTypeRequest'{..}
= object
(catMaybes
[("machineType" .=) <$> _ismtrMachineType])
data VMEndpointNATMAppings =
VMEndpointNATMAppings'
{ _vmenatmaInstanceName :: !(Maybe Text)
, _vmenatmaInterfaceNATMAppings :: !(Maybe [VMEndpointNATMAppingsInterfaceNATMAppings])
}
deriving (Eq, Show, Data, Typeable, Generic)
vMEndpointNATMAppings
:: VMEndpointNATMAppings
vMEndpointNATMAppings =
VMEndpointNATMAppings'
{_vmenatmaInstanceName = Nothing, _vmenatmaInterfaceNATMAppings = Nothing}
vmenatmaInstanceName :: Lens' VMEndpointNATMAppings (Maybe Text)
vmenatmaInstanceName
= lens _vmenatmaInstanceName
(\ s a -> s{_vmenatmaInstanceName = a})
vmenatmaInterfaceNATMAppings :: Lens' VMEndpointNATMAppings [VMEndpointNATMAppingsInterfaceNATMAppings]
vmenatmaInterfaceNATMAppings
= lens _vmenatmaInterfaceNATMAppings
(\ s a -> s{_vmenatmaInterfaceNATMAppings = a})
. _Default
. _Coerce
instance FromJSON VMEndpointNATMAppings where
parseJSON
= withObject "VMEndpointNATMAppings"
(\ o ->
VMEndpointNATMAppings' <$>
(o .:? "instanceName") <*>
(o .:? "interfaceNatMappings" .!= mempty))
instance ToJSON VMEndpointNATMAppings where
toJSON VMEndpointNATMAppings'{..}
= object
(catMaybes
[("instanceName" .=) <$> _vmenatmaInstanceName,
("interfaceNatMappings" .=) <$>
_vmenatmaInterfaceNATMAppings])
data CustomerEncryptionKey =
CustomerEncryptionKey'
{ _cekKmsKeyName :: !(Maybe Text)
, _cekSha256 :: !(Maybe Text)
, _cekRawKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
customerEncryptionKey
:: CustomerEncryptionKey
customerEncryptionKey =
CustomerEncryptionKey'
{_cekKmsKeyName = Nothing, _cekSha256 = Nothing, _cekRawKey = Nothing}
cekKmsKeyName :: Lens' CustomerEncryptionKey (Maybe Text)
cekKmsKeyName
= lens _cekKmsKeyName
(\ s a -> s{_cekKmsKeyName = a})
cekSha256 :: Lens' CustomerEncryptionKey (Maybe Text)
cekSha256
= lens _cekSha256 (\ s a -> s{_cekSha256 = a})
cekRawKey :: Lens' CustomerEncryptionKey (Maybe Text)
cekRawKey
= lens _cekRawKey (\ s a -> s{_cekRawKey = a})
instance FromJSON CustomerEncryptionKey where
parseJSON
= withObject "CustomerEncryptionKey"
(\ o ->
CustomerEncryptionKey' <$>
(o .:? "kmsKeyName") <*> (o .:? "sha256") <*>
(o .:? "rawKey"))
instance ToJSON CustomerEncryptionKey where
toJSON CustomerEncryptionKey'{..}
= object
(catMaybes
[("kmsKeyName" .=) <$> _cekKmsKeyName,
("sha256" .=) <$> _cekSha256,
("rawKey" .=) <$> _cekRawKey])
newtype AutoscalerAggregatedListItems =
AutoscalerAggregatedListItems'
{ _aaliAddtional :: HashMap Text AutoscalersScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerAggregatedListItems
:: HashMap Text AutoscalersScopedList
-> AutoscalerAggregatedListItems
autoscalerAggregatedListItems pAaliAddtional_ =
AutoscalerAggregatedListItems' {_aaliAddtional = _Coerce # pAaliAddtional_}
aaliAddtional :: Lens' AutoscalerAggregatedListItems (HashMap Text AutoscalersScopedList)
aaliAddtional
= lens _aaliAddtional
(\ s a -> s{_aaliAddtional = a})
. _Coerce
instance FromJSON AutoscalerAggregatedListItems where
parseJSON
= withObject "AutoscalerAggregatedListItems"
(\ o ->
AutoscalerAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON AutoscalerAggregatedListItems where
toJSON = toJSON . _aaliAddtional
data InstanceListWarningDataItem =
InstanceListWarningDataItem'
{ _ilwdiValue :: !(Maybe Text)
, _ilwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceListWarningDataItem
:: InstanceListWarningDataItem
instanceListWarningDataItem =
InstanceListWarningDataItem' {_ilwdiValue = Nothing, _ilwdiKey = Nothing}
ilwdiValue :: Lens' InstanceListWarningDataItem (Maybe Text)
ilwdiValue
= lens _ilwdiValue (\ s a -> s{_ilwdiValue = a})
ilwdiKey :: Lens' InstanceListWarningDataItem (Maybe Text)
ilwdiKey = lens _ilwdiKey (\ s a -> s{_ilwdiKey = a})
instance FromJSON InstanceListWarningDataItem where
parseJSON
= withObject "InstanceListWarningDataItem"
(\ o ->
InstanceListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON InstanceListWarningDataItem where
toJSON InstanceListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ilwdiValue,
("key" .=) <$> _ilwdiKey])
newtype InstanceGroupManagersSetInstanceTemplateRequest =
InstanceGroupManagersSetInstanceTemplateRequest'
{ _igmsitrInstanceTemplate :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersSetInstanceTemplateRequest
:: InstanceGroupManagersSetInstanceTemplateRequest
instanceGroupManagersSetInstanceTemplateRequest =
InstanceGroupManagersSetInstanceTemplateRequest'
{_igmsitrInstanceTemplate = Nothing}
igmsitrInstanceTemplate :: Lens' InstanceGroupManagersSetInstanceTemplateRequest (Maybe Text)
igmsitrInstanceTemplate
= lens _igmsitrInstanceTemplate
(\ s a -> s{_igmsitrInstanceTemplate = a})
instance FromJSON
InstanceGroupManagersSetInstanceTemplateRequest
where
parseJSON
= withObject
"InstanceGroupManagersSetInstanceTemplateRequest"
(\ o ->
InstanceGroupManagersSetInstanceTemplateRequest' <$>
(o .:? "instanceTemplate"))
instance ToJSON
InstanceGroupManagersSetInstanceTemplateRequest
where
toJSON
InstanceGroupManagersSetInstanceTemplateRequest'{..}
= object
(catMaybes
[("instanceTemplate" .=) <$>
_igmsitrInstanceTemplate])
data DeprecationStatus =
DeprecationStatus'
{ _dsState :: !(Maybe DeprecationStatusState)
, _dsDeleted :: !(Maybe Text)
, _dsReplacement :: !(Maybe Text)
, _dsObsolete :: !(Maybe Text)
, _dsDeprecated :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
deprecationStatus
:: DeprecationStatus
deprecationStatus =
DeprecationStatus'
{ _dsState = Nothing
, _dsDeleted = Nothing
, _dsReplacement = Nothing
, _dsObsolete = Nothing
, _dsDeprecated = Nothing
}
dsState :: Lens' DeprecationStatus (Maybe DeprecationStatusState)
dsState = lens _dsState (\ s a -> s{_dsState = a})
dsDeleted :: Lens' DeprecationStatus (Maybe Text)
dsDeleted
= lens _dsDeleted (\ s a -> s{_dsDeleted = a})
dsReplacement :: Lens' DeprecationStatus (Maybe Text)
dsReplacement
= lens _dsReplacement
(\ s a -> s{_dsReplacement = a})
dsObsolete :: Lens' DeprecationStatus (Maybe Text)
dsObsolete
= lens _dsObsolete (\ s a -> s{_dsObsolete = a})
dsDeprecated :: Lens' DeprecationStatus (Maybe Text)
dsDeprecated
= lens _dsDeprecated (\ s a -> s{_dsDeprecated = a})
instance FromJSON DeprecationStatus where
parseJSON
= withObject "DeprecationStatus"
(\ o ->
DeprecationStatus' <$>
(o .:? "state") <*> (o .:? "deleted") <*>
(o .:? "replacement")
<*> (o .:? "obsolete")
<*> (o .:? "deprecated"))
instance ToJSON DeprecationStatus where
toJSON DeprecationStatus'{..}
= object
(catMaybes
[("state" .=) <$> _dsState,
("deleted" .=) <$> _dsDeleted,
("replacement" .=) <$> _dsReplacement,
("obsolete" .=) <$> _dsObsolete,
("deprecated" .=) <$> _dsDeprecated])
data HTTPSHealthCheckListWarningDataItem =
HTTPSHealthCheckListWarningDataItem'
{ _hhclwdiValue :: !(Maybe Text)
, _hhclwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
httpsHealthCheckListWarningDataItem
:: HTTPSHealthCheckListWarningDataItem
httpsHealthCheckListWarningDataItem =
HTTPSHealthCheckListWarningDataItem'
{_hhclwdiValue = Nothing, _hhclwdiKey = Nothing}
hhclwdiValue :: Lens' HTTPSHealthCheckListWarningDataItem (Maybe Text)
hhclwdiValue
= lens _hhclwdiValue (\ s a -> s{_hhclwdiValue = a})
hhclwdiKey :: Lens' HTTPSHealthCheckListWarningDataItem (Maybe Text)
hhclwdiKey
= lens _hhclwdiKey (\ s a -> s{_hhclwdiKey = a})
instance FromJSON HTTPSHealthCheckListWarningDataItem
where
parseJSON
= withObject "HTTPSHealthCheckListWarningDataItem"
(\ o ->
HTTPSHealthCheckListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON HTTPSHealthCheckListWarningDataItem
where
toJSON HTTPSHealthCheckListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _hhclwdiValue,
("key" .=) <$> _hhclwdiKey])
data Snapshot =
Snapshot'
{ _sStorageBytesStatus :: !(Maybe SnapshotStorageBytesStatus)
, _sStatus :: !(Maybe SnapshotStatus)
, _sDiskSizeGb :: !(Maybe (Textual Int64))
, _sSourceDiskId :: !(Maybe Text)
, _sKind :: !Text
, _sSourceDiskEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _sStorageBytes :: !(Maybe (Textual Int64))
, _sSelfLink :: !(Maybe Text)
, _sSnapshotEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _sName :: !(Maybe Text)
, _sStorageLocations :: !(Maybe [Text])
, _sCreationTimestamp :: !(Maybe Text)
, _sLicenseCodes :: !(Maybe [Textual Int64])
, _sId :: !(Maybe (Textual Word64))
, _sLabels :: !(Maybe SnapshotLabels)
, _sLicenses :: !(Maybe [Text])
, _sSourceDisk :: !(Maybe Text)
, _sLabelFingerprint :: !(Maybe Bytes)
, _sDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
snapshot
:: Snapshot
snapshot =
Snapshot'
{ _sStorageBytesStatus = Nothing
, _sStatus = Nothing
, _sDiskSizeGb = Nothing
, _sSourceDiskId = Nothing
, _sKind = "compute#snapshot"
, _sSourceDiskEncryptionKey = Nothing
, _sStorageBytes = Nothing
, _sSelfLink = Nothing
, _sSnapshotEncryptionKey = Nothing
, _sName = Nothing
, _sStorageLocations = Nothing
, _sCreationTimestamp = Nothing
, _sLicenseCodes = Nothing
, _sId = Nothing
, _sLabels = Nothing
, _sLicenses = Nothing
, _sSourceDisk = Nothing
, _sLabelFingerprint = Nothing
, _sDescription = Nothing
}
sStorageBytesStatus :: Lens' Snapshot (Maybe SnapshotStorageBytesStatus)
sStorageBytesStatus
= lens _sStorageBytesStatus
(\ s a -> s{_sStorageBytesStatus = a})
sStatus :: Lens' Snapshot (Maybe SnapshotStatus)
sStatus = lens _sStatus (\ s a -> s{_sStatus = a})
sDiskSizeGb :: Lens' Snapshot (Maybe Int64)
sDiskSizeGb
= lens _sDiskSizeGb (\ s a -> s{_sDiskSizeGb = a}) .
mapping _Coerce
sSourceDiskId :: Lens' Snapshot (Maybe Text)
sSourceDiskId
= lens _sSourceDiskId
(\ s a -> s{_sSourceDiskId = a})
sKind :: Lens' Snapshot Text
sKind = lens _sKind (\ s a -> s{_sKind = a})
sSourceDiskEncryptionKey :: Lens' Snapshot (Maybe CustomerEncryptionKey)
sSourceDiskEncryptionKey
= lens _sSourceDiskEncryptionKey
(\ s a -> s{_sSourceDiskEncryptionKey = a})
sStorageBytes :: Lens' Snapshot (Maybe Int64)
sStorageBytes
= lens _sStorageBytes
(\ s a -> s{_sStorageBytes = a})
. mapping _Coerce
sSelfLink :: Lens' Snapshot (Maybe Text)
sSelfLink
= lens _sSelfLink (\ s a -> s{_sSelfLink = a})
sSnapshotEncryptionKey :: Lens' Snapshot (Maybe CustomerEncryptionKey)
sSnapshotEncryptionKey
= lens _sSnapshotEncryptionKey
(\ s a -> s{_sSnapshotEncryptionKey = a})
sName :: Lens' Snapshot (Maybe Text)
sName = lens _sName (\ s a -> s{_sName = a})
sStorageLocations :: Lens' Snapshot [Text]
sStorageLocations
= lens _sStorageLocations
(\ s a -> s{_sStorageLocations = a})
. _Default
. _Coerce
sCreationTimestamp :: Lens' Snapshot (Maybe Text)
sCreationTimestamp
= lens _sCreationTimestamp
(\ s a -> s{_sCreationTimestamp = a})
sLicenseCodes :: Lens' Snapshot [Int64]
sLicenseCodes
= lens _sLicenseCodes
(\ s a -> s{_sLicenseCodes = a})
. _Default
. _Coerce
sId :: Lens' Snapshot (Maybe Word64)
sId
= lens _sId (\ s a -> s{_sId = a}) . mapping _Coerce
sLabels :: Lens' Snapshot (Maybe SnapshotLabels)
sLabels = lens _sLabels (\ s a -> s{_sLabels = a})
sLicenses :: Lens' Snapshot [Text]
sLicenses
= lens _sLicenses (\ s a -> s{_sLicenses = a}) .
_Default
. _Coerce
sSourceDisk :: Lens' Snapshot (Maybe Text)
sSourceDisk
= lens _sSourceDisk (\ s a -> s{_sSourceDisk = a})
sLabelFingerprint :: Lens' Snapshot (Maybe ByteString)
sLabelFingerprint
= lens _sLabelFingerprint
(\ s a -> s{_sLabelFingerprint = a})
. mapping _Bytes
sDescription :: Lens' Snapshot (Maybe Text)
sDescription
= lens _sDescription (\ s a -> s{_sDescription = a})
instance FromJSON Snapshot where
parseJSON
= withObject "Snapshot"
(\ o ->
Snapshot' <$>
(o .:? "storageBytesStatus") <*> (o .:? "status") <*>
(o .:? "diskSizeGb")
<*> (o .:? "sourceDiskId")
<*> (o .:? "kind" .!= "compute#snapshot")
<*> (o .:? "sourceDiskEncryptionKey")
<*> (o .:? "storageBytes")
<*> (o .:? "selfLink")
<*> (o .:? "snapshotEncryptionKey")
<*> (o .:? "name")
<*> (o .:? "storageLocations" .!= mempty)
<*> (o .:? "creationTimestamp")
<*> (o .:? "licenseCodes" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "labels")
<*> (o .:? "licenses" .!= mempty)
<*> (o .:? "sourceDisk")
<*> (o .:? "labelFingerprint")
<*> (o .:? "description"))
instance ToJSON Snapshot where
toJSON Snapshot'{..}
= object
(catMaybes
[("storageBytesStatus" .=) <$> _sStorageBytesStatus,
("status" .=) <$> _sStatus,
("diskSizeGb" .=) <$> _sDiskSizeGb,
("sourceDiskId" .=) <$> _sSourceDiskId,
Just ("kind" .= _sKind),
("sourceDiskEncryptionKey" .=) <$>
_sSourceDiskEncryptionKey,
("storageBytes" .=) <$> _sStorageBytes,
("selfLink" .=) <$> _sSelfLink,
("snapshotEncryptionKey" .=) <$>
_sSnapshotEncryptionKey,
("name" .=) <$> _sName,
("storageLocations" .=) <$> _sStorageLocations,
("creationTimestamp" .=) <$> _sCreationTimestamp,
("licenseCodes" .=) <$> _sLicenseCodes,
("id" .=) <$> _sId, ("labels" .=) <$> _sLabels,
("licenses" .=) <$> _sLicenses,
("sourceDisk" .=) <$> _sSourceDisk,
("labelFingerprint" .=) <$> _sLabelFingerprint,
("description" .=) <$> _sDescription])
data RouterStatus =
RouterStatus'
{ _rsBestRoutesForRouter :: !(Maybe [Route])
, _rsBGPPeerStatus :: !(Maybe [RouterStatusBGPPeerStatus])
, _rsNetwork :: !(Maybe Text)
, _rsNATStatus :: !(Maybe [RouterStatusNATStatus])
, _rsBestRoutes :: !(Maybe [Route])
}
deriving (Eq, Show, Data, Typeable, Generic)
routerStatus
:: RouterStatus
routerStatus =
RouterStatus'
{ _rsBestRoutesForRouter = Nothing
, _rsBGPPeerStatus = Nothing
, _rsNetwork = Nothing
, _rsNATStatus = Nothing
, _rsBestRoutes = Nothing
}
rsBestRoutesForRouter :: Lens' RouterStatus [Route]
rsBestRoutesForRouter
= lens _rsBestRoutesForRouter
(\ s a -> s{_rsBestRoutesForRouter = a})
. _Default
. _Coerce
rsBGPPeerStatus :: Lens' RouterStatus [RouterStatusBGPPeerStatus]
rsBGPPeerStatus
= lens _rsBGPPeerStatus
(\ s a -> s{_rsBGPPeerStatus = a})
. _Default
. _Coerce
rsNetwork :: Lens' RouterStatus (Maybe Text)
rsNetwork
= lens _rsNetwork (\ s a -> s{_rsNetwork = a})
rsNATStatus :: Lens' RouterStatus [RouterStatusNATStatus]
rsNATStatus
= lens _rsNATStatus (\ s a -> s{_rsNATStatus = a}) .
_Default
. _Coerce
rsBestRoutes :: Lens' RouterStatus [Route]
rsBestRoutes
= lens _rsBestRoutes (\ s a -> s{_rsBestRoutes = a})
. _Default
. _Coerce
instance FromJSON RouterStatus where
parseJSON
= withObject "RouterStatus"
(\ o ->
RouterStatus' <$>
(o .:? "bestRoutesForRouter" .!= mempty) <*>
(o .:? "bgpPeerStatus" .!= mempty)
<*> (o .:? "network")
<*> (o .:? "natStatus" .!= mempty)
<*> (o .:? "bestRoutes" .!= mempty))
instance ToJSON RouterStatus where
toJSON RouterStatus'{..}
= object
(catMaybes
[("bestRoutesForRouter" .=) <$>
_rsBestRoutesForRouter,
("bgpPeerStatus" .=) <$> _rsBGPPeerStatus,
("network" .=) <$> _rsNetwork,
("natStatus" .=) <$> _rsNATStatus,
("bestRoutes" .=) <$> _rsBestRoutes])
data AutoscalingPolicyCustomMetricUtilization =
AutoscalingPolicyCustomMetricUtilization'
{ _apcmuUtilizationTarget :: !(Maybe (Textual Double))
, _apcmuMetric :: !(Maybe Text)
, _apcmuUtilizationTargetType :: !(Maybe AutoscalingPolicyCustomMetricUtilizationUtilizationTargetType)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalingPolicyCustomMetricUtilization
:: AutoscalingPolicyCustomMetricUtilization
autoscalingPolicyCustomMetricUtilization =
AutoscalingPolicyCustomMetricUtilization'
{ _apcmuUtilizationTarget = Nothing
, _apcmuMetric = Nothing
, _apcmuUtilizationTargetType = Nothing
}
apcmuUtilizationTarget :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Double)
apcmuUtilizationTarget
= lens _apcmuUtilizationTarget
(\ s a -> s{_apcmuUtilizationTarget = a})
. mapping _Coerce
apcmuMetric :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe Text)
apcmuMetric
= lens _apcmuMetric (\ s a -> s{_apcmuMetric = a})
apcmuUtilizationTargetType :: Lens' AutoscalingPolicyCustomMetricUtilization (Maybe AutoscalingPolicyCustomMetricUtilizationUtilizationTargetType)
apcmuUtilizationTargetType
= lens _apcmuUtilizationTargetType
(\ s a -> s{_apcmuUtilizationTargetType = a})
instance FromJSON
AutoscalingPolicyCustomMetricUtilization
where
parseJSON
= withObject
"AutoscalingPolicyCustomMetricUtilization"
(\ o ->
AutoscalingPolicyCustomMetricUtilization' <$>
(o .:? "utilizationTarget") <*> (o .:? "metric") <*>
(o .:? "utilizationTargetType"))
instance ToJSON
AutoscalingPolicyCustomMetricUtilization
where
toJSON AutoscalingPolicyCustomMetricUtilization'{..}
= object
(catMaybes
[("utilizationTarget" .=) <$>
_apcmuUtilizationTarget,
("metric" .=) <$> _apcmuMetric,
("utilizationTargetType" .=) <$>
_apcmuUtilizationTargetType])
data ForwardingRuleList =
ForwardingRuleList'
{ _frlNextPageToken :: !(Maybe Text)
, _frlKind :: !Text
, _frlItems :: !(Maybe [ForwardingRule])
, _frlSelfLink :: !(Maybe Text)
, _frlWarning :: !(Maybe ForwardingRuleListWarning)
, _frlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleList
:: ForwardingRuleList
forwardingRuleList =
ForwardingRuleList'
{ _frlNextPageToken = Nothing
, _frlKind = "compute#forwardingRuleList"
, _frlItems = Nothing
, _frlSelfLink = Nothing
, _frlWarning = Nothing
, _frlId = Nothing
}
frlNextPageToken :: Lens' ForwardingRuleList (Maybe Text)
frlNextPageToken
= lens _frlNextPageToken
(\ s a -> s{_frlNextPageToken = a})
frlKind :: Lens' ForwardingRuleList Text
frlKind = lens _frlKind (\ s a -> s{_frlKind = a})
frlItems :: Lens' ForwardingRuleList [ForwardingRule]
frlItems
= lens _frlItems (\ s a -> s{_frlItems = a}) .
_Default
. _Coerce
frlSelfLink :: Lens' ForwardingRuleList (Maybe Text)
frlSelfLink
= lens _frlSelfLink (\ s a -> s{_frlSelfLink = a})
frlWarning :: Lens' ForwardingRuleList (Maybe ForwardingRuleListWarning)
frlWarning
= lens _frlWarning (\ s a -> s{_frlWarning = a})
frlId :: Lens' ForwardingRuleList (Maybe Text)
frlId = lens _frlId (\ s a -> s{_frlId = a})
instance FromJSON ForwardingRuleList where
parseJSON
= withObject "ForwardingRuleList"
(\ o ->
ForwardingRuleList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#forwardingRuleList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON ForwardingRuleList where
toJSON ForwardingRuleList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _frlNextPageToken,
Just ("kind" .= _frlKind),
("items" .=) <$> _frlItems,
("selfLink" .=) <$> _frlSelfLink,
("warning" .=) <$> _frlWarning,
("id" .=) <$> _frlId])
data NodeGroup =
NodeGroup'
{ _ngStatus :: !(Maybe NodeGroupStatus)
, _ngSize :: !(Maybe (Textual Int32))
, _ngKind :: !Text
, _ngZone :: !(Maybe Text)
, _ngSelfLink :: !(Maybe Text)
, _ngName :: !(Maybe Text)
, _ngCreationTimestamp :: !(Maybe Text)
, _ngId :: !(Maybe (Textual Word64))
, _ngNodeTemplate :: !(Maybe Text)
, _ngDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroup
:: NodeGroup
nodeGroup =
NodeGroup'
{ _ngStatus = Nothing
, _ngSize = Nothing
, _ngKind = "compute#nodeGroup"
, _ngZone = Nothing
, _ngSelfLink = Nothing
, _ngName = Nothing
, _ngCreationTimestamp = Nothing
, _ngId = Nothing
, _ngNodeTemplate = Nothing
, _ngDescription = Nothing
}
ngStatus :: Lens' NodeGroup (Maybe NodeGroupStatus)
ngStatus = lens _ngStatus (\ s a -> s{_ngStatus = a})
ngSize :: Lens' NodeGroup (Maybe Int32)
ngSize
= lens _ngSize (\ s a -> s{_ngSize = a}) .
mapping _Coerce
ngKind :: Lens' NodeGroup Text
ngKind = lens _ngKind (\ s a -> s{_ngKind = a})
ngZone :: Lens' NodeGroup (Maybe Text)
ngZone = lens _ngZone (\ s a -> s{_ngZone = a})
ngSelfLink :: Lens' NodeGroup (Maybe Text)
ngSelfLink
= lens _ngSelfLink (\ s a -> s{_ngSelfLink = a})
ngName :: Lens' NodeGroup (Maybe Text)
ngName = lens _ngName (\ s a -> s{_ngName = a})
ngCreationTimestamp :: Lens' NodeGroup (Maybe Text)
ngCreationTimestamp
= lens _ngCreationTimestamp
(\ s a -> s{_ngCreationTimestamp = a})
ngId :: Lens' NodeGroup (Maybe Word64)
ngId
= lens _ngId (\ s a -> s{_ngId = a}) .
mapping _Coerce
ngNodeTemplate :: Lens' NodeGroup (Maybe Text)
ngNodeTemplate
= lens _ngNodeTemplate
(\ s a -> s{_ngNodeTemplate = a})
ngDescription :: Lens' NodeGroup (Maybe Text)
ngDescription
= lens _ngDescription
(\ s a -> s{_ngDescription = a})
instance FromJSON NodeGroup where
parseJSON
= withObject "NodeGroup"
(\ o ->
NodeGroup' <$>
(o .:? "status") <*> (o .:? "size") <*>
(o .:? "kind" .!= "compute#nodeGroup")
<*> (o .:? "zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "nodeTemplate")
<*> (o .:? "description"))
instance ToJSON NodeGroup where
toJSON NodeGroup'{..}
= object
(catMaybes
[("status" .=) <$> _ngStatus,
("size" .=) <$> _ngSize, Just ("kind" .= _ngKind),
("zone" .=) <$> _ngZone,
("selfLink" .=) <$> _ngSelfLink,
("name" .=) <$> _ngName,
("creationTimestamp" .=) <$> _ngCreationTimestamp,
("id" .=) <$> _ngId,
("nodeTemplate" .=) <$> _ngNodeTemplate,
("description" .=) <$> _ngDescription])
data VPNTunnelsScopedList =
VPNTunnelsScopedList'
{ _vtslVPNTunnels :: !(Maybe [VPNTunnel])
, _vtslWarning :: !(Maybe VPNTunnelsScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelsScopedList
:: VPNTunnelsScopedList
vpnTunnelsScopedList =
VPNTunnelsScopedList' {_vtslVPNTunnels = Nothing, _vtslWarning = Nothing}
vtslVPNTunnels :: Lens' VPNTunnelsScopedList [VPNTunnel]
vtslVPNTunnels
= lens _vtslVPNTunnels
(\ s a -> s{_vtslVPNTunnels = a})
. _Default
. _Coerce
vtslWarning :: Lens' VPNTunnelsScopedList (Maybe VPNTunnelsScopedListWarning)
vtslWarning
= lens _vtslWarning (\ s a -> s{_vtslWarning = a})
instance FromJSON VPNTunnelsScopedList where
parseJSON
= withObject "VPNTunnelsScopedList"
(\ o ->
VPNTunnelsScopedList' <$>
(o .:? "vpnTunnels" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON VPNTunnelsScopedList where
toJSON VPNTunnelsScopedList'{..}
= object
(catMaybes
[("vpnTunnels" .=) <$> _vtslVPNTunnels,
("warning" .=) <$> _vtslWarning])
data SubnetworkSecondaryRange =
SubnetworkSecondaryRange'
{ _ssrRangeName :: !(Maybe Text)
, _ssrIPCIdRRange :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkSecondaryRange
:: SubnetworkSecondaryRange
subnetworkSecondaryRange =
SubnetworkSecondaryRange' {_ssrRangeName = Nothing, _ssrIPCIdRRange = Nothing}
ssrRangeName :: Lens' SubnetworkSecondaryRange (Maybe Text)
ssrRangeName
= lens _ssrRangeName (\ s a -> s{_ssrRangeName = a})
ssrIPCIdRRange :: Lens' SubnetworkSecondaryRange (Maybe Text)
ssrIPCIdRRange
= lens _ssrIPCIdRRange
(\ s a -> s{_ssrIPCIdRRange = a})
instance FromJSON SubnetworkSecondaryRange where
parseJSON
= withObject "SubnetworkSecondaryRange"
(\ o ->
SubnetworkSecondaryRange' <$>
(o .:? "rangeName") <*> (o .:? "ipCidrRange"))
instance ToJSON SubnetworkSecondaryRange where
toJSON SubnetworkSecondaryRange'{..}
= object
(catMaybes
[("rangeName" .=) <$> _ssrRangeName,
("ipCidrRange" .=) <$> _ssrIPCIdRRange])
data NodeTypesScopedList =
NodeTypesScopedList'
{ _ntslNodeTypes :: !(Maybe [NodeType])
, _ntslWarning :: !(Maybe NodeTypesScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypesScopedList
:: NodeTypesScopedList
nodeTypesScopedList =
NodeTypesScopedList' {_ntslNodeTypes = Nothing, _ntslWarning = Nothing}
ntslNodeTypes :: Lens' NodeTypesScopedList [NodeType]
ntslNodeTypes
= lens _ntslNodeTypes
(\ s a -> s{_ntslNodeTypes = a})
. _Default
. _Coerce
ntslWarning :: Lens' NodeTypesScopedList (Maybe NodeTypesScopedListWarning)
ntslWarning
= lens _ntslWarning (\ s a -> s{_ntslWarning = a})
instance FromJSON NodeTypesScopedList where
parseJSON
= withObject "NodeTypesScopedList"
(\ o ->
NodeTypesScopedList' <$>
(o .:? "nodeTypes" .!= mempty) <*> (o .:? "warning"))
instance ToJSON NodeTypesScopedList where
toJSON NodeTypesScopedList'{..}
= object
(catMaybes
[("nodeTypes" .=) <$> _ntslNodeTypes,
("warning" .=) <$> _ntslWarning])
data RegionInstanceGroupsListInstancesWarning =
RegionInstanceGroupsListInstancesWarning'
{ _rigliwData :: !(Maybe [RegionInstanceGroupsListInstancesWarningDataItem])
, _rigliwCode :: !(Maybe RegionInstanceGroupsListInstancesWarningCode)
, _rigliwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupsListInstancesWarning
:: RegionInstanceGroupsListInstancesWarning
regionInstanceGroupsListInstancesWarning =
RegionInstanceGroupsListInstancesWarning'
{_rigliwData = Nothing, _rigliwCode = Nothing, _rigliwMessage = Nothing}
rigliwData :: Lens' RegionInstanceGroupsListInstancesWarning [RegionInstanceGroupsListInstancesWarningDataItem]
rigliwData
= lens _rigliwData (\ s a -> s{_rigliwData = a}) .
_Default
. _Coerce
rigliwCode :: Lens' RegionInstanceGroupsListInstancesWarning (Maybe RegionInstanceGroupsListInstancesWarningCode)
rigliwCode
= lens _rigliwCode (\ s a -> s{_rigliwCode = a})
rigliwMessage :: Lens' RegionInstanceGroupsListInstancesWarning (Maybe Text)
rigliwMessage
= lens _rigliwMessage
(\ s a -> s{_rigliwMessage = a})
instance FromJSON
RegionInstanceGroupsListInstancesWarning
where
parseJSON
= withObject
"RegionInstanceGroupsListInstancesWarning"
(\ o ->
RegionInstanceGroupsListInstancesWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
RegionInstanceGroupsListInstancesWarning
where
toJSON RegionInstanceGroupsListInstancesWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rigliwData,
("code" .=) <$> _rigliwCode,
("message" .=) <$> _rigliwMessage])
newtype NetworkEndpointGroupsDetachEndpointsRequest =
NetworkEndpointGroupsDetachEndpointsRequest'
{ _negderNetworkEndpoints :: Maybe [NetworkEndpoint]
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsDetachEndpointsRequest
:: NetworkEndpointGroupsDetachEndpointsRequest
networkEndpointGroupsDetachEndpointsRequest =
NetworkEndpointGroupsDetachEndpointsRequest'
{_negderNetworkEndpoints = Nothing}
negderNetworkEndpoints :: Lens' NetworkEndpointGroupsDetachEndpointsRequest [NetworkEndpoint]
negderNetworkEndpoints
= lens _negderNetworkEndpoints
(\ s a -> s{_negderNetworkEndpoints = a})
. _Default
. _Coerce
instance FromJSON
NetworkEndpointGroupsDetachEndpointsRequest
where
parseJSON
= withObject
"NetworkEndpointGroupsDetachEndpointsRequest"
(\ o ->
NetworkEndpointGroupsDetachEndpointsRequest' <$>
(o .:? "networkEndpoints" .!= mempty))
instance ToJSON
NetworkEndpointGroupsDetachEndpointsRequest
where
toJSON
NetworkEndpointGroupsDetachEndpointsRequest'{..}
= object
(catMaybes
[("networkEndpoints" .=) <$>
_negderNetworkEndpoints])
data AuditConfig =
AuditConfig'
{ _acService :: !(Maybe Text)
, _acAuditLogConfigs :: !(Maybe [AuditLogConfig])
, _acExemptedMembers :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
auditConfig
:: AuditConfig
auditConfig =
AuditConfig'
{ _acService = Nothing
, _acAuditLogConfigs = Nothing
, _acExemptedMembers = Nothing
}
acService :: Lens' AuditConfig (Maybe Text)
acService
= lens _acService (\ s a -> s{_acService = a})
acAuditLogConfigs :: Lens' AuditConfig [AuditLogConfig]
acAuditLogConfigs
= lens _acAuditLogConfigs
(\ s a -> s{_acAuditLogConfigs = a})
. _Default
. _Coerce
acExemptedMembers :: Lens' AuditConfig [Text]
acExemptedMembers
= lens _acExemptedMembers
(\ s a -> s{_acExemptedMembers = a})
. _Default
. _Coerce
instance FromJSON AuditConfig where
parseJSON
= withObject "AuditConfig"
(\ o ->
AuditConfig' <$>
(o .:? "service") <*>
(o .:? "auditLogConfigs" .!= mempty)
<*> (o .:? "exemptedMembers" .!= mempty))
instance ToJSON AuditConfig where
toJSON AuditConfig'{..}
= object
(catMaybes
[("service" .=) <$> _acService,
("auditLogConfigs" .=) <$> _acAuditLogConfigs,
("exemptedMembers" .=) <$> _acExemptedMembers])
data AcceleratorTypeAggregatedListWarningDataItem =
AcceleratorTypeAggregatedListWarningDataItem'
{ _atalwdiValue :: !(Maybe Text)
, _atalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypeAggregatedListWarningDataItem
:: AcceleratorTypeAggregatedListWarningDataItem
acceleratorTypeAggregatedListWarningDataItem =
AcceleratorTypeAggregatedListWarningDataItem'
{_atalwdiValue = Nothing, _atalwdiKey = Nothing}
atalwdiValue :: Lens' AcceleratorTypeAggregatedListWarningDataItem (Maybe Text)
atalwdiValue
= lens _atalwdiValue (\ s a -> s{_atalwdiValue = a})
atalwdiKey :: Lens' AcceleratorTypeAggregatedListWarningDataItem (Maybe Text)
atalwdiKey
= lens _atalwdiKey (\ s a -> s{_atalwdiKey = a})
instance FromJSON
AcceleratorTypeAggregatedListWarningDataItem
where
parseJSON
= withObject
"AcceleratorTypeAggregatedListWarningDataItem"
(\ o ->
AcceleratorTypeAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
AcceleratorTypeAggregatedListWarningDataItem
where
toJSON
AcceleratorTypeAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _atalwdiValue,
("key" .=) <$> _atalwdiKey])
data InstanceGroupsSetNamedPortsRequest =
InstanceGroupsSetNamedPortsRequest'
{ _igsnprFingerprint :: !(Maybe Bytes)
, _igsnprNamedPorts :: !(Maybe [NamedPort])
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsSetNamedPortsRequest
:: InstanceGroupsSetNamedPortsRequest
instanceGroupsSetNamedPortsRequest =
InstanceGroupsSetNamedPortsRequest'
{_igsnprFingerprint = Nothing, _igsnprNamedPorts = Nothing}
igsnprFingerprint :: Lens' InstanceGroupsSetNamedPortsRequest (Maybe ByteString)
igsnprFingerprint
= lens _igsnprFingerprint
(\ s a -> s{_igsnprFingerprint = a})
. mapping _Bytes
igsnprNamedPorts :: Lens' InstanceGroupsSetNamedPortsRequest [NamedPort]
igsnprNamedPorts
= lens _igsnprNamedPorts
(\ s a -> s{_igsnprNamedPorts = a})
. _Default
. _Coerce
instance FromJSON InstanceGroupsSetNamedPortsRequest
where
parseJSON
= withObject "InstanceGroupsSetNamedPortsRequest"
(\ o ->
InstanceGroupsSetNamedPortsRequest' <$>
(o .:? "fingerprint") <*>
(o .:? "namedPorts" .!= mempty))
instance ToJSON InstanceGroupsSetNamedPortsRequest
where
toJSON InstanceGroupsSetNamedPortsRequest'{..}
= object
(catMaybes
[("fingerprint" .=) <$> _igsnprFingerprint,
("namedPorts" .=) <$> _igsnprNamedPorts])
newtype NodeTemplateNodeAffinityLabels =
NodeTemplateNodeAffinityLabels'
{ _ntnalAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateNodeAffinityLabels
:: HashMap Text Text
-> NodeTemplateNodeAffinityLabels
nodeTemplateNodeAffinityLabels pNtnalAddtional_ =
NodeTemplateNodeAffinityLabels' {_ntnalAddtional = _Coerce # pNtnalAddtional_}
ntnalAddtional :: Lens' NodeTemplateNodeAffinityLabels (HashMap Text Text)
ntnalAddtional
= lens _ntnalAddtional
(\ s a -> s{_ntnalAddtional = a})
. _Coerce
instance FromJSON NodeTemplateNodeAffinityLabels
where
parseJSON
= withObject "NodeTemplateNodeAffinityLabels"
(\ o ->
NodeTemplateNodeAffinityLabels' <$>
(parseJSONObject o))
instance ToJSON NodeTemplateNodeAffinityLabels where
toJSON = toJSON . _ntnalAddtional
data OperationList =
OperationList'
{ _olNextPageToken :: !(Maybe Text)
, _olKind :: !Text
, _olItems :: !(Maybe [Operation])
, _olSelfLink :: !(Maybe Text)
, _olWarning :: !(Maybe OperationListWarning)
, _olId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationList
:: OperationList
operationList =
OperationList'
{ _olNextPageToken = Nothing
, _olKind = "compute#operationList"
, _olItems = Nothing
, _olSelfLink = Nothing
, _olWarning = Nothing
, _olId = Nothing
}
olNextPageToken :: Lens' OperationList (Maybe Text)
olNextPageToken
= lens _olNextPageToken
(\ s a -> s{_olNextPageToken = a})
olKind :: Lens' OperationList Text
olKind = lens _olKind (\ s a -> s{_olKind = a})
olItems :: Lens' OperationList [Operation]
olItems
= lens _olItems (\ s a -> s{_olItems = a}) . _Default
. _Coerce
olSelfLink :: Lens' OperationList (Maybe Text)
olSelfLink
= lens _olSelfLink (\ s a -> s{_olSelfLink = a})
olWarning :: Lens' OperationList (Maybe OperationListWarning)
olWarning
= lens _olWarning (\ s a -> s{_olWarning = a})
olId :: Lens' OperationList (Maybe Text)
olId = lens _olId (\ s a -> s{_olId = a})
instance FromJSON OperationList where
parseJSON
= withObject "OperationList"
(\ o ->
OperationList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#operationList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON OperationList where
toJSON OperationList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _olNextPageToken,
Just ("kind" .= _olKind), ("items" .=) <$> _olItems,
("selfLink" .=) <$> _olSelfLink,
("warning" .=) <$> _olWarning, ("id" .=) <$> _olId])
data NodeGroupListWarning =
NodeGroupListWarning'
{ _nglwData :: !(Maybe [NodeGroupListWarningDataItem])
, _nglwCode :: !(Maybe NodeGroupListWarningCode)
, _nglwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupListWarning
:: NodeGroupListWarning
nodeGroupListWarning =
NodeGroupListWarning'
{_nglwData = Nothing, _nglwCode = Nothing, _nglwMessage = Nothing}
nglwData :: Lens' NodeGroupListWarning [NodeGroupListWarningDataItem]
nglwData
= lens _nglwData (\ s a -> s{_nglwData = a}) .
_Default
. _Coerce
nglwCode :: Lens' NodeGroupListWarning (Maybe NodeGroupListWarningCode)
nglwCode = lens _nglwCode (\ s a -> s{_nglwCode = a})
nglwMessage :: Lens' NodeGroupListWarning (Maybe Text)
nglwMessage
= lens _nglwMessage (\ s a -> s{_nglwMessage = a})
instance FromJSON NodeGroupListWarning where
parseJSON
= withObject "NodeGroupListWarning"
(\ o ->
NodeGroupListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeGroupListWarning where
toJSON NodeGroupListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _nglwData,
("code" .=) <$> _nglwCode,
("message" .=) <$> _nglwMessage])
data DiskList =
DiskList'
{ _dlNextPageToken :: !(Maybe Text)
, _dlKind :: !Text
, _dlItems :: !(Maybe [Disk])
, _dlSelfLink :: !(Maybe Text)
, _dlWarning :: !(Maybe DiskListWarning)
, _dlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskList
:: DiskList
diskList =
DiskList'
{ _dlNextPageToken = Nothing
, _dlKind = "compute#diskList"
, _dlItems = Nothing
, _dlSelfLink = Nothing
, _dlWarning = Nothing
, _dlId = Nothing
}
dlNextPageToken :: Lens' DiskList (Maybe Text)
dlNextPageToken
= lens _dlNextPageToken
(\ s a -> s{_dlNextPageToken = a})
dlKind :: Lens' DiskList Text
dlKind = lens _dlKind (\ s a -> s{_dlKind = a})
dlItems :: Lens' DiskList [Disk]
dlItems
= lens _dlItems (\ s a -> s{_dlItems = a}) . _Default
. _Coerce
dlSelfLink :: Lens' DiskList (Maybe Text)
dlSelfLink
= lens _dlSelfLink (\ s a -> s{_dlSelfLink = a})
dlWarning :: Lens' DiskList (Maybe DiskListWarning)
dlWarning
= lens _dlWarning (\ s a -> s{_dlWarning = a})
dlId :: Lens' DiskList (Maybe Text)
dlId = lens _dlId (\ s a -> s{_dlId = a})
instance FromJSON DiskList where
parseJSON
= withObject "DiskList"
(\ o ->
DiskList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#diskList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON DiskList where
toJSON DiskList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _dlNextPageToken,
Just ("kind" .= _dlKind), ("items" .=) <$> _dlItems,
("selfLink" .=) <$> _dlSelfLink,
("warning" .=) <$> _dlWarning, ("id" .=) <$> _dlId])
data NetworkEndpointGroupsListNetworkEndpointsWarning =
NetworkEndpointGroupsListNetworkEndpointsWarning'
{ _neglnewData :: !(Maybe [NetworkEndpointGroupsListNetworkEndpointsWarningDataItem])
, _neglnewCode :: !(Maybe NetworkEndpointGroupsListNetworkEndpointsWarningCode)
, _neglnewMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsListNetworkEndpointsWarning
:: NetworkEndpointGroupsListNetworkEndpointsWarning
networkEndpointGroupsListNetworkEndpointsWarning =
NetworkEndpointGroupsListNetworkEndpointsWarning'
{_neglnewData = Nothing, _neglnewCode = Nothing, _neglnewMessage = Nothing}
neglnewData :: Lens' NetworkEndpointGroupsListNetworkEndpointsWarning [NetworkEndpointGroupsListNetworkEndpointsWarningDataItem]
neglnewData
= lens _neglnewData (\ s a -> s{_neglnewData = a}) .
_Default
. _Coerce
neglnewCode :: Lens' NetworkEndpointGroupsListNetworkEndpointsWarning (Maybe NetworkEndpointGroupsListNetworkEndpointsWarningCode)
neglnewCode
= lens _neglnewCode (\ s a -> s{_neglnewCode = a})
neglnewMessage :: Lens' NetworkEndpointGroupsListNetworkEndpointsWarning (Maybe Text)
neglnewMessage
= lens _neglnewMessage
(\ s a -> s{_neglnewMessage = a})
instance FromJSON
NetworkEndpointGroupsListNetworkEndpointsWarning
where
parseJSON
= withObject
"NetworkEndpointGroupsListNetworkEndpointsWarning"
(\ o ->
NetworkEndpointGroupsListNetworkEndpointsWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
NetworkEndpointGroupsListNetworkEndpointsWarning
where
toJSON
NetworkEndpointGroupsListNetworkEndpointsWarning'{..}
= object
(catMaybes
[("data" .=) <$> _neglnewData,
("code" .=) <$> _neglnewCode,
("message" .=) <$> _neglnewMessage])
newtype TargetPoolsAddInstanceRequest =
TargetPoolsAddInstanceRequest'
{ _tpairInstances :: Maybe [InstanceReference]
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolsAddInstanceRequest
:: TargetPoolsAddInstanceRequest
targetPoolsAddInstanceRequest =
TargetPoolsAddInstanceRequest' {_tpairInstances = Nothing}
tpairInstances :: Lens' TargetPoolsAddInstanceRequest [InstanceReference]
tpairInstances
= lens _tpairInstances
(\ s a -> s{_tpairInstances = a})
. _Default
. _Coerce
instance FromJSON TargetPoolsAddInstanceRequest where
parseJSON
= withObject "TargetPoolsAddInstanceRequest"
(\ o ->
TargetPoolsAddInstanceRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON TargetPoolsAddInstanceRequest where
toJSON TargetPoolsAddInstanceRequest'{..}
= object
(catMaybes [("instances" .=) <$> _tpairInstances])
newtype NodeGroupsDeleteNodesRequest =
NodeGroupsDeleteNodesRequest'
{ _ngdnrNodes :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsDeleteNodesRequest
:: NodeGroupsDeleteNodesRequest
nodeGroupsDeleteNodesRequest =
NodeGroupsDeleteNodesRequest' {_ngdnrNodes = Nothing}
ngdnrNodes :: Lens' NodeGroupsDeleteNodesRequest [Text]
ngdnrNodes
= lens _ngdnrNodes (\ s a -> s{_ngdnrNodes = a}) .
_Default
. _Coerce
instance FromJSON NodeGroupsDeleteNodesRequest where
parseJSON
= withObject "NodeGroupsDeleteNodesRequest"
(\ o ->
NodeGroupsDeleteNodesRequest' <$>
(o .:? "nodes" .!= mempty))
instance ToJSON NodeGroupsDeleteNodesRequest where
toJSON NodeGroupsDeleteNodesRequest'{..}
= object (catMaybes [("nodes" .=) <$> _ngdnrNodes])
data RegionAutoscalerList =
RegionAutoscalerList'
{ _rNextPageToken :: !(Maybe Text)
, _rKind :: !Text
, _rItems :: !(Maybe [Autoscaler])
, _rSelfLink :: !(Maybe Text)
, _rWarning :: !(Maybe RegionAutoscalerListWarning)
, _rId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionAutoscalerList
:: RegionAutoscalerList
regionAutoscalerList =
RegionAutoscalerList'
{ _rNextPageToken = Nothing
, _rKind = "compute#regionAutoscalerList"
, _rItems = Nothing
, _rSelfLink = Nothing
, _rWarning = Nothing
, _rId = Nothing
}
rNextPageToken :: Lens' RegionAutoscalerList (Maybe Text)
rNextPageToken
= lens _rNextPageToken
(\ s a -> s{_rNextPageToken = a})
rKind :: Lens' RegionAutoscalerList Text
rKind = lens _rKind (\ s a -> s{_rKind = a})
rItems :: Lens' RegionAutoscalerList [Autoscaler]
rItems
= lens _rItems (\ s a -> s{_rItems = a}) . _Default .
_Coerce
rSelfLink :: Lens' RegionAutoscalerList (Maybe Text)
rSelfLink
= lens _rSelfLink (\ s a -> s{_rSelfLink = a})
rWarning :: Lens' RegionAutoscalerList (Maybe RegionAutoscalerListWarning)
rWarning = lens _rWarning (\ s a -> s{_rWarning = a})
rId :: Lens' RegionAutoscalerList (Maybe Text)
rId = lens _rId (\ s a -> s{_rId = a})
instance FromJSON RegionAutoscalerList where
parseJSON
= withObject "RegionAutoscalerList"
(\ o ->
RegionAutoscalerList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#regionAutoscalerList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RegionAutoscalerList where
toJSON RegionAutoscalerList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _rNextPageToken,
Just ("kind" .= _rKind), ("items" .=) <$> _rItems,
("selfLink" .=) <$> _rSelfLink,
("warning" .=) <$> _rWarning, ("id" .=) <$> _rId])
data HealthCheckListWarningDataItem =
HealthCheckListWarningDataItem'
{ _hclwdiValue :: !(Maybe Text)
, _hclwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
healthCheckListWarningDataItem
:: HealthCheckListWarningDataItem
healthCheckListWarningDataItem =
HealthCheckListWarningDataItem' {_hclwdiValue = Nothing, _hclwdiKey = Nothing}
hclwdiValue :: Lens' HealthCheckListWarningDataItem (Maybe Text)
hclwdiValue
= lens _hclwdiValue (\ s a -> s{_hclwdiValue = a})
hclwdiKey :: Lens' HealthCheckListWarningDataItem (Maybe Text)
hclwdiKey
= lens _hclwdiKey (\ s a -> s{_hclwdiKey = a})
instance FromJSON HealthCheckListWarningDataItem
where
parseJSON
= withObject "HealthCheckListWarningDataItem"
(\ o ->
HealthCheckListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON HealthCheckListWarningDataItem where
toJSON HealthCheckListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _hclwdiValue,
("key" .=) <$> _hclwdiKey])
data NodeGroupAggregatedListWarningDataItem =
NodeGroupAggregatedListWarningDataItem'
{ _ngalwdiValue :: !(Maybe Text)
, _ngalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupAggregatedListWarningDataItem
:: NodeGroupAggregatedListWarningDataItem
nodeGroupAggregatedListWarningDataItem =
NodeGroupAggregatedListWarningDataItem'
{_ngalwdiValue = Nothing, _ngalwdiKey = Nothing}
ngalwdiValue :: Lens' NodeGroupAggregatedListWarningDataItem (Maybe Text)
ngalwdiValue
= lens _ngalwdiValue (\ s a -> s{_ngalwdiValue = a})
ngalwdiKey :: Lens' NodeGroupAggregatedListWarningDataItem (Maybe Text)
ngalwdiKey
= lens _ngalwdiKey (\ s a -> s{_ngalwdiKey = a})
instance FromJSON
NodeGroupAggregatedListWarningDataItem
where
parseJSON
= withObject "NodeGroupAggregatedListWarningDataItem"
(\ o ->
NodeGroupAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
NodeGroupAggregatedListWarningDataItem
where
toJSON NodeGroupAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ngalwdiValue,
("key" .=) <$> _ngalwdiKey])
newtype InstanceGroupsAddInstancesRequest =
InstanceGroupsAddInstancesRequest'
{ _igairInstances :: Maybe [InstanceReference]
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsAddInstancesRequest
:: InstanceGroupsAddInstancesRequest
instanceGroupsAddInstancesRequest =
InstanceGroupsAddInstancesRequest' {_igairInstances = Nothing}
igairInstances :: Lens' InstanceGroupsAddInstancesRequest [InstanceReference]
igairInstances
= lens _igairInstances
(\ s a -> s{_igairInstances = a})
. _Default
. _Coerce
instance FromJSON InstanceGroupsAddInstancesRequest
where
parseJSON
= withObject "InstanceGroupsAddInstancesRequest"
(\ o ->
InstanceGroupsAddInstancesRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON InstanceGroupsAddInstancesRequest
where
toJSON InstanceGroupsAddInstancesRequest'{..}
= object
(catMaybes [("instances" .=) <$> _igairInstances])
data NodeGroupNode =
NodeGroupNode'
{ _ngnStatus :: !(Maybe NodeGroupNodeStatus)
, _ngnName :: !(Maybe Text)
, _ngnInstances :: !(Maybe [Text])
, _ngnNodeType :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupNode
:: NodeGroupNode
nodeGroupNode =
NodeGroupNode'
{ _ngnStatus = Nothing
, _ngnName = Nothing
, _ngnInstances = Nothing
, _ngnNodeType = Nothing
}
ngnStatus :: Lens' NodeGroupNode (Maybe NodeGroupNodeStatus)
ngnStatus
= lens _ngnStatus (\ s a -> s{_ngnStatus = a})
ngnName :: Lens' NodeGroupNode (Maybe Text)
ngnName = lens _ngnName (\ s a -> s{_ngnName = a})
ngnInstances :: Lens' NodeGroupNode [Text]
ngnInstances
= lens _ngnInstances (\ s a -> s{_ngnInstances = a})
. _Default
. _Coerce
ngnNodeType :: Lens' NodeGroupNode (Maybe Text)
ngnNodeType
= lens _ngnNodeType (\ s a -> s{_ngnNodeType = a})
instance FromJSON NodeGroupNode where
parseJSON
= withObject "NodeGroupNode"
(\ o ->
NodeGroupNode' <$>
(o .:? "status") <*> (o .:? "name") <*>
(o .:? "instances" .!= mempty)
<*> (o .:? "nodeType"))
instance ToJSON NodeGroupNode where
toJSON NodeGroupNode'{..}
= object
(catMaybes
[("status" .=) <$> _ngnStatus,
("name" .=) <$> _ngnName,
("instances" .=) <$> _ngnInstances,
("nodeType" .=) <$> _ngnNodeType])
data InstanceGroupManagerList =
InstanceGroupManagerList'
{ _igmlNextPageToken :: !(Maybe Text)
, _igmlKind :: !Text
, _igmlItems :: !(Maybe [InstanceGroupManager])
, _igmlSelfLink :: !(Maybe Text)
, _igmlWarning :: !(Maybe InstanceGroupManagerListWarning)
, _igmlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerList
:: InstanceGroupManagerList
instanceGroupManagerList =
InstanceGroupManagerList'
{ _igmlNextPageToken = Nothing
, _igmlKind = "compute#instanceGroupManagerList"
, _igmlItems = Nothing
, _igmlSelfLink = Nothing
, _igmlWarning = Nothing
, _igmlId = Nothing
}
igmlNextPageToken :: Lens' InstanceGroupManagerList (Maybe Text)
igmlNextPageToken
= lens _igmlNextPageToken
(\ s a -> s{_igmlNextPageToken = a})
igmlKind :: Lens' InstanceGroupManagerList Text
igmlKind = lens _igmlKind (\ s a -> s{_igmlKind = a})
igmlItems :: Lens' InstanceGroupManagerList [InstanceGroupManager]
igmlItems
= lens _igmlItems (\ s a -> s{_igmlItems = a}) .
_Default
. _Coerce
igmlSelfLink :: Lens' InstanceGroupManagerList (Maybe Text)
igmlSelfLink
= lens _igmlSelfLink (\ s a -> s{_igmlSelfLink = a})
igmlWarning :: Lens' InstanceGroupManagerList (Maybe InstanceGroupManagerListWarning)
igmlWarning
= lens _igmlWarning (\ s a -> s{_igmlWarning = a})
igmlId :: Lens' InstanceGroupManagerList (Maybe Text)
igmlId = lens _igmlId (\ s a -> s{_igmlId = a})
instance FromJSON InstanceGroupManagerList where
parseJSON
= withObject "InstanceGroupManagerList"
(\ o ->
InstanceGroupManagerList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#instanceGroupManagerList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceGroupManagerList where
toJSON InstanceGroupManagerList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _igmlNextPageToken,
Just ("kind" .= _igmlKind),
("items" .=) <$> _igmlItems,
("selfLink" .=) <$> _igmlSelfLink,
("warning" .=) <$> _igmlWarning,
("id" .=) <$> _igmlId])
data InstanceGroupManagerVersion =
InstanceGroupManagerVersion'
{ _igmvInstanceTemplate :: !(Maybe Text)
, _igmvTargetSize :: !(Maybe FixedOrPercent)
, _igmvName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerVersion
:: InstanceGroupManagerVersion
instanceGroupManagerVersion =
InstanceGroupManagerVersion'
{ _igmvInstanceTemplate = Nothing
, _igmvTargetSize = Nothing
, _igmvName = Nothing
}
igmvInstanceTemplate :: Lens' InstanceGroupManagerVersion (Maybe Text)
igmvInstanceTemplate
= lens _igmvInstanceTemplate
(\ s a -> s{_igmvInstanceTemplate = a})
igmvTargetSize :: Lens' InstanceGroupManagerVersion (Maybe FixedOrPercent)
igmvTargetSize
= lens _igmvTargetSize
(\ s a -> s{_igmvTargetSize = a})
igmvName :: Lens' InstanceGroupManagerVersion (Maybe Text)
igmvName = lens _igmvName (\ s a -> s{_igmvName = a})
instance FromJSON InstanceGroupManagerVersion where
parseJSON
= withObject "InstanceGroupManagerVersion"
(\ o ->
InstanceGroupManagerVersion' <$>
(o .:? "instanceTemplate") <*> (o .:? "targetSize")
<*> (o .:? "name"))
instance ToJSON InstanceGroupManagerVersion where
toJSON InstanceGroupManagerVersion'{..}
= object
(catMaybes
[("instanceTemplate" .=) <$> _igmvInstanceTemplate,
("targetSize" .=) <$> _igmvTargetSize,
("name" .=) <$> _igmvName])
data NetworkEndpointGroupsScopedListWarning =
NetworkEndpointGroupsScopedListWarning'
{ _negslwData :: !(Maybe [NetworkEndpointGroupsScopedListWarningDataItem])
, _negslwCode :: !(Maybe NetworkEndpointGroupsScopedListWarningCode)
, _negslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsScopedListWarning
:: NetworkEndpointGroupsScopedListWarning
networkEndpointGroupsScopedListWarning =
NetworkEndpointGroupsScopedListWarning'
{_negslwData = Nothing, _negslwCode = Nothing, _negslwMessage = Nothing}
negslwData :: Lens' NetworkEndpointGroupsScopedListWarning [NetworkEndpointGroupsScopedListWarningDataItem]
negslwData
= lens _negslwData (\ s a -> s{_negslwData = a}) .
_Default
. _Coerce
negslwCode :: Lens' NetworkEndpointGroupsScopedListWarning (Maybe NetworkEndpointGroupsScopedListWarningCode)
negslwCode
= lens _negslwCode (\ s a -> s{_negslwCode = a})
negslwMessage :: Lens' NetworkEndpointGroupsScopedListWarning (Maybe Text)
negslwMessage
= lens _negslwMessage
(\ s a -> s{_negslwMessage = a})
instance FromJSON
NetworkEndpointGroupsScopedListWarning
where
parseJSON
= withObject "NetworkEndpointGroupsScopedListWarning"
(\ o ->
NetworkEndpointGroupsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
NetworkEndpointGroupsScopedListWarning
where
toJSON NetworkEndpointGroupsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _negslwData,
("code" .=) <$> _negslwCode,
("message" .=) <$> _negslwMessage])
data SubnetworksScopedListWarning =
SubnetworksScopedListWarning'
{ _sslwData :: !(Maybe [SubnetworksScopedListWarningDataItem])
, _sslwCode :: !(Maybe SubnetworksScopedListWarningCode)
, _sslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworksScopedListWarning
:: SubnetworksScopedListWarning
subnetworksScopedListWarning =
SubnetworksScopedListWarning'
{_sslwData = Nothing, _sslwCode = Nothing, _sslwMessage = Nothing}
sslwData :: Lens' SubnetworksScopedListWarning [SubnetworksScopedListWarningDataItem]
sslwData
= lens _sslwData (\ s a -> s{_sslwData = a}) .
_Default
. _Coerce
sslwCode :: Lens' SubnetworksScopedListWarning (Maybe SubnetworksScopedListWarningCode)
sslwCode = lens _sslwCode (\ s a -> s{_sslwCode = a})
sslwMessage :: Lens' SubnetworksScopedListWarning (Maybe Text)
sslwMessage
= lens _sslwMessage (\ s a -> s{_sslwMessage = a})
instance FromJSON SubnetworksScopedListWarning where
parseJSON
= withObject "SubnetworksScopedListWarning"
(\ o ->
SubnetworksScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SubnetworksScopedListWarning where
toJSON SubnetworksScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _sslwData,
("code" .=) <$> _sslwCode,
("message" .=) <$> _sslwMessage])
newtype NodeGroupsSetNodeTemplateRequest =
NodeGroupsSetNodeTemplateRequest'
{ _ngsntrNodeTemplate :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsSetNodeTemplateRequest
:: NodeGroupsSetNodeTemplateRequest
nodeGroupsSetNodeTemplateRequest =
NodeGroupsSetNodeTemplateRequest' {_ngsntrNodeTemplate = Nothing}
ngsntrNodeTemplate :: Lens' NodeGroupsSetNodeTemplateRequest (Maybe Text)
ngsntrNodeTemplate
= lens _ngsntrNodeTemplate
(\ s a -> s{_ngsntrNodeTemplate = a})
instance FromJSON NodeGroupsSetNodeTemplateRequest
where
parseJSON
= withObject "NodeGroupsSetNodeTemplateRequest"
(\ o ->
NodeGroupsSetNodeTemplateRequest' <$>
(o .:? "nodeTemplate"))
instance ToJSON NodeGroupsSetNodeTemplateRequest
where
toJSON NodeGroupsSetNodeTemplateRequest'{..}
= object
(catMaybes
[("nodeTemplate" .=) <$> _ngsntrNodeTemplate])
data AcceleratorTypeListWarning =
AcceleratorTypeListWarning'
{ _atlwData :: !(Maybe [AcceleratorTypeListWarningDataItem])
, _atlwCode :: !(Maybe AcceleratorTypeListWarningCode)
, _atlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypeListWarning
:: AcceleratorTypeListWarning
acceleratorTypeListWarning =
AcceleratorTypeListWarning'
{_atlwData = Nothing, _atlwCode = Nothing, _atlwMessage = Nothing}
atlwData :: Lens' AcceleratorTypeListWarning [AcceleratorTypeListWarningDataItem]
atlwData
= lens _atlwData (\ s a -> s{_atlwData = a}) .
_Default
. _Coerce
atlwCode :: Lens' AcceleratorTypeListWarning (Maybe AcceleratorTypeListWarningCode)
atlwCode = lens _atlwCode (\ s a -> s{_atlwCode = a})
atlwMessage :: Lens' AcceleratorTypeListWarning (Maybe Text)
atlwMessage
= lens _atlwMessage (\ s a -> s{_atlwMessage = a})
instance FromJSON AcceleratorTypeListWarning where
parseJSON
= withObject "AcceleratorTypeListWarning"
(\ o ->
AcceleratorTypeListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AcceleratorTypeListWarning where
toJSON AcceleratorTypeListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _atlwData,
("code" .=) <$> _atlwCode,
("message" .=) <$> _atlwMessage])
data Image =
Image'
{ _iStatus :: !(Maybe ImageStatus)
, _iSourceSnapshotId :: !(Maybe Text)
, _iImageEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _iSourceImage :: !(Maybe Text)
, _iDiskSizeGb :: !(Maybe (Textual Int64))
, _iSourceType :: !ImageSourceType
, _iSourceDiskId :: !(Maybe Text)
, _iKind :: !Text
, _iSourceDiskEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _iGuestOSFeatures :: !(Maybe [GuestOSFeature])
, _iArchiveSizeBytes :: !(Maybe (Textual Int64))
, _iFamily :: !(Maybe Text)
, _iRawDisk :: !(Maybe ImageRawDisk)
, _iSelfLink :: !(Maybe Text)
, _iName :: !(Maybe Text)
, _iSourceImageId :: !(Maybe Text)
, _iCreationTimestamp :: !(Maybe Text)
, _iSourceImageEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _iLicenseCodes :: !(Maybe [Textual Int64])
, _iId :: !(Maybe (Textual Word64))
, _iLabels :: !(Maybe ImageLabels)
, _iLicenses :: !(Maybe [Text])
, _iSourceDisk :: !(Maybe Text)
, _iLabelFingerprint :: !(Maybe Bytes)
, _iDescription :: !(Maybe Text)
, _iSourceSnapshotEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _iDeprecated :: !(Maybe DeprecationStatus)
, _iSourceSnapshot :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
image
:: Image
image =
Image'
{ _iStatus = Nothing
, _iSourceSnapshotId = Nothing
, _iImageEncryptionKey = Nothing
, _iSourceImage = Nothing
, _iDiskSizeGb = Nothing
, _iSourceType = Raw
, _iSourceDiskId = Nothing
, _iKind = "compute#image"
, _iSourceDiskEncryptionKey = Nothing
, _iGuestOSFeatures = Nothing
, _iArchiveSizeBytes = Nothing
, _iFamily = Nothing
, _iRawDisk = Nothing
, _iSelfLink = Nothing
, _iName = Nothing
, _iSourceImageId = Nothing
, _iCreationTimestamp = Nothing
, _iSourceImageEncryptionKey = Nothing
, _iLicenseCodes = Nothing
, _iId = Nothing
, _iLabels = Nothing
, _iLicenses = Nothing
, _iSourceDisk = Nothing
, _iLabelFingerprint = Nothing
, _iDescription = Nothing
, _iSourceSnapshotEncryptionKey = Nothing
, _iDeprecated = Nothing
, _iSourceSnapshot = Nothing
}
iStatus :: Lens' Image (Maybe ImageStatus)
iStatus = lens _iStatus (\ s a -> s{_iStatus = a})
iSourceSnapshotId :: Lens' Image (Maybe Text)
iSourceSnapshotId
= lens _iSourceSnapshotId
(\ s a -> s{_iSourceSnapshotId = a})
iImageEncryptionKey :: Lens' Image (Maybe CustomerEncryptionKey)
iImageEncryptionKey
= lens _iImageEncryptionKey
(\ s a -> s{_iImageEncryptionKey = a})
iSourceImage :: Lens' Image (Maybe Text)
iSourceImage
= lens _iSourceImage (\ s a -> s{_iSourceImage = a})
iDiskSizeGb :: Lens' Image (Maybe Int64)
iDiskSizeGb
= lens _iDiskSizeGb (\ s a -> s{_iDiskSizeGb = a}) .
mapping _Coerce
iSourceType :: Lens' Image ImageSourceType
iSourceType
= lens _iSourceType (\ s a -> s{_iSourceType = a})
iSourceDiskId :: Lens' Image (Maybe Text)
iSourceDiskId
= lens _iSourceDiskId
(\ s a -> s{_iSourceDiskId = a})
iKind :: Lens' Image Text
iKind = lens _iKind (\ s a -> s{_iKind = a})
iSourceDiskEncryptionKey :: Lens' Image (Maybe CustomerEncryptionKey)
iSourceDiskEncryptionKey
= lens _iSourceDiskEncryptionKey
(\ s a -> s{_iSourceDiskEncryptionKey = a})
iGuestOSFeatures :: Lens' Image [GuestOSFeature]
iGuestOSFeatures
= lens _iGuestOSFeatures
(\ s a -> s{_iGuestOSFeatures = a})
. _Default
. _Coerce
iArchiveSizeBytes :: Lens' Image (Maybe Int64)
iArchiveSizeBytes
= lens _iArchiveSizeBytes
(\ s a -> s{_iArchiveSizeBytes = a})
. mapping _Coerce
iFamily :: Lens' Image (Maybe Text)
iFamily = lens _iFamily (\ s a -> s{_iFamily = a})
iRawDisk :: Lens' Image (Maybe ImageRawDisk)
iRawDisk = lens _iRawDisk (\ s a -> s{_iRawDisk = a})
iSelfLink :: Lens' Image (Maybe Text)
iSelfLink
= lens _iSelfLink (\ s a -> s{_iSelfLink = a})
iName :: Lens' Image (Maybe Text)
iName = lens _iName (\ s a -> s{_iName = a})
iSourceImageId :: Lens' Image (Maybe Text)
iSourceImageId
= lens _iSourceImageId
(\ s a -> s{_iSourceImageId = a})
iCreationTimestamp :: Lens' Image (Maybe Text)
iCreationTimestamp
= lens _iCreationTimestamp
(\ s a -> s{_iCreationTimestamp = a})
iSourceImageEncryptionKey :: Lens' Image (Maybe CustomerEncryptionKey)
iSourceImageEncryptionKey
= lens _iSourceImageEncryptionKey
(\ s a -> s{_iSourceImageEncryptionKey = a})
iLicenseCodes :: Lens' Image [Int64]
iLicenseCodes
= lens _iLicenseCodes
(\ s a -> s{_iLicenseCodes = a})
. _Default
. _Coerce
iId :: Lens' Image (Maybe Word64)
iId
= lens _iId (\ s a -> s{_iId = a}) . mapping _Coerce
iLabels :: Lens' Image (Maybe ImageLabels)
iLabels = lens _iLabels (\ s a -> s{_iLabels = a})
iLicenses :: Lens' Image [Text]
iLicenses
= lens _iLicenses (\ s a -> s{_iLicenses = a}) .
_Default
. _Coerce
iSourceDisk :: Lens' Image (Maybe Text)
iSourceDisk
= lens _iSourceDisk (\ s a -> s{_iSourceDisk = a})
iLabelFingerprint :: Lens' Image (Maybe ByteString)
iLabelFingerprint
= lens _iLabelFingerprint
(\ s a -> s{_iLabelFingerprint = a})
. mapping _Bytes
iDescription :: Lens' Image (Maybe Text)
iDescription
= lens _iDescription (\ s a -> s{_iDescription = a})
iSourceSnapshotEncryptionKey :: Lens' Image (Maybe CustomerEncryptionKey)
iSourceSnapshotEncryptionKey
= lens _iSourceSnapshotEncryptionKey
(\ s a -> s{_iSourceSnapshotEncryptionKey = a})
iDeprecated :: Lens' Image (Maybe DeprecationStatus)
iDeprecated
= lens _iDeprecated (\ s a -> s{_iDeprecated = a})
iSourceSnapshot :: Lens' Image (Maybe Text)
iSourceSnapshot
= lens _iSourceSnapshot
(\ s a -> s{_iSourceSnapshot = a})
instance FromJSON Image where
parseJSON
= withObject "Image"
(\ o ->
Image' <$>
(o .:? "status") <*> (o .:? "sourceSnapshotId") <*>
(o .:? "imageEncryptionKey")
<*> (o .:? "sourceImage")
<*> (o .:? "diskSizeGb")
<*> (o .:? "sourceType" .!= Raw)
<*> (o .:? "sourceDiskId")
<*> (o .:? "kind" .!= "compute#image")
<*> (o .:? "sourceDiskEncryptionKey")
<*> (o .:? "guestOsFeatures" .!= mempty)
<*> (o .:? "archiveSizeBytes")
<*> (o .:? "family")
<*> (o .:? "rawDisk")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "sourceImageId")
<*> (o .:? "creationTimestamp")
<*> (o .:? "sourceImageEncryptionKey")
<*> (o .:? "licenseCodes" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "labels")
<*> (o .:? "licenses" .!= mempty)
<*> (o .:? "sourceDisk")
<*> (o .:? "labelFingerprint")
<*> (o .:? "description")
<*> (o .:? "sourceSnapshotEncryptionKey")
<*> (o .:? "deprecated")
<*> (o .:? "sourceSnapshot"))
instance ToJSON Image where
toJSON Image'{..}
= object
(catMaybes
[("status" .=) <$> _iStatus,
("sourceSnapshotId" .=) <$> _iSourceSnapshotId,
("imageEncryptionKey" .=) <$> _iImageEncryptionKey,
("sourceImage" .=) <$> _iSourceImage,
("diskSizeGb" .=) <$> _iDiskSizeGb,
Just ("sourceType" .= _iSourceType),
("sourceDiskId" .=) <$> _iSourceDiskId,
Just ("kind" .= _iKind),
("sourceDiskEncryptionKey" .=) <$>
_iSourceDiskEncryptionKey,
("guestOsFeatures" .=) <$> _iGuestOSFeatures,
("archiveSizeBytes" .=) <$> _iArchiveSizeBytes,
("family" .=) <$> _iFamily,
("rawDisk" .=) <$> _iRawDisk,
("selfLink" .=) <$> _iSelfLink,
("name" .=) <$> _iName,
("sourceImageId" .=) <$> _iSourceImageId,
("creationTimestamp" .=) <$> _iCreationTimestamp,
("sourceImageEncryptionKey" .=) <$>
_iSourceImageEncryptionKey,
("licenseCodes" .=) <$> _iLicenseCodes,
("id" .=) <$> _iId, ("labels" .=) <$> _iLabels,
("licenses" .=) <$> _iLicenses,
("sourceDisk" .=) <$> _iSourceDisk,
("labelFingerprint" .=) <$> _iLabelFingerprint,
("description" .=) <$> _iDescription,
("sourceSnapshotEncryptionKey" .=) <$>
_iSourceSnapshotEncryptionKey,
("deprecated" .=) <$> _iDeprecated,
("sourceSnapshot" .=) <$> _iSourceSnapshot])
data NetworksAddPeeringRequest =
NetworksAddPeeringRequest'
{ _naprNetworkPeering :: !(Maybe NetworkPeering)
, _naprPeerNetwork :: !(Maybe Text)
, _naprName :: !(Maybe Text)
, _naprAutoCreateRoutes :: !(Maybe Bool)
}
deriving (Eq, Show, Data, Typeable, Generic)
networksAddPeeringRequest
:: NetworksAddPeeringRequest
networksAddPeeringRequest =
NetworksAddPeeringRequest'
{ _naprNetworkPeering = Nothing
, _naprPeerNetwork = Nothing
, _naprName = Nothing
, _naprAutoCreateRoutes = Nothing
}
naprNetworkPeering :: Lens' NetworksAddPeeringRequest (Maybe NetworkPeering)
naprNetworkPeering
= lens _naprNetworkPeering
(\ s a -> s{_naprNetworkPeering = a})
naprPeerNetwork :: Lens' NetworksAddPeeringRequest (Maybe Text)
naprPeerNetwork
= lens _naprPeerNetwork
(\ s a -> s{_naprPeerNetwork = a})
naprName :: Lens' NetworksAddPeeringRequest (Maybe Text)
naprName = lens _naprName (\ s a -> s{_naprName = a})
naprAutoCreateRoutes :: Lens' NetworksAddPeeringRequest (Maybe Bool)
naprAutoCreateRoutes
= lens _naprAutoCreateRoutes
(\ s a -> s{_naprAutoCreateRoutes = a})
instance FromJSON NetworksAddPeeringRequest where
parseJSON
= withObject "NetworksAddPeeringRequest"
(\ o ->
NetworksAddPeeringRequest' <$>
(o .:? "networkPeering") <*> (o .:? "peerNetwork")
<*> (o .:? "name")
<*> (o .:? "autoCreateRoutes"))
instance ToJSON NetworksAddPeeringRequest where
toJSON NetworksAddPeeringRequest'{..}
= object
(catMaybes
[("networkPeering" .=) <$> _naprNetworkPeering,
("peerNetwork" .=) <$> _naprPeerNetwork,
("name" .=) <$> _naprName,
("autoCreateRoutes" .=) <$> _naprAutoCreateRoutes])
data NodeTemplatesScopedList =
NodeTemplatesScopedList'
{ _nNodeTemplates :: !(Maybe [NodeTemplate])
, _nWarning :: !(Maybe NodeTemplatesScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplatesScopedList
:: NodeTemplatesScopedList
nodeTemplatesScopedList =
NodeTemplatesScopedList' {_nNodeTemplates = Nothing, _nWarning = Nothing}
nNodeTemplates :: Lens' NodeTemplatesScopedList [NodeTemplate]
nNodeTemplates
= lens _nNodeTemplates
(\ s a -> s{_nNodeTemplates = a})
. _Default
. _Coerce
nWarning :: Lens' NodeTemplatesScopedList (Maybe NodeTemplatesScopedListWarning)
nWarning = lens _nWarning (\ s a -> s{_nWarning = a})
instance FromJSON NodeTemplatesScopedList where
parseJSON
= withObject "NodeTemplatesScopedList"
(\ o ->
NodeTemplatesScopedList' <$>
(o .:? "nodeTemplates" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON NodeTemplatesScopedList where
toJSON NodeTemplatesScopedList'{..}
= object
(catMaybes
[("nodeTemplates" .=) <$> _nNodeTemplates,
("warning" .=) <$> _nWarning])
data URLMapListWarning =
URLMapListWarning'
{ _umlwData :: !(Maybe [URLMapListWarningDataItem])
, _umlwCode :: !(Maybe URLMapListWarningCode)
, _umlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapListWarning
:: URLMapListWarning
urlMapListWarning =
URLMapListWarning'
{_umlwData = Nothing, _umlwCode = Nothing, _umlwMessage = Nothing}
umlwData :: Lens' URLMapListWarning [URLMapListWarningDataItem]
umlwData
= lens _umlwData (\ s a -> s{_umlwData = a}) .
_Default
. _Coerce
umlwCode :: Lens' URLMapListWarning (Maybe URLMapListWarningCode)
umlwCode = lens _umlwCode (\ s a -> s{_umlwCode = a})
umlwMessage :: Lens' URLMapListWarning (Maybe Text)
umlwMessage
= lens _umlwMessage (\ s a -> s{_umlwMessage = a})
instance FromJSON URLMapListWarning where
parseJSON
= withObject "URLMapListWarning"
(\ o ->
URLMapListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON URLMapListWarning where
toJSON URLMapListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _umlwData,
("code" .=) <$> _umlwCode,
("message" .=) <$> _umlwMessage])
data NodeGroupsScopedListWarningDataItem =
NodeGroupsScopedListWarningDataItem'
{ _ngslwdiValue :: !(Maybe Text)
, _ngslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsScopedListWarningDataItem
:: NodeGroupsScopedListWarningDataItem
nodeGroupsScopedListWarningDataItem =
NodeGroupsScopedListWarningDataItem'
{_ngslwdiValue = Nothing, _ngslwdiKey = Nothing}
ngslwdiValue :: Lens' NodeGroupsScopedListWarningDataItem (Maybe Text)
ngslwdiValue
= lens _ngslwdiValue (\ s a -> s{_ngslwdiValue = a})
ngslwdiKey :: Lens' NodeGroupsScopedListWarningDataItem (Maybe Text)
ngslwdiKey
= lens _ngslwdiKey (\ s a -> s{_ngslwdiKey = a})
instance FromJSON NodeGroupsScopedListWarningDataItem
where
parseJSON
= withObject "NodeGroupsScopedListWarningDataItem"
(\ o ->
NodeGroupsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NodeGroupsScopedListWarningDataItem
where
toJSON NodeGroupsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ngslwdiValue,
("key" .=) <$> _ngslwdiKey])
data URLMap =
URLMap'
{ _umTests :: !(Maybe [URLMapTest])
, _umKind :: !Text
, _umFingerprint :: !(Maybe Bytes)
, _umDefaultService :: !(Maybe Text)
, _umSelfLink :: !(Maybe Text)
, _umName :: !(Maybe Text)
, _umCreationTimestamp :: !(Maybe Text)
, _umPathMatchers :: !(Maybe [PathMatcher])
, _umId :: !(Maybe (Textual Word64))
, _umHostRules :: !(Maybe [HostRule])
, _umDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMap
:: URLMap
urlMap =
URLMap'
{ _umTests = Nothing
, _umKind = "compute#urlMap"
, _umFingerprint = Nothing
, _umDefaultService = Nothing
, _umSelfLink = Nothing
, _umName = Nothing
, _umCreationTimestamp = Nothing
, _umPathMatchers = Nothing
, _umId = Nothing
, _umHostRules = Nothing
, _umDescription = Nothing
}
umTests :: Lens' URLMap [URLMapTest]
umTests
= lens _umTests (\ s a -> s{_umTests = a}) . _Default
. _Coerce
umKind :: Lens' URLMap Text
umKind = lens _umKind (\ s a -> s{_umKind = a})
umFingerprint :: Lens' URLMap (Maybe ByteString)
umFingerprint
= lens _umFingerprint
(\ s a -> s{_umFingerprint = a})
. mapping _Bytes
umDefaultService :: Lens' URLMap (Maybe Text)
umDefaultService
= lens _umDefaultService
(\ s a -> s{_umDefaultService = a})
umSelfLink :: Lens' URLMap (Maybe Text)
umSelfLink
= lens _umSelfLink (\ s a -> s{_umSelfLink = a})
umName :: Lens' URLMap (Maybe Text)
umName = lens _umName (\ s a -> s{_umName = a})
umCreationTimestamp :: Lens' URLMap (Maybe Text)
umCreationTimestamp
= lens _umCreationTimestamp
(\ s a -> s{_umCreationTimestamp = a})
umPathMatchers :: Lens' URLMap [PathMatcher]
umPathMatchers
= lens _umPathMatchers
(\ s a -> s{_umPathMatchers = a})
. _Default
. _Coerce
umId :: Lens' URLMap (Maybe Word64)
umId
= lens _umId (\ s a -> s{_umId = a}) .
mapping _Coerce
umHostRules :: Lens' URLMap [HostRule]
umHostRules
= lens _umHostRules (\ s a -> s{_umHostRules = a}) .
_Default
. _Coerce
umDescription :: Lens' URLMap (Maybe Text)
umDescription
= lens _umDescription
(\ s a -> s{_umDescription = a})
instance FromJSON URLMap where
parseJSON
= withObject "URLMap"
(\ o ->
URLMap' <$>
(o .:? "tests" .!= mempty) <*>
(o .:? "kind" .!= "compute#urlMap")
<*> (o .:? "fingerprint")
<*> (o .:? "defaultService")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "pathMatchers" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "hostRules" .!= mempty)
<*> (o .:? "description"))
instance ToJSON URLMap where
toJSON URLMap'{..}
= object
(catMaybes
[("tests" .=) <$> _umTests, Just ("kind" .= _umKind),
("fingerprint" .=) <$> _umFingerprint,
("defaultService" .=) <$> _umDefaultService,
("selfLink" .=) <$> _umSelfLink,
("name" .=) <$> _umName,
("creationTimestamp" .=) <$> _umCreationTimestamp,
("pathMatchers" .=) <$> _umPathMatchers,
("id" .=) <$> _umId,
("hostRules" .=) <$> _umHostRules,
("description" .=) <$> _umDescription])
data ImageListWarning =
ImageListWarning'
{ _ilwData :: !(Maybe [ImageListWarningDataItem])
, _ilwCode :: !(Maybe ImageListWarningCode)
, _ilwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
imageListWarning
:: ImageListWarning
imageListWarning =
ImageListWarning'
{_ilwData = Nothing, _ilwCode = Nothing, _ilwMessage = Nothing}
ilwData :: Lens' ImageListWarning [ImageListWarningDataItem]
ilwData
= lens _ilwData (\ s a -> s{_ilwData = a}) . _Default
. _Coerce
ilwCode :: Lens' ImageListWarning (Maybe ImageListWarningCode)
ilwCode = lens _ilwCode (\ s a -> s{_ilwCode = a})
ilwMessage :: Lens' ImageListWarning (Maybe Text)
ilwMessage
= lens _ilwMessage (\ s a -> s{_ilwMessage = a})
instance FromJSON ImageListWarning where
parseJSON
= withObject "ImageListWarning"
(\ o ->
ImageListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON ImageListWarning where
toJSON ImageListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ilwData, ("code" .=) <$> _ilwCode,
("message" .=) <$> _ilwMessage])
data Expr =
Expr'
{ _eLocation :: !(Maybe Text)
, _eExpression :: !(Maybe Text)
, _eTitle :: !(Maybe Text)
, _eDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
expr
:: Expr
expr =
Expr'
{ _eLocation = Nothing
, _eExpression = Nothing
, _eTitle = Nothing
, _eDescription = Nothing
}
eLocation :: Lens' Expr (Maybe Text)
eLocation
= lens _eLocation (\ s a -> s{_eLocation = a})
eExpression :: Lens' Expr (Maybe Text)
eExpression
= lens _eExpression (\ s a -> s{_eExpression = a})
eTitle :: Lens' Expr (Maybe Text)
eTitle = lens _eTitle (\ s a -> s{_eTitle = a})
eDescription :: Lens' Expr (Maybe Text)
eDescription
= lens _eDescription (\ s a -> s{_eDescription = a})
instance FromJSON Expr where
parseJSON
= withObject "Expr"
(\ o ->
Expr' <$>
(o .:? "location") <*> (o .:? "expression") <*>
(o .:? "title")
<*> (o .:? "description"))
instance ToJSON Expr where
toJSON Expr'{..}
= object
(catMaybes
[("location" .=) <$> _eLocation,
("expression" .=) <$> _eExpression,
("title" .=) <$> _eTitle,
("description" .=) <$> _eDescription])
newtype SSLPolicyReference =
SSLPolicyReference'
{ _sprSSLPolicy :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPolicyReference
:: SSLPolicyReference
sslPolicyReference = SSLPolicyReference' {_sprSSLPolicy = Nothing}
sprSSLPolicy :: Lens' SSLPolicyReference (Maybe Text)
sprSSLPolicy
= lens _sprSSLPolicy (\ s a -> s{_sprSSLPolicy = a})
instance FromJSON SSLPolicyReference where
parseJSON
= withObject "SSLPolicyReference"
(\ o -> SSLPolicyReference' <$> (o .:? "sslPolicy"))
instance ToJSON SSLPolicyReference where
toJSON SSLPolicyReference'{..}
= object
(catMaybes [("sslPolicy" .=) <$> _sprSSLPolicy])
newtype InstanceGroupAggregatedListItems =
InstanceGroupAggregatedListItems'
{ _igaliAddtional :: HashMap Text InstanceGroupsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupAggregatedListItems
:: HashMap Text InstanceGroupsScopedList
-> InstanceGroupAggregatedListItems
instanceGroupAggregatedListItems pIgaliAddtional_ =
InstanceGroupAggregatedListItems'
{_igaliAddtional = _Coerce # pIgaliAddtional_}
igaliAddtional :: Lens' InstanceGroupAggregatedListItems (HashMap Text InstanceGroupsScopedList)
igaliAddtional
= lens _igaliAddtional
(\ s a -> s{_igaliAddtional = a})
. _Coerce
instance FromJSON InstanceGroupAggregatedListItems
where
parseJSON
= withObject "InstanceGroupAggregatedListItems"
(\ o ->
InstanceGroupAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON InstanceGroupAggregatedListItems
where
toJSON = toJSON . _igaliAddtional
data TargetPoolList =
TargetPoolList'
{ _tplNextPageToken :: !(Maybe Text)
, _tplKind :: !Text
, _tplItems :: !(Maybe [TargetPool])
, _tplSelfLink :: !(Maybe Text)
, _tplWarning :: !(Maybe TargetPoolListWarning)
, _tplId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolList
:: TargetPoolList
targetPoolList =
TargetPoolList'
{ _tplNextPageToken = Nothing
, _tplKind = "compute#targetPoolList"
, _tplItems = Nothing
, _tplSelfLink = Nothing
, _tplWarning = Nothing
, _tplId = Nothing
}
tplNextPageToken :: Lens' TargetPoolList (Maybe Text)
tplNextPageToken
= lens _tplNextPageToken
(\ s a -> s{_tplNextPageToken = a})
tplKind :: Lens' TargetPoolList Text
tplKind = lens _tplKind (\ s a -> s{_tplKind = a})
tplItems :: Lens' TargetPoolList [TargetPool]
tplItems
= lens _tplItems (\ s a -> s{_tplItems = a}) .
_Default
. _Coerce
tplSelfLink :: Lens' TargetPoolList (Maybe Text)
tplSelfLink
= lens _tplSelfLink (\ s a -> s{_tplSelfLink = a})
tplWarning :: Lens' TargetPoolList (Maybe TargetPoolListWarning)
tplWarning
= lens _tplWarning (\ s a -> s{_tplWarning = a})
tplId :: Lens' TargetPoolList (Maybe Text)
tplId = lens _tplId (\ s a -> s{_tplId = a})
instance FromJSON TargetPoolList where
parseJSON
= withObject "TargetPoolList"
(\ o ->
TargetPoolList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetPoolList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetPoolList where
toJSON TargetPoolList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _tplNextPageToken,
Just ("kind" .= _tplKind),
("items" .=) <$> _tplItems,
("selfLink" .=) <$> _tplSelfLink,
("warning" .=) <$> _tplWarning,
("id" .=) <$> _tplId])
data AcceleratorType =
AcceleratorType'
{ _atKind :: !Text
, _atZone :: !(Maybe Text)
, _atMaximumCardsPerInstance :: !(Maybe (Textual Int32))
, _atSelfLink :: !(Maybe Text)
, _atName :: !(Maybe Text)
, _atCreationTimestamp :: !(Maybe Text)
, _atId :: !(Maybe (Textual Word64))
, _atDescription :: !(Maybe Text)
, _atDeprecated :: !(Maybe DeprecationStatus)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorType
:: AcceleratorType
acceleratorType =
AcceleratorType'
{ _atKind = "compute#acceleratorType"
, _atZone = Nothing
, _atMaximumCardsPerInstance = Nothing
, _atSelfLink = Nothing
, _atName = Nothing
, _atCreationTimestamp = Nothing
, _atId = Nothing
, _atDescription = Nothing
, _atDeprecated = Nothing
}
atKind :: Lens' AcceleratorType Text
atKind = lens _atKind (\ s a -> s{_atKind = a})
atZone :: Lens' AcceleratorType (Maybe Text)
atZone = lens _atZone (\ s a -> s{_atZone = a})
atMaximumCardsPerInstance :: Lens' AcceleratorType (Maybe Int32)
atMaximumCardsPerInstance
= lens _atMaximumCardsPerInstance
(\ s a -> s{_atMaximumCardsPerInstance = a})
. mapping _Coerce
atSelfLink :: Lens' AcceleratorType (Maybe Text)
atSelfLink
= lens _atSelfLink (\ s a -> s{_atSelfLink = a})
atName :: Lens' AcceleratorType (Maybe Text)
atName = lens _atName (\ s a -> s{_atName = a})
atCreationTimestamp :: Lens' AcceleratorType (Maybe Text)
atCreationTimestamp
= lens _atCreationTimestamp
(\ s a -> s{_atCreationTimestamp = a})
atId :: Lens' AcceleratorType (Maybe Word64)
atId
= lens _atId (\ s a -> s{_atId = a}) .
mapping _Coerce
atDescription :: Lens' AcceleratorType (Maybe Text)
atDescription
= lens _atDescription
(\ s a -> s{_atDescription = a})
atDeprecated :: Lens' AcceleratorType (Maybe DeprecationStatus)
atDeprecated
= lens _atDeprecated (\ s a -> s{_atDeprecated = a})
instance FromJSON AcceleratorType where
parseJSON
= withObject "AcceleratorType"
(\ o ->
AcceleratorType' <$>
(o .:? "kind" .!= "compute#acceleratorType") <*>
(o .:? "zone")
<*> (o .:? "maximumCardsPerInstance")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "description")
<*> (o .:? "deprecated"))
instance ToJSON AcceleratorType where
toJSON AcceleratorType'{..}
= object
(catMaybes
[Just ("kind" .= _atKind), ("zone" .=) <$> _atZone,
("maximumCardsPerInstance" .=) <$>
_atMaximumCardsPerInstance,
("selfLink" .=) <$> _atSelfLink,
("name" .=) <$> _atName,
("creationTimestamp" .=) <$> _atCreationTimestamp,
("id" .=) <$> _atId,
("description" .=) <$> _atDescription,
("deprecated" .=) <$> _atDeprecated])
data BackendBucketListWarningDataItem =
BackendBucketListWarningDataItem'
{ _bblwdiValue :: !(Maybe Text)
, _bblwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendBucketListWarningDataItem
:: BackendBucketListWarningDataItem
backendBucketListWarningDataItem =
BackendBucketListWarningDataItem'
{_bblwdiValue = Nothing, _bblwdiKey = Nothing}
bblwdiValue :: Lens' BackendBucketListWarningDataItem (Maybe Text)
bblwdiValue
= lens _bblwdiValue (\ s a -> s{_bblwdiValue = a})
bblwdiKey :: Lens' BackendBucketListWarningDataItem (Maybe Text)
bblwdiKey
= lens _bblwdiKey (\ s a -> s{_bblwdiKey = a})
instance FromJSON BackendBucketListWarningDataItem
where
parseJSON
= withObject "BackendBucketListWarningDataItem"
(\ o ->
BackendBucketListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON BackendBucketListWarningDataItem
where
toJSON BackendBucketListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _bblwdiValue,
("key" .=) <$> _bblwdiKey])
data AcceleratorTypesScopedListWarningDataItem =
AcceleratorTypesScopedListWarningDataItem'
{ _atslwdiValue :: !(Maybe Text)
, _atslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypesScopedListWarningDataItem
:: AcceleratorTypesScopedListWarningDataItem
acceleratorTypesScopedListWarningDataItem =
AcceleratorTypesScopedListWarningDataItem'
{_atslwdiValue = Nothing, _atslwdiKey = Nothing}
atslwdiValue :: Lens' AcceleratorTypesScopedListWarningDataItem (Maybe Text)
atslwdiValue
= lens _atslwdiValue (\ s a -> s{_atslwdiValue = a})
atslwdiKey :: Lens' AcceleratorTypesScopedListWarningDataItem (Maybe Text)
atslwdiKey
= lens _atslwdiKey (\ s a -> s{_atslwdiKey = a})
instance FromJSON
AcceleratorTypesScopedListWarningDataItem
where
parseJSON
= withObject
"AcceleratorTypesScopedListWarningDataItem"
(\ o ->
AcceleratorTypesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
AcceleratorTypesScopedListWarningDataItem
where
toJSON AcceleratorTypesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _atslwdiValue,
("key" .=) <$> _atslwdiKey])
data RegionDiskTypeList =
RegionDiskTypeList'
{ _rdtlNextPageToken :: !(Maybe Text)
, _rdtlKind :: !Text
, _rdtlItems :: !(Maybe [DiskType])
, _rdtlSelfLink :: !(Maybe Text)
, _rdtlWarning :: !(Maybe RegionDiskTypeListWarning)
, _rdtlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionDiskTypeList
:: RegionDiskTypeList
regionDiskTypeList =
RegionDiskTypeList'
{ _rdtlNextPageToken = Nothing
, _rdtlKind = "compute#regionDiskTypeList"
, _rdtlItems = Nothing
, _rdtlSelfLink = Nothing
, _rdtlWarning = Nothing
, _rdtlId = Nothing
}
rdtlNextPageToken :: Lens' RegionDiskTypeList (Maybe Text)
rdtlNextPageToken
= lens _rdtlNextPageToken
(\ s a -> s{_rdtlNextPageToken = a})
rdtlKind :: Lens' RegionDiskTypeList Text
rdtlKind = lens _rdtlKind (\ s a -> s{_rdtlKind = a})
rdtlItems :: Lens' RegionDiskTypeList [DiskType]
rdtlItems
= lens _rdtlItems (\ s a -> s{_rdtlItems = a}) .
_Default
. _Coerce
rdtlSelfLink :: Lens' RegionDiskTypeList (Maybe Text)
rdtlSelfLink
= lens _rdtlSelfLink (\ s a -> s{_rdtlSelfLink = a})
rdtlWarning :: Lens' RegionDiskTypeList (Maybe RegionDiskTypeListWarning)
rdtlWarning
= lens _rdtlWarning (\ s a -> s{_rdtlWarning = a})
rdtlId :: Lens' RegionDiskTypeList (Maybe Text)
rdtlId = lens _rdtlId (\ s a -> s{_rdtlId = a})
instance FromJSON RegionDiskTypeList where
parseJSON
= withObject "RegionDiskTypeList"
(\ o ->
RegionDiskTypeList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#regionDiskTypeList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RegionDiskTypeList where
toJSON RegionDiskTypeList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _rdtlNextPageToken,
Just ("kind" .= _rdtlKind),
("items" .=) <$> _rdtlItems,
("selfLink" .=) <$> _rdtlSelfLink,
("warning" .=) <$> _rdtlWarning,
("id" .=) <$> _rdtlId])
data TargetInstanceAggregatedList =
TargetInstanceAggregatedList'
{ _tialNextPageToken :: !(Maybe Text)
, _tialKind :: !Text
, _tialItems :: !(Maybe TargetInstanceAggregatedListItems)
, _tialSelfLink :: !(Maybe Text)
, _tialWarning :: !(Maybe TargetInstanceAggregatedListWarning)
, _tialId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstanceAggregatedList
:: TargetInstanceAggregatedList
targetInstanceAggregatedList =
TargetInstanceAggregatedList'
{ _tialNextPageToken = Nothing
, _tialKind = "compute#targetInstanceAggregatedList"
, _tialItems = Nothing
, _tialSelfLink = Nothing
, _tialWarning = Nothing
, _tialId = Nothing
}
tialNextPageToken :: Lens' TargetInstanceAggregatedList (Maybe Text)
tialNextPageToken
= lens _tialNextPageToken
(\ s a -> s{_tialNextPageToken = a})
tialKind :: Lens' TargetInstanceAggregatedList Text
tialKind = lens _tialKind (\ s a -> s{_tialKind = a})
tialItems :: Lens' TargetInstanceAggregatedList (Maybe TargetInstanceAggregatedListItems)
tialItems
= lens _tialItems (\ s a -> s{_tialItems = a})
tialSelfLink :: Lens' TargetInstanceAggregatedList (Maybe Text)
tialSelfLink
= lens _tialSelfLink (\ s a -> s{_tialSelfLink = a})
tialWarning :: Lens' TargetInstanceAggregatedList (Maybe TargetInstanceAggregatedListWarning)
tialWarning
= lens _tialWarning (\ s a -> s{_tialWarning = a})
tialId :: Lens' TargetInstanceAggregatedList (Maybe Text)
tialId = lens _tialId (\ s a -> s{_tialId = a})
instance FromJSON TargetInstanceAggregatedList where
parseJSON
= withObject "TargetInstanceAggregatedList"
(\ o ->
TargetInstanceAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#targetInstanceAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetInstanceAggregatedList where
toJSON TargetInstanceAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _tialNextPageToken,
Just ("kind" .= _tialKind),
("items" .=) <$> _tialItems,
("selfLink" .=) <$> _tialSelfLink,
("warning" .=) <$> _tialWarning,
("id" .=) <$> _tialId])
data NodeGroupsListNodesWarningDataItem =
NodeGroupsListNodesWarningDataItem'
{ _nglnwdiValue :: !(Maybe Text)
, _nglnwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsListNodesWarningDataItem
:: NodeGroupsListNodesWarningDataItem
nodeGroupsListNodesWarningDataItem =
NodeGroupsListNodesWarningDataItem'
{_nglnwdiValue = Nothing, _nglnwdiKey = Nothing}
nglnwdiValue :: Lens' NodeGroupsListNodesWarningDataItem (Maybe Text)
nglnwdiValue
= lens _nglnwdiValue (\ s a -> s{_nglnwdiValue = a})
nglnwdiKey :: Lens' NodeGroupsListNodesWarningDataItem (Maybe Text)
nglnwdiKey
= lens _nglnwdiKey (\ s a -> s{_nglnwdiKey = a})
instance FromJSON NodeGroupsListNodesWarningDataItem
where
parseJSON
= withObject "NodeGroupsListNodesWarningDataItem"
(\ o ->
NodeGroupsListNodesWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NodeGroupsListNodesWarningDataItem
where
toJSON NodeGroupsListNodesWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _nglnwdiValue,
("key" .=) <$> _nglnwdiKey])
data UsableSubnetworksAggregatedList =
UsableSubnetworksAggregatedList'
{ _usalNextPageToken :: !(Maybe Text)
, _usalKind :: !Text
, _usalItems :: !(Maybe [UsableSubnetwork])
, _usalSelfLink :: !(Maybe Text)
, _usalWarning :: !(Maybe UsableSubnetworksAggregatedListWarning)
, _usalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
usableSubnetworksAggregatedList
:: UsableSubnetworksAggregatedList
usableSubnetworksAggregatedList =
UsableSubnetworksAggregatedList'
{ _usalNextPageToken = Nothing
, _usalKind = "compute#usableSubnetworksAggregatedList"
, _usalItems = Nothing
, _usalSelfLink = Nothing
, _usalWarning = Nothing
, _usalId = Nothing
}
usalNextPageToken :: Lens' UsableSubnetworksAggregatedList (Maybe Text)
usalNextPageToken
= lens _usalNextPageToken
(\ s a -> s{_usalNextPageToken = a})
usalKind :: Lens' UsableSubnetworksAggregatedList Text
usalKind = lens _usalKind (\ s a -> s{_usalKind = a})
usalItems :: Lens' UsableSubnetworksAggregatedList [UsableSubnetwork]
usalItems
= lens _usalItems (\ s a -> s{_usalItems = a}) .
_Default
. _Coerce
usalSelfLink :: Lens' UsableSubnetworksAggregatedList (Maybe Text)
usalSelfLink
= lens _usalSelfLink (\ s a -> s{_usalSelfLink = a})
usalWarning :: Lens' UsableSubnetworksAggregatedList (Maybe UsableSubnetworksAggregatedListWarning)
usalWarning
= lens _usalWarning (\ s a -> s{_usalWarning = a})
usalId :: Lens' UsableSubnetworksAggregatedList (Maybe Text)
usalId = lens _usalId (\ s a -> s{_usalId = a})
instance FromJSON UsableSubnetworksAggregatedList
where
parseJSON
= withObject "UsableSubnetworksAggregatedList"
(\ o ->
UsableSubnetworksAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#usableSubnetworksAggregatedList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON UsableSubnetworksAggregatedList where
toJSON UsableSubnetworksAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _usalNextPageToken,
Just ("kind" .= _usalKind),
("items" .=) <$> _usalItems,
("selfLink" .=) <$> _usalSelfLink,
("warning" .=) <$> _usalWarning,
("id" .=) <$> _usalId])
data DisksScopedList =
DisksScopedList'
{ _dslWarning :: !(Maybe DisksScopedListWarning)
, _dslDisks :: !(Maybe [Disk])
}
deriving (Eq, Show, Data, Typeable, Generic)
disksScopedList
:: DisksScopedList
disksScopedList = DisksScopedList' {_dslWarning = Nothing, _dslDisks = Nothing}
dslWarning :: Lens' DisksScopedList (Maybe DisksScopedListWarning)
dslWarning
= lens _dslWarning (\ s a -> s{_dslWarning = a})
dslDisks :: Lens' DisksScopedList [Disk]
dslDisks
= lens _dslDisks (\ s a -> s{_dslDisks = a}) .
_Default
. _Coerce
instance FromJSON DisksScopedList where
parseJSON
= withObject "DisksScopedList"
(\ o ->
DisksScopedList' <$>
(o .:? "warning") <*> (o .:? "disks" .!= mempty))
instance ToJSON DisksScopedList where
toJSON DisksScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _dslWarning,
("disks" .=) <$> _dslDisks])
data InterconnectLocationListWarningDataItem =
InterconnectLocationListWarningDataItem'
{ _illwdiValue :: !(Maybe Text)
, _illwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectLocationListWarningDataItem
:: InterconnectLocationListWarningDataItem
interconnectLocationListWarningDataItem =
InterconnectLocationListWarningDataItem'
{_illwdiValue = Nothing, _illwdiKey = Nothing}
illwdiValue :: Lens' InterconnectLocationListWarningDataItem (Maybe Text)
illwdiValue
= lens _illwdiValue (\ s a -> s{_illwdiValue = a})
illwdiKey :: Lens' InterconnectLocationListWarningDataItem (Maybe Text)
illwdiKey
= lens _illwdiKey (\ s a -> s{_illwdiKey = a})
instance FromJSON
InterconnectLocationListWarningDataItem
where
parseJSON
= withObject
"InterconnectLocationListWarningDataItem"
(\ o ->
InterconnectLocationListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InterconnectLocationListWarningDataItem
where
toJSON InterconnectLocationListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _illwdiValue,
("key" .=) <$> _illwdiKey])
data InstanceGroupManagersScopedList =
InstanceGroupManagersScopedList'
{ _igmslWarning :: !(Maybe InstanceGroupManagersScopedListWarning)
, _igmslInstanceGroupManagers :: !(Maybe [InstanceGroupManager])
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersScopedList
:: InstanceGroupManagersScopedList
instanceGroupManagersScopedList =
InstanceGroupManagersScopedList'
{_igmslWarning = Nothing, _igmslInstanceGroupManagers = Nothing}
igmslWarning :: Lens' InstanceGroupManagersScopedList (Maybe InstanceGroupManagersScopedListWarning)
igmslWarning
= lens _igmslWarning (\ s a -> s{_igmslWarning = a})
igmslInstanceGroupManagers :: Lens' InstanceGroupManagersScopedList [InstanceGroupManager]
igmslInstanceGroupManagers
= lens _igmslInstanceGroupManagers
(\ s a -> s{_igmslInstanceGroupManagers = a})
. _Default
. _Coerce
instance FromJSON InstanceGroupManagersScopedList
where
parseJSON
= withObject "InstanceGroupManagersScopedList"
(\ o ->
InstanceGroupManagersScopedList' <$>
(o .:? "warning") <*>
(o .:? "instanceGroupManagers" .!= mempty))
instance ToJSON InstanceGroupManagersScopedList where
toJSON InstanceGroupManagersScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _igmslWarning,
("instanceGroupManagers" .=) <$>
_igmslInstanceGroupManagers])
data SubnetworkListWarning =
SubnetworkListWarning'
{ _slwData :: !(Maybe [SubnetworkListWarningDataItem])
, _slwCode :: !(Maybe SubnetworkListWarningCode)
, _slwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkListWarning
:: SubnetworkListWarning
subnetworkListWarning =
SubnetworkListWarning'
{_slwData = Nothing, _slwCode = Nothing, _slwMessage = Nothing}
slwData :: Lens' SubnetworkListWarning [SubnetworkListWarningDataItem]
slwData
= lens _slwData (\ s a -> s{_slwData = a}) . _Default
. _Coerce
slwCode :: Lens' SubnetworkListWarning (Maybe SubnetworkListWarningCode)
slwCode = lens _slwCode (\ s a -> s{_slwCode = a})
slwMessage :: Lens' SubnetworkListWarning (Maybe Text)
slwMessage
= lens _slwMessage (\ s a -> s{_slwMessage = a})
instance FromJSON SubnetworkListWarning where
parseJSON
= withObject "SubnetworkListWarning"
(\ o ->
SubnetworkListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SubnetworkListWarning where
toJSON SubnetworkListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _slwData, ("code" .=) <$> _slwCode,
("message" .=) <$> _slwMessage])
data NetworkEndpointGroupListWarning =
NetworkEndpointGroupListWarning'
{ _neglwData :: !(Maybe [NetworkEndpointGroupListWarningDataItem])
, _neglwCode :: !(Maybe NetworkEndpointGroupListWarningCode)
, _neglwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupListWarning
:: NetworkEndpointGroupListWarning
networkEndpointGroupListWarning =
NetworkEndpointGroupListWarning'
{_neglwData = Nothing, _neglwCode = Nothing, _neglwMessage = Nothing}
neglwData :: Lens' NetworkEndpointGroupListWarning [NetworkEndpointGroupListWarningDataItem]
neglwData
= lens _neglwData (\ s a -> s{_neglwData = a}) .
_Default
. _Coerce
neglwCode :: Lens' NetworkEndpointGroupListWarning (Maybe NetworkEndpointGroupListWarningCode)
neglwCode
= lens _neglwCode (\ s a -> s{_neglwCode = a})
neglwMessage :: Lens' NetworkEndpointGroupListWarning (Maybe Text)
neglwMessage
= lens _neglwMessage (\ s a -> s{_neglwMessage = a})
instance FromJSON NetworkEndpointGroupListWarning
where
parseJSON
= withObject "NetworkEndpointGroupListWarning"
(\ o ->
NetworkEndpointGroupListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NetworkEndpointGroupListWarning where
toJSON NetworkEndpointGroupListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _neglwData,
("code" .=) <$> _neglwCode,
("message" .=) <$> _neglwMessage])
data HealthCheck =
HealthCheck'
{ _hcHealthyThreshold :: !(Maybe (Textual Int32))
, _hcTCPHealthCheck :: !(Maybe TCPHealthCheck)
, _hcHTTP2HealthCheck :: !(Maybe HTTP2HealthCheck)
, _hcKind :: !Text
, _hcSSLHealthCheck :: !(Maybe SSLHealthCheck)
, _hcSelfLink :: !(Maybe Text)
, _hcCheckIntervalSec :: !(Maybe (Textual Int32))
, _hcName :: !(Maybe Text)
, _hcCreationTimestamp :: !(Maybe Text)
, _hcHTTPHealthCheck :: !(Maybe HTTPHealthCheck)
, _hcId :: !(Maybe (Textual Word64))
, _hcType :: !(Maybe HealthCheckType)
, _hcTimeoutSec :: !(Maybe (Textual Int32))
, _hcDescription :: !(Maybe Text)
, _hcUnhealthyThreshold :: !(Maybe (Textual Int32))
, _hcHTTPSHealthCheck :: !(Maybe HTTPSHealthCheck)
}
deriving (Eq, Show, Data, Typeable, Generic)
healthCheck
:: HealthCheck
healthCheck =
HealthCheck'
{ _hcHealthyThreshold = Nothing
, _hcTCPHealthCheck = Nothing
, _hcHTTP2HealthCheck = Nothing
, _hcKind = "compute#healthCheck"
, _hcSSLHealthCheck = Nothing
, _hcSelfLink = Nothing
, _hcCheckIntervalSec = Nothing
, _hcName = Nothing
, _hcCreationTimestamp = Nothing
, _hcHTTPHealthCheck = Nothing
, _hcId = Nothing
, _hcType = Nothing
, _hcTimeoutSec = Nothing
, _hcDescription = Nothing
, _hcUnhealthyThreshold = Nothing
, _hcHTTPSHealthCheck = Nothing
}
hcHealthyThreshold :: Lens' HealthCheck (Maybe Int32)
hcHealthyThreshold
= lens _hcHealthyThreshold
(\ s a -> s{_hcHealthyThreshold = a})
. mapping _Coerce
hcTCPHealthCheck :: Lens' HealthCheck (Maybe TCPHealthCheck)
hcTCPHealthCheck
= lens _hcTCPHealthCheck
(\ s a -> s{_hcTCPHealthCheck = a})
hcHTTP2HealthCheck :: Lens' HealthCheck (Maybe HTTP2HealthCheck)
hcHTTP2HealthCheck
= lens _hcHTTP2HealthCheck
(\ s a -> s{_hcHTTP2HealthCheck = a})
hcKind :: Lens' HealthCheck Text
hcKind = lens _hcKind (\ s a -> s{_hcKind = a})
hcSSLHealthCheck :: Lens' HealthCheck (Maybe SSLHealthCheck)
hcSSLHealthCheck
= lens _hcSSLHealthCheck
(\ s a -> s{_hcSSLHealthCheck = a})
hcSelfLink :: Lens' HealthCheck (Maybe Text)
hcSelfLink
= lens _hcSelfLink (\ s a -> s{_hcSelfLink = a})
hcCheckIntervalSec :: Lens' HealthCheck (Maybe Int32)
hcCheckIntervalSec
= lens _hcCheckIntervalSec
(\ s a -> s{_hcCheckIntervalSec = a})
. mapping _Coerce
hcName :: Lens' HealthCheck (Maybe Text)
hcName = lens _hcName (\ s a -> s{_hcName = a})
hcCreationTimestamp :: Lens' HealthCheck (Maybe Text)
hcCreationTimestamp
= lens _hcCreationTimestamp
(\ s a -> s{_hcCreationTimestamp = a})
hcHTTPHealthCheck :: Lens' HealthCheck (Maybe HTTPHealthCheck)
hcHTTPHealthCheck
= lens _hcHTTPHealthCheck
(\ s a -> s{_hcHTTPHealthCheck = a})
hcId :: Lens' HealthCheck (Maybe Word64)
hcId
= lens _hcId (\ s a -> s{_hcId = a}) .
mapping _Coerce
hcType :: Lens' HealthCheck (Maybe HealthCheckType)
hcType = lens _hcType (\ s a -> s{_hcType = a})
hcTimeoutSec :: Lens' HealthCheck (Maybe Int32)
hcTimeoutSec
= lens _hcTimeoutSec (\ s a -> s{_hcTimeoutSec = a})
. mapping _Coerce
hcDescription :: Lens' HealthCheck (Maybe Text)
hcDescription
= lens _hcDescription
(\ s a -> s{_hcDescription = a})
hcUnhealthyThreshold :: Lens' HealthCheck (Maybe Int32)
hcUnhealthyThreshold
= lens _hcUnhealthyThreshold
(\ s a -> s{_hcUnhealthyThreshold = a})
. mapping _Coerce
hcHTTPSHealthCheck :: Lens' HealthCheck (Maybe HTTPSHealthCheck)
hcHTTPSHealthCheck
= lens _hcHTTPSHealthCheck
(\ s a -> s{_hcHTTPSHealthCheck = a})
instance FromJSON HealthCheck where
parseJSON
= withObject "HealthCheck"
(\ o ->
HealthCheck' <$>
(o .:? "healthyThreshold") <*>
(o .:? "tcpHealthCheck")
<*> (o .:? "http2HealthCheck")
<*> (o .:? "kind" .!= "compute#healthCheck")
<*> (o .:? "sslHealthCheck")
<*> (o .:? "selfLink")
<*> (o .:? "checkIntervalSec")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "httpHealthCheck")
<*> (o .:? "id")
<*> (o .:? "type")
<*> (o .:? "timeoutSec")
<*> (o .:? "description")
<*> (o .:? "unhealthyThreshold")
<*> (o .:? "httpsHealthCheck"))
instance ToJSON HealthCheck where
toJSON HealthCheck'{..}
= object
(catMaybes
[("healthyThreshold" .=) <$> _hcHealthyThreshold,
("tcpHealthCheck" .=) <$> _hcTCPHealthCheck,
("http2HealthCheck" .=) <$> _hcHTTP2HealthCheck,
Just ("kind" .= _hcKind),
("sslHealthCheck" .=) <$> _hcSSLHealthCheck,
("selfLink" .=) <$> _hcSelfLink,
("checkIntervalSec" .=) <$> _hcCheckIntervalSec,
("name" .=) <$> _hcName,
("creationTimestamp" .=) <$> _hcCreationTimestamp,
("httpHealthCheck" .=) <$> _hcHTTPHealthCheck,
("id" .=) <$> _hcId, ("type" .=) <$> _hcType,
("timeoutSec" .=) <$> _hcTimeoutSec,
("description" .=) <$> _hcDescription,
("unhealthyThreshold" .=) <$> _hcUnhealthyThreshold,
("httpsHealthCheck" .=) <$> _hcHTTPSHealthCheck])
data HTTPHealthCheckListWarning =
HTTPHealthCheckListWarning'
{ _httphclwData :: !(Maybe [HTTPHealthCheckListWarningDataItem])
, _httphclwCode :: !(Maybe HTTPHealthCheckListWarningCode)
, _httphclwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
hTTPHealthCheckListWarning
:: HTTPHealthCheckListWarning
hTTPHealthCheckListWarning =
HTTPHealthCheckListWarning'
{ _httphclwData = Nothing
, _httphclwCode = Nothing
, _httphclwMessage = Nothing
}
httphclwData :: Lens' HTTPHealthCheckListWarning [HTTPHealthCheckListWarningDataItem]
httphclwData
= lens _httphclwData (\ s a -> s{_httphclwData = a})
. _Default
. _Coerce
httphclwCode :: Lens' HTTPHealthCheckListWarning (Maybe HTTPHealthCheckListWarningCode)
httphclwCode
= lens _httphclwCode (\ s a -> s{_httphclwCode = a})
httphclwMessage :: Lens' HTTPHealthCheckListWarning (Maybe Text)
httphclwMessage
= lens _httphclwMessage
(\ s a -> s{_httphclwMessage = a})
instance FromJSON HTTPHealthCheckListWarning where
parseJSON
= withObject "HTTPHealthCheckListWarning"
(\ o ->
HTTPHealthCheckListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON HTTPHealthCheckListWarning where
toJSON HTTPHealthCheckListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _httphclwData,
("code" .=) <$> _httphclwCode,
("message" .=) <$> _httphclwMessage])
data SSLPoliciesListWarning =
SSLPoliciesListWarning'
{ _splwData :: !(Maybe [SSLPoliciesListWarningDataItem])
, _splwCode :: !(Maybe SSLPoliciesListWarningCode)
, _splwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPoliciesListWarning
:: SSLPoliciesListWarning
sslPoliciesListWarning =
SSLPoliciesListWarning'
{_splwData = Nothing, _splwCode = Nothing, _splwMessage = Nothing}
splwData :: Lens' SSLPoliciesListWarning [SSLPoliciesListWarningDataItem]
splwData
= lens _splwData (\ s a -> s{_splwData = a}) .
_Default
. _Coerce
splwCode :: Lens' SSLPoliciesListWarning (Maybe SSLPoliciesListWarningCode)
splwCode = lens _splwCode (\ s a -> s{_splwCode = a})
splwMessage :: Lens' SSLPoliciesListWarning (Maybe Text)
splwMessage
= lens _splwMessage (\ s a -> s{_splwMessage = a})
instance FromJSON SSLPoliciesListWarning where
parseJSON
= withObject "SSLPoliciesListWarning"
(\ o ->
SSLPoliciesListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SSLPoliciesListWarning where
toJSON SSLPoliciesListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _splwData,
("code" .=) <$> _splwCode,
("message" .=) <$> _splwMessage])
newtype CommitmentAggregatedListItems =
CommitmentAggregatedListItems'
{ _caliAddtional :: HashMap Text CommitmentsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentAggregatedListItems
:: HashMap Text CommitmentsScopedList
-> CommitmentAggregatedListItems
commitmentAggregatedListItems pCaliAddtional_ =
CommitmentAggregatedListItems' {_caliAddtional = _Coerce # pCaliAddtional_}
caliAddtional :: Lens' CommitmentAggregatedListItems (HashMap Text CommitmentsScopedList)
caliAddtional
= lens _caliAddtional
(\ s a -> s{_caliAddtional = a})
. _Coerce
instance FromJSON CommitmentAggregatedListItems where
parseJSON
= withObject "CommitmentAggregatedListItems"
(\ o ->
CommitmentAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON CommitmentAggregatedListItems where
toJSON = toJSON . _caliAddtional
data DiskAggregatedList =
DiskAggregatedList'
{ _dalNextPageToken :: !(Maybe Text)
, _dalKind :: !Text
, _dalItems :: !(Maybe DiskAggregatedListItems)
, _dalSelfLink :: !(Maybe Text)
, _dalWarning :: !(Maybe DiskAggregatedListWarning)
, _dalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskAggregatedList
:: DiskAggregatedList
diskAggregatedList =
DiskAggregatedList'
{ _dalNextPageToken = Nothing
, _dalKind = "compute#diskAggregatedList"
, _dalItems = Nothing
, _dalSelfLink = Nothing
, _dalWarning = Nothing
, _dalId = Nothing
}
dalNextPageToken :: Lens' DiskAggregatedList (Maybe Text)
dalNextPageToken
= lens _dalNextPageToken
(\ s a -> s{_dalNextPageToken = a})
dalKind :: Lens' DiskAggregatedList Text
dalKind = lens _dalKind (\ s a -> s{_dalKind = a})
dalItems :: Lens' DiskAggregatedList (Maybe DiskAggregatedListItems)
dalItems = lens _dalItems (\ s a -> s{_dalItems = a})
dalSelfLink :: Lens' DiskAggregatedList (Maybe Text)
dalSelfLink
= lens _dalSelfLink (\ s a -> s{_dalSelfLink = a})
dalWarning :: Lens' DiskAggregatedList (Maybe DiskAggregatedListWarning)
dalWarning
= lens _dalWarning (\ s a -> s{_dalWarning = a})
dalId :: Lens' DiskAggregatedList (Maybe Text)
dalId = lens _dalId (\ s a -> s{_dalId = a})
instance FromJSON DiskAggregatedList where
parseJSON
= withObject "DiskAggregatedList"
(\ o ->
DiskAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#diskAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON DiskAggregatedList where
toJSON DiskAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _dalNextPageToken,
Just ("kind" .= _dalKind),
("items" .=) <$> _dalItems,
("selfLink" .=) <$> _dalSelfLink,
("warning" .=) <$> _dalWarning,
("id" .=) <$> _dalId])
data InstanceGroupsListInstancesWarningDataItem =
InstanceGroupsListInstancesWarningDataItem'
{ _igliwdiValue :: !(Maybe Text)
, _igliwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsListInstancesWarningDataItem
:: InstanceGroupsListInstancesWarningDataItem
instanceGroupsListInstancesWarningDataItem =
InstanceGroupsListInstancesWarningDataItem'
{_igliwdiValue = Nothing, _igliwdiKey = Nothing}
igliwdiValue :: Lens' InstanceGroupsListInstancesWarningDataItem (Maybe Text)
igliwdiValue
= lens _igliwdiValue (\ s a -> s{_igliwdiValue = a})
igliwdiKey :: Lens' InstanceGroupsListInstancesWarningDataItem (Maybe Text)
igliwdiKey
= lens _igliwdiKey (\ s a -> s{_igliwdiKey = a})
instance FromJSON
InstanceGroupsListInstancesWarningDataItem
where
parseJSON
= withObject
"InstanceGroupsListInstancesWarningDataItem"
(\ o ->
InstanceGroupsListInstancesWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InstanceGroupsListInstancesWarningDataItem
where
toJSON
InstanceGroupsListInstancesWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _igliwdiValue,
("key" .=) <$> _igliwdiKey])
data InstanceWithNamedPorts =
InstanceWithNamedPorts'
{ _iwnpStatus :: !(Maybe InstanceWithNamedPortsStatus)
, _iwnpNamedPorts :: !(Maybe [NamedPort])
, _iwnpInstance :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceWithNamedPorts
:: InstanceWithNamedPorts
instanceWithNamedPorts =
InstanceWithNamedPorts'
{_iwnpStatus = Nothing, _iwnpNamedPorts = Nothing, _iwnpInstance = Nothing}
iwnpStatus :: Lens' InstanceWithNamedPorts (Maybe InstanceWithNamedPortsStatus)
iwnpStatus
= lens _iwnpStatus (\ s a -> s{_iwnpStatus = a})
iwnpNamedPorts :: Lens' InstanceWithNamedPorts [NamedPort]
iwnpNamedPorts
= lens _iwnpNamedPorts
(\ s a -> s{_iwnpNamedPorts = a})
. _Default
. _Coerce
iwnpInstance :: Lens' InstanceWithNamedPorts (Maybe Text)
iwnpInstance
= lens _iwnpInstance (\ s a -> s{_iwnpInstance = a})
instance FromJSON InstanceWithNamedPorts where
parseJSON
= withObject "InstanceWithNamedPorts"
(\ o ->
InstanceWithNamedPorts' <$>
(o .:? "status") <*> (o .:? "namedPorts" .!= mempty)
<*> (o .:? "instance"))
instance ToJSON InstanceWithNamedPorts where
toJSON InstanceWithNamedPorts'{..}
= object
(catMaybes
[("status" .=) <$> _iwnpStatus,
("namedPorts" .=) <$> _iwnpNamedPorts,
("instance" .=) <$> _iwnpInstance])
data InterconnectListWarning =
InterconnectListWarning'
{ _iData :: !(Maybe [InterconnectListWarningDataItem])
, _iCode :: !(Maybe InterconnectListWarningCode)
, _iMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectListWarning
:: InterconnectListWarning
interconnectListWarning =
InterconnectListWarning'
{_iData = Nothing, _iCode = Nothing, _iMessage = Nothing}
iData :: Lens' InterconnectListWarning [InterconnectListWarningDataItem]
iData
= lens _iData (\ s a -> s{_iData = a}) . _Default .
_Coerce
iCode :: Lens' InterconnectListWarning (Maybe InterconnectListWarningCode)
iCode = lens _iCode (\ s a -> s{_iCode = a})
iMessage :: Lens' InterconnectListWarning (Maybe Text)
iMessage = lens _iMessage (\ s a -> s{_iMessage = a})
instance FromJSON InterconnectListWarning where
parseJSON
= withObject "InterconnectListWarning"
(\ o ->
InterconnectListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InterconnectListWarning where
toJSON InterconnectListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _iData, ("code" .=) <$> _iCode,
("message" .=) <$> _iMessage])
data ForwardingRulesScopedList =
ForwardingRulesScopedList'
{ _frslWarning :: !(Maybe ForwardingRulesScopedListWarning)
, _frslForwardingRules :: !(Maybe [ForwardingRule])
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRulesScopedList
:: ForwardingRulesScopedList
forwardingRulesScopedList =
ForwardingRulesScopedList'
{_frslWarning = Nothing, _frslForwardingRules = Nothing}
frslWarning :: Lens' ForwardingRulesScopedList (Maybe ForwardingRulesScopedListWarning)
frslWarning
= lens _frslWarning (\ s a -> s{_frslWarning = a})
frslForwardingRules :: Lens' ForwardingRulesScopedList [ForwardingRule]
frslForwardingRules
= lens _frslForwardingRules
(\ s a -> s{_frslForwardingRules = a})
. _Default
. _Coerce
instance FromJSON ForwardingRulesScopedList where
parseJSON
= withObject "ForwardingRulesScopedList"
(\ o ->
ForwardingRulesScopedList' <$>
(o .:? "warning") <*>
(o .:? "forwardingRules" .!= mempty))
instance ToJSON ForwardingRulesScopedList where
toJSON ForwardingRulesScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _frslWarning,
("forwardingRules" .=) <$> _frslForwardingRules])
newtype InstanceReference =
InstanceReference'
{ _iInstance :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceReference
:: InstanceReference
instanceReference = InstanceReference' {_iInstance = Nothing}
iInstance :: Lens' InstanceReference (Maybe Text)
iInstance
= lens _iInstance (\ s a -> s{_iInstance = a})
instance FromJSON InstanceReference where
parseJSON
= withObject "InstanceReference"
(\ o -> InstanceReference' <$> (o .:? "instance"))
instance ToJSON InstanceReference where
toJSON InstanceReference'{..}
= object (catMaybes [("instance" .=) <$> _iInstance])
data OperationAggregatedList =
OperationAggregatedList'
{ _oalNextPageToken :: !(Maybe Text)
, _oalKind :: !Text
, _oalItems :: !(Maybe OperationAggregatedListItems)
, _oalSelfLink :: !(Maybe Text)
, _oalWarning :: !(Maybe OperationAggregatedListWarning)
, _oalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationAggregatedList
:: OperationAggregatedList
operationAggregatedList =
OperationAggregatedList'
{ _oalNextPageToken = Nothing
, _oalKind = "compute#operationAggregatedList"
, _oalItems = Nothing
, _oalSelfLink = Nothing
, _oalWarning = Nothing
, _oalId = Nothing
}
oalNextPageToken :: Lens' OperationAggregatedList (Maybe Text)
oalNextPageToken
= lens _oalNextPageToken
(\ s a -> s{_oalNextPageToken = a})
oalKind :: Lens' OperationAggregatedList Text
oalKind = lens _oalKind (\ s a -> s{_oalKind = a})
oalItems :: Lens' OperationAggregatedList (Maybe OperationAggregatedListItems)
oalItems = lens _oalItems (\ s a -> s{_oalItems = a})
oalSelfLink :: Lens' OperationAggregatedList (Maybe Text)
oalSelfLink
= lens _oalSelfLink (\ s a -> s{_oalSelfLink = a})
oalWarning :: Lens' OperationAggregatedList (Maybe OperationAggregatedListWarning)
oalWarning
= lens _oalWarning (\ s a -> s{_oalWarning = a})
oalId :: Lens' OperationAggregatedList (Maybe Text)
oalId = lens _oalId (\ s a -> s{_oalId = a})
instance FromJSON OperationAggregatedList where
parseJSON
= withObject "OperationAggregatedList"
(\ o ->
OperationAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#operationAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON OperationAggregatedList where
toJSON OperationAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _oalNextPageToken,
Just ("kind" .= _oalKind),
("items" .=) <$> _oalItems,
("selfLink" .=) <$> _oalSelfLink,
("warning" .=) <$> _oalWarning,
("id" .=) <$> _oalId])
data OperationsScopedList =
OperationsScopedList'
{ _oslWarning :: !(Maybe OperationsScopedListWarning)
, _oslOperations :: !(Maybe [Operation])
}
deriving (Eq, Show, Data, Typeable, Generic)
operationsScopedList
:: OperationsScopedList
operationsScopedList =
OperationsScopedList' {_oslWarning = Nothing, _oslOperations = Nothing}
oslWarning :: Lens' OperationsScopedList (Maybe OperationsScopedListWarning)
oslWarning
= lens _oslWarning (\ s a -> s{_oslWarning = a})
oslOperations :: Lens' OperationsScopedList [Operation]
oslOperations
= lens _oslOperations
(\ s a -> s{_oslOperations = a})
. _Default
. _Coerce
instance FromJSON OperationsScopedList where
parseJSON
= withObject "OperationsScopedList"
(\ o ->
OperationsScopedList' <$>
(o .:? "warning") <*>
(o .:? "operations" .!= mempty))
instance ToJSON OperationsScopedList where
toJSON OperationsScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _oslWarning,
("operations" .=) <$> _oslOperations])
data NamedPort =
NamedPort'
{ _npName :: !(Maybe Text)
, _npPort :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
namedPort
:: NamedPort
namedPort = NamedPort' {_npName = Nothing, _npPort = Nothing}
npName :: Lens' NamedPort (Maybe Text)
npName = lens _npName (\ s a -> s{_npName = a})
npPort :: Lens' NamedPort (Maybe Int32)
npPort
= lens _npPort (\ s a -> s{_npPort = a}) .
mapping _Coerce
instance FromJSON NamedPort where
parseJSON
= withObject "NamedPort"
(\ o ->
NamedPort' <$> (o .:? "name") <*> (o .:? "port"))
instance ToJSON NamedPort where
toJSON NamedPort'{..}
= object
(catMaybes
[("name" .=) <$> _npName, ("port" .=) <$> _npPort])
newtype NetworkEndpointGroupsListEndpointsRequest =
NetworkEndpointGroupsListEndpointsRequest'
{ _neglerHealthStatus :: Maybe NetworkEndpointGroupsListEndpointsRequestHealthStatus
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsListEndpointsRequest
:: NetworkEndpointGroupsListEndpointsRequest
networkEndpointGroupsListEndpointsRequest =
NetworkEndpointGroupsListEndpointsRequest' {_neglerHealthStatus = Nothing}
neglerHealthStatus :: Lens' NetworkEndpointGroupsListEndpointsRequest (Maybe NetworkEndpointGroupsListEndpointsRequestHealthStatus)
neglerHealthStatus
= lens _neglerHealthStatus
(\ s a -> s{_neglerHealthStatus = a})
instance FromJSON
NetworkEndpointGroupsListEndpointsRequest
where
parseJSON
= withObject
"NetworkEndpointGroupsListEndpointsRequest"
(\ o ->
NetworkEndpointGroupsListEndpointsRequest' <$>
(o .:? "healthStatus"))
instance ToJSON
NetworkEndpointGroupsListEndpointsRequest
where
toJSON NetworkEndpointGroupsListEndpointsRequest'{..}
= object
(catMaybes
[("healthStatus" .=) <$> _neglerHealthStatus])
data SubnetworkAggregatedListWarningDataItem =
SubnetworkAggregatedListWarningDataItem'
{ _salwdiValue :: !(Maybe Text)
, _salwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkAggregatedListWarningDataItem
:: SubnetworkAggregatedListWarningDataItem
subnetworkAggregatedListWarningDataItem =
SubnetworkAggregatedListWarningDataItem'
{_salwdiValue = Nothing, _salwdiKey = Nothing}
salwdiValue :: Lens' SubnetworkAggregatedListWarningDataItem (Maybe Text)
salwdiValue
= lens _salwdiValue (\ s a -> s{_salwdiValue = a})
salwdiKey :: Lens' SubnetworkAggregatedListWarningDataItem (Maybe Text)
salwdiKey
= lens _salwdiKey (\ s a -> s{_salwdiKey = a})
instance FromJSON
SubnetworkAggregatedListWarningDataItem
where
parseJSON
= withObject
"SubnetworkAggregatedListWarningDataItem"
(\ o ->
SubnetworkAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
SubnetworkAggregatedListWarningDataItem
where
toJSON SubnetworkAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _salwdiValue,
("key" .=) <$> _salwdiKey])
data InterconnectDiagnosticsLinkStatus =
InterconnectDiagnosticsLinkStatus'
{ _idlsLacpStatus :: !(Maybe InterconnectDiagnosticsLinkLACPStatus)
, _idlsReceivingOpticalPower :: !(Maybe InterconnectDiagnosticsLinkOpticalPower)
, _idlsGoogleDemarc :: !(Maybe Text)
, _idlsCircuitId :: !(Maybe Text)
, _idlsArpCaches :: !(Maybe [InterconnectDiagnosticsARPEntry])
, _idlsTransmittingOpticalPower :: !(Maybe InterconnectDiagnosticsLinkOpticalPower)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectDiagnosticsLinkStatus
:: InterconnectDiagnosticsLinkStatus
interconnectDiagnosticsLinkStatus =
InterconnectDiagnosticsLinkStatus'
{ _idlsLacpStatus = Nothing
, _idlsReceivingOpticalPower = Nothing
, _idlsGoogleDemarc = Nothing
, _idlsCircuitId = Nothing
, _idlsArpCaches = Nothing
, _idlsTransmittingOpticalPower = Nothing
}
idlsLacpStatus :: Lens' InterconnectDiagnosticsLinkStatus (Maybe InterconnectDiagnosticsLinkLACPStatus)
idlsLacpStatus
= lens _idlsLacpStatus
(\ s a -> s{_idlsLacpStatus = a})
idlsReceivingOpticalPower :: Lens' InterconnectDiagnosticsLinkStatus (Maybe InterconnectDiagnosticsLinkOpticalPower)
idlsReceivingOpticalPower
= lens _idlsReceivingOpticalPower
(\ s a -> s{_idlsReceivingOpticalPower = a})
idlsGoogleDemarc :: Lens' InterconnectDiagnosticsLinkStatus (Maybe Text)
idlsGoogleDemarc
= lens _idlsGoogleDemarc
(\ s a -> s{_idlsGoogleDemarc = a})
idlsCircuitId :: Lens' InterconnectDiagnosticsLinkStatus (Maybe Text)
idlsCircuitId
= lens _idlsCircuitId
(\ s a -> s{_idlsCircuitId = a})
idlsArpCaches :: Lens' InterconnectDiagnosticsLinkStatus [InterconnectDiagnosticsARPEntry]
idlsArpCaches
= lens _idlsArpCaches
(\ s a -> s{_idlsArpCaches = a})
. _Default
. _Coerce
idlsTransmittingOpticalPower :: Lens' InterconnectDiagnosticsLinkStatus (Maybe InterconnectDiagnosticsLinkOpticalPower)
idlsTransmittingOpticalPower
= lens _idlsTransmittingOpticalPower
(\ s a -> s{_idlsTransmittingOpticalPower = a})
instance FromJSON InterconnectDiagnosticsLinkStatus
where
parseJSON
= withObject "InterconnectDiagnosticsLinkStatus"
(\ o ->
InterconnectDiagnosticsLinkStatus' <$>
(o .:? "lacpStatus") <*>
(o .:? "receivingOpticalPower")
<*> (o .:? "googleDemarc")
<*> (o .:? "circuitId")
<*> (o .:? "arpCaches" .!= mempty)
<*> (o .:? "transmittingOpticalPower"))
instance ToJSON InterconnectDiagnosticsLinkStatus
where
toJSON InterconnectDiagnosticsLinkStatus'{..}
= object
(catMaybes
[("lacpStatus" .=) <$> _idlsLacpStatus,
("receivingOpticalPower" .=) <$>
_idlsReceivingOpticalPower,
("googleDemarc" .=) <$> _idlsGoogleDemarc,
("circuitId" .=) <$> _idlsCircuitId,
("arpCaches" .=) <$> _idlsArpCaches,
("transmittingOpticalPower" .=) <$>
_idlsTransmittingOpticalPower])
newtype BackendServiceReference =
BackendServiceReference'
{ _bsrBackendService :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceReference
:: BackendServiceReference
backendServiceReference =
BackendServiceReference' {_bsrBackendService = Nothing}
bsrBackendService :: Lens' BackendServiceReference (Maybe Text)
bsrBackendService
= lens _bsrBackendService
(\ s a -> s{_bsrBackendService = a})
instance FromJSON BackendServiceReference where
parseJSON
= withObject "BackendServiceReference"
(\ o ->
BackendServiceReference' <$>
(o .:? "backendService"))
instance ToJSON BackendServiceReference where
toJSON BackendServiceReference'{..}
= object
(catMaybes
[("backendService" .=) <$> _bsrBackendService])
data NetworkEndpointGroupAggregatedListWarningDataItem =
NetworkEndpointGroupAggregatedListWarningDataItem'
{ _negalwdiValue :: !(Maybe Text)
, _negalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupAggregatedListWarningDataItem
:: NetworkEndpointGroupAggregatedListWarningDataItem
networkEndpointGroupAggregatedListWarningDataItem =
NetworkEndpointGroupAggregatedListWarningDataItem'
{_negalwdiValue = Nothing, _negalwdiKey = Nothing}
negalwdiValue :: Lens' NetworkEndpointGroupAggregatedListWarningDataItem (Maybe Text)
negalwdiValue
= lens _negalwdiValue
(\ s a -> s{_negalwdiValue = a})
negalwdiKey :: Lens' NetworkEndpointGroupAggregatedListWarningDataItem (Maybe Text)
negalwdiKey
= lens _negalwdiKey (\ s a -> s{_negalwdiKey = a})
instance FromJSON
NetworkEndpointGroupAggregatedListWarningDataItem
where
parseJSON
= withObject
"NetworkEndpointGroupAggregatedListWarningDataItem"
(\ o ->
NetworkEndpointGroupAggregatedListWarningDataItem'
<$> (o .:? "value") <*> (o .:? "key"))
instance ToJSON
NetworkEndpointGroupAggregatedListWarningDataItem
where
toJSON
NetworkEndpointGroupAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _negalwdiValue,
("key" .=) <$> _negalwdiKey])
data TargetInstanceList =
TargetInstanceList'
{ _tilNextPageToken :: !(Maybe Text)
, _tilKind :: !Text
, _tilItems :: !(Maybe [TargetInstance])
, _tilSelfLink :: !(Maybe Text)
, _tilWarning :: !(Maybe TargetInstanceListWarning)
, _tilId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstanceList
:: TargetInstanceList
targetInstanceList =
TargetInstanceList'
{ _tilNextPageToken = Nothing
, _tilKind = "compute#targetInstanceList"
, _tilItems = Nothing
, _tilSelfLink = Nothing
, _tilWarning = Nothing
, _tilId = Nothing
}
tilNextPageToken :: Lens' TargetInstanceList (Maybe Text)
tilNextPageToken
= lens _tilNextPageToken
(\ s a -> s{_tilNextPageToken = a})
tilKind :: Lens' TargetInstanceList Text
tilKind = lens _tilKind (\ s a -> s{_tilKind = a})
tilItems :: Lens' TargetInstanceList [TargetInstance]
tilItems
= lens _tilItems (\ s a -> s{_tilItems = a}) .
_Default
. _Coerce
tilSelfLink :: Lens' TargetInstanceList (Maybe Text)
tilSelfLink
= lens _tilSelfLink (\ s a -> s{_tilSelfLink = a})
tilWarning :: Lens' TargetInstanceList (Maybe TargetInstanceListWarning)
tilWarning
= lens _tilWarning (\ s a -> s{_tilWarning = a})
tilId :: Lens' TargetInstanceList (Maybe Text)
tilId = lens _tilId (\ s a -> s{_tilId = a})
instance FromJSON TargetInstanceList where
parseJSON
= withObject "TargetInstanceList"
(\ o ->
TargetInstanceList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetInstanceList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetInstanceList where
toJSON TargetInstanceList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _tilNextPageToken,
Just ("kind" .= _tilKind),
("items" .=) <$> _tilItems,
("selfLink" .=) <$> _tilSelfLink,
("warning" .=) <$> _tilWarning,
("id" .=) <$> _tilId])
data TargetTCPProxyListWarning =
TargetTCPProxyListWarning'
{ _ttplwData :: !(Maybe [TargetTCPProxyListWarningDataItem])
, _ttplwCode :: !(Maybe TargetTCPProxyListWarningCode)
, _ttplwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetTCPProxyListWarning
:: TargetTCPProxyListWarning
targetTCPProxyListWarning =
TargetTCPProxyListWarning'
{_ttplwData = Nothing, _ttplwCode = Nothing, _ttplwMessage = Nothing}
ttplwData :: Lens' TargetTCPProxyListWarning [TargetTCPProxyListWarningDataItem]
ttplwData
= lens _ttplwData (\ s a -> s{_ttplwData = a}) .
_Default
. _Coerce
ttplwCode :: Lens' TargetTCPProxyListWarning (Maybe TargetTCPProxyListWarningCode)
ttplwCode
= lens _ttplwCode (\ s a -> s{_ttplwCode = a})
ttplwMessage :: Lens' TargetTCPProxyListWarning (Maybe Text)
ttplwMessage
= lens _ttplwMessage (\ s a -> s{_ttplwMessage = a})
instance FromJSON TargetTCPProxyListWarning where
parseJSON
= withObject "TargetTCPProxyListWarning"
(\ o ->
TargetTCPProxyListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetTCPProxyListWarning where
toJSON TargetTCPProxyListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ttplwData,
("code" .=) <$> _ttplwCode,
("message" .=) <$> _ttplwMessage])
data InstanceGroupManagerAggregatedList =
InstanceGroupManagerAggregatedList'
{ _igmalNextPageToken :: !(Maybe Text)
, _igmalKind :: !Text
, _igmalItems :: !(Maybe InstanceGroupManagerAggregatedListItems)
, _igmalSelfLink :: !(Maybe Text)
, _igmalWarning :: !(Maybe InstanceGroupManagerAggregatedListWarning)
, _igmalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerAggregatedList
:: InstanceGroupManagerAggregatedList
instanceGroupManagerAggregatedList =
InstanceGroupManagerAggregatedList'
{ _igmalNextPageToken = Nothing
, _igmalKind = "compute#instanceGroupManagerAggregatedList"
, _igmalItems = Nothing
, _igmalSelfLink = Nothing
, _igmalWarning = Nothing
, _igmalId = Nothing
}
igmalNextPageToken :: Lens' InstanceGroupManagerAggregatedList (Maybe Text)
igmalNextPageToken
= lens _igmalNextPageToken
(\ s a -> s{_igmalNextPageToken = a})
igmalKind :: Lens' InstanceGroupManagerAggregatedList Text
igmalKind
= lens _igmalKind (\ s a -> s{_igmalKind = a})
igmalItems :: Lens' InstanceGroupManagerAggregatedList (Maybe InstanceGroupManagerAggregatedListItems)
igmalItems
= lens _igmalItems (\ s a -> s{_igmalItems = a})
igmalSelfLink :: Lens' InstanceGroupManagerAggregatedList (Maybe Text)
igmalSelfLink
= lens _igmalSelfLink
(\ s a -> s{_igmalSelfLink = a})
igmalWarning :: Lens' InstanceGroupManagerAggregatedList (Maybe InstanceGroupManagerAggregatedListWarning)
igmalWarning
= lens _igmalWarning (\ s a -> s{_igmalWarning = a})
igmalId :: Lens' InstanceGroupManagerAggregatedList (Maybe Text)
igmalId = lens _igmalId (\ s a -> s{_igmalId = a})
instance FromJSON InstanceGroupManagerAggregatedList
where
parseJSON
= withObject "InstanceGroupManagerAggregatedList"
(\ o ->
InstanceGroupManagerAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#instanceGroupManagerAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceGroupManagerAggregatedList
where
toJSON InstanceGroupManagerAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _igmalNextPageToken,
Just ("kind" .= _igmalKind),
("items" .=) <$> _igmalItems,
("selfLink" .=) <$> _igmalSelfLink,
("warning" .=) <$> _igmalWarning,
("id" .=) <$> _igmalId])
data BackendBucket =
BackendBucket'
{ _bbKind :: !Text
, _bbEnableCdn :: !(Maybe Bool)
, _bbBucketName :: !(Maybe Text)
, _bbCdnPolicy :: !(Maybe BackendBucketCdnPolicy)
, _bbSelfLink :: !(Maybe Text)
, _bbName :: !(Maybe Text)
, _bbCreationTimestamp :: !(Maybe Text)
, _bbId :: !(Maybe (Textual Word64))
, _bbDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendBucket
:: BackendBucket
backendBucket =
BackendBucket'
{ _bbKind = "compute#backendBucket"
, _bbEnableCdn = Nothing
, _bbBucketName = Nothing
, _bbCdnPolicy = Nothing
, _bbSelfLink = Nothing
, _bbName = Nothing
, _bbCreationTimestamp = Nothing
, _bbId = Nothing
, _bbDescription = Nothing
}
bbKind :: Lens' BackendBucket Text
bbKind = lens _bbKind (\ s a -> s{_bbKind = a})
bbEnableCdn :: Lens' BackendBucket (Maybe Bool)
bbEnableCdn
= lens _bbEnableCdn (\ s a -> s{_bbEnableCdn = a})
bbBucketName :: Lens' BackendBucket (Maybe Text)
bbBucketName
= lens _bbBucketName (\ s a -> s{_bbBucketName = a})
bbCdnPolicy :: Lens' BackendBucket (Maybe BackendBucketCdnPolicy)
bbCdnPolicy
= lens _bbCdnPolicy (\ s a -> s{_bbCdnPolicy = a})
bbSelfLink :: Lens' BackendBucket (Maybe Text)
bbSelfLink
= lens _bbSelfLink (\ s a -> s{_bbSelfLink = a})
bbName :: Lens' BackendBucket (Maybe Text)
bbName = lens _bbName (\ s a -> s{_bbName = a})
bbCreationTimestamp :: Lens' BackendBucket (Maybe Text)
bbCreationTimestamp
= lens _bbCreationTimestamp
(\ s a -> s{_bbCreationTimestamp = a})
bbId :: Lens' BackendBucket (Maybe Word64)
bbId
= lens _bbId (\ s a -> s{_bbId = a}) .
mapping _Coerce
bbDescription :: Lens' BackendBucket (Maybe Text)
bbDescription
= lens _bbDescription
(\ s a -> s{_bbDescription = a})
instance FromJSON BackendBucket where
parseJSON
= withObject "BackendBucket"
(\ o ->
BackendBucket' <$>
(o .:? "kind" .!= "compute#backendBucket") <*>
(o .:? "enableCdn")
<*> (o .:? "bucketName")
<*> (o .:? "cdnPolicy")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "description"))
instance ToJSON BackendBucket where
toJSON BackendBucket'{..}
= object
(catMaybes
[Just ("kind" .= _bbKind),
("enableCdn" .=) <$> _bbEnableCdn,
("bucketName" .=) <$> _bbBucketName,
("cdnPolicy" .=) <$> _bbCdnPolicy,
("selfLink" .=) <$> _bbSelfLink,
("name" .=) <$> _bbName,
("creationTimestamp" .=) <$> _bbCreationTimestamp,
("id" .=) <$> _bbId,
("description" .=) <$> _bbDescription])
newtype ProjectsEnableXpnResourceRequest =
ProjectsEnableXpnResourceRequest'
{ _pexrrXpnResource :: Maybe XpnResourceId
}
deriving (Eq, Show, Data, Typeable, Generic)
projectsEnableXpnResourceRequest
:: ProjectsEnableXpnResourceRequest
projectsEnableXpnResourceRequest =
ProjectsEnableXpnResourceRequest' {_pexrrXpnResource = Nothing}
pexrrXpnResource :: Lens' ProjectsEnableXpnResourceRequest (Maybe XpnResourceId)
pexrrXpnResource
= lens _pexrrXpnResource
(\ s a -> s{_pexrrXpnResource = a})
instance FromJSON ProjectsEnableXpnResourceRequest
where
parseJSON
= withObject "ProjectsEnableXpnResourceRequest"
(\ o ->
ProjectsEnableXpnResourceRequest' <$>
(o .:? "xpnResource"))
instance ToJSON ProjectsEnableXpnResourceRequest
where
toJSON ProjectsEnableXpnResourceRequest'{..}
= object
(catMaybes
[("xpnResource" .=) <$> _pexrrXpnResource])
data TargetPoolsScopedList =
TargetPoolsScopedList'
{ _tpslWarning :: !(Maybe TargetPoolsScopedListWarning)
, _tpslTargetPools :: !(Maybe [TargetPool])
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolsScopedList
:: TargetPoolsScopedList
targetPoolsScopedList =
TargetPoolsScopedList' {_tpslWarning = Nothing, _tpslTargetPools = Nothing}
tpslWarning :: Lens' TargetPoolsScopedList (Maybe TargetPoolsScopedListWarning)
tpslWarning
= lens _tpslWarning (\ s a -> s{_tpslWarning = a})
tpslTargetPools :: Lens' TargetPoolsScopedList [TargetPool]
tpslTargetPools
= lens _tpslTargetPools
(\ s a -> s{_tpslTargetPools = a})
. _Default
. _Coerce
instance FromJSON TargetPoolsScopedList where
parseJSON
= withObject "TargetPoolsScopedList"
(\ o ->
TargetPoolsScopedList' <$>
(o .:? "warning") <*>
(o .:? "targetPools" .!= mempty))
instance ToJSON TargetPoolsScopedList where
toJSON TargetPoolsScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _tpslWarning,
("targetPools" .=) <$> _tpslTargetPools])
newtype InterconnectAttachmentAggregatedListItems =
InterconnectAttachmentAggregatedListItems'
{ _iaaliAddtional :: HashMap Text InterconnectAttachmentsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentAggregatedListItems
:: HashMap Text InterconnectAttachmentsScopedList
-> InterconnectAttachmentAggregatedListItems
interconnectAttachmentAggregatedListItems pIaaliAddtional_ =
InterconnectAttachmentAggregatedListItems'
{_iaaliAddtional = _Coerce # pIaaliAddtional_}
iaaliAddtional :: Lens' InterconnectAttachmentAggregatedListItems (HashMap Text InterconnectAttachmentsScopedList)
iaaliAddtional
= lens _iaaliAddtional
(\ s a -> s{_iaaliAddtional = a})
. _Coerce
instance FromJSON
InterconnectAttachmentAggregatedListItems
where
parseJSON
= withObject
"InterconnectAttachmentAggregatedListItems"
(\ o ->
InterconnectAttachmentAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON
InterconnectAttachmentAggregatedListItems
where
toJSON = toJSON . _iaaliAddtional
data InstanceGroupManagerAutoHealingPolicy =
InstanceGroupManagerAutoHealingPolicy'
{ _igmahpHealthCheck :: !(Maybe Text)
, _igmahpInitialDelaySec :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerAutoHealingPolicy
:: InstanceGroupManagerAutoHealingPolicy
instanceGroupManagerAutoHealingPolicy =
InstanceGroupManagerAutoHealingPolicy'
{_igmahpHealthCheck = Nothing, _igmahpInitialDelaySec = Nothing}
igmahpHealthCheck :: Lens' InstanceGroupManagerAutoHealingPolicy (Maybe Text)
igmahpHealthCheck
= lens _igmahpHealthCheck
(\ s a -> s{_igmahpHealthCheck = a})
igmahpInitialDelaySec :: Lens' InstanceGroupManagerAutoHealingPolicy (Maybe Int32)
igmahpInitialDelaySec
= lens _igmahpInitialDelaySec
(\ s a -> s{_igmahpInitialDelaySec = a})
. mapping _Coerce
instance FromJSON
InstanceGroupManagerAutoHealingPolicy
where
parseJSON
= withObject "InstanceGroupManagerAutoHealingPolicy"
(\ o ->
InstanceGroupManagerAutoHealingPolicy' <$>
(o .:? "healthCheck") <*> (o .:? "initialDelaySec"))
instance ToJSON InstanceGroupManagerAutoHealingPolicy
where
toJSON InstanceGroupManagerAutoHealingPolicy'{..}
= object
(catMaybes
[("healthCheck" .=) <$> _igmahpHealthCheck,
("initialDelaySec" .=) <$> _igmahpInitialDelaySec])
data LogConfigCounterOptions =
LogConfigCounterOptions'
{ _lccoField :: !(Maybe Text)
, _lccoMetric :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
logConfigCounterOptions
:: LogConfigCounterOptions
logConfigCounterOptions =
LogConfigCounterOptions' {_lccoField = Nothing, _lccoMetric = Nothing}
lccoField :: Lens' LogConfigCounterOptions (Maybe Text)
lccoField
= lens _lccoField (\ s a -> s{_lccoField = a})
lccoMetric :: Lens' LogConfigCounterOptions (Maybe Text)
lccoMetric
= lens _lccoMetric (\ s a -> s{_lccoMetric = a})
instance FromJSON LogConfigCounterOptions where
parseJSON
= withObject "LogConfigCounterOptions"
(\ o ->
LogConfigCounterOptions' <$>
(o .:? "field") <*> (o .:? "metric"))
instance ToJSON LogConfigCounterOptions where
toJSON LogConfigCounterOptions'{..}
= object
(catMaybes
[("field" .=) <$> _lccoField,
("metric" .=) <$> _lccoMetric])
newtype InstancesSetMinCPUPlatformRequest =
InstancesSetMinCPUPlatformRequest'
{ _ismcprMinCPUPlatform :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesSetMinCPUPlatformRequest
:: InstancesSetMinCPUPlatformRequest
instancesSetMinCPUPlatformRequest =
InstancesSetMinCPUPlatformRequest' {_ismcprMinCPUPlatform = Nothing}
ismcprMinCPUPlatform :: Lens' InstancesSetMinCPUPlatformRequest (Maybe Text)
ismcprMinCPUPlatform
= lens _ismcprMinCPUPlatform
(\ s a -> s{_ismcprMinCPUPlatform = a})
instance FromJSON InstancesSetMinCPUPlatformRequest
where
parseJSON
= withObject "InstancesSetMinCPUPlatformRequest"
(\ o ->
InstancesSetMinCPUPlatformRequest' <$>
(o .:? "minCpuPlatform"))
instance ToJSON InstancesSetMinCPUPlatformRequest
where
toJSON InstancesSetMinCPUPlatformRequest'{..}
= object
(catMaybes
[("minCpuPlatform" .=) <$> _ismcprMinCPUPlatform])
data ForwardingRuleAggregatedList =
ForwardingRuleAggregatedList'
{ _fralNextPageToken :: !(Maybe Text)
, _fralKind :: !Text
, _fralItems :: !(Maybe ForwardingRuleAggregatedListItems)
, _fralSelfLink :: !(Maybe Text)
, _fralWarning :: !(Maybe ForwardingRuleAggregatedListWarning)
, _fralId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleAggregatedList
:: ForwardingRuleAggregatedList
forwardingRuleAggregatedList =
ForwardingRuleAggregatedList'
{ _fralNextPageToken = Nothing
, _fralKind = "compute#forwardingRuleAggregatedList"
, _fralItems = Nothing
, _fralSelfLink = Nothing
, _fralWarning = Nothing
, _fralId = Nothing
}
fralNextPageToken :: Lens' ForwardingRuleAggregatedList (Maybe Text)
fralNextPageToken
= lens _fralNextPageToken
(\ s a -> s{_fralNextPageToken = a})
fralKind :: Lens' ForwardingRuleAggregatedList Text
fralKind = lens _fralKind (\ s a -> s{_fralKind = a})
fralItems :: Lens' ForwardingRuleAggregatedList (Maybe ForwardingRuleAggregatedListItems)
fralItems
= lens _fralItems (\ s a -> s{_fralItems = a})
fralSelfLink :: Lens' ForwardingRuleAggregatedList (Maybe Text)
fralSelfLink
= lens _fralSelfLink (\ s a -> s{_fralSelfLink = a})
fralWarning :: Lens' ForwardingRuleAggregatedList (Maybe ForwardingRuleAggregatedListWarning)
fralWarning
= lens _fralWarning (\ s a -> s{_fralWarning = a})
fralId :: Lens' ForwardingRuleAggregatedList (Maybe Text)
fralId = lens _fralId (\ s a -> s{_fralId = a})
instance FromJSON ForwardingRuleAggregatedList where
parseJSON
= withObject "ForwardingRuleAggregatedList"
(\ o ->
ForwardingRuleAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#forwardingRuleAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON ForwardingRuleAggregatedList where
toJSON ForwardingRuleAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _fralNextPageToken,
Just ("kind" .= _fralKind),
("items" .=) <$> _fralItems,
("selfLink" .=) <$> _fralSelfLink,
("warning" .=) <$> _fralWarning,
("id" .=) <$> _fralId])
newtype TargetReference =
TargetReference'
{ _trTarget :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
targetReference
:: TargetReference
targetReference = TargetReference' {_trTarget = Nothing}
trTarget :: Lens' TargetReference (Maybe Text)
trTarget = lens _trTarget (\ s a -> s{_trTarget = a})
instance FromJSON TargetReference where
parseJSON
= withObject "TargetReference"
(\ o -> TargetReference' <$> (o .:? "target"))
instance ToJSON TargetReference where
toJSON TargetReference'{..}
= object (catMaybes [("target" .=) <$> _trTarget])
data TargetPoolAggregatedList =
TargetPoolAggregatedList'
{ _tpalNextPageToken :: !(Maybe Text)
, _tpalKind :: !Text
, _tpalItems :: !(Maybe TargetPoolAggregatedListItems)
, _tpalSelfLink :: !(Maybe Text)
, _tpalWarning :: !(Maybe TargetPoolAggregatedListWarning)
, _tpalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolAggregatedList
:: TargetPoolAggregatedList
targetPoolAggregatedList =
TargetPoolAggregatedList'
{ _tpalNextPageToken = Nothing
, _tpalKind = "compute#targetPoolAggregatedList"
, _tpalItems = Nothing
, _tpalSelfLink = Nothing
, _tpalWarning = Nothing
, _tpalId = Nothing
}
tpalNextPageToken :: Lens' TargetPoolAggregatedList (Maybe Text)
tpalNextPageToken
= lens _tpalNextPageToken
(\ s a -> s{_tpalNextPageToken = a})
tpalKind :: Lens' TargetPoolAggregatedList Text
tpalKind = lens _tpalKind (\ s a -> s{_tpalKind = a})
tpalItems :: Lens' TargetPoolAggregatedList (Maybe TargetPoolAggregatedListItems)
tpalItems
= lens _tpalItems (\ s a -> s{_tpalItems = a})
tpalSelfLink :: Lens' TargetPoolAggregatedList (Maybe Text)
tpalSelfLink
= lens _tpalSelfLink (\ s a -> s{_tpalSelfLink = a})
tpalWarning :: Lens' TargetPoolAggregatedList (Maybe TargetPoolAggregatedListWarning)
tpalWarning
= lens _tpalWarning (\ s a -> s{_tpalWarning = a})
tpalId :: Lens' TargetPoolAggregatedList (Maybe Text)
tpalId = lens _tpalId (\ s a -> s{_tpalId = a})
instance FromJSON TargetPoolAggregatedList where
parseJSON
= withObject "TargetPoolAggregatedList"
(\ o ->
TargetPoolAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetPoolAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetPoolAggregatedList where
toJSON TargetPoolAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _tpalNextPageToken,
Just ("kind" .= _tpalKind),
("items" .=) <$> _tpalItems,
("selfLink" .=) <$> _tpalSelfLink,
("warning" .=) <$> _tpalWarning,
("id" .=) <$> _tpalId])
data OperationsScopedListWarningDataItem =
OperationsScopedListWarningDataItem'
{ _oslwdiValue :: !(Maybe Text)
, _oslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationsScopedListWarningDataItem
:: OperationsScopedListWarningDataItem
operationsScopedListWarningDataItem =
OperationsScopedListWarningDataItem'
{_oslwdiValue = Nothing, _oslwdiKey = Nothing}
oslwdiValue :: Lens' OperationsScopedListWarningDataItem (Maybe Text)
oslwdiValue
= lens _oslwdiValue (\ s a -> s{_oslwdiValue = a})
oslwdiKey :: Lens' OperationsScopedListWarningDataItem (Maybe Text)
oslwdiKey
= lens _oslwdiKey (\ s a -> s{_oslwdiKey = a})
instance FromJSON OperationsScopedListWarningDataItem
where
parseJSON
= withObject "OperationsScopedListWarningDataItem"
(\ o ->
OperationsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON OperationsScopedListWarningDataItem
where
toJSON OperationsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _oslwdiValue,
("key" .=) <$> _oslwdiKey])
data GlobalSetLabelsRequest =
GlobalSetLabelsRequest'
{ _gslrLabels :: !(Maybe GlobalSetLabelsRequestLabels)
, _gslrLabelFingerprint :: !(Maybe Bytes)
}
deriving (Eq, Show, Data, Typeable, Generic)
globalSetLabelsRequest
:: GlobalSetLabelsRequest
globalSetLabelsRequest =
GlobalSetLabelsRequest'
{_gslrLabels = Nothing, _gslrLabelFingerprint = Nothing}
gslrLabels :: Lens' GlobalSetLabelsRequest (Maybe GlobalSetLabelsRequestLabels)
gslrLabels
= lens _gslrLabels (\ s a -> s{_gslrLabels = a})
gslrLabelFingerprint :: Lens' GlobalSetLabelsRequest (Maybe ByteString)
gslrLabelFingerprint
= lens _gslrLabelFingerprint
(\ s a -> s{_gslrLabelFingerprint = a})
. mapping _Bytes
instance FromJSON GlobalSetLabelsRequest where
parseJSON
= withObject "GlobalSetLabelsRequest"
(\ o ->
GlobalSetLabelsRequest' <$>
(o .:? "labels") <*> (o .:? "labelFingerprint"))
instance ToJSON GlobalSetLabelsRequest where
toJSON GlobalSetLabelsRequest'{..}
= object
(catMaybes
[("labels" .=) <$> _gslrLabels,
("labelFingerprint" .=) <$> _gslrLabelFingerprint])
data TargetPool =
TargetPool'
{ _tpSessionAffinity :: !(Maybe TargetPoolSessionAffinity)
, _tpBackupPool :: !(Maybe Text)
, _tpKind :: !Text
, _tpSelfLink :: !(Maybe Text)
, _tpName :: !(Maybe Text)
, _tpCreationTimestamp :: !(Maybe Text)
, _tpInstances :: !(Maybe [Text])
, _tpId :: !(Maybe (Textual Word64))
, _tpFailoverRatio :: !(Maybe (Textual Double))
, _tpRegion :: !(Maybe Text)
, _tpDescription :: !(Maybe Text)
, _tpHealthChecks :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPool
:: TargetPool
targetPool =
TargetPool'
{ _tpSessionAffinity = Nothing
, _tpBackupPool = Nothing
, _tpKind = "compute#targetPool"
, _tpSelfLink = Nothing
, _tpName = Nothing
, _tpCreationTimestamp = Nothing
, _tpInstances = Nothing
, _tpId = Nothing
, _tpFailoverRatio = Nothing
, _tpRegion = Nothing
, _tpDescription = Nothing
, _tpHealthChecks = Nothing
}
tpSessionAffinity :: Lens' TargetPool (Maybe TargetPoolSessionAffinity)
tpSessionAffinity
= lens _tpSessionAffinity
(\ s a -> s{_tpSessionAffinity = a})
tpBackupPool :: Lens' TargetPool (Maybe Text)
tpBackupPool
= lens _tpBackupPool (\ s a -> s{_tpBackupPool = a})
tpKind :: Lens' TargetPool Text
tpKind = lens _tpKind (\ s a -> s{_tpKind = a})
tpSelfLink :: Lens' TargetPool (Maybe Text)
tpSelfLink
= lens _tpSelfLink (\ s a -> s{_tpSelfLink = a})
tpName :: Lens' TargetPool (Maybe Text)
tpName = lens _tpName (\ s a -> s{_tpName = a})
tpCreationTimestamp :: Lens' TargetPool (Maybe Text)
tpCreationTimestamp
= lens _tpCreationTimestamp
(\ s a -> s{_tpCreationTimestamp = a})
tpInstances :: Lens' TargetPool [Text]
tpInstances
= lens _tpInstances (\ s a -> s{_tpInstances = a}) .
_Default
. _Coerce
tpId :: Lens' TargetPool (Maybe Word64)
tpId
= lens _tpId (\ s a -> s{_tpId = a}) .
mapping _Coerce
tpFailoverRatio :: Lens' TargetPool (Maybe Double)
tpFailoverRatio
= lens _tpFailoverRatio
(\ s a -> s{_tpFailoverRatio = a})
. mapping _Coerce
tpRegion :: Lens' TargetPool (Maybe Text)
tpRegion = lens _tpRegion (\ s a -> s{_tpRegion = a})
tpDescription :: Lens' TargetPool (Maybe Text)
tpDescription
= lens _tpDescription
(\ s a -> s{_tpDescription = a})
tpHealthChecks :: Lens' TargetPool [Text]
tpHealthChecks
= lens _tpHealthChecks
(\ s a -> s{_tpHealthChecks = a})
. _Default
. _Coerce
instance FromJSON TargetPool where
parseJSON
= withObject "TargetPool"
(\ o ->
TargetPool' <$>
(o .:? "sessionAffinity") <*> (o .:? "backupPool")
<*> (o .:? "kind" .!= "compute#targetPool")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "instances" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "failoverRatio")
<*> (o .:? "region")
<*> (o .:? "description")
<*> (o .:? "healthChecks" .!= mempty))
instance ToJSON TargetPool where
toJSON TargetPool'{..}
= object
(catMaybes
[("sessionAffinity" .=) <$> _tpSessionAffinity,
("backupPool" .=) <$> _tpBackupPool,
Just ("kind" .= _tpKind),
("selfLink" .=) <$> _tpSelfLink,
("name" .=) <$> _tpName,
("creationTimestamp" .=) <$> _tpCreationTimestamp,
("instances" .=) <$> _tpInstances,
("id" .=) <$> _tpId,
("failoverRatio" .=) <$> _tpFailoverRatio,
("region" .=) <$> _tpRegion,
("description" .=) <$> _tpDescription,
("healthChecks" .=) <$> _tpHealthChecks])
data ImageList =
ImageList'
{ _ilNextPageToken :: !(Maybe Text)
, _ilKind :: !Text
, _ilItems :: !(Maybe [Image])
, _ilSelfLink :: !(Maybe Text)
, _ilWarning :: !(Maybe ImageListWarning)
, _ilId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
imageList
:: ImageList
imageList =
ImageList'
{ _ilNextPageToken = Nothing
, _ilKind = "compute#imageList"
, _ilItems = Nothing
, _ilSelfLink = Nothing
, _ilWarning = Nothing
, _ilId = Nothing
}
ilNextPageToken :: Lens' ImageList (Maybe Text)
ilNextPageToken
= lens _ilNextPageToken
(\ s a -> s{_ilNextPageToken = a})
ilKind :: Lens' ImageList Text
ilKind = lens _ilKind (\ s a -> s{_ilKind = a})
ilItems :: Lens' ImageList [Image]
ilItems
= lens _ilItems (\ s a -> s{_ilItems = a}) . _Default
. _Coerce
ilSelfLink :: Lens' ImageList (Maybe Text)
ilSelfLink
= lens _ilSelfLink (\ s a -> s{_ilSelfLink = a})
ilWarning :: Lens' ImageList (Maybe ImageListWarning)
ilWarning
= lens _ilWarning (\ s a -> s{_ilWarning = a})
ilId :: Lens' ImageList (Maybe Text)
ilId = lens _ilId (\ s a -> s{_ilId = a})
instance FromJSON ImageList where
parseJSON
= withObject "ImageList"
(\ o ->
ImageList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#imageList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON ImageList where
toJSON ImageList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ilNextPageToken,
Just ("kind" .= _ilKind), ("items" .=) <$> _ilItems,
("selfLink" .=) <$> _ilSelfLink,
("warning" .=) <$> _ilWarning, ("id" .=) <$> _ilId])
data OperationAggregatedListWarningDataItem =
OperationAggregatedListWarningDataItem'
{ _oalwdiValue :: !(Maybe Text)
, _oalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationAggregatedListWarningDataItem
:: OperationAggregatedListWarningDataItem
operationAggregatedListWarningDataItem =
OperationAggregatedListWarningDataItem'
{_oalwdiValue = Nothing, _oalwdiKey = Nothing}
oalwdiValue :: Lens' OperationAggregatedListWarningDataItem (Maybe Text)
oalwdiValue
= lens _oalwdiValue (\ s a -> s{_oalwdiValue = a})
oalwdiKey :: Lens' OperationAggregatedListWarningDataItem (Maybe Text)
oalwdiKey
= lens _oalwdiKey (\ s a -> s{_oalwdiKey = a})
instance FromJSON
OperationAggregatedListWarningDataItem
where
parseJSON
= withObject "OperationAggregatedListWarningDataItem"
(\ o ->
OperationAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
OperationAggregatedListWarningDataItem
where
toJSON OperationAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _oalwdiValue,
("key" .=) <$> _oalwdiKey])
data ForwardingRuleListWarning =
ForwardingRuleListWarning'
{ _frlwData :: !(Maybe [ForwardingRuleListWarningDataItem])
, _frlwCode :: !(Maybe ForwardingRuleListWarningCode)
, _frlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleListWarning
:: ForwardingRuleListWarning
forwardingRuleListWarning =
ForwardingRuleListWarning'
{_frlwData = Nothing, _frlwCode = Nothing, _frlwMessage = Nothing}
frlwData :: Lens' ForwardingRuleListWarning [ForwardingRuleListWarningDataItem]
frlwData
= lens _frlwData (\ s a -> s{_frlwData = a}) .
_Default
. _Coerce
frlwCode :: Lens' ForwardingRuleListWarning (Maybe ForwardingRuleListWarningCode)
frlwCode = lens _frlwCode (\ s a -> s{_frlwCode = a})
frlwMessage :: Lens' ForwardingRuleListWarning (Maybe Text)
frlwMessage
= lens _frlwMessage (\ s a -> s{_frlwMessage = a})
instance FromJSON ForwardingRuleListWarning where
parseJSON
= withObject "ForwardingRuleListWarning"
(\ o ->
ForwardingRuleListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON ForwardingRuleListWarning where
toJSON ForwardingRuleListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _frlwData,
("code" .=) <$> _frlwCode,
("message" .=) <$> _frlwMessage])
data VPNTunnelsScopedListWarning =
VPNTunnelsScopedListWarning'
{ _vtslwData :: !(Maybe [VPNTunnelsScopedListWarningDataItem])
, _vtslwCode :: !(Maybe VPNTunnelsScopedListWarningCode)
, _vtslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelsScopedListWarning
:: VPNTunnelsScopedListWarning
vpnTunnelsScopedListWarning =
VPNTunnelsScopedListWarning'
{_vtslwData = Nothing, _vtslwCode = Nothing, _vtslwMessage = Nothing}
vtslwData :: Lens' VPNTunnelsScopedListWarning [VPNTunnelsScopedListWarningDataItem]
vtslwData
= lens _vtslwData (\ s a -> s{_vtslwData = a}) .
_Default
. _Coerce
vtslwCode :: Lens' VPNTunnelsScopedListWarning (Maybe VPNTunnelsScopedListWarningCode)
vtslwCode
= lens _vtslwCode (\ s a -> s{_vtslwCode = a})
vtslwMessage :: Lens' VPNTunnelsScopedListWarning (Maybe Text)
vtslwMessage
= lens _vtslwMessage (\ s a -> s{_vtslwMessage = a})
instance FromJSON VPNTunnelsScopedListWarning where
parseJSON
= withObject "VPNTunnelsScopedListWarning"
(\ o ->
VPNTunnelsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON VPNTunnelsScopedListWarning where
toJSON VPNTunnelsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _vtslwData,
("code" .=) <$> _vtslwCode,
("message" .=) <$> _vtslwMessage])
newtype RegionDisksResizeRequest =
RegionDisksResizeRequest'
{ _rdrrSizeGb :: Maybe (Textual Int64)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionDisksResizeRequest
:: RegionDisksResizeRequest
regionDisksResizeRequest = RegionDisksResizeRequest' {_rdrrSizeGb = Nothing}
rdrrSizeGb :: Lens' RegionDisksResizeRequest (Maybe Int64)
rdrrSizeGb
= lens _rdrrSizeGb (\ s a -> s{_rdrrSizeGb = a}) .
mapping _Coerce
instance FromJSON RegionDisksResizeRequest where
parseJSON
= withObject "RegionDisksResizeRequest"
(\ o ->
RegionDisksResizeRequest' <$> (o .:? "sizeGb"))
instance ToJSON RegionDisksResizeRequest where
toJSON RegionDisksResizeRequest'{..}
= object (catMaybes [("sizeGb" .=) <$> _rdrrSizeGb])
data NodeTypesScopedListWarning =
NodeTypesScopedListWarning'
{ _ntslwData :: !(Maybe [NodeTypesScopedListWarningDataItem])
, _ntslwCode :: !(Maybe NodeTypesScopedListWarningCode)
, _ntslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypesScopedListWarning
:: NodeTypesScopedListWarning
nodeTypesScopedListWarning =
NodeTypesScopedListWarning'
{_ntslwData = Nothing, _ntslwCode = Nothing, _ntslwMessage = Nothing}
ntslwData :: Lens' NodeTypesScopedListWarning [NodeTypesScopedListWarningDataItem]
ntslwData
= lens _ntslwData (\ s a -> s{_ntslwData = a}) .
_Default
. _Coerce
ntslwCode :: Lens' NodeTypesScopedListWarning (Maybe NodeTypesScopedListWarningCode)
ntslwCode
= lens _ntslwCode (\ s a -> s{_ntslwCode = a})
ntslwMessage :: Lens' NodeTypesScopedListWarning (Maybe Text)
ntslwMessage
= lens _ntslwMessage (\ s a -> s{_ntslwMessage = a})
instance FromJSON NodeTypesScopedListWarning where
parseJSON
= withObject "NodeTypesScopedListWarning"
(\ o ->
NodeTypesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeTypesScopedListWarning where
toJSON NodeTypesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ntslwData,
("code" .=) <$> _ntslwCode,
("message" .=) <$> _ntslwMessage])
data NodeTemplateNodeTypeFlexibility =
NodeTemplateNodeTypeFlexibility'
{ _ntntfMemory :: !(Maybe Text)
, _ntntfCPUs :: !(Maybe Text)
, _ntntfLocalSsd :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateNodeTypeFlexibility
:: NodeTemplateNodeTypeFlexibility
nodeTemplateNodeTypeFlexibility =
NodeTemplateNodeTypeFlexibility'
{_ntntfMemory = Nothing, _ntntfCPUs = Nothing, _ntntfLocalSsd = Nothing}
ntntfMemory :: Lens' NodeTemplateNodeTypeFlexibility (Maybe Text)
ntntfMemory
= lens _ntntfMemory (\ s a -> s{_ntntfMemory = a})
ntntfCPUs :: Lens' NodeTemplateNodeTypeFlexibility (Maybe Text)
ntntfCPUs
= lens _ntntfCPUs (\ s a -> s{_ntntfCPUs = a})
ntntfLocalSsd :: Lens' NodeTemplateNodeTypeFlexibility (Maybe Text)
ntntfLocalSsd
= lens _ntntfLocalSsd
(\ s a -> s{_ntntfLocalSsd = a})
instance FromJSON NodeTemplateNodeTypeFlexibility
where
parseJSON
= withObject "NodeTemplateNodeTypeFlexibility"
(\ o ->
NodeTemplateNodeTypeFlexibility' <$>
(o .:? "memory") <*> (o .:? "cpus") <*>
(o .:? "localSsd"))
instance ToJSON NodeTemplateNodeTypeFlexibility where
toJSON NodeTemplateNodeTypeFlexibility'{..}
= object
(catMaybes
[("memory" .=) <$> _ntntfMemory,
("cpus" .=) <$> _ntntfCPUs,
("localSsd" .=) <$> _ntntfLocalSsd])
data LicenseResourceRequirements =
LicenseResourceRequirements'
{ _lrrMinMemoryMb :: !(Maybe (Textual Int32))
, _lrrMinGuestCPUCount :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
licenseResourceRequirements
:: LicenseResourceRequirements
licenseResourceRequirements =
LicenseResourceRequirements'
{_lrrMinMemoryMb = Nothing, _lrrMinGuestCPUCount = Nothing}
lrrMinMemoryMb :: Lens' LicenseResourceRequirements (Maybe Int32)
lrrMinMemoryMb
= lens _lrrMinMemoryMb
(\ s a -> s{_lrrMinMemoryMb = a})
. mapping _Coerce
lrrMinGuestCPUCount :: Lens' LicenseResourceRequirements (Maybe Int32)
lrrMinGuestCPUCount
= lens _lrrMinGuestCPUCount
(\ s a -> s{_lrrMinGuestCPUCount = a})
. mapping _Coerce
instance FromJSON LicenseResourceRequirements where
parseJSON
= withObject "LicenseResourceRequirements"
(\ o ->
LicenseResourceRequirements' <$>
(o .:? "minMemoryMb") <*> (o .:? "minGuestCpuCount"))
instance ToJSON LicenseResourceRequirements where
toJSON LicenseResourceRequirements'{..}
= object
(catMaybes
[("minMemoryMb" .=) <$> _lrrMinMemoryMb,
("minGuestCpuCount" .=) <$> _lrrMinGuestCPUCount])
data RegionDiskTypeListWarning =
RegionDiskTypeListWarning'
{ _rdtlwData :: !(Maybe [RegionDiskTypeListWarningDataItem])
, _rdtlwCode :: !(Maybe RegionDiskTypeListWarningCode)
, _rdtlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionDiskTypeListWarning
:: RegionDiskTypeListWarning
regionDiskTypeListWarning =
RegionDiskTypeListWarning'
{_rdtlwData = Nothing, _rdtlwCode = Nothing, _rdtlwMessage = Nothing}
rdtlwData :: Lens' RegionDiskTypeListWarning [RegionDiskTypeListWarningDataItem]
rdtlwData
= lens _rdtlwData (\ s a -> s{_rdtlwData = a}) .
_Default
. _Coerce
rdtlwCode :: Lens' RegionDiskTypeListWarning (Maybe RegionDiskTypeListWarningCode)
rdtlwCode
= lens _rdtlwCode (\ s a -> s{_rdtlwCode = a})
rdtlwMessage :: Lens' RegionDiskTypeListWarning (Maybe Text)
rdtlwMessage
= lens _rdtlwMessage (\ s a -> s{_rdtlwMessage = a})
instance FromJSON RegionDiskTypeListWarning where
parseJSON
= withObject "RegionDiskTypeListWarning"
(\ o ->
RegionDiskTypeListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RegionDiskTypeListWarning where
toJSON RegionDiskTypeListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rdtlwData,
("code" .=) <$> _rdtlwCode,
("message" .=) <$> _rdtlwMessage])
newtype TargetSSLProxiesSetBackendServiceRequest =
TargetSSLProxiesSetBackendServiceRequest'
{ _tspsbsrService :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
targetSSLProxiesSetBackendServiceRequest
:: TargetSSLProxiesSetBackendServiceRequest
targetSSLProxiesSetBackendServiceRequest =
TargetSSLProxiesSetBackendServiceRequest' {_tspsbsrService = Nothing}
tspsbsrService :: Lens' TargetSSLProxiesSetBackendServiceRequest (Maybe Text)
tspsbsrService
= lens _tspsbsrService
(\ s a -> s{_tspsbsrService = a})
instance FromJSON
TargetSSLProxiesSetBackendServiceRequest
where
parseJSON
= withObject
"TargetSSLProxiesSetBackendServiceRequest"
(\ o ->
TargetSSLProxiesSetBackendServiceRequest' <$>
(o .:? "service"))
instance ToJSON
TargetSSLProxiesSetBackendServiceRequest
where
toJSON TargetSSLProxiesSetBackendServiceRequest'{..}
= object
(catMaybes [("service" .=) <$> _tspsbsrService])
data ForwardingRule =
ForwardingRule'
{ _frNetworkTier :: !(Maybe ForwardingRuleNetworkTier)
, _frIPAddress :: !(Maybe Text)
, _frLoadBalancingScheme :: !(Maybe ForwardingRuleLoadBalancingScheme)
, _frKind :: !Text
, _frIPVersion :: !(Maybe ForwardingRuleIPVersion)
, _frAllPorts :: !(Maybe Bool)
, _frNetwork :: !(Maybe Text)
, _frPortRange :: !(Maybe Text)
, _frSelfLink :: !(Maybe Text)
, _frName :: !(Maybe Text)
, _frIPProtocol :: !(Maybe ForwardingRuleIPProtocol)
, _frCreationTimestamp :: !(Maybe Text)
, _frServiceName :: !(Maybe Text)
, _frSubnetwork :: !(Maybe Text)
, _frPorts :: !(Maybe [Text])
, _frId :: !(Maybe (Textual Word64))
, _frRegion :: !(Maybe Text)
, _frServiceLabel :: !(Maybe Text)
, _frDescription :: !(Maybe Text)
, _frTarget :: !(Maybe Text)
, _frBackendService :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRule
:: ForwardingRule
forwardingRule =
ForwardingRule'
{ _frNetworkTier = Nothing
, _frIPAddress = Nothing
, _frLoadBalancingScheme = Nothing
, _frKind = "compute#forwardingRule"
, _frIPVersion = Nothing
, _frAllPorts = Nothing
, _frNetwork = Nothing
, _frPortRange = Nothing
, _frSelfLink = Nothing
, _frName = Nothing
, _frIPProtocol = Nothing
, _frCreationTimestamp = Nothing
, _frServiceName = Nothing
, _frSubnetwork = Nothing
, _frPorts = Nothing
, _frId = Nothing
, _frRegion = Nothing
, _frServiceLabel = Nothing
, _frDescription = Nothing
, _frTarget = Nothing
, _frBackendService = Nothing
}
frNetworkTier :: Lens' ForwardingRule (Maybe ForwardingRuleNetworkTier)
frNetworkTier
= lens _frNetworkTier
(\ s a -> s{_frNetworkTier = a})
frIPAddress :: Lens' ForwardingRule (Maybe Text)
frIPAddress
= lens _frIPAddress (\ s a -> s{_frIPAddress = a})
frLoadBalancingScheme :: Lens' ForwardingRule (Maybe ForwardingRuleLoadBalancingScheme)
frLoadBalancingScheme
= lens _frLoadBalancingScheme
(\ s a -> s{_frLoadBalancingScheme = a})
frKind :: Lens' ForwardingRule Text
frKind = lens _frKind (\ s a -> s{_frKind = a})
frIPVersion :: Lens' ForwardingRule (Maybe ForwardingRuleIPVersion)
frIPVersion
= lens _frIPVersion (\ s a -> s{_frIPVersion = a})
frAllPorts :: Lens' ForwardingRule (Maybe Bool)
frAllPorts
= lens _frAllPorts (\ s a -> s{_frAllPorts = a})
frNetwork :: Lens' ForwardingRule (Maybe Text)
frNetwork
= lens _frNetwork (\ s a -> s{_frNetwork = a})
frPortRange :: Lens' ForwardingRule (Maybe Text)
frPortRange
= lens _frPortRange (\ s a -> s{_frPortRange = a})
frSelfLink :: Lens' ForwardingRule (Maybe Text)
frSelfLink
= lens _frSelfLink (\ s a -> s{_frSelfLink = a})
frName :: Lens' ForwardingRule (Maybe Text)
frName = lens _frName (\ s a -> s{_frName = a})
frIPProtocol :: Lens' ForwardingRule (Maybe ForwardingRuleIPProtocol)
frIPProtocol
= lens _frIPProtocol (\ s a -> s{_frIPProtocol = a})
frCreationTimestamp :: Lens' ForwardingRule (Maybe Text)
frCreationTimestamp
= lens _frCreationTimestamp
(\ s a -> s{_frCreationTimestamp = a})
frServiceName :: Lens' ForwardingRule (Maybe Text)
frServiceName
= lens _frServiceName
(\ s a -> s{_frServiceName = a})
frSubnetwork :: Lens' ForwardingRule (Maybe Text)
frSubnetwork
= lens _frSubnetwork (\ s a -> s{_frSubnetwork = a})
frPorts :: Lens' ForwardingRule [Text]
frPorts
= lens _frPorts (\ s a -> s{_frPorts = a}) . _Default
. _Coerce
frId :: Lens' ForwardingRule (Maybe Word64)
frId
= lens _frId (\ s a -> s{_frId = a}) .
mapping _Coerce
frRegion :: Lens' ForwardingRule (Maybe Text)
frRegion = lens _frRegion (\ s a -> s{_frRegion = a})
frServiceLabel :: Lens' ForwardingRule (Maybe Text)
frServiceLabel
= lens _frServiceLabel
(\ s a -> s{_frServiceLabel = a})
frDescription :: Lens' ForwardingRule (Maybe Text)
frDescription
= lens _frDescription
(\ s a -> s{_frDescription = a})
frTarget :: Lens' ForwardingRule (Maybe Text)
frTarget = lens _frTarget (\ s a -> s{_frTarget = a})
frBackendService :: Lens' ForwardingRule (Maybe Text)
frBackendService
= lens _frBackendService
(\ s a -> s{_frBackendService = a})
instance FromJSON ForwardingRule where
parseJSON
= withObject "ForwardingRule"
(\ o ->
ForwardingRule' <$>
(o .:? "networkTier") <*> (o .:? "IPAddress") <*>
(o .:? "loadBalancingScheme")
<*> (o .:? "kind" .!= "compute#forwardingRule")
<*> (o .:? "ipVersion")
<*> (o .:? "allPorts")
<*> (o .:? "network")
<*> (o .:? "portRange")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "IPProtocol")
<*> (o .:? "creationTimestamp")
<*> (o .:? "serviceName")
<*> (o .:? "subnetwork")
<*> (o .:? "ports" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "serviceLabel")
<*> (o .:? "description")
<*> (o .:? "target")
<*> (o .:? "backendService"))
instance ToJSON ForwardingRule where
toJSON ForwardingRule'{..}
= object
(catMaybes
[("networkTier" .=) <$> _frNetworkTier,
("IPAddress" .=) <$> _frIPAddress,
("loadBalancingScheme" .=) <$>
_frLoadBalancingScheme,
Just ("kind" .= _frKind),
("ipVersion" .=) <$> _frIPVersion,
("allPorts" .=) <$> _frAllPorts,
("network" .=) <$> _frNetwork,
("portRange" .=) <$> _frPortRange,
("selfLink" .=) <$> _frSelfLink,
("name" .=) <$> _frName,
("IPProtocol" .=) <$> _frIPProtocol,
("creationTimestamp" .=) <$> _frCreationTimestamp,
("serviceName" .=) <$> _frServiceName,
("subnetwork" .=) <$> _frSubnetwork,
("ports" .=) <$> _frPorts, ("id" .=) <$> _frId,
("region" .=) <$> _frRegion,
("serviceLabel" .=) <$> _frServiceLabel,
("description" .=) <$> _frDescription,
("target" .=) <$> _frTarget,
("backendService" .=) <$> _frBackendService])
data URLMapList =
URLMapList'
{ _umlNextPageToken :: !(Maybe Text)
, _umlKind :: !Text
, _umlItems :: !(Maybe [URLMap])
, _umlSelfLink :: !(Maybe Text)
, _umlWarning :: !(Maybe URLMapListWarning)
, _umlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapList
:: URLMapList
urlMapList =
URLMapList'
{ _umlNextPageToken = Nothing
, _umlKind = "compute#urlMapList"
, _umlItems = Nothing
, _umlSelfLink = Nothing
, _umlWarning = Nothing
, _umlId = Nothing
}
umlNextPageToken :: Lens' URLMapList (Maybe Text)
umlNextPageToken
= lens _umlNextPageToken
(\ s a -> s{_umlNextPageToken = a})
umlKind :: Lens' URLMapList Text
umlKind = lens _umlKind (\ s a -> s{_umlKind = a})
umlItems :: Lens' URLMapList [URLMap]
umlItems
= lens _umlItems (\ s a -> s{_umlItems = a}) .
_Default
. _Coerce
umlSelfLink :: Lens' URLMapList (Maybe Text)
umlSelfLink
= lens _umlSelfLink (\ s a -> s{_umlSelfLink = a})
umlWarning :: Lens' URLMapList (Maybe URLMapListWarning)
umlWarning
= lens _umlWarning (\ s a -> s{_umlWarning = a})
umlId :: Lens' URLMapList (Maybe Text)
umlId = lens _umlId (\ s a -> s{_umlId = a})
instance FromJSON URLMapList where
parseJSON
= withObject "URLMapList"
(\ o ->
URLMapList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#urlMapList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON URLMapList where
toJSON URLMapList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _umlNextPageToken,
Just ("kind" .= _umlKind),
("items" .=) <$> _umlItems,
("selfLink" .=) <$> _umlSelfLink,
("warning" .=) <$> _umlWarning,
("id" .=) <$> _umlId])
data ForwardingRulesScopedListWarningDataItem =
ForwardingRulesScopedListWarningDataItem'
{ _frslwdiValue :: !(Maybe Text)
, _frslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRulesScopedListWarningDataItem
:: ForwardingRulesScopedListWarningDataItem
forwardingRulesScopedListWarningDataItem =
ForwardingRulesScopedListWarningDataItem'
{_frslwdiValue = Nothing, _frslwdiKey = Nothing}
frslwdiValue :: Lens' ForwardingRulesScopedListWarningDataItem (Maybe Text)
frslwdiValue
= lens _frslwdiValue (\ s a -> s{_frslwdiValue = a})
frslwdiKey :: Lens' ForwardingRulesScopedListWarningDataItem (Maybe Text)
frslwdiKey
= lens _frslwdiKey (\ s a -> s{_frslwdiKey = a})
instance FromJSON
ForwardingRulesScopedListWarningDataItem
where
parseJSON
= withObject
"ForwardingRulesScopedListWarningDataItem"
(\ o ->
ForwardingRulesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
ForwardingRulesScopedListWarningDataItem
where
toJSON ForwardingRulesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _frslwdiValue,
("key" .=) <$> _frslwdiKey])
data TargetInstanceAggregatedListWarning =
TargetInstanceAggregatedListWarning'
{ _tialwData :: !(Maybe [TargetInstanceAggregatedListWarningDataItem])
, _tialwCode :: !(Maybe TargetInstanceAggregatedListWarningCode)
, _tialwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstanceAggregatedListWarning
:: TargetInstanceAggregatedListWarning
targetInstanceAggregatedListWarning =
TargetInstanceAggregatedListWarning'
{_tialwData = Nothing, _tialwCode = Nothing, _tialwMessage = Nothing}
tialwData :: Lens' TargetInstanceAggregatedListWarning [TargetInstanceAggregatedListWarningDataItem]
tialwData
= lens _tialwData (\ s a -> s{_tialwData = a}) .
_Default
. _Coerce
tialwCode :: Lens' TargetInstanceAggregatedListWarning (Maybe TargetInstanceAggregatedListWarningCode)
tialwCode
= lens _tialwCode (\ s a -> s{_tialwCode = a})
tialwMessage :: Lens' TargetInstanceAggregatedListWarning (Maybe Text)
tialwMessage
= lens _tialwMessage (\ s a -> s{_tialwMessage = a})
instance FromJSON TargetInstanceAggregatedListWarning
where
parseJSON
= withObject "TargetInstanceAggregatedListWarning"
(\ o ->
TargetInstanceAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetInstanceAggregatedListWarning
where
toJSON TargetInstanceAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tialwData,
("code" .=) <$> _tialwCode,
("message" .=) <$> _tialwMessage])
data InstanceGroupManagersScopedListWarningDataItem =
InstanceGroupManagersScopedListWarningDataItem'
{ _igmslwdiValue :: !(Maybe Text)
, _igmslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersScopedListWarningDataItem
:: InstanceGroupManagersScopedListWarningDataItem
instanceGroupManagersScopedListWarningDataItem =
InstanceGroupManagersScopedListWarningDataItem'
{_igmslwdiValue = Nothing, _igmslwdiKey = Nothing}
igmslwdiValue :: Lens' InstanceGroupManagersScopedListWarningDataItem (Maybe Text)
igmslwdiValue
= lens _igmslwdiValue
(\ s a -> s{_igmslwdiValue = a})
igmslwdiKey :: Lens' InstanceGroupManagersScopedListWarningDataItem (Maybe Text)
igmslwdiKey
= lens _igmslwdiKey (\ s a -> s{_igmslwdiKey = a})
instance FromJSON
InstanceGroupManagersScopedListWarningDataItem
where
parseJSON
= withObject
"InstanceGroupManagersScopedListWarningDataItem"
(\ o ->
InstanceGroupManagersScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InstanceGroupManagersScopedListWarningDataItem
where
toJSON
InstanceGroupManagersScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _igmslwdiValue,
("key" .=) <$> _igmslwdiKey])
data SubnetworksScopedList =
SubnetworksScopedList'
{ _sslSubnetworks :: !(Maybe [Subnetwork])
, _sslWarning :: !(Maybe SubnetworksScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworksScopedList
:: SubnetworksScopedList
subnetworksScopedList =
SubnetworksScopedList' {_sslSubnetworks = Nothing, _sslWarning = Nothing}
sslSubnetworks :: Lens' SubnetworksScopedList [Subnetwork]
sslSubnetworks
= lens _sslSubnetworks
(\ s a -> s{_sslSubnetworks = a})
. _Default
. _Coerce
sslWarning :: Lens' SubnetworksScopedList (Maybe SubnetworksScopedListWarning)
sslWarning
= lens _sslWarning (\ s a -> s{_sslWarning = a})
instance FromJSON SubnetworksScopedList where
parseJSON
= withObject "SubnetworksScopedList"
(\ o ->
SubnetworksScopedList' <$>
(o .:? "subnetworks" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON SubnetworksScopedList where
toJSON SubnetworksScopedList'{..}
= object
(catMaybes
[("subnetworks" .=) <$> _sslSubnetworks,
("warning" .=) <$> _sslWarning])
data NetworkEndpointGroupsScopedList =
NetworkEndpointGroupsScopedList'
{ _negslNetworkEndpointGroups :: !(Maybe [NetworkEndpointGroup])
, _negslWarning :: !(Maybe NetworkEndpointGroupsScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsScopedList
:: NetworkEndpointGroupsScopedList
networkEndpointGroupsScopedList =
NetworkEndpointGroupsScopedList'
{_negslNetworkEndpointGroups = Nothing, _negslWarning = Nothing}
negslNetworkEndpointGroups :: Lens' NetworkEndpointGroupsScopedList [NetworkEndpointGroup]
negslNetworkEndpointGroups
= lens _negslNetworkEndpointGroups
(\ s a -> s{_negslNetworkEndpointGroups = a})
. _Default
. _Coerce
negslWarning :: Lens' NetworkEndpointGroupsScopedList (Maybe NetworkEndpointGroupsScopedListWarning)
negslWarning
= lens _negslWarning (\ s a -> s{_negslWarning = a})
instance FromJSON NetworkEndpointGroupsScopedList
where
parseJSON
= withObject "NetworkEndpointGroupsScopedList"
(\ o ->
NetworkEndpointGroupsScopedList' <$>
(o .:? "networkEndpointGroups" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON NetworkEndpointGroupsScopedList where
toJSON NetworkEndpointGroupsScopedList'{..}
= object
(catMaybes
[("networkEndpointGroups" .=) <$>
_negslNetworkEndpointGroups,
("warning" .=) <$> _negslWarning])
data AcceleratorTypeList =
AcceleratorTypeList'
{ _atlNextPageToken :: !(Maybe Text)
, _atlKind :: !Text
, _atlItems :: !(Maybe [AcceleratorType])
, _atlSelfLink :: !(Maybe Text)
, _atlWarning :: !(Maybe AcceleratorTypeListWarning)
, _atlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypeList
:: AcceleratorTypeList
acceleratorTypeList =
AcceleratorTypeList'
{ _atlNextPageToken = Nothing
, _atlKind = "compute#acceleratorTypeList"
, _atlItems = Nothing
, _atlSelfLink = Nothing
, _atlWarning = Nothing
, _atlId = Nothing
}
atlNextPageToken :: Lens' AcceleratorTypeList (Maybe Text)
atlNextPageToken
= lens _atlNextPageToken
(\ s a -> s{_atlNextPageToken = a})
atlKind :: Lens' AcceleratorTypeList Text
atlKind = lens _atlKind (\ s a -> s{_atlKind = a})
atlItems :: Lens' AcceleratorTypeList [AcceleratorType]
atlItems
= lens _atlItems (\ s a -> s{_atlItems = a}) .
_Default
. _Coerce
atlSelfLink :: Lens' AcceleratorTypeList (Maybe Text)
atlSelfLink
= lens _atlSelfLink (\ s a -> s{_atlSelfLink = a})
atlWarning :: Lens' AcceleratorTypeList (Maybe AcceleratorTypeListWarning)
atlWarning
= lens _atlWarning (\ s a -> s{_atlWarning = a})
atlId :: Lens' AcceleratorTypeList (Maybe Text)
atlId = lens _atlId (\ s a -> s{_atlId = a})
instance FromJSON AcceleratorTypeList where
parseJSON
= withObject "AcceleratorTypeList"
(\ o ->
AcceleratorTypeList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#acceleratorTypeList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON AcceleratorTypeList where
toJSON AcceleratorTypeList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _atlNextPageToken,
Just ("kind" .= _atlKind),
("items" .=) <$> _atlItems,
("selfLink" .=) <$> _atlSelfLink,
("warning" .=) <$> _atlWarning,
("id" .=) <$> _atlId])
data DiskAggregatedListWarningDataItem =
DiskAggregatedListWarningDataItem'
{ _dalwdiValue :: !(Maybe Text)
, _dalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskAggregatedListWarningDataItem
:: DiskAggregatedListWarningDataItem
diskAggregatedListWarningDataItem =
DiskAggregatedListWarningDataItem'
{_dalwdiValue = Nothing, _dalwdiKey = Nothing}
dalwdiValue :: Lens' DiskAggregatedListWarningDataItem (Maybe Text)
dalwdiValue
= lens _dalwdiValue (\ s a -> s{_dalwdiValue = a})
dalwdiKey :: Lens' DiskAggregatedListWarningDataItem (Maybe Text)
dalwdiKey
= lens _dalwdiKey (\ s a -> s{_dalwdiKey = a})
instance FromJSON DiskAggregatedListWarningDataItem
where
parseJSON
= withObject "DiskAggregatedListWarningDataItem"
(\ o ->
DiskAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON DiskAggregatedListWarningDataItem
where
toJSON DiskAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _dalwdiValue,
("key" .=) <$> _dalwdiKey])
data TargetPoolListWarning =
TargetPoolListWarning'
{ _tplwData :: !(Maybe [TargetPoolListWarningDataItem])
, _tplwCode :: !(Maybe TargetPoolListWarningCode)
, _tplwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolListWarning
:: TargetPoolListWarning
targetPoolListWarning =
TargetPoolListWarning'
{_tplwData = Nothing, _tplwCode = Nothing, _tplwMessage = Nothing}
tplwData :: Lens' TargetPoolListWarning [TargetPoolListWarningDataItem]
tplwData
= lens _tplwData (\ s a -> s{_tplwData = a}) .
_Default
. _Coerce
tplwCode :: Lens' TargetPoolListWarning (Maybe TargetPoolListWarningCode)
tplwCode = lens _tplwCode (\ s a -> s{_tplwCode = a})
tplwMessage :: Lens' TargetPoolListWarning (Maybe Text)
tplwMessage
= lens _tplwMessage (\ s a -> s{_tplwMessage = a})
instance FromJSON TargetPoolListWarning where
parseJSON
= withObject "TargetPoolListWarning"
(\ o ->
TargetPoolListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetPoolListWarning where
toJSON TargetPoolListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tplwData,
("code" .=) <$> _tplwCode,
("message" .=) <$> _tplwMessage])
data NodeTemplatesScopedListWarning =
NodeTemplatesScopedListWarning'
{ _nData :: !(Maybe [NodeTemplatesScopedListWarningDataItem])
, _nCode :: !(Maybe NodeTemplatesScopedListWarningCode)
, _nMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplatesScopedListWarning
:: NodeTemplatesScopedListWarning
nodeTemplatesScopedListWarning =
NodeTemplatesScopedListWarning'
{_nData = Nothing, _nCode = Nothing, _nMessage = Nothing}
nData :: Lens' NodeTemplatesScopedListWarning [NodeTemplatesScopedListWarningDataItem]
nData
= lens _nData (\ s a -> s{_nData = a}) . _Default .
_Coerce
nCode :: Lens' NodeTemplatesScopedListWarning (Maybe NodeTemplatesScopedListWarningCode)
nCode = lens _nCode (\ s a -> s{_nCode = a})
nMessage :: Lens' NodeTemplatesScopedListWarning (Maybe Text)
nMessage = lens _nMessage (\ s a -> s{_nMessage = a})
instance FromJSON NodeTemplatesScopedListWarning
where
parseJSON
= withObject "NodeTemplatesScopedListWarning"
(\ o ->
NodeTemplatesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeTemplatesScopedListWarning where
toJSON NodeTemplatesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _nData, ("code" .=) <$> _nCode,
("message" .=) <$> _nMessage])
data TargetPoolAggregatedListWarningDataItem =
TargetPoolAggregatedListWarningDataItem'
{ _tpalwdiValue :: !(Maybe Text)
, _tpalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolAggregatedListWarningDataItem
:: TargetPoolAggregatedListWarningDataItem
targetPoolAggregatedListWarningDataItem =
TargetPoolAggregatedListWarningDataItem'
{_tpalwdiValue = Nothing, _tpalwdiKey = Nothing}
tpalwdiValue :: Lens' TargetPoolAggregatedListWarningDataItem (Maybe Text)
tpalwdiValue
= lens _tpalwdiValue (\ s a -> s{_tpalwdiValue = a})
tpalwdiKey :: Lens' TargetPoolAggregatedListWarningDataItem (Maybe Text)
tpalwdiKey
= lens _tpalwdiKey (\ s a -> s{_tpalwdiKey = a})
instance FromJSON
TargetPoolAggregatedListWarningDataItem
where
parseJSON
= withObject
"TargetPoolAggregatedListWarningDataItem"
(\ o ->
TargetPoolAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
TargetPoolAggregatedListWarningDataItem
where
toJSON TargetPoolAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tpalwdiValue,
("key" .=) <$> _tpalwdiKey])
data Project =
Project'
{ _pXpnProjectStatus :: !(Maybe ProjectXpnProjectStatus)
, _pKind :: !Text
, _pUsageExportLocation :: !(Maybe UsageExportLocation)
, _pSelfLink :: !(Maybe Text)
, _pName :: !(Maybe Text)
, _pDefaultServiceAccount :: !(Maybe Text)
, _pDefaultNetworkTier :: !(Maybe ProjectDefaultNetworkTier)
, _pCreationTimestamp :: !(Maybe Text)
, _pEnabledFeatures :: !(Maybe [Text])
, _pQuotas :: !(Maybe [Quota])
, _pId :: !(Maybe (Textual Word64))
, _pDescription :: !(Maybe Text)
, _pCommonInstanceMetadata :: !(Maybe Metadata)
}
deriving (Eq, Show, Data, Typeable, Generic)
project
:: Project
project =
Project'
{ _pXpnProjectStatus = Nothing
, _pKind = "compute#project"
, _pUsageExportLocation = Nothing
, _pSelfLink = Nothing
, _pName = Nothing
, _pDefaultServiceAccount = Nothing
, _pDefaultNetworkTier = Nothing
, _pCreationTimestamp = Nothing
, _pEnabledFeatures = Nothing
, _pQuotas = Nothing
, _pId = Nothing
, _pDescription = Nothing
, _pCommonInstanceMetadata = Nothing
}
pXpnProjectStatus :: Lens' Project (Maybe ProjectXpnProjectStatus)
pXpnProjectStatus
= lens _pXpnProjectStatus
(\ s a -> s{_pXpnProjectStatus = a})
pKind :: Lens' Project Text
pKind = lens _pKind (\ s a -> s{_pKind = a})
pUsageExportLocation :: Lens' Project (Maybe UsageExportLocation)
pUsageExportLocation
= lens _pUsageExportLocation
(\ s a -> s{_pUsageExportLocation = a})
pSelfLink :: Lens' Project (Maybe Text)
pSelfLink
= lens _pSelfLink (\ s a -> s{_pSelfLink = a})
pName :: Lens' Project (Maybe Text)
pName = lens _pName (\ s a -> s{_pName = a})
pDefaultServiceAccount :: Lens' Project (Maybe Text)
pDefaultServiceAccount
= lens _pDefaultServiceAccount
(\ s a -> s{_pDefaultServiceAccount = a})
pDefaultNetworkTier :: Lens' Project (Maybe ProjectDefaultNetworkTier)
pDefaultNetworkTier
= lens _pDefaultNetworkTier
(\ s a -> s{_pDefaultNetworkTier = a})
pCreationTimestamp :: Lens' Project (Maybe Text)
pCreationTimestamp
= lens _pCreationTimestamp
(\ s a -> s{_pCreationTimestamp = a})
pEnabledFeatures :: Lens' Project [Text]
pEnabledFeatures
= lens _pEnabledFeatures
(\ s a -> s{_pEnabledFeatures = a})
. _Default
. _Coerce
pQuotas :: Lens' Project [Quota]
pQuotas
= lens _pQuotas (\ s a -> s{_pQuotas = a}) . _Default
. _Coerce
pId :: Lens' Project (Maybe Word64)
pId
= lens _pId (\ s a -> s{_pId = a}) . mapping _Coerce
pDescription :: Lens' Project (Maybe Text)
pDescription
= lens _pDescription (\ s a -> s{_pDescription = a})
pCommonInstanceMetadata :: Lens' Project (Maybe Metadata)
pCommonInstanceMetadata
= lens _pCommonInstanceMetadata
(\ s a -> s{_pCommonInstanceMetadata = a})
instance FromJSON Project where
parseJSON
= withObject "Project"
(\ o ->
Project' <$>
(o .:? "xpnProjectStatus") <*>
(o .:? "kind" .!= "compute#project")
<*> (o .:? "usageExportLocation")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "defaultServiceAccount")
<*> (o .:? "defaultNetworkTier")
<*> (o .:? "creationTimestamp")
<*> (o .:? "enabledFeatures" .!= mempty)
<*> (o .:? "quotas" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "description")
<*> (o .:? "commonInstanceMetadata"))
instance ToJSON Project where
toJSON Project'{..}
= object
(catMaybes
[("xpnProjectStatus" .=) <$> _pXpnProjectStatus,
Just ("kind" .= _pKind),
("usageExportLocation" .=) <$> _pUsageExportLocation,
("selfLink" .=) <$> _pSelfLink,
("name" .=) <$> _pName,
("defaultServiceAccount" .=) <$>
_pDefaultServiceAccount,
("defaultNetworkTier" .=) <$> _pDefaultNetworkTier,
("creationTimestamp" .=) <$> _pCreationTimestamp,
("enabledFeatures" .=) <$> _pEnabledFeatures,
("quotas" .=) <$> _pQuotas, ("id" .=) <$> _pId,
("description" .=) <$> _pDescription,
("commonInstanceMetadata" .=) <$>
_pCommonInstanceMetadata])
newtype RegionInstanceGroupManagersListInstancesResponse =
RegionInstanceGroupManagersListInstancesResponse'
{ _rigmlirManagedInstances :: Maybe [ManagedInstance]
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagersListInstancesResponse
:: RegionInstanceGroupManagersListInstancesResponse
regionInstanceGroupManagersListInstancesResponse =
RegionInstanceGroupManagersListInstancesResponse'
{_rigmlirManagedInstances = Nothing}
rigmlirManagedInstances :: Lens' RegionInstanceGroupManagersListInstancesResponse [ManagedInstance]
rigmlirManagedInstances
= lens _rigmlirManagedInstances
(\ s a -> s{_rigmlirManagedInstances = a})
. _Default
. _Coerce
instance FromJSON
RegionInstanceGroupManagersListInstancesResponse
where
parseJSON
= withObject
"RegionInstanceGroupManagersListInstancesResponse"
(\ o ->
RegionInstanceGroupManagersListInstancesResponse' <$>
(o .:? "managedInstances" .!= mempty))
instance ToJSON
RegionInstanceGroupManagersListInstancesResponse
where
toJSON
RegionInstanceGroupManagersListInstancesResponse'{..}
= object
(catMaybes
[("managedInstances" .=) <$>
_rigmlirManagedInstances])
data Operation =
Operation'
{ _oTargetId :: !(Maybe (Textual Word64))
, _oStatus :: !(Maybe OperationStatus)
, _oInsertTime :: !(Maybe Text)
, _oProgress :: !(Maybe (Textual Int32))
, _oStartTime :: !(Maybe Text)
, _oKind :: !Text
, _oError :: !(Maybe OperationError)
, _oHTTPErrorMessage :: !(Maybe Text)
, _oZone :: !(Maybe Text)
, _oWarnings :: !(Maybe [OperationWarningsItem])
, _oHTTPErrorStatusCode :: !(Maybe (Textual Int32))
, _oUser :: !(Maybe Text)
, _oSelfLink :: !(Maybe Text)
, _oName :: !(Maybe Text)
, _oStatusMessage :: !(Maybe Text)
, _oCreationTimestamp :: !(Maybe Text)
, _oEndTime :: !(Maybe Text)
, _oId :: !(Maybe (Textual Word64))
, _oOperationType :: !(Maybe Text)
, _oRegion :: !(Maybe Text)
, _oDescription :: !(Maybe Text)
, _oTargetLink :: !(Maybe Text)
, _oClientOperationId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operation
:: Operation
operation =
Operation'
{ _oTargetId = Nothing
, _oStatus = Nothing
, _oInsertTime = Nothing
, _oProgress = Nothing
, _oStartTime = Nothing
, _oKind = "compute#operation"
, _oError = Nothing
, _oHTTPErrorMessage = Nothing
, _oZone = Nothing
, _oWarnings = Nothing
, _oHTTPErrorStatusCode = Nothing
, _oUser = Nothing
, _oSelfLink = Nothing
, _oName = Nothing
, _oStatusMessage = Nothing
, _oCreationTimestamp = Nothing
, _oEndTime = Nothing
, _oId = Nothing
, _oOperationType = Nothing
, _oRegion = Nothing
, _oDescription = Nothing
, _oTargetLink = Nothing
, _oClientOperationId = Nothing
}
oTargetId :: Lens' Operation (Maybe Word64)
oTargetId
= lens _oTargetId (\ s a -> s{_oTargetId = a}) .
mapping _Coerce
oStatus :: Lens' Operation (Maybe OperationStatus)
oStatus = lens _oStatus (\ s a -> s{_oStatus = a})
oInsertTime :: Lens' Operation (Maybe Text)
oInsertTime
= lens _oInsertTime (\ s a -> s{_oInsertTime = a})
oProgress :: Lens' Operation (Maybe Int32)
oProgress
= lens _oProgress (\ s a -> s{_oProgress = a}) .
mapping _Coerce
oStartTime :: Lens' Operation (Maybe Text)
oStartTime
= lens _oStartTime (\ s a -> s{_oStartTime = a})
oKind :: Lens' Operation Text
oKind = lens _oKind (\ s a -> s{_oKind = a})
oError :: Lens' Operation (Maybe OperationError)
oError = lens _oError (\ s a -> s{_oError = a})
oHTTPErrorMessage :: Lens' Operation (Maybe Text)
oHTTPErrorMessage
= lens _oHTTPErrorMessage
(\ s a -> s{_oHTTPErrorMessage = a})
oZone :: Lens' Operation (Maybe Text)
oZone = lens _oZone (\ s a -> s{_oZone = a})
oWarnings :: Lens' Operation [OperationWarningsItem]
oWarnings
= lens _oWarnings (\ s a -> s{_oWarnings = a}) .
_Default
. _Coerce
oHTTPErrorStatusCode :: Lens' Operation (Maybe Int32)
oHTTPErrorStatusCode
= lens _oHTTPErrorStatusCode
(\ s a -> s{_oHTTPErrorStatusCode = a})
. mapping _Coerce
oUser :: Lens' Operation (Maybe Text)
oUser = lens _oUser (\ s a -> s{_oUser = a})
oSelfLink :: Lens' Operation (Maybe Text)
oSelfLink
= lens _oSelfLink (\ s a -> s{_oSelfLink = a})
oName :: Lens' Operation (Maybe Text)
oName = lens _oName (\ s a -> s{_oName = a})
oStatusMessage :: Lens' Operation (Maybe Text)
oStatusMessage
= lens _oStatusMessage
(\ s a -> s{_oStatusMessage = a})
oCreationTimestamp :: Lens' Operation (Maybe Text)
oCreationTimestamp
= lens _oCreationTimestamp
(\ s a -> s{_oCreationTimestamp = a})
oEndTime :: Lens' Operation (Maybe Text)
oEndTime = lens _oEndTime (\ s a -> s{_oEndTime = a})
oId :: Lens' Operation (Maybe Word64)
oId
= lens _oId (\ s a -> s{_oId = a}) . mapping _Coerce
oOperationType :: Lens' Operation (Maybe Text)
oOperationType
= lens _oOperationType
(\ s a -> s{_oOperationType = a})
oRegion :: Lens' Operation (Maybe Text)
oRegion = lens _oRegion (\ s a -> s{_oRegion = a})
oDescription :: Lens' Operation (Maybe Text)
oDescription
= lens _oDescription (\ s a -> s{_oDescription = a})
oTargetLink :: Lens' Operation (Maybe Text)
oTargetLink
= lens _oTargetLink (\ s a -> s{_oTargetLink = a})
oClientOperationId :: Lens' Operation (Maybe Text)
oClientOperationId
= lens _oClientOperationId
(\ s a -> s{_oClientOperationId = a})
instance FromJSON Operation where
parseJSON
= withObject "Operation"
(\ o ->
Operation' <$>
(o .:? "targetId") <*> (o .:? "status") <*>
(o .:? "insertTime")
<*> (o .:? "progress")
<*> (o .:? "startTime")
<*> (o .:? "kind" .!= "compute#operation")
<*> (o .:? "error")
<*> (o .:? "httpErrorMessage")
<*> (o .:? "zone")
<*> (o .:? "warnings" .!= mempty)
<*> (o .:? "httpErrorStatusCode")
<*> (o .:? "user")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "statusMessage")
<*> (o .:? "creationTimestamp")
<*> (o .:? "endTime")
<*> (o .:? "id")
<*> (o .:? "operationType")
<*> (o .:? "region")
<*> (o .:? "description")
<*> (o .:? "targetLink")
<*> (o .:? "clientOperationId"))
instance ToJSON Operation where
toJSON Operation'{..}
= object
(catMaybes
[("targetId" .=) <$> _oTargetId,
("status" .=) <$> _oStatus,
("insertTime" .=) <$> _oInsertTime,
("progress" .=) <$> _oProgress,
("startTime" .=) <$> _oStartTime,
Just ("kind" .= _oKind), ("error" .=) <$> _oError,
("httpErrorMessage" .=) <$> _oHTTPErrorMessage,
("zone" .=) <$> _oZone,
("warnings" .=) <$> _oWarnings,
("httpErrorStatusCode" .=) <$> _oHTTPErrorStatusCode,
("user" .=) <$> _oUser,
("selfLink" .=) <$> _oSelfLink,
("name" .=) <$> _oName,
("statusMessage" .=) <$> _oStatusMessage,
("creationTimestamp" .=) <$> _oCreationTimestamp,
("endTime" .=) <$> _oEndTime, ("id" .=) <$> _oId,
("operationType" .=) <$> _oOperationType,
("region" .=) <$> _oRegion,
("description" .=) <$> _oDescription,
("targetLink" .=) <$> _oTargetLink,
("clientOperationId" .=) <$> _oClientOperationId])
data NetworkEndpoint =
NetworkEndpoint'
{ _neIPAddress :: !(Maybe Text)
, _nePort :: !(Maybe (Textual Int32))
, _neInstance :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpoint
:: NetworkEndpoint
networkEndpoint =
NetworkEndpoint'
{_neIPAddress = Nothing, _nePort = Nothing, _neInstance = Nothing}
neIPAddress :: Lens' NetworkEndpoint (Maybe Text)
neIPAddress
= lens _neIPAddress (\ s a -> s{_neIPAddress = a})
nePort :: Lens' NetworkEndpoint (Maybe Int32)
nePort
= lens _nePort (\ s a -> s{_nePort = a}) .
mapping _Coerce
neInstance :: Lens' NetworkEndpoint (Maybe Text)
neInstance
= lens _neInstance (\ s a -> s{_neInstance = a})
instance FromJSON NetworkEndpoint where
parseJSON
= withObject "NetworkEndpoint"
(\ o ->
NetworkEndpoint' <$>
(o .:? "ipAddress") <*> (o .:? "port") <*>
(o .:? "instance"))
instance ToJSON NetworkEndpoint where
toJSON NetworkEndpoint'{..}
= object
(catMaybes
[("ipAddress" .=) <$> _neIPAddress,
("port" .=) <$> _nePort,
("instance" .=) <$> _neInstance])
data DisksScopedListWarningDataItem =
DisksScopedListWarningDataItem'
{ _dslwdiValue :: !(Maybe Text)
, _dslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
disksScopedListWarningDataItem
:: DisksScopedListWarningDataItem
disksScopedListWarningDataItem =
DisksScopedListWarningDataItem' {_dslwdiValue = Nothing, _dslwdiKey = Nothing}
dslwdiValue :: Lens' DisksScopedListWarningDataItem (Maybe Text)
dslwdiValue
= lens _dslwdiValue (\ s a -> s{_dslwdiValue = a})
dslwdiKey :: Lens' DisksScopedListWarningDataItem (Maybe Text)
dslwdiKey
= lens _dslwdiKey (\ s a -> s{_dslwdiKey = a})
instance FromJSON DisksScopedListWarningDataItem
where
parseJSON
= withObject "DisksScopedListWarningDataItem"
(\ o ->
DisksScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON DisksScopedListWarningDataItem where
toJSON DisksScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _dslwdiValue,
("key" .=) <$> _dslwdiKey])
data Disk =
Disk'
{ _dStatus :: !(Maybe DiskStatus)
, _dSourceSnapshotId :: !(Maybe Text)
, _dLastAttachTimestamp :: !(Maybe Text)
, _dUsers :: !(Maybe [Text])
, _dSourceImage :: !(Maybe Text)
, _dReplicaZones :: !(Maybe [Text])
, _dDiskEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _dSizeGb :: !(Maybe (Textual Int64))
, _dKind :: !Text
, _dLastDetachTimestamp :: !(Maybe Text)
, _dGuestOSFeatures :: !(Maybe [GuestOSFeature])
, _dZone :: !(Maybe Text)
, _dSelfLink :: !(Maybe Text)
, _dName :: !(Maybe Text)
, _dSourceImageId :: !(Maybe Text)
, _dCreationTimestamp :: !(Maybe Text)
, _dSourceImageEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _dLicenseCodes :: !(Maybe [Textual Int64])
, _dId :: !(Maybe (Textual Word64))
, _dLabels :: !(Maybe DiskLabels)
, _dLicenses :: !(Maybe [Text])
, _dRegion :: !(Maybe Text)
, _dOptions :: !(Maybe Text)
, _dPhysicalBlockSizeBytes :: !(Maybe (Textual Int64))
, _dType :: !(Maybe Text)
, _dLabelFingerprint :: !(Maybe Bytes)
, _dDescription :: !(Maybe Text)
, _dSourceSnapshotEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _dSourceSnapshot :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
disk
:: Disk
disk =
Disk'
{ _dStatus = Nothing
, _dSourceSnapshotId = Nothing
, _dLastAttachTimestamp = Nothing
, _dUsers = Nothing
, _dSourceImage = Nothing
, _dReplicaZones = Nothing
, _dDiskEncryptionKey = Nothing
, _dSizeGb = Nothing
, _dKind = "compute#disk"
, _dLastDetachTimestamp = Nothing
, _dGuestOSFeatures = Nothing
, _dZone = Nothing
, _dSelfLink = Nothing
, _dName = Nothing
, _dSourceImageId = Nothing
, _dCreationTimestamp = Nothing
, _dSourceImageEncryptionKey = Nothing
, _dLicenseCodes = Nothing
, _dId = Nothing
, _dLabels = Nothing
, _dLicenses = Nothing
, _dRegion = Nothing
, _dOptions = Nothing
, _dPhysicalBlockSizeBytes = Nothing
, _dType = Nothing
, _dLabelFingerprint = Nothing
, _dDescription = Nothing
, _dSourceSnapshotEncryptionKey = Nothing
, _dSourceSnapshot = Nothing
}
dStatus :: Lens' Disk (Maybe DiskStatus)
dStatus = lens _dStatus (\ s a -> s{_dStatus = a})
dSourceSnapshotId :: Lens' Disk (Maybe Text)
dSourceSnapshotId
= lens _dSourceSnapshotId
(\ s a -> s{_dSourceSnapshotId = a})
dLastAttachTimestamp :: Lens' Disk (Maybe Text)
dLastAttachTimestamp
= lens _dLastAttachTimestamp
(\ s a -> s{_dLastAttachTimestamp = a})
dUsers :: Lens' Disk [Text]
dUsers
= lens _dUsers (\ s a -> s{_dUsers = a}) . _Default .
_Coerce
dSourceImage :: Lens' Disk (Maybe Text)
dSourceImage
= lens _dSourceImage (\ s a -> s{_dSourceImage = a})
dReplicaZones :: Lens' Disk [Text]
dReplicaZones
= lens _dReplicaZones
(\ s a -> s{_dReplicaZones = a})
. _Default
. _Coerce
dDiskEncryptionKey :: Lens' Disk (Maybe CustomerEncryptionKey)
dDiskEncryptionKey
= lens _dDiskEncryptionKey
(\ s a -> s{_dDiskEncryptionKey = a})
dSizeGb :: Lens' Disk (Maybe Int64)
dSizeGb
= lens _dSizeGb (\ s a -> s{_dSizeGb = a}) .
mapping _Coerce
dKind :: Lens' Disk Text
dKind = lens _dKind (\ s a -> s{_dKind = a})
dLastDetachTimestamp :: Lens' Disk (Maybe Text)
dLastDetachTimestamp
= lens _dLastDetachTimestamp
(\ s a -> s{_dLastDetachTimestamp = a})
dGuestOSFeatures :: Lens' Disk [GuestOSFeature]
dGuestOSFeatures
= lens _dGuestOSFeatures
(\ s a -> s{_dGuestOSFeatures = a})
. _Default
. _Coerce
dZone :: Lens' Disk (Maybe Text)
dZone = lens _dZone (\ s a -> s{_dZone = a})
dSelfLink :: Lens' Disk (Maybe Text)
dSelfLink
= lens _dSelfLink (\ s a -> s{_dSelfLink = a})
dName :: Lens' Disk (Maybe Text)
dName = lens _dName (\ s a -> s{_dName = a})
dSourceImageId :: Lens' Disk (Maybe Text)
dSourceImageId
= lens _dSourceImageId
(\ s a -> s{_dSourceImageId = a})
dCreationTimestamp :: Lens' Disk (Maybe Text)
dCreationTimestamp
= lens _dCreationTimestamp
(\ s a -> s{_dCreationTimestamp = a})
dSourceImageEncryptionKey :: Lens' Disk (Maybe CustomerEncryptionKey)
dSourceImageEncryptionKey
= lens _dSourceImageEncryptionKey
(\ s a -> s{_dSourceImageEncryptionKey = a})
dLicenseCodes :: Lens' Disk [Int64]
dLicenseCodes
= lens _dLicenseCodes
(\ s a -> s{_dLicenseCodes = a})
. _Default
. _Coerce
dId :: Lens' Disk (Maybe Word64)
dId
= lens _dId (\ s a -> s{_dId = a}) . mapping _Coerce
dLabels :: Lens' Disk (Maybe DiskLabels)
dLabels = lens _dLabels (\ s a -> s{_dLabels = a})
dLicenses :: Lens' Disk [Text]
dLicenses
= lens _dLicenses (\ s a -> s{_dLicenses = a}) .
_Default
. _Coerce
dRegion :: Lens' Disk (Maybe Text)
dRegion = lens _dRegion (\ s a -> s{_dRegion = a})
dOptions :: Lens' Disk (Maybe Text)
dOptions = lens _dOptions (\ s a -> s{_dOptions = a})
dPhysicalBlockSizeBytes :: Lens' Disk (Maybe Int64)
dPhysicalBlockSizeBytes
= lens _dPhysicalBlockSizeBytes
(\ s a -> s{_dPhysicalBlockSizeBytes = a})
. mapping _Coerce
dType :: Lens' Disk (Maybe Text)
dType = lens _dType (\ s a -> s{_dType = a})
dLabelFingerprint :: Lens' Disk (Maybe ByteString)
dLabelFingerprint
= lens _dLabelFingerprint
(\ s a -> s{_dLabelFingerprint = a})
. mapping _Bytes
dDescription :: Lens' Disk (Maybe Text)
dDescription
= lens _dDescription (\ s a -> s{_dDescription = a})
dSourceSnapshotEncryptionKey :: Lens' Disk (Maybe CustomerEncryptionKey)
dSourceSnapshotEncryptionKey
= lens _dSourceSnapshotEncryptionKey
(\ s a -> s{_dSourceSnapshotEncryptionKey = a})
dSourceSnapshot :: Lens' Disk (Maybe Text)
dSourceSnapshot
= lens _dSourceSnapshot
(\ s a -> s{_dSourceSnapshot = a})
instance FromJSON Disk where
parseJSON
= withObject "Disk"
(\ o ->
Disk' <$>
(o .:? "status") <*> (o .:? "sourceSnapshotId") <*>
(o .:? "lastAttachTimestamp")
<*> (o .:? "users" .!= mempty)
<*> (o .:? "sourceImage")
<*> (o .:? "replicaZones" .!= mempty)
<*> (o .:? "diskEncryptionKey")
<*> (o .:? "sizeGb")
<*> (o .:? "kind" .!= "compute#disk")
<*> (o .:? "lastDetachTimestamp")
<*> (o .:? "guestOsFeatures" .!= mempty)
<*> (o .:? "zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "sourceImageId")
<*> (o .:? "creationTimestamp")
<*> (o .:? "sourceImageEncryptionKey")
<*> (o .:? "licenseCodes" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "labels")
<*> (o .:? "licenses" .!= mempty)
<*> (o .:? "region")
<*> (o .:? "options")
<*> (o .:? "physicalBlockSizeBytes")
<*> (o .:? "type")
<*> (o .:? "labelFingerprint")
<*> (o .:? "description")
<*> (o .:? "sourceSnapshotEncryptionKey")
<*> (o .:? "sourceSnapshot"))
instance ToJSON Disk where
toJSON Disk'{..}
= object
(catMaybes
[("status" .=) <$> _dStatus,
("sourceSnapshotId" .=) <$> _dSourceSnapshotId,
("lastAttachTimestamp" .=) <$> _dLastAttachTimestamp,
("users" .=) <$> _dUsers,
("sourceImage" .=) <$> _dSourceImage,
("replicaZones" .=) <$> _dReplicaZones,
("diskEncryptionKey" .=) <$> _dDiskEncryptionKey,
("sizeGb" .=) <$> _dSizeGb, Just ("kind" .= _dKind),
("lastDetachTimestamp" .=) <$> _dLastDetachTimestamp,
("guestOsFeatures" .=) <$> _dGuestOSFeatures,
("zone" .=) <$> _dZone,
("selfLink" .=) <$> _dSelfLink,
("name" .=) <$> _dName,
("sourceImageId" .=) <$> _dSourceImageId,
("creationTimestamp" .=) <$> _dCreationTimestamp,
("sourceImageEncryptionKey" .=) <$>
_dSourceImageEncryptionKey,
("licenseCodes" .=) <$> _dLicenseCodes,
("id" .=) <$> _dId, ("labels" .=) <$> _dLabels,
("licenses" .=) <$> _dLicenses,
("region" .=) <$> _dRegion,
("options" .=) <$> _dOptions,
("physicalBlockSizeBytes" .=) <$>
_dPhysicalBlockSizeBytes,
("type" .=) <$> _dType,
("labelFingerprint" .=) <$> _dLabelFingerprint,
("description" .=) <$> _dDescription,
("sourceSnapshotEncryptionKey" .=) <$>
_dSourceSnapshotEncryptionKey,
("sourceSnapshot" .=) <$> _dSourceSnapshot])
data UsableSubnetworksAggregatedListWarningDataItem =
UsableSubnetworksAggregatedListWarningDataItem'
{ _usalwdiValue :: !(Maybe Text)
, _usalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
usableSubnetworksAggregatedListWarningDataItem
:: UsableSubnetworksAggregatedListWarningDataItem
usableSubnetworksAggregatedListWarningDataItem =
UsableSubnetworksAggregatedListWarningDataItem'
{_usalwdiValue = Nothing, _usalwdiKey = Nothing}
usalwdiValue :: Lens' UsableSubnetworksAggregatedListWarningDataItem (Maybe Text)
usalwdiValue
= lens _usalwdiValue (\ s a -> s{_usalwdiValue = a})
usalwdiKey :: Lens' UsableSubnetworksAggregatedListWarningDataItem (Maybe Text)
usalwdiKey
= lens _usalwdiKey (\ s a -> s{_usalwdiKey = a})
instance FromJSON
UsableSubnetworksAggregatedListWarningDataItem
where
parseJSON
= withObject
"UsableSubnetworksAggregatedListWarningDataItem"
(\ o ->
UsableSubnetworksAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
UsableSubnetworksAggregatedListWarningDataItem
where
toJSON
UsableSubnetworksAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _usalwdiValue,
("key" .=) <$> _usalwdiKey])
data NodeGroupList =
NodeGroupList'
{ _nglNextPageToken :: !(Maybe Text)
, _nglKind :: !Text
, _nglItems :: !(Maybe [NodeGroup])
, _nglSelfLink :: !(Maybe Text)
, _nglWarning :: !(Maybe NodeGroupListWarning)
, _nglId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupList
:: NodeGroupList
nodeGroupList =
NodeGroupList'
{ _nglNextPageToken = Nothing
, _nglKind = "compute#nodeGroupList"
, _nglItems = Nothing
, _nglSelfLink = Nothing
, _nglWarning = Nothing
, _nglId = Nothing
}
nglNextPageToken :: Lens' NodeGroupList (Maybe Text)
nglNextPageToken
= lens _nglNextPageToken
(\ s a -> s{_nglNextPageToken = a})
nglKind :: Lens' NodeGroupList Text
nglKind = lens _nglKind (\ s a -> s{_nglKind = a})
nglItems :: Lens' NodeGroupList [NodeGroup]
nglItems
= lens _nglItems (\ s a -> s{_nglItems = a}) .
_Default
. _Coerce
nglSelfLink :: Lens' NodeGroupList (Maybe Text)
nglSelfLink
= lens _nglSelfLink (\ s a -> s{_nglSelfLink = a})
nglWarning :: Lens' NodeGroupList (Maybe NodeGroupListWarning)
nglWarning
= lens _nglWarning (\ s a -> s{_nglWarning = a})
nglId :: Lens' NodeGroupList (Maybe Text)
nglId = lens _nglId (\ s a -> s{_nglId = a})
instance FromJSON NodeGroupList where
parseJSON
= withObject "NodeGroupList"
(\ o ->
NodeGroupList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#nodeGroupList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NodeGroupList where
toJSON NodeGroupList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _nglNextPageToken,
Just ("kind" .= _nglKind),
("items" .=) <$> _nglItems,
("selfLink" .=) <$> _nglSelfLink,
("warning" .=) <$> _nglWarning,
("id" .=) <$> _nglId])
data DiskMoveRequest =
DiskMoveRequest'
{ _dmrTargetDisk :: !(Maybe Text)
, _dmrDestinationZone :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskMoveRequest
:: DiskMoveRequest
diskMoveRequest =
DiskMoveRequest' {_dmrTargetDisk = Nothing, _dmrDestinationZone = Nothing}
dmrTargetDisk :: Lens' DiskMoveRequest (Maybe Text)
dmrTargetDisk
= lens _dmrTargetDisk
(\ s a -> s{_dmrTargetDisk = a})
dmrDestinationZone :: Lens' DiskMoveRequest (Maybe Text)
dmrDestinationZone
= lens _dmrDestinationZone
(\ s a -> s{_dmrDestinationZone = a})
instance FromJSON DiskMoveRequest where
parseJSON
= withObject "DiskMoveRequest"
(\ o ->
DiskMoveRequest' <$>
(o .:? "targetDisk") <*> (o .:? "destinationZone"))
instance ToJSON DiskMoveRequest where
toJSON DiskMoveRequest'{..}
= object
(catMaybes
[("targetDisk" .=) <$> _dmrTargetDisk,
("destinationZone" .=) <$> _dmrDestinationZone])
data SSLPolicyWarningsItemDataItem =
SSLPolicyWarningsItemDataItem'
{ _spwidiValue :: !(Maybe Text)
, _spwidiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPolicyWarningsItemDataItem
:: SSLPolicyWarningsItemDataItem
sslPolicyWarningsItemDataItem =
SSLPolicyWarningsItemDataItem' {_spwidiValue = Nothing, _spwidiKey = Nothing}
spwidiValue :: Lens' SSLPolicyWarningsItemDataItem (Maybe Text)
spwidiValue
= lens _spwidiValue (\ s a -> s{_spwidiValue = a})
spwidiKey :: Lens' SSLPolicyWarningsItemDataItem (Maybe Text)
spwidiKey
= lens _spwidiKey (\ s a -> s{_spwidiKey = a})
instance FromJSON SSLPolicyWarningsItemDataItem where
parseJSON
= withObject "SSLPolicyWarningsItemDataItem"
(\ o ->
SSLPolicyWarningsItemDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON SSLPolicyWarningsItemDataItem where
toJSON SSLPolicyWarningsItemDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _spwidiValue,
("key" .=) <$> _spwidiKey])
newtype AutoscalingPolicyLoadBalancingUtilization =
AutoscalingPolicyLoadBalancingUtilization'
{ _aplbuUtilizationTarget :: Maybe (Textual Double)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalingPolicyLoadBalancingUtilization
:: AutoscalingPolicyLoadBalancingUtilization
autoscalingPolicyLoadBalancingUtilization =
AutoscalingPolicyLoadBalancingUtilization' {_aplbuUtilizationTarget = Nothing}
aplbuUtilizationTarget :: Lens' AutoscalingPolicyLoadBalancingUtilization (Maybe Double)
aplbuUtilizationTarget
= lens _aplbuUtilizationTarget
(\ s a -> s{_aplbuUtilizationTarget = a})
. mapping _Coerce
instance FromJSON
AutoscalingPolicyLoadBalancingUtilization
where
parseJSON
= withObject
"AutoscalingPolicyLoadBalancingUtilization"
(\ o ->
AutoscalingPolicyLoadBalancingUtilization' <$>
(o .:? "utilizationTarget"))
instance ToJSON
AutoscalingPolicyLoadBalancingUtilization
where
toJSON AutoscalingPolicyLoadBalancingUtilization'{..}
= object
(catMaybes
[("utilizationTarget" .=) <$>
_aplbuUtilizationTarget])
data NetworkEndpointGroupsListNetworkEndpoints =
NetworkEndpointGroupsListNetworkEndpoints'
{ _neglneNextPageToken :: !(Maybe Text)
, _neglneKind :: !Text
, _neglneItems :: !(Maybe [NetworkEndpointWithHealthStatus])
, _neglneWarning :: !(Maybe NetworkEndpointGroupsListNetworkEndpointsWarning)
, _neglneId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsListNetworkEndpoints
:: NetworkEndpointGroupsListNetworkEndpoints
networkEndpointGroupsListNetworkEndpoints =
NetworkEndpointGroupsListNetworkEndpoints'
{ _neglneNextPageToken = Nothing
, _neglneKind = "compute#networkEndpointGroupsListNetworkEndpoints"
, _neglneItems = Nothing
, _neglneWarning = Nothing
, _neglneId = Nothing
}
neglneNextPageToken :: Lens' NetworkEndpointGroupsListNetworkEndpoints (Maybe Text)
neglneNextPageToken
= lens _neglneNextPageToken
(\ s a -> s{_neglneNextPageToken = a})
neglneKind :: Lens' NetworkEndpointGroupsListNetworkEndpoints Text
neglneKind
= lens _neglneKind (\ s a -> s{_neglneKind = a})
neglneItems :: Lens' NetworkEndpointGroupsListNetworkEndpoints [NetworkEndpointWithHealthStatus]
neglneItems
= lens _neglneItems (\ s a -> s{_neglneItems = a}) .
_Default
. _Coerce
neglneWarning :: Lens' NetworkEndpointGroupsListNetworkEndpoints (Maybe NetworkEndpointGroupsListNetworkEndpointsWarning)
neglneWarning
= lens _neglneWarning
(\ s a -> s{_neglneWarning = a})
neglneId :: Lens' NetworkEndpointGroupsListNetworkEndpoints (Maybe Text)
neglneId = lens _neglneId (\ s a -> s{_neglneId = a})
instance FromJSON
NetworkEndpointGroupsListNetworkEndpoints
where
parseJSON
= withObject
"NetworkEndpointGroupsListNetworkEndpoints"
(\ o ->
NetworkEndpointGroupsListNetworkEndpoints' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#networkEndpointGroupsListNetworkEndpoints")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON
NetworkEndpointGroupsListNetworkEndpoints
where
toJSON NetworkEndpointGroupsListNetworkEndpoints'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _neglneNextPageToken,
Just ("kind" .= _neglneKind),
("items" .=) <$> _neglneItems,
("warning" .=) <$> _neglneWarning,
("id" .=) <$> _neglneId])
data ForwardingRuleAggregatedListWarningDataItem =
ForwardingRuleAggregatedListWarningDataItem'
{ _fralwdiValue :: !(Maybe Text)
, _fralwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleAggregatedListWarningDataItem
:: ForwardingRuleAggregatedListWarningDataItem
forwardingRuleAggregatedListWarningDataItem =
ForwardingRuleAggregatedListWarningDataItem'
{_fralwdiValue = Nothing, _fralwdiKey = Nothing}
fralwdiValue :: Lens' ForwardingRuleAggregatedListWarningDataItem (Maybe Text)
fralwdiValue
= lens _fralwdiValue (\ s a -> s{_fralwdiValue = a})
fralwdiKey :: Lens' ForwardingRuleAggregatedListWarningDataItem (Maybe Text)
fralwdiKey
= lens _fralwdiKey (\ s a -> s{_fralwdiKey = a})
instance FromJSON
ForwardingRuleAggregatedListWarningDataItem
where
parseJSON
= withObject
"ForwardingRuleAggregatedListWarningDataItem"
(\ o ->
ForwardingRuleAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
ForwardingRuleAggregatedListWarningDataItem
where
toJSON
ForwardingRuleAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _fralwdiValue,
("key" .=) <$> _fralwdiKey])
data TargetPoolsScopedListWarningDataItem =
TargetPoolsScopedListWarningDataItem'
{ _tpslwdiValue :: !(Maybe Text)
, _tpslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolsScopedListWarningDataItem
:: TargetPoolsScopedListWarningDataItem
targetPoolsScopedListWarningDataItem =
TargetPoolsScopedListWarningDataItem'
{_tpslwdiValue = Nothing, _tpslwdiKey = Nothing}
tpslwdiValue :: Lens' TargetPoolsScopedListWarningDataItem (Maybe Text)
tpslwdiValue
= lens _tpslwdiValue (\ s a -> s{_tpslwdiValue = a})
tpslwdiKey :: Lens' TargetPoolsScopedListWarningDataItem (Maybe Text)
tpslwdiKey
= lens _tpslwdiKey (\ s a -> s{_tpslwdiKey = a})
instance FromJSON
TargetPoolsScopedListWarningDataItem
where
parseJSON
= withObject "TargetPoolsScopedListWarningDataItem"
(\ o ->
TargetPoolsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetPoolsScopedListWarningDataItem
where
toJSON TargetPoolsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tpslwdiValue,
("key" .=) <$> _tpslwdiKey])
data InstanceGroupManager =
InstanceGroupManager'
{ _igmStatus :: !(Maybe InstanceGroupManagerStatus)
, _igmKind :: !Text
, _igmFingerprint :: !(Maybe Bytes)
, _igmBaseInstanceName :: !(Maybe Text)
, _igmZone :: !(Maybe Text)
, _igmAutoHealingPolicies :: !(Maybe [InstanceGroupManagerAutoHealingPolicy])
, _igmVersions :: !(Maybe [InstanceGroupManagerVersion])
, _igmInstanceTemplate :: !(Maybe Text)
, _igmUpdatePolicy :: !(Maybe InstanceGroupManagerUpdatePolicy)
, _igmTargetSize :: !(Maybe (Textual Int32))
, _igmSelfLink :: !(Maybe Text)
, _igmCurrentActions :: !(Maybe InstanceGroupManagerActionsSummary)
, _igmName :: !(Maybe Text)
, _igmCreationTimestamp :: !(Maybe Text)
, _igmDistributionPolicy :: !(Maybe DistributionPolicy)
, _igmId :: !(Maybe (Textual Word64))
, _igmRegion :: !(Maybe Text)
, _igmTargetPools :: !(Maybe [Text])
, _igmDescription :: !(Maybe Text)
, _igmInstanceGroup :: !(Maybe Text)
, _igmNamedPorts :: !(Maybe [NamedPort])
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManager
:: InstanceGroupManager
instanceGroupManager =
InstanceGroupManager'
{ _igmStatus = Nothing
, _igmKind = "compute#instanceGroupManager"
, _igmFingerprint = Nothing
, _igmBaseInstanceName = Nothing
, _igmZone = Nothing
, _igmAutoHealingPolicies = Nothing
, _igmVersions = Nothing
, _igmInstanceTemplate = Nothing
, _igmUpdatePolicy = Nothing
, _igmTargetSize = Nothing
, _igmSelfLink = Nothing
, _igmCurrentActions = Nothing
, _igmName = Nothing
, _igmCreationTimestamp = Nothing
, _igmDistributionPolicy = Nothing
, _igmId = Nothing
, _igmRegion = Nothing
, _igmTargetPools = Nothing
, _igmDescription = Nothing
, _igmInstanceGroup = Nothing
, _igmNamedPorts = Nothing
}
igmStatus :: Lens' InstanceGroupManager (Maybe InstanceGroupManagerStatus)
igmStatus
= lens _igmStatus (\ s a -> s{_igmStatus = a})
igmKind :: Lens' InstanceGroupManager Text
igmKind = lens _igmKind (\ s a -> s{_igmKind = a})
igmFingerprint :: Lens' InstanceGroupManager (Maybe ByteString)
igmFingerprint
= lens _igmFingerprint
(\ s a -> s{_igmFingerprint = a})
. mapping _Bytes
igmBaseInstanceName :: Lens' InstanceGroupManager (Maybe Text)
igmBaseInstanceName
= lens _igmBaseInstanceName
(\ s a -> s{_igmBaseInstanceName = a})
igmZone :: Lens' InstanceGroupManager (Maybe Text)
igmZone = lens _igmZone (\ s a -> s{_igmZone = a})
igmAutoHealingPolicies :: Lens' InstanceGroupManager [InstanceGroupManagerAutoHealingPolicy]
igmAutoHealingPolicies
= lens _igmAutoHealingPolicies
(\ s a -> s{_igmAutoHealingPolicies = a})
. _Default
. _Coerce
igmVersions :: Lens' InstanceGroupManager [InstanceGroupManagerVersion]
igmVersions
= lens _igmVersions (\ s a -> s{_igmVersions = a}) .
_Default
. _Coerce
igmInstanceTemplate :: Lens' InstanceGroupManager (Maybe Text)
igmInstanceTemplate
= lens _igmInstanceTemplate
(\ s a -> s{_igmInstanceTemplate = a})
igmUpdatePolicy :: Lens' InstanceGroupManager (Maybe InstanceGroupManagerUpdatePolicy)
igmUpdatePolicy
= lens _igmUpdatePolicy
(\ s a -> s{_igmUpdatePolicy = a})
igmTargetSize :: Lens' InstanceGroupManager (Maybe Int32)
igmTargetSize
= lens _igmTargetSize
(\ s a -> s{_igmTargetSize = a})
. mapping _Coerce
igmSelfLink :: Lens' InstanceGroupManager (Maybe Text)
igmSelfLink
= lens _igmSelfLink (\ s a -> s{_igmSelfLink = a})
igmCurrentActions :: Lens' InstanceGroupManager (Maybe InstanceGroupManagerActionsSummary)
igmCurrentActions
= lens _igmCurrentActions
(\ s a -> s{_igmCurrentActions = a})
igmName :: Lens' InstanceGroupManager (Maybe Text)
igmName = lens _igmName (\ s a -> s{_igmName = a})
igmCreationTimestamp :: Lens' InstanceGroupManager (Maybe Text)
igmCreationTimestamp
= lens _igmCreationTimestamp
(\ s a -> s{_igmCreationTimestamp = a})
igmDistributionPolicy :: Lens' InstanceGroupManager (Maybe DistributionPolicy)
igmDistributionPolicy
= lens _igmDistributionPolicy
(\ s a -> s{_igmDistributionPolicy = a})
igmId :: Lens' InstanceGroupManager (Maybe Word64)
igmId
= lens _igmId (\ s a -> s{_igmId = a}) .
mapping _Coerce
igmRegion :: Lens' InstanceGroupManager (Maybe Text)
igmRegion
= lens _igmRegion (\ s a -> s{_igmRegion = a})
igmTargetPools :: Lens' InstanceGroupManager [Text]
igmTargetPools
= lens _igmTargetPools
(\ s a -> s{_igmTargetPools = a})
. _Default
. _Coerce
igmDescription :: Lens' InstanceGroupManager (Maybe Text)
igmDescription
= lens _igmDescription
(\ s a -> s{_igmDescription = a})
igmInstanceGroup :: Lens' InstanceGroupManager (Maybe Text)
igmInstanceGroup
= lens _igmInstanceGroup
(\ s a -> s{_igmInstanceGroup = a})
igmNamedPorts :: Lens' InstanceGroupManager [NamedPort]
igmNamedPorts
= lens _igmNamedPorts
(\ s a -> s{_igmNamedPorts = a})
. _Default
. _Coerce
instance FromJSON InstanceGroupManager where
parseJSON
= withObject "InstanceGroupManager"
(\ o ->
InstanceGroupManager' <$>
(o .:? "status") <*>
(o .:? "kind" .!= "compute#instanceGroupManager")
<*> (o .:? "fingerprint")
<*> (o .:? "baseInstanceName")
<*> (o .:? "zone")
<*> (o .:? "autoHealingPolicies" .!= mempty)
<*> (o .:? "versions" .!= mempty)
<*> (o .:? "instanceTemplate")
<*> (o .:? "updatePolicy")
<*> (o .:? "targetSize")
<*> (o .:? "selfLink")
<*> (o .:? "currentActions")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "distributionPolicy")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "targetPools" .!= mempty)
<*> (o .:? "description")
<*> (o .:? "instanceGroup")
<*> (o .:? "namedPorts" .!= mempty))
instance ToJSON InstanceGroupManager where
toJSON InstanceGroupManager'{..}
= object
(catMaybes
[("status" .=) <$> _igmStatus,
Just ("kind" .= _igmKind),
("fingerprint" .=) <$> _igmFingerprint,
("baseInstanceName" .=) <$> _igmBaseInstanceName,
("zone" .=) <$> _igmZone,
("autoHealingPolicies" .=) <$>
_igmAutoHealingPolicies,
("versions" .=) <$> _igmVersions,
("instanceTemplate" .=) <$> _igmInstanceTemplate,
("updatePolicy" .=) <$> _igmUpdatePolicy,
("targetSize" .=) <$> _igmTargetSize,
("selfLink" .=) <$> _igmSelfLink,
("currentActions" .=) <$> _igmCurrentActions,
("name" .=) <$> _igmName,
("creationTimestamp" .=) <$> _igmCreationTimestamp,
("distributionPolicy" .=) <$> _igmDistributionPolicy,
("id" .=) <$> _igmId, ("region" .=) <$> _igmRegion,
("targetPools" .=) <$> _igmTargetPools,
("description" .=) <$> _igmDescription,
("instanceGroup" .=) <$> _igmInstanceGroup,
("namedPorts" .=) <$> _igmNamedPorts])
data InstanceGroupManagerListWarning =
InstanceGroupManagerListWarning'
{ _igmlwData :: !(Maybe [InstanceGroupManagerListWarningDataItem])
, _igmlwCode :: !(Maybe InstanceGroupManagerListWarningCode)
, _igmlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerListWarning
:: InstanceGroupManagerListWarning
instanceGroupManagerListWarning =
InstanceGroupManagerListWarning'
{_igmlwData = Nothing, _igmlwCode = Nothing, _igmlwMessage = Nothing}
igmlwData :: Lens' InstanceGroupManagerListWarning [InstanceGroupManagerListWarningDataItem]
igmlwData
= lens _igmlwData (\ s a -> s{_igmlwData = a}) .
_Default
. _Coerce
igmlwCode :: Lens' InstanceGroupManagerListWarning (Maybe InstanceGroupManagerListWarningCode)
igmlwCode
= lens _igmlwCode (\ s a -> s{_igmlwCode = a})
igmlwMessage :: Lens' InstanceGroupManagerListWarning (Maybe Text)
igmlwMessage
= lens _igmlwMessage (\ s a -> s{_igmlwMessage = a})
instance FromJSON InstanceGroupManagerListWarning
where
parseJSON
= withObject "InstanceGroupManagerListWarning"
(\ o ->
InstanceGroupManagerListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceGroupManagerListWarning where
toJSON InstanceGroupManagerListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _igmlwData,
("code" .=) <$> _igmlwCode,
("message" .=) <$> _igmlwMessage])
data RegionInstanceGroupsListInstances =
RegionInstanceGroupsListInstances'
{ _rigliNextPageToken :: !(Maybe Text)
, _rigliKind :: !Text
, _rigliItems :: !(Maybe [InstanceWithNamedPorts])
, _rigliSelfLink :: !(Maybe Text)
, _rigliWarning :: !(Maybe RegionInstanceGroupsListInstancesWarning)
, _rigliId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupsListInstances
:: RegionInstanceGroupsListInstances
regionInstanceGroupsListInstances =
RegionInstanceGroupsListInstances'
{ _rigliNextPageToken = Nothing
, _rigliKind = "compute#regionInstanceGroupsListInstances"
, _rigliItems = Nothing
, _rigliSelfLink = Nothing
, _rigliWarning = Nothing
, _rigliId = Nothing
}
rigliNextPageToken :: Lens' RegionInstanceGroupsListInstances (Maybe Text)
rigliNextPageToken
= lens _rigliNextPageToken
(\ s a -> s{_rigliNextPageToken = a})
rigliKind :: Lens' RegionInstanceGroupsListInstances Text
rigliKind
= lens _rigliKind (\ s a -> s{_rigliKind = a})
rigliItems :: Lens' RegionInstanceGroupsListInstances [InstanceWithNamedPorts]
rigliItems
= lens _rigliItems (\ s a -> s{_rigliItems = a}) .
_Default
. _Coerce
rigliSelfLink :: Lens' RegionInstanceGroupsListInstances (Maybe Text)
rigliSelfLink
= lens _rigliSelfLink
(\ s a -> s{_rigliSelfLink = a})
rigliWarning :: Lens' RegionInstanceGroupsListInstances (Maybe RegionInstanceGroupsListInstancesWarning)
rigliWarning
= lens _rigliWarning (\ s a -> s{_rigliWarning = a})
rigliId :: Lens' RegionInstanceGroupsListInstances (Maybe Text)
rigliId = lens _rigliId (\ s a -> s{_rigliId = a})
instance FromJSON RegionInstanceGroupsListInstances
where
parseJSON
= withObject "RegionInstanceGroupsListInstances"
(\ o ->
RegionInstanceGroupsListInstances' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#regionInstanceGroupsListInstances")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RegionInstanceGroupsListInstances
where
toJSON RegionInstanceGroupsListInstances'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _rigliNextPageToken,
Just ("kind" .= _rigliKind),
("items" .=) <$> _rigliItems,
("selfLink" .=) <$> _rigliSelfLink,
("warning" .=) <$> _rigliWarning,
("id" .=) <$> _rigliId])
data DiskListWarning =
DiskListWarning'
{ _dlwData :: !(Maybe [DiskListWarningDataItem])
, _dlwCode :: !(Maybe DiskListWarningCode)
, _dlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskListWarning
:: DiskListWarning
diskListWarning =
DiskListWarning'
{_dlwData = Nothing, _dlwCode = Nothing, _dlwMessage = Nothing}
dlwData :: Lens' DiskListWarning [DiskListWarningDataItem]
dlwData
= lens _dlwData (\ s a -> s{_dlwData = a}) . _Default
. _Coerce
dlwCode :: Lens' DiskListWarning (Maybe DiskListWarningCode)
dlwCode = lens _dlwCode (\ s a -> s{_dlwCode = a})
dlwMessage :: Lens' DiskListWarning (Maybe Text)
dlwMessage
= lens _dlwMessage (\ s a -> s{_dlwMessage = a})
instance FromJSON DiskListWarning where
parseJSON
= withObject "DiskListWarning"
(\ o ->
DiskListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON DiskListWarning where
toJSON DiskListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _dlwData, ("code" .=) <$> _dlwCode,
("message" .=) <$> _dlwMessage])
data TCPHealthCheck =
TCPHealthCheck'
{ _thcResponse :: !(Maybe Text)
, _thcPortSpecification :: !(Maybe TCPHealthCheckPortSpecification)
, _thcProxyHeader :: !(Maybe TCPHealthCheckProxyHeader)
, _thcPortName :: !(Maybe Text)
, _thcPort :: !(Maybe (Textual Int32))
, _thcRequest :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
tcpHealthCheck
:: TCPHealthCheck
tcpHealthCheck =
TCPHealthCheck'
{ _thcResponse = Nothing
, _thcPortSpecification = Nothing
, _thcProxyHeader = Nothing
, _thcPortName = Nothing
, _thcPort = Nothing
, _thcRequest = Nothing
}
thcResponse :: Lens' TCPHealthCheck (Maybe Text)
thcResponse
= lens _thcResponse (\ s a -> s{_thcResponse = a})
thcPortSpecification :: Lens' TCPHealthCheck (Maybe TCPHealthCheckPortSpecification)
thcPortSpecification
= lens _thcPortSpecification
(\ s a -> s{_thcPortSpecification = a})
thcProxyHeader :: Lens' TCPHealthCheck (Maybe TCPHealthCheckProxyHeader)
thcProxyHeader
= lens _thcProxyHeader
(\ s a -> s{_thcProxyHeader = a})
thcPortName :: Lens' TCPHealthCheck (Maybe Text)
thcPortName
= lens _thcPortName (\ s a -> s{_thcPortName = a})
thcPort :: Lens' TCPHealthCheck (Maybe Int32)
thcPort
= lens _thcPort (\ s a -> s{_thcPort = a}) .
mapping _Coerce
thcRequest :: Lens' TCPHealthCheck (Maybe Text)
thcRequest
= lens _thcRequest (\ s a -> s{_thcRequest = a})
instance FromJSON TCPHealthCheck where
parseJSON
= withObject "TCPHealthCheck"
(\ o ->
TCPHealthCheck' <$>
(o .:? "response") <*> (o .:? "portSpecification")
<*> (o .:? "proxyHeader")
<*> (o .:? "portName")
<*> (o .:? "port")
<*> (o .:? "request"))
instance ToJSON TCPHealthCheck where
toJSON TCPHealthCheck'{..}
= object
(catMaybes
[("response" .=) <$> _thcResponse,
("portSpecification" .=) <$> _thcPortSpecification,
("proxyHeader" .=) <$> _thcProxyHeader,
("portName" .=) <$> _thcPortName,
("port" .=) <$> _thcPort,
("request" .=) <$> _thcRequest])
data InstanceGroupManagerAggregatedListWarningDataItem =
InstanceGroupManagerAggregatedListWarningDataItem'
{ _igmalwdiValue :: !(Maybe Text)
, _igmalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerAggregatedListWarningDataItem
:: InstanceGroupManagerAggregatedListWarningDataItem
instanceGroupManagerAggregatedListWarningDataItem =
InstanceGroupManagerAggregatedListWarningDataItem'
{_igmalwdiValue = Nothing, _igmalwdiKey = Nothing}
igmalwdiValue :: Lens' InstanceGroupManagerAggregatedListWarningDataItem (Maybe Text)
igmalwdiValue
= lens _igmalwdiValue
(\ s a -> s{_igmalwdiValue = a})
igmalwdiKey :: Lens' InstanceGroupManagerAggregatedListWarningDataItem (Maybe Text)
igmalwdiKey
= lens _igmalwdiKey (\ s a -> s{_igmalwdiKey = a})
instance FromJSON
InstanceGroupManagerAggregatedListWarningDataItem
where
parseJSON
= withObject
"InstanceGroupManagerAggregatedListWarningDataItem"
(\ o ->
InstanceGroupManagerAggregatedListWarningDataItem'
<$> (o .:? "value") <*> (o .:? "key"))
instance ToJSON
InstanceGroupManagerAggregatedListWarningDataItem
where
toJSON
InstanceGroupManagerAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _igmalwdiValue,
("key" .=) <$> _igmalwdiKey])
newtype TestPermissionsResponse =
TestPermissionsResponse'
{ _tprPermissions :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
testPermissionsResponse
:: TestPermissionsResponse
testPermissionsResponse = TestPermissionsResponse' {_tprPermissions = Nothing}
tprPermissions :: Lens' TestPermissionsResponse [Text]
tprPermissions
= lens _tprPermissions
(\ s a -> s{_tprPermissions = a})
. _Default
. _Coerce
instance FromJSON TestPermissionsResponse where
parseJSON
= withObject "TestPermissionsResponse"
(\ o ->
TestPermissionsResponse' <$>
(o .:? "permissions" .!= mempty))
instance ToJSON TestPermissionsResponse where
toJSON TestPermissionsResponse'{..}
= object
(catMaybes [("permissions" .=) <$> _tprPermissions])
data RegionAutoscalerListWarning =
RegionAutoscalerListWarning'
{ _ralwData :: !(Maybe [RegionAutoscalerListWarningDataItem])
, _ralwCode :: !(Maybe RegionAutoscalerListWarningCode)
, _ralwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionAutoscalerListWarning
:: RegionAutoscalerListWarning
regionAutoscalerListWarning =
RegionAutoscalerListWarning'
{_ralwData = Nothing, _ralwCode = Nothing, _ralwMessage = Nothing}
ralwData :: Lens' RegionAutoscalerListWarning [RegionAutoscalerListWarningDataItem]
ralwData
= lens _ralwData (\ s a -> s{_ralwData = a}) .
_Default
. _Coerce
ralwCode :: Lens' RegionAutoscalerListWarning (Maybe RegionAutoscalerListWarningCode)
ralwCode = lens _ralwCode (\ s a -> s{_ralwCode = a})
ralwMessage :: Lens' RegionAutoscalerListWarning (Maybe Text)
ralwMessage
= lens _ralwMessage (\ s a -> s{_ralwMessage = a})
instance FromJSON RegionAutoscalerListWarning where
parseJSON
= withObject "RegionAutoscalerListWarning"
(\ o ->
RegionAutoscalerListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RegionAutoscalerListWarning where
toJSON RegionAutoscalerListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ralwData,
("code" .=) <$> _ralwCode,
("message" .=) <$> _ralwMessage])
data TargetInstanceListWarningDataItem =
TargetInstanceListWarningDataItem'
{ _tilwdiValue :: !(Maybe Text)
, _tilwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstanceListWarningDataItem
:: TargetInstanceListWarningDataItem
targetInstanceListWarningDataItem =
TargetInstanceListWarningDataItem'
{_tilwdiValue = Nothing, _tilwdiKey = Nothing}
tilwdiValue :: Lens' TargetInstanceListWarningDataItem (Maybe Text)
tilwdiValue
= lens _tilwdiValue (\ s a -> s{_tilwdiValue = a})
tilwdiKey :: Lens' TargetInstanceListWarningDataItem (Maybe Text)
tilwdiKey
= lens _tilwdiKey (\ s a -> s{_tilwdiKey = a})
instance FromJSON TargetInstanceListWarningDataItem
where
parseJSON
= withObject "TargetInstanceListWarningDataItem"
(\ o ->
TargetInstanceListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetInstanceListWarningDataItem
where
toJSON TargetInstanceListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tilwdiValue,
("key" .=) <$> _tilwdiKey])
data OperationListWarning =
OperationListWarning'
{ _olwData :: !(Maybe [OperationListWarningDataItem])
, _olwCode :: !(Maybe OperationListWarningCode)
, _olwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationListWarning
:: OperationListWarning
operationListWarning =
OperationListWarning'
{_olwData = Nothing, _olwCode = Nothing, _olwMessage = Nothing}
olwData :: Lens' OperationListWarning [OperationListWarningDataItem]
olwData
= lens _olwData (\ s a -> s{_olwData = a}) . _Default
. _Coerce
olwCode :: Lens' OperationListWarning (Maybe OperationListWarningCode)
olwCode = lens _olwCode (\ s a -> s{_olwCode = a})
olwMessage :: Lens' OperationListWarning (Maybe Text)
olwMessage
= lens _olwMessage (\ s a -> s{_olwMessage = a})
instance FromJSON OperationListWarning where
parseJSON
= withObject "OperationListWarning"
(\ o ->
OperationListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON OperationListWarning where
toJSON OperationListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _olwData, ("code" .=) <$> _olwCode,
("message" .=) <$> _olwMessage])
newtype InstanceGroupsRemoveInstancesRequest =
InstanceGroupsRemoveInstancesRequest'
{ _igrirInstances :: Maybe [InstanceReference]
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsRemoveInstancesRequest
:: InstanceGroupsRemoveInstancesRequest
instanceGroupsRemoveInstancesRequest =
InstanceGroupsRemoveInstancesRequest' {_igrirInstances = Nothing}
igrirInstances :: Lens' InstanceGroupsRemoveInstancesRequest [InstanceReference]
igrirInstances
= lens _igrirInstances
(\ s a -> s{_igrirInstances = a})
. _Default
. _Coerce
instance FromJSON
InstanceGroupsRemoveInstancesRequest
where
parseJSON
= withObject "InstanceGroupsRemoveInstancesRequest"
(\ o ->
InstanceGroupsRemoveInstancesRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON InstanceGroupsRemoveInstancesRequest
where
toJSON InstanceGroupsRemoveInstancesRequest'{..}
= object
(catMaybes [("instances" .=) <$> _igrirInstances])
data InterconnectAttachmentPartnerMetadata =
InterconnectAttachmentPartnerMetadata'
{ _iapmPortalURL :: !(Maybe Text)
, _iapmInterconnectName :: !(Maybe Text)
, _iapmPartnerName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentPartnerMetadata
:: InterconnectAttachmentPartnerMetadata
interconnectAttachmentPartnerMetadata =
InterconnectAttachmentPartnerMetadata'
{ _iapmPortalURL = Nothing
, _iapmInterconnectName = Nothing
, _iapmPartnerName = Nothing
}
iapmPortalURL :: Lens' InterconnectAttachmentPartnerMetadata (Maybe Text)
iapmPortalURL
= lens _iapmPortalURL
(\ s a -> s{_iapmPortalURL = a})
iapmInterconnectName :: Lens' InterconnectAttachmentPartnerMetadata (Maybe Text)
iapmInterconnectName
= lens _iapmInterconnectName
(\ s a -> s{_iapmInterconnectName = a})
iapmPartnerName :: Lens' InterconnectAttachmentPartnerMetadata (Maybe Text)
iapmPartnerName
= lens _iapmPartnerName
(\ s a -> s{_iapmPartnerName = a})
instance FromJSON
InterconnectAttachmentPartnerMetadata
where
parseJSON
= withObject "InterconnectAttachmentPartnerMetadata"
(\ o ->
InterconnectAttachmentPartnerMetadata' <$>
(o .:? "portalUrl") <*> (o .:? "interconnectName")
<*> (o .:? "partnerName"))
instance ToJSON InterconnectAttachmentPartnerMetadata
where
toJSON InterconnectAttachmentPartnerMetadata'{..}
= object
(catMaybes
[("portalUrl" .=) <$> _iapmPortalURL,
("interconnectName" .=) <$> _iapmInterconnectName,
("partnerName" .=) <$> _iapmPartnerName])
data MachineTypeListWarningDataItem =
MachineTypeListWarningDataItem'
{ _mtlwdiValue :: !(Maybe Text)
, _mtlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeListWarningDataItem
:: MachineTypeListWarningDataItem
machineTypeListWarningDataItem =
MachineTypeListWarningDataItem' {_mtlwdiValue = Nothing, _mtlwdiKey = Nothing}
mtlwdiValue :: Lens' MachineTypeListWarningDataItem (Maybe Text)
mtlwdiValue
= lens _mtlwdiValue (\ s a -> s{_mtlwdiValue = a})
mtlwdiKey :: Lens' MachineTypeListWarningDataItem (Maybe Text)
mtlwdiKey
= lens _mtlwdiKey (\ s a -> s{_mtlwdiKey = a})
instance FromJSON MachineTypeListWarningDataItem
where
parseJSON
= withObject "MachineTypeListWarningDataItem"
(\ o ->
MachineTypeListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON MachineTypeListWarningDataItem where
toJSON MachineTypeListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _mtlwdiValue,
("key" .=) <$> _mtlwdiKey])
newtype NetworksRemovePeeringRequest =
NetworksRemovePeeringRequest'
{ _nrprName :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
networksRemovePeeringRequest
:: NetworksRemovePeeringRequest
networksRemovePeeringRequest =
NetworksRemovePeeringRequest' {_nrprName = Nothing}
nrprName :: Lens' NetworksRemovePeeringRequest (Maybe Text)
nrprName = lens _nrprName (\ s a -> s{_nrprName = a})
instance FromJSON NetworksRemovePeeringRequest where
parseJSON
= withObject "NetworksRemovePeeringRequest"
(\ o ->
NetworksRemovePeeringRequest' <$> (o .:? "name"))
instance ToJSON NetworksRemovePeeringRequest where
toJSON NetworksRemovePeeringRequest'{..}
= object (catMaybes [("name" .=) <$> _nrprName])
data TargetHTTPProxyListWarningDataItem =
TargetHTTPProxyListWarningDataItem'
{ _thttpplwdiValue :: !(Maybe Text)
, _thttpplwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPProxyListWarningDataItem
:: TargetHTTPProxyListWarningDataItem
targetHTTPProxyListWarningDataItem =
TargetHTTPProxyListWarningDataItem'
{_thttpplwdiValue = Nothing, _thttpplwdiKey = Nothing}
thttpplwdiValue :: Lens' TargetHTTPProxyListWarningDataItem (Maybe Text)
thttpplwdiValue
= lens _thttpplwdiValue
(\ s a -> s{_thttpplwdiValue = a})
thttpplwdiKey :: Lens' TargetHTTPProxyListWarningDataItem (Maybe Text)
thttpplwdiKey
= lens _thttpplwdiKey
(\ s a -> s{_thttpplwdiKey = a})
instance FromJSON TargetHTTPProxyListWarningDataItem
where
parseJSON
= withObject "TargetHTTPProxyListWarningDataItem"
(\ o ->
TargetHTTPProxyListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetHTTPProxyListWarningDataItem
where
toJSON TargetHTTPProxyListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _thttpplwdiValue,
("key" .=) <$> _thttpplwdiKey])
data MachineTypeAggregatedListWarning =
MachineTypeAggregatedListWarning'
{ _mtalwData :: !(Maybe [MachineTypeAggregatedListWarningDataItem])
, _mtalwCode :: !(Maybe MachineTypeAggregatedListWarningCode)
, _mtalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeAggregatedListWarning
:: MachineTypeAggregatedListWarning
machineTypeAggregatedListWarning =
MachineTypeAggregatedListWarning'
{_mtalwData = Nothing, _mtalwCode = Nothing, _mtalwMessage = Nothing}
mtalwData :: Lens' MachineTypeAggregatedListWarning [MachineTypeAggregatedListWarningDataItem]
mtalwData
= lens _mtalwData (\ s a -> s{_mtalwData = a}) .
_Default
. _Coerce
mtalwCode :: Lens' MachineTypeAggregatedListWarning (Maybe MachineTypeAggregatedListWarningCode)
mtalwCode
= lens _mtalwCode (\ s a -> s{_mtalwCode = a})
mtalwMessage :: Lens' MachineTypeAggregatedListWarning (Maybe Text)
mtalwMessage
= lens _mtalwMessage (\ s a -> s{_mtalwMessage = a})
instance FromJSON MachineTypeAggregatedListWarning
where
parseJSON
= withObject "MachineTypeAggregatedListWarning"
(\ o ->
MachineTypeAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON MachineTypeAggregatedListWarning
where
toJSON MachineTypeAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _mtalwData,
("code" .=) <$> _mtalwCode,
("message" .=) <$> _mtalwMessage])
data NodeTemplateAggregatedListWarningDataItem =
NodeTemplateAggregatedListWarningDataItem'
{ _ntalwdiValue :: !(Maybe Text)
, _ntalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateAggregatedListWarningDataItem
:: NodeTemplateAggregatedListWarningDataItem
nodeTemplateAggregatedListWarningDataItem =
NodeTemplateAggregatedListWarningDataItem'
{_ntalwdiValue = Nothing, _ntalwdiKey = Nothing}
ntalwdiValue :: Lens' NodeTemplateAggregatedListWarningDataItem (Maybe Text)
ntalwdiValue
= lens _ntalwdiValue (\ s a -> s{_ntalwdiValue = a})
ntalwdiKey :: Lens' NodeTemplateAggregatedListWarningDataItem (Maybe Text)
ntalwdiKey
= lens _ntalwdiKey (\ s a -> s{_ntalwdiKey = a})
instance FromJSON
NodeTemplateAggregatedListWarningDataItem
where
parseJSON
= withObject
"NodeTemplateAggregatedListWarningDataItem"
(\ o ->
NodeTemplateAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
NodeTemplateAggregatedListWarningDataItem
where
toJSON NodeTemplateAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ntalwdiValue,
("key" .=) <$> _ntalwdiKey])
data BackendBucketList =
BackendBucketList'
{ _bblNextPageToken :: !(Maybe Text)
, _bblKind :: !Text
, _bblItems :: !(Maybe [BackendBucket])
, _bblSelfLink :: !(Maybe Text)
, _bblWarning :: !(Maybe BackendBucketListWarning)
, _bblId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendBucketList
:: BackendBucketList
backendBucketList =
BackendBucketList'
{ _bblNextPageToken = Nothing
, _bblKind = "compute#backendBucketList"
, _bblItems = Nothing
, _bblSelfLink = Nothing
, _bblWarning = Nothing
, _bblId = Nothing
}
bblNextPageToken :: Lens' BackendBucketList (Maybe Text)
bblNextPageToken
= lens _bblNextPageToken
(\ s a -> s{_bblNextPageToken = a})
bblKind :: Lens' BackendBucketList Text
bblKind = lens _bblKind (\ s a -> s{_bblKind = a})
bblItems :: Lens' BackendBucketList [BackendBucket]
bblItems
= lens _bblItems (\ s a -> s{_bblItems = a}) .
_Default
. _Coerce
bblSelfLink :: Lens' BackendBucketList (Maybe Text)
bblSelfLink
= lens _bblSelfLink (\ s a -> s{_bblSelfLink = a})
bblWarning :: Lens' BackendBucketList (Maybe BackendBucketListWarning)
bblWarning
= lens _bblWarning (\ s a -> s{_bblWarning = a})
bblId :: Lens' BackendBucketList (Maybe Text)
bblId = lens _bblId (\ s a -> s{_bblId = a})
instance FromJSON BackendBucketList where
parseJSON
= withObject "BackendBucketList"
(\ o ->
BackendBucketList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#backendBucketList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON BackendBucketList where
toJSON BackendBucketList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _bblNextPageToken,
Just ("kind" .= _bblKind),
("items" .=) <$> _bblItems,
("selfLink" .=) <$> _bblSelfLink,
("warning" .=) <$> _bblWarning,
("id" .=) <$> _bblId])
newtype InterconnectAttachmentPrivateInfo =
InterconnectAttachmentPrivateInfo'
{ _iapiTag8021q :: Maybe (Textual Word32)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentPrivateInfo
:: InterconnectAttachmentPrivateInfo
interconnectAttachmentPrivateInfo =
InterconnectAttachmentPrivateInfo' {_iapiTag8021q = Nothing}
iapiTag8021q :: Lens' InterconnectAttachmentPrivateInfo (Maybe Word32)
iapiTag8021q
= lens _iapiTag8021q (\ s a -> s{_iapiTag8021q = a})
. mapping _Coerce
instance FromJSON InterconnectAttachmentPrivateInfo
where
parseJSON
= withObject "InterconnectAttachmentPrivateInfo"
(\ o ->
InterconnectAttachmentPrivateInfo' <$>
(o .:? "tag8021q"))
instance ToJSON InterconnectAttachmentPrivateInfo
where
toJSON InterconnectAttachmentPrivateInfo'{..}
= object
(catMaybes [("tag8021q" .=) <$> _iapiTag8021q])
data AcceleratorTypesScopedList =
AcceleratorTypesScopedList'
{ _atslAcceleratorTypes :: !(Maybe [AcceleratorType])
, _atslWarning :: !(Maybe AcceleratorTypesScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypesScopedList
:: AcceleratorTypesScopedList
acceleratorTypesScopedList =
AcceleratorTypesScopedList'
{_atslAcceleratorTypes = Nothing, _atslWarning = Nothing}
atslAcceleratorTypes :: Lens' AcceleratorTypesScopedList [AcceleratorType]
atslAcceleratorTypes
= lens _atslAcceleratorTypes
(\ s a -> s{_atslAcceleratorTypes = a})
. _Default
. _Coerce
atslWarning :: Lens' AcceleratorTypesScopedList (Maybe AcceleratorTypesScopedListWarning)
atslWarning
= lens _atslWarning (\ s a -> s{_atslWarning = a})
instance FromJSON AcceleratorTypesScopedList where
parseJSON
= withObject "AcceleratorTypesScopedList"
(\ o ->
AcceleratorTypesScopedList' <$>
(o .:? "acceleratorTypes" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON AcceleratorTypesScopedList where
toJSON AcceleratorTypesScopedList'{..}
= object
(catMaybes
[("acceleratorTypes" .=) <$> _atslAcceleratorTypes,
("warning" .=) <$> _atslWarning])
data BackendServiceCdnPolicy =
BackendServiceCdnPolicy'
{ _bscpSignedURLCacheMaxAgeSec :: !(Maybe (Textual Int64))
, _bscpSignedURLKeyNames :: !(Maybe [Text])
, _bscpCacheKeyPolicy :: !(Maybe CacheKeyPolicy)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceCdnPolicy
:: BackendServiceCdnPolicy
backendServiceCdnPolicy =
BackendServiceCdnPolicy'
{ _bscpSignedURLCacheMaxAgeSec = Nothing
, _bscpSignedURLKeyNames = Nothing
, _bscpCacheKeyPolicy = Nothing
}
bscpSignedURLCacheMaxAgeSec :: Lens' BackendServiceCdnPolicy (Maybe Int64)
bscpSignedURLCacheMaxAgeSec
= lens _bscpSignedURLCacheMaxAgeSec
(\ s a -> s{_bscpSignedURLCacheMaxAgeSec = a})
. mapping _Coerce
bscpSignedURLKeyNames :: Lens' BackendServiceCdnPolicy [Text]
bscpSignedURLKeyNames
= lens _bscpSignedURLKeyNames
(\ s a -> s{_bscpSignedURLKeyNames = a})
. _Default
. _Coerce
bscpCacheKeyPolicy :: Lens' BackendServiceCdnPolicy (Maybe CacheKeyPolicy)
bscpCacheKeyPolicy
= lens _bscpCacheKeyPolicy
(\ s a -> s{_bscpCacheKeyPolicy = a})
instance FromJSON BackendServiceCdnPolicy where
parseJSON
= withObject "BackendServiceCdnPolicy"
(\ o ->
BackendServiceCdnPolicy' <$>
(o .:? "signedUrlCacheMaxAgeSec") <*>
(o .:? "signedUrlKeyNames" .!= mempty)
<*> (o .:? "cacheKeyPolicy"))
instance ToJSON BackendServiceCdnPolicy where
toJSON BackendServiceCdnPolicy'{..}
= object
(catMaybes
[("signedUrlCacheMaxAgeSec" .=) <$>
_bscpSignedURLCacheMaxAgeSec,
("signedUrlKeyNames" .=) <$> _bscpSignedURLKeyNames,
("cacheKeyPolicy" .=) <$> _bscpCacheKeyPolicy])
data RouteWarningsItemDataItem =
RouteWarningsItemDataItem'
{ _rwidiValue :: !(Maybe Text)
, _rwidiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routeWarningsItemDataItem
:: RouteWarningsItemDataItem
routeWarningsItemDataItem =
RouteWarningsItemDataItem' {_rwidiValue = Nothing, _rwidiKey = Nothing}
rwidiValue :: Lens' RouteWarningsItemDataItem (Maybe Text)
rwidiValue
= lens _rwidiValue (\ s a -> s{_rwidiValue = a})
rwidiKey :: Lens' RouteWarningsItemDataItem (Maybe Text)
rwidiKey = lens _rwidiKey (\ s a -> s{_rwidiKey = a})
instance FromJSON RouteWarningsItemDataItem where
parseJSON
= withObject "RouteWarningsItemDataItem"
(\ o ->
RouteWarningsItemDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RouteWarningsItemDataItem where
toJSON RouteWarningsItemDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _rwidiValue,
("key" .=) <$> _rwidiKey])
data NodeGroupAggregatedList =
NodeGroupAggregatedList'
{ _ngalNextPageToken :: !(Maybe Text)
, _ngalKind :: !Text
, _ngalItems :: !(Maybe NodeGroupAggregatedListItems)
, _ngalSelfLink :: !(Maybe Text)
, _ngalWarning :: !(Maybe NodeGroupAggregatedListWarning)
, _ngalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupAggregatedList
:: NodeGroupAggregatedList
nodeGroupAggregatedList =
NodeGroupAggregatedList'
{ _ngalNextPageToken = Nothing
, _ngalKind = "compute#nodeGroupAggregatedList"
, _ngalItems = Nothing
, _ngalSelfLink = Nothing
, _ngalWarning = Nothing
, _ngalId = Nothing
}
ngalNextPageToken :: Lens' NodeGroupAggregatedList (Maybe Text)
ngalNextPageToken
= lens _ngalNextPageToken
(\ s a -> s{_ngalNextPageToken = a})
ngalKind :: Lens' NodeGroupAggregatedList Text
ngalKind = lens _ngalKind (\ s a -> s{_ngalKind = a})
ngalItems :: Lens' NodeGroupAggregatedList (Maybe NodeGroupAggregatedListItems)
ngalItems
= lens _ngalItems (\ s a -> s{_ngalItems = a})
ngalSelfLink :: Lens' NodeGroupAggregatedList (Maybe Text)
ngalSelfLink
= lens _ngalSelfLink (\ s a -> s{_ngalSelfLink = a})
ngalWarning :: Lens' NodeGroupAggregatedList (Maybe NodeGroupAggregatedListWarning)
ngalWarning
= lens _ngalWarning (\ s a -> s{_ngalWarning = a})
ngalId :: Lens' NodeGroupAggregatedList (Maybe Text)
ngalId = lens _ngalId (\ s a -> s{_ngalId = a})
instance FromJSON NodeGroupAggregatedList where
parseJSON
= withObject "NodeGroupAggregatedList"
(\ o ->
NodeGroupAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#nodeGroupAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NodeGroupAggregatedList where
toJSON NodeGroupAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ngalNextPageToken,
Just ("kind" .= _ngalKind),
("items" .=) <$> _ngalItems,
("selfLink" .=) <$> _ngalSelfLink,
("warning" .=) <$> _ngalWarning,
("id" .=) <$> _ngalId])
data VPNTunnelListWarning =
VPNTunnelListWarning'
{ _vtlwData :: !(Maybe [VPNTunnelListWarningDataItem])
, _vtlwCode :: !(Maybe VPNTunnelListWarningCode)
, _vtlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelListWarning
:: VPNTunnelListWarning
vpnTunnelListWarning =
VPNTunnelListWarning'
{_vtlwData = Nothing, _vtlwCode = Nothing, _vtlwMessage = Nothing}
vtlwData :: Lens' VPNTunnelListWarning [VPNTunnelListWarningDataItem]
vtlwData
= lens _vtlwData (\ s a -> s{_vtlwData = a}) .
_Default
. _Coerce
vtlwCode :: Lens' VPNTunnelListWarning (Maybe VPNTunnelListWarningCode)
vtlwCode = lens _vtlwCode (\ s a -> s{_vtlwCode = a})
vtlwMessage :: Lens' VPNTunnelListWarning (Maybe Text)
vtlwMessage
= lens _vtlwMessage (\ s a -> s{_vtlwMessage = a})
instance FromJSON VPNTunnelListWarning where
parseJSON
= withObject "VPNTunnelListWarning"
(\ o ->
VPNTunnelListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON VPNTunnelListWarning where
toJSON VPNTunnelListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _vtlwData,
("code" .=) <$> _vtlwCode,
("message" .=) <$> _vtlwMessage])
newtype BackendServiceAggregatedListItems =
BackendServiceAggregatedListItems'
{ _bsaliAddtional :: HashMap Text BackendServicesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceAggregatedListItems
:: HashMap Text BackendServicesScopedList
-> BackendServiceAggregatedListItems
backendServiceAggregatedListItems pBsaliAddtional_ =
BackendServiceAggregatedListItems'
{_bsaliAddtional = _Coerce # pBsaliAddtional_}
bsaliAddtional :: Lens' BackendServiceAggregatedListItems (HashMap Text BackendServicesScopedList)
bsaliAddtional
= lens _bsaliAddtional
(\ s a -> s{_bsaliAddtional = a})
. _Coerce
instance FromJSON BackendServiceAggregatedListItems
where
parseJSON
= withObject "BackendServiceAggregatedListItems"
(\ o ->
BackendServiceAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON BackendServiceAggregatedListItems
where
toJSON = toJSON . _bsaliAddtional
newtype InstanceAggregatedListItems =
InstanceAggregatedListItems'
{ _ialiAddtional :: HashMap Text InstancesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceAggregatedListItems
:: HashMap Text InstancesScopedList
-> InstanceAggregatedListItems
instanceAggregatedListItems pIaliAddtional_ =
InstanceAggregatedListItems' {_ialiAddtional = _Coerce # pIaliAddtional_}
ialiAddtional :: Lens' InstanceAggregatedListItems (HashMap Text InstancesScopedList)
ialiAddtional
= lens _ialiAddtional
(\ s a -> s{_ialiAddtional = a})
. _Coerce
instance FromJSON InstanceAggregatedListItems where
parseJSON
= withObject "InstanceAggregatedListItems"
(\ o ->
InstanceAggregatedListItems' <$> (parseJSONObject o))
instance ToJSON InstanceAggregatedListItems where
toJSON = toJSON . _ialiAddtional
data AutoscalersScopedListWarning =
AutoscalersScopedListWarning'
{ _aslwData :: !(Maybe [AutoscalersScopedListWarningDataItem])
, _aslwCode :: !(Maybe AutoscalersScopedListWarningCode)
, _aslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalersScopedListWarning
:: AutoscalersScopedListWarning
autoscalersScopedListWarning =
AutoscalersScopedListWarning'
{_aslwData = Nothing, _aslwCode = Nothing, _aslwMessage = Nothing}
aslwData :: Lens' AutoscalersScopedListWarning [AutoscalersScopedListWarningDataItem]
aslwData
= lens _aslwData (\ s a -> s{_aslwData = a}) .
_Default
. _Coerce
aslwCode :: Lens' AutoscalersScopedListWarning (Maybe AutoscalersScopedListWarningCode)
aslwCode = lens _aslwCode (\ s a -> s{_aslwCode = a})
aslwMessage :: Lens' AutoscalersScopedListWarning (Maybe Text)
aslwMessage
= lens _aslwMessage (\ s a -> s{_aslwMessage = a})
instance FromJSON AutoscalersScopedListWarning where
parseJSON
= withObject "AutoscalersScopedListWarning"
(\ o ->
AutoscalersScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AutoscalersScopedListWarning where
toJSON AutoscalersScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _aslwData,
("code" .=) <$> _aslwCode,
("message" .=) <$> _aslwMessage])
data DiskInstantiationConfig =
DiskInstantiationConfig'
{ _dicAutoDelete :: !(Maybe Bool)
, _dicInstantiateFrom :: !(Maybe DiskInstantiationConfigInstantiateFrom)
, _dicCustomImage :: !(Maybe Text)
, _dicDeviceName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskInstantiationConfig
:: DiskInstantiationConfig
diskInstantiationConfig =
DiskInstantiationConfig'
{ _dicAutoDelete = Nothing
, _dicInstantiateFrom = Nothing
, _dicCustomImage = Nothing
, _dicDeviceName = Nothing
}
dicAutoDelete :: Lens' DiskInstantiationConfig (Maybe Bool)
dicAutoDelete
= lens _dicAutoDelete
(\ s a -> s{_dicAutoDelete = a})
dicInstantiateFrom :: Lens' DiskInstantiationConfig (Maybe DiskInstantiationConfigInstantiateFrom)
dicInstantiateFrom
= lens _dicInstantiateFrom
(\ s a -> s{_dicInstantiateFrom = a})
dicCustomImage :: Lens' DiskInstantiationConfig (Maybe Text)
dicCustomImage
= lens _dicCustomImage
(\ s a -> s{_dicCustomImage = a})
dicDeviceName :: Lens' DiskInstantiationConfig (Maybe Text)
dicDeviceName
= lens _dicDeviceName
(\ s a -> s{_dicDeviceName = a})
instance FromJSON DiskInstantiationConfig where
parseJSON
= withObject "DiskInstantiationConfig"
(\ o ->
DiskInstantiationConfig' <$>
(o .:? "autoDelete") <*> (o .:? "instantiateFrom")
<*> (o .:? "customImage")
<*> (o .:? "deviceName"))
instance ToJSON DiskInstantiationConfig where
toJSON DiskInstantiationConfig'{..}
= object
(catMaybes
[("autoDelete" .=) <$> _dicAutoDelete,
("instantiateFrom" .=) <$> _dicInstantiateFrom,
("customImage" .=) <$> _dicCustomImage,
("deviceName" .=) <$> _dicDeviceName])
data DiskTypeAggregatedListWarning =
DiskTypeAggregatedListWarning'
{ _dtalwData :: !(Maybe [DiskTypeAggregatedListWarningDataItem])
, _dtalwCode :: !(Maybe DiskTypeAggregatedListWarningCode)
, _dtalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypeAggregatedListWarning
:: DiskTypeAggregatedListWarning
diskTypeAggregatedListWarning =
DiskTypeAggregatedListWarning'
{_dtalwData = Nothing, _dtalwCode = Nothing, _dtalwMessage = Nothing}
dtalwData :: Lens' DiskTypeAggregatedListWarning [DiskTypeAggregatedListWarningDataItem]
dtalwData
= lens _dtalwData (\ s a -> s{_dtalwData = a}) .
_Default
. _Coerce
dtalwCode :: Lens' DiskTypeAggregatedListWarning (Maybe DiskTypeAggregatedListWarningCode)
dtalwCode
= lens _dtalwCode (\ s a -> s{_dtalwCode = a})
dtalwMessage :: Lens' DiskTypeAggregatedListWarning (Maybe Text)
dtalwMessage
= lens _dtalwMessage (\ s a -> s{_dtalwMessage = a})
instance FromJSON DiskTypeAggregatedListWarning where
parseJSON
= withObject "DiskTypeAggregatedListWarning"
(\ o ->
DiskTypeAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON DiskTypeAggregatedListWarning where
toJSON DiskTypeAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _dtalwData,
("code" .=) <$> _dtalwCode,
("message" .=) <$> _dtalwMessage])
data DiskTypeListWarningDataItem =
DiskTypeListWarningDataItem'
{ _dtlwdiValue :: !(Maybe Text)
, _dtlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypeListWarningDataItem
:: DiskTypeListWarningDataItem
diskTypeListWarningDataItem =
DiskTypeListWarningDataItem' {_dtlwdiValue = Nothing, _dtlwdiKey = Nothing}
dtlwdiValue :: Lens' DiskTypeListWarningDataItem (Maybe Text)
dtlwdiValue
= lens _dtlwdiValue (\ s a -> s{_dtlwdiValue = a})
dtlwdiKey :: Lens' DiskTypeListWarningDataItem (Maybe Text)
dtlwdiKey
= lens _dtlwdiKey (\ s a -> s{_dtlwdiKey = a})
instance FromJSON DiskTypeListWarningDataItem where
parseJSON
= withObject "DiskTypeListWarningDataItem"
(\ o ->
DiskTypeListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON DiskTypeListWarningDataItem where
toJSON DiskTypeListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _dtlwdiValue,
("key" .=) <$> _dtlwdiKey])
data SecurityPolicyRule =
SecurityPolicyRule'
{ _sprPriority :: !(Maybe (Textual Int32))
, _sprKind :: !Text
, _sprAction :: !(Maybe Text)
, _sprPreview :: !(Maybe Bool)
, _sprMatch :: !(Maybe SecurityPolicyRuleMatcher)
, _sprDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicyRule
:: SecurityPolicyRule
securityPolicyRule =
SecurityPolicyRule'
{ _sprPriority = Nothing
, _sprKind = "compute#securityPolicyRule"
, _sprAction = Nothing
, _sprPreview = Nothing
, _sprMatch = Nothing
, _sprDescription = Nothing
}
sprPriority :: Lens' SecurityPolicyRule (Maybe Int32)
sprPriority
= lens _sprPriority (\ s a -> s{_sprPriority = a}) .
mapping _Coerce
sprKind :: Lens' SecurityPolicyRule Text
sprKind = lens _sprKind (\ s a -> s{_sprKind = a})
sprAction :: Lens' SecurityPolicyRule (Maybe Text)
sprAction
= lens _sprAction (\ s a -> s{_sprAction = a})
sprPreview :: Lens' SecurityPolicyRule (Maybe Bool)
sprPreview
= lens _sprPreview (\ s a -> s{_sprPreview = a})
sprMatch :: Lens' SecurityPolicyRule (Maybe SecurityPolicyRuleMatcher)
sprMatch = lens _sprMatch (\ s a -> s{_sprMatch = a})
sprDescription :: Lens' SecurityPolicyRule (Maybe Text)
sprDescription
= lens _sprDescription
(\ s a -> s{_sprDescription = a})
instance FromJSON SecurityPolicyRule where
parseJSON
= withObject "SecurityPolicyRule"
(\ o ->
SecurityPolicyRule' <$>
(o .:? "priority") <*>
(o .:? "kind" .!= "compute#securityPolicyRule")
<*> (o .:? "action")
<*> (o .:? "preview")
<*> (o .:? "match")
<*> (o .:? "description"))
instance ToJSON SecurityPolicyRule where
toJSON SecurityPolicyRule'{..}
= object
(catMaybes
[("priority" .=) <$> _sprPriority,
Just ("kind" .= _sprKind),
("action" .=) <$> _sprAction,
("preview" .=) <$> _sprPreview,
("match" .=) <$> _sprMatch,
("description" .=) <$> _sprDescription])
newtype InterconnectsGetDiagnosticsResponse =
InterconnectsGetDiagnosticsResponse'
{ _igdrResult :: Maybe InterconnectDiagnostics
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectsGetDiagnosticsResponse
:: InterconnectsGetDiagnosticsResponse
interconnectsGetDiagnosticsResponse =
InterconnectsGetDiagnosticsResponse' {_igdrResult = Nothing}
igdrResult :: Lens' InterconnectsGetDiagnosticsResponse (Maybe InterconnectDiagnostics)
igdrResult
= lens _igdrResult (\ s a -> s{_igdrResult = a})
instance FromJSON InterconnectsGetDiagnosticsResponse
where
parseJSON
= withObject "InterconnectsGetDiagnosticsResponse"
(\ o ->
InterconnectsGetDiagnosticsResponse' <$>
(o .:? "result"))
instance ToJSON InterconnectsGetDiagnosticsResponse
where
toJSON InterconnectsGetDiagnosticsResponse'{..}
= object (catMaybes [("result" .=) <$> _igdrResult])
data VPNTunnelAggregatedListWarningDataItem =
VPNTunnelAggregatedListWarningDataItem'
{ _vtalwdiValue :: !(Maybe Text)
, _vtalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelAggregatedListWarningDataItem
:: VPNTunnelAggregatedListWarningDataItem
vpnTunnelAggregatedListWarningDataItem =
VPNTunnelAggregatedListWarningDataItem'
{_vtalwdiValue = Nothing, _vtalwdiKey = Nothing}
vtalwdiValue :: Lens' VPNTunnelAggregatedListWarningDataItem (Maybe Text)
vtalwdiValue
= lens _vtalwdiValue (\ s a -> s{_vtalwdiValue = a})
vtalwdiKey :: Lens' VPNTunnelAggregatedListWarningDataItem (Maybe Text)
vtalwdiKey
= lens _vtalwdiKey (\ s a -> s{_vtalwdiKey = a})
instance FromJSON
VPNTunnelAggregatedListWarningDataItem
where
parseJSON
= withObject "VPNTunnelAggregatedListWarningDataItem"
(\ o ->
VPNTunnelAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
VPNTunnelAggregatedListWarningDataItem
where
toJSON VPNTunnelAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _vtalwdiValue,
("key" .=) <$> _vtalwdiKey])
data FixedOrPercent =
FixedOrPercent'
{ _fopCalculated :: !(Maybe (Textual Int32))
, _fopPercent :: !(Maybe (Textual Int32))
, _fopFixed :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
fixedOrPercent
:: FixedOrPercent
fixedOrPercent =
FixedOrPercent'
{_fopCalculated = Nothing, _fopPercent = Nothing, _fopFixed = Nothing}
fopCalculated :: Lens' FixedOrPercent (Maybe Int32)
fopCalculated
= lens _fopCalculated
(\ s a -> s{_fopCalculated = a})
. mapping _Coerce
fopPercent :: Lens' FixedOrPercent (Maybe Int32)
fopPercent
= lens _fopPercent (\ s a -> s{_fopPercent = a}) .
mapping _Coerce
fopFixed :: Lens' FixedOrPercent (Maybe Int32)
fopFixed
= lens _fopFixed (\ s a -> s{_fopFixed = a}) .
mapping _Coerce
instance FromJSON FixedOrPercent where
parseJSON
= withObject "FixedOrPercent"
(\ o ->
FixedOrPercent' <$>
(o .:? "calculated") <*> (o .:? "percent") <*>
(o .:? "fixed"))
instance ToJSON FixedOrPercent where
toJSON FixedOrPercent'{..}
= object
(catMaybes
[("calculated" .=) <$> _fopCalculated,
("percent" .=) <$> _fopPercent,
("fixed" .=) <$> _fopFixed])
newtype FirewallLogConfig =
FirewallLogConfig'
{ _flcEnable :: Maybe Bool
}
deriving (Eq, Show, Data, Typeable, Generic)
firewallLogConfig
:: FirewallLogConfig
firewallLogConfig = FirewallLogConfig' {_flcEnable = Nothing}
flcEnable :: Lens' FirewallLogConfig (Maybe Bool)
flcEnable
= lens _flcEnable (\ s a -> s{_flcEnable = a})
instance FromJSON FirewallLogConfig where
parseJSON
= withObject "FirewallLogConfig"
(\ o -> FirewallLogConfig' <$> (o .:? "enable"))
instance ToJSON FirewallLogConfig where
toJSON FirewallLogConfig'{..}
= object (catMaybes [("enable" .=) <$> _flcEnable])
newtype ShieldedInstanceIntegrityPolicy =
ShieldedInstanceIntegrityPolicy'
{ _siipUpdateAutoLearnPolicy :: Maybe Bool
}
deriving (Eq, Show, Data, Typeable, Generic)
shieldedInstanceIntegrityPolicy
:: ShieldedInstanceIntegrityPolicy
shieldedInstanceIntegrityPolicy =
ShieldedInstanceIntegrityPolicy' {_siipUpdateAutoLearnPolicy = Nothing}
siipUpdateAutoLearnPolicy :: Lens' ShieldedInstanceIntegrityPolicy (Maybe Bool)
siipUpdateAutoLearnPolicy
= lens _siipUpdateAutoLearnPolicy
(\ s a -> s{_siipUpdateAutoLearnPolicy = a})
instance FromJSON ShieldedInstanceIntegrityPolicy
where
parseJSON
= withObject "ShieldedInstanceIntegrityPolicy"
(\ o ->
ShieldedInstanceIntegrityPolicy' <$>
(o .:? "updateAutoLearnPolicy"))
instance ToJSON ShieldedInstanceIntegrityPolicy where
toJSON ShieldedInstanceIntegrityPolicy'{..}
= object
(catMaybes
[("updateAutoLearnPolicy" .=) <$>
_siipUpdateAutoLearnPolicy])
data RouterNAT =
RouterNAT'
{ _rnatNATIPAllocateOption :: !(Maybe RouterNATNATIPAllocateOption)
, _rnatICMPIdleTimeoutSec :: !(Maybe (Textual Int32))
, _rnatUdpIdleTimeoutSec :: !(Maybe (Textual Int32))
, _rnatNATIPs :: !(Maybe [Text])
, _rnatSubnetworks :: !(Maybe [RouterNATSubnetworkToNAT])
, _rnatMinPortsPerVM :: !(Maybe (Textual Int32))
, _rnatName :: !(Maybe Text)
, _rnatSourceSubnetworkIPRangesToNAT :: !(Maybe RouterNATSourceSubnetworkIPRangesToNAT)
, _rnatTCPEstablishedIdleTimeoutSec :: !(Maybe (Textual Int32))
, _rnatTCPTransitoryIdleTimeoutSec :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
routerNAT
:: RouterNAT
routerNAT =
RouterNAT'
{ _rnatNATIPAllocateOption = Nothing
, _rnatICMPIdleTimeoutSec = Nothing
, _rnatUdpIdleTimeoutSec = Nothing
, _rnatNATIPs = Nothing
, _rnatSubnetworks = Nothing
, _rnatMinPortsPerVM = Nothing
, _rnatName = Nothing
, _rnatSourceSubnetworkIPRangesToNAT = Nothing
, _rnatTCPEstablishedIdleTimeoutSec = Nothing
, _rnatTCPTransitoryIdleTimeoutSec = Nothing
}
rnatNATIPAllocateOption :: Lens' RouterNAT (Maybe RouterNATNATIPAllocateOption)
rnatNATIPAllocateOption
= lens _rnatNATIPAllocateOption
(\ s a -> s{_rnatNATIPAllocateOption = a})
rnatICMPIdleTimeoutSec :: Lens' RouterNAT (Maybe Int32)
rnatICMPIdleTimeoutSec
= lens _rnatICMPIdleTimeoutSec
(\ s a -> s{_rnatICMPIdleTimeoutSec = a})
. mapping _Coerce
rnatUdpIdleTimeoutSec :: Lens' RouterNAT (Maybe Int32)
rnatUdpIdleTimeoutSec
= lens _rnatUdpIdleTimeoutSec
(\ s a -> s{_rnatUdpIdleTimeoutSec = a})
. mapping _Coerce
rnatNATIPs :: Lens' RouterNAT [Text]
rnatNATIPs
= lens _rnatNATIPs (\ s a -> s{_rnatNATIPs = a}) .
_Default
. _Coerce
rnatSubnetworks :: Lens' RouterNAT [RouterNATSubnetworkToNAT]
rnatSubnetworks
= lens _rnatSubnetworks
(\ s a -> s{_rnatSubnetworks = a})
. _Default
. _Coerce
rnatMinPortsPerVM :: Lens' RouterNAT (Maybe Int32)
rnatMinPortsPerVM
= lens _rnatMinPortsPerVM
(\ s a -> s{_rnatMinPortsPerVM = a})
. mapping _Coerce
rnatName :: Lens' RouterNAT (Maybe Text)
rnatName = lens _rnatName (\ s a -> s{_rnatName = a})
rnatSourceSubnetworkIPRangesToNAT :: Lens' RouterNAT (Maybe RouterNATSourceSubnetworkIPRangesToNAT)
rnatSourceSubnetworkIPRangesToNAT
= lens _rnatSourceSubnetworkIPRangesToNAT
(\ s a -> s{_rnatSourceSubnetworkIPRangesToNAT = a})
rnatTCPEstablishedIdleTimeoutSec :: Lens' RouterNAT (Maybe Int32)
rnatTCPEstablishedIdleTimeoutSec
= lens _rnatTCPEstablishedIdleTimeoutSec
(\ s a -> s{_rnatTCPEstablishedIdleTimeoutSec = a})
. mapping _Coerce
rnatTCPTransitoryIdleTimeoutSec :: Lens' RouterNAT (Maybe Int32)
rnatTCPTransitoryIdleTimeoutSec
= lens _rnatTCPTransitoryIdleTimeoutSec
(\ s a -> s{_rnatTCPTransitoryIdleTimeoutSec = a})
. mapping _Coerce
instance FromJSON RouterNAT where
parseJSON
= withObject "RouterNAT"
(\ o ->
RouterNAT' <$>
(o .:? "natIpAllocateOption") <*>
(o .:? "icmpIdleTimeoutSec")
<*> (o .:? "udpIdleTimeoutSec")
<*> (o .:? "natIps" .!= mempty)
<*> (o .:? "subnetworks" .!= mempty)
<*> (o .:? "minPortsPerVm")
<*> (o .:? "name")
<*> (o .:? "sourceSubnetworkIpRangesToNat")
<*> (o .:? "tcpEstablishedIdleTimeoutSec")
<*> (o .:? "tcpTransitoryIdleTimeoutSec"))
instance ToJSON RouterNAT where
toJSON RouterNAT'{..}
= object
(catMaybes
[("natIpAllocateOption" .=) <$>
_rnatNATIPAllocateOption,
("icmpIdleTimeoutSec" .=) <$>
_rnatICMPIdleTimeoutSec,
("udpIdleTimeoutSec" .=) <$> _rnatUdpIdleTimeoutSec,
("natIps" .=) <$> _rnatNATIPs,
("subnetworks" .=) <$> _rnatSubnetworks,
("minPortsPerVm" .=) <$> _rnatMinPortsPerVM,
("name" .=) <$> _rnatName,
("sourceSubnetworkIpRangesToNat" .=) <$>
_rnatSourceSubnetworkIPRangesToNAT,
("tcpEstablishedIdleTimeoutSec" .=) <$>
_rnatTCPEstablishedIdleTimeoutSec,
("tcpTransitoryIdleTimeoutSec" .=) <$>
_rnatTCPTransitoryIdleTimeoutSec])
data AutoscalerAggregatedListWarning =
AutoscalerAggregatedListWarning'
{ _aalwData :: !(Maybe [AutoscalerAggregatedListWarningDataItem])
, _aalwCode :: !(Maybe AutoscalerAggregatedListWarningCode)
, _aalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerAggregatedListWarning
:: AutoscalerAggregatedListWarning
autoscalerAggregatedListWarning =
AutoscalerAggregatedListWarning'
{_aalwData = Nothing, _aalwCode = Nothing, _aalwMessage = Nothing}
aalwData :: Lens' AutoscalerAggregatedListWarning [AutoscalerAggregatedListWarningDataItem]
aalwData
= lens _aalwData (\ s a -> s{_aalwData = a}) .
_Default
. _Coerce
aalwCode :: Lens' AutoscalerAggregatedListWarning (Maybe AutoscalerAggregatedListWarningCode)
aalwCode = lens _aalwCode (\ s a -> s{_aalwCode = a})
aalwMessage :: Lens' AutoscalerAggregatedListWarning (Maybe Text)
aalwMessage
= lens _aalwMessage (\ s a -> s{_aalwMessage = a})
instance FromJSON AutoscalerAggregatedListWarning
where
parseJSON
= withObject "AutoscalerAggregatedListWarning"
(\ o ->
AutoscalerAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AutoscalerAggregatedListWarning where
toJSON AutoscalerAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _aalwData,
("code" .=) <$> _aalwCode,
("message" .=) <$> _aalwMessage])
data AutoscalerListWarningDataItem =
AutoscalerListWarningDataItem'
{ _alwdiValue :: !(Maybe Text)
, _alwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerListWarningDataItem
:: AutoscalerListWarningDataItem
autoscalerListWarningDataItem =
AutoscalerListWarningDataItem' {_alwdiValue = Nothing, _alwdiKey = Nothing}
alwdiValue :: Lens' AutoscalerListWarningDataItem (Maybe Text)
alwdiValue
= lens _alwdiValue (\ s a -> s{_alwdiValue = a})
alwdiKey :: Lens' AutoscalerListWarningDataItem (Maybe Text)
alwdiKey = lens _alwdiKey (\ s a -> s{_alwdiKey = a})
instance FromJSON AutoscalerListWarningDataItem where
parseJSON
= withObject "AutoscalerListWarningDataItem"
(\ o ->
AutoscalerListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON AutoscalerListWarningDataItem where
toJSON AutoscalerListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _alwdiValue,
("key" .=) <$> _alwdiKey])
data NodeTypeListWarning =
NodeTypeListWarning'
{ _ntlwData :: !(Maybe [NodeTypeListWarningDataItem])
, _ntlwCode :: !(Maybe NodeTypeListWarningCode)
, _ntlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypeListWarning
:: NodeTypeListWarning
nodeTypeListWarning =
NodeTypeListWarning'
{_ntlwData = Nothing, _ntlwCode = Nothing, _ntlwMessage = Nothing}
ntlwData :: Lens' NodeTypeListWarning [NodeTypeListWarningDataItem]
ntlwData
= lens _ntlwData (\ s a -> s{_ntlwData = a}) .
_Default
. _Coerce
ntlwCode :: Lens' NodeTypeListWarning (Maybe NodeTypeListWarningCode)
ntlwCode = lens _ntlwCode (\ s a -> s{_ntlwCode = a})
ntlwMessage :: Lens' NodeTypeListWarning (Maybe Text)
ntlwMessage
= lens _ntlwMessage (\ s a -> s{_ntlwMessage = a})
instance FromJSON NodeTypeListWarning where
parseJSON
= withObject "NodeTypeListWarning"
(\ o ->
NodeTypeListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeTypeListWarning where
toJSON NodeTypeListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ntlwData,
("code" .=) <$> _ntlwCode,
("message" .=) <$> _ntlwMessage])
data HealthCheckList =
HealthCheckList'
{ _hclNextPageToken :: !(Maybe Text)
, _hclKind :: !Text
, _hclItems :: !(Maybe [HealthCheck])
, _hclSelfLink :: !(Maybe Text)
, _hclWarning :: !(Maybe HealthCheckListWarning)
, _hclId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
healthCheckList
:: HealthCheckList
healthCheckList =
HealthCheckList'
{ _hclNextPageToken = Nothing
, _hclKind = "compute#healthCheckList"
, _hclItems = Nothing
, _hclSelfLink = Nothing
, _hclWarning = Nothing
, _hclId = Nothing
}
hclNextPageToken :: Lens' HealthCheckList (Maybe Text)
hclNextPageToken
= lens _hclNextPageToken
(\ s a -> s{_hclNextPageToken = a})
hclKind :: Lens' HealthCheckList Text
hclKind = lens _hclKind (\ s a -> s{_hclKind = a})
hclItems :: Lens' HealthCheckList [HealthCheck]
hclItems
= lens _hclItems (\ s a -> s{_hclItems = a}) .
_Default
. _Coerce
hclSelfLink :: Lens' HealthCheckList (Maybe Text)
hclSelfLink
= lens _hclSelfLink (\ s a -> s{_hclSelfLink = a})
hclWarning :: Lens' HealthCheckList (Maybe HealthCheckListWarning)
hclWarning
= lens _hclWarning (\ s a -> s{_hclWarning = a})
hclId :: Lens' HealthCheckList (Maybe Text)
hclId = lens _hclId (\ s a -> s{_hclId = a})
instance FromJSON HealthCheckList where
parseJSON
= withObject "HealthCheckList"
(\ o ->
HealthCheckList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#healthCheckList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON HealthCheckList where
toJSON HealthCheckList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _hclNextPageToken,
Just ("kind" .= _hclKind),
("items" .=) <$> _hclItems,
("selfLink" .=) <$> _hclSelfLink,
("warning" .=) <$> _hclWarning,
("id" .=) <$> _hclId])
newtype ManagedInstanceLastAttemptErrors =
ManagedInstanceLastAttemptErrors'
{ _milaeErrors :: Maybe [ManagedInstanceLastAttemptErrorsErrorsItem]
}
deriving (Eq, Show, Data, Typeable, Generic)
managedInstanceLastAttemptErrors
:: ManagedInstanceLastAttemptErrors
managedInstanceLastAttemptErrors =
ManagedInstanceLastAttemptErrors' {_milaeErrors = Nothing}
milaeErrors :: Lens' ManagedInstanceLastAttemptErrors [ManagedInstanceLastAttemptErrorsErrorsItem]
milaeErrors
= lens _milaeErrors (\ s a -> s{_milaeErrors = a}) .
_Default
. _Coerce
instance FromJSON ManagedInstanceLastAttemptErrors
where
parseJSON
= withObject "ManagedInstanceLastAttemptErrors"
(\ o ->
ManagedInstanceLastAttemptErrors' <$>
(o .:? "errors" .!= mempty))
instance ToJSON ManagedInstanceLastAttemptErrors
where
toJSON ManagedInstanceLastAttemptErrors'{..}
= object (catMaybes [("errors" .=) <$> _milaeErrors])
data RouterStatusNATStatus =
RouterStatusNATStatus'
{ _rsnatsUserAllocatedNATIPResources :: !(Maybe [Text])
, _rsnatsName :: !(Maybe Text)
, _rsnatsAutoAllocatedNATIPs :: !(Maybe [Text])
, _rsnatsMinExtraNATIPsNeeded :: !(Maybe (Textual Int32))
, _rsnatsNumVMEndpointsWithNATMAppings :: !(Maybe (Textual Int32))
, _rsnatsUserAllocatedNATIPs :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
routerStatusNATStatus
:: RouterStatusNATStatus
routerStatusNATStatus =
RouterStatusNATStatus'
{ _rsnatsUserAllocatedNATIPResources = Nothing
, _rsnatsName = Nothing
, _rsnatsAutoAllocatedNATIPs = Nothing
, _rsnatsMinExtraNATIPsNeeded = Nothing
, _rsnatsNumVMEndpointsWithNATMAppings = Nothing
, _rsnatsUserAllocatedNATIPs = Nothing
}
rsnatsUserAllocatedNATIPResources :: Lens' RouterStatusNATStatus [Text]
rsnatsUserAllocatedNATIPResources
= lens _rsnatsUserAllocatedNATIPResources
(\ s a -> s{_rsnatsUserAllocatedNATIPResources = a})
. _Default
. _Coerce
rsnatsName :: Lens' RouterStatusNATStatus (Maybe Text)
rsnatsName
= lens _rsnatsName (\ s a -> s{_rsnatsName = a})
rsnatsAutoAllocatedNATIPs :: Lens' RouterStatusNATStatus [Text]
rsnatsAutoAllocatedNATIPs
= lens _rsnatsAutoAllocatedNATIPs
(\ s a -> s{_rsnatsAutoAllocatedNATIPs = a})
. _Default
. _Coerce
rsnatsMinExtraNATIPsNeeded :: Lens' RouterStatusNATStatus (Maybe Int32)
rsnatsMinExtraNATIPsNeeded
= lens _rsnatsMinExtraNATIPsNeeded
(\ s a -> s{_rsnatsMinExtraNATIPsNeeded = a})
. mapping _Coerce
rsnatsNumVMEndpointsWithNATMAppings :: Lens' RouterStatusNATStatus (Maybe Int32)
rsnatsNumVMEndpointsWithNATMAppings
= lens _rsnatsNumVMEndpointsWithNATMAppings
(\ s a ->
s{_rsnatsNumVMEndpointsWithNATMAppings = a})
. mapping _Coerce
rsnatsUserAllocatedNATIPs :: Lens' RouterStatusNATStatus [Text]
rsnatsUserAllocatedNATIPs
= lens _rsnatsUserAllocatedNATIPs
(\ s a -> s{_rsnatsUserAllocatedNATIPs = a})
. _Default
. _Coerce
instance FromJSON RouterStatusNATStatus where
parseJSON
= withObject "RouterStatusNATStatus"
(\ o ->
RouterStatusNATStatus' <$>
(o .:? "userAllocatedNatIpResources" .!= mempty) <*>
(o .:? "name")
<*> (o .:? "autoAllocatedNatIps" .!= mempty)
<*> (o .:? "minExtraNatIpsNeeded")
<*> (o .:? "numVmEndpointsWithNatMappings")
<*> (o .:? "userAllocatedNatIps" .!= mempty))
instance ToJSON RouterStatusNATStatus where
toJSON RouterStatusNATStatus'{..}
= object
(catMaybes
[("userAllocatedNatIpResources" .=) <$>
_rsnatsUserAllocatedNATIPResources,
("name" .=) <$> _rsnatsName,
("autoAllocatedNatIps" .=) <$>
_rsnatsAutoAllocatedNATIPs,
("minExtraNatIpsNeeded" .=) <$>
_rsnatsMinExtraNATIPsNeeded,
("numVmEndpointsWithNatMappings" .=) <$>
_rsnatsNumVMEndpointsWithNATMAppings,
("userAllocatedNatIps" .=) <$>
_rsnatsUserAllocatedNATIPs])
newtype TargetPoolsRemoveInstanceRequest =
TargetPoolsRemoveInstanceRequest'
{ _tprirInstances :: Maybe [InstanceReference]
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolsRemoveInstanceRequest
:: TargetPoolsRemoveInstanceRequest
targetPoolsRemoveInstanceRequest =
TargetPoolsRemoveInstanceRequest' {_tprirInstances = Nothing}
tprirInstances :: Lens' TargetPoolsRemoveInstanceRequest [InstanceReference]
tprirInstances
= lens _tprirInstances
(\ s a -> s{_tprirInstances = a})
. _Default
. _Coerce
instance FromJSON TargetPoolsRemoveInstanceRequest
where
parseJSON
= withObject "TargetPoolsRemoveInstanceRequest"
(\ o ->
TargetPoolsRemoveInstanceRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON TargetPoolsRemoveInstanceRequest
where
toJSON TargetPoolsRemoveInstanceRequest'{..}
= object
(catMaybes [("instances" .=) <$> _tprirInstances])
data NodeTypeAggregatedListWarningDataItem =
NodeTypeAggregatedListWarningDataItem'
{ _nValue :: !(Maybe Text)
, _nKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypeAggregatedListWarningDataItem
:: NodeTypeAggregatedListWarningDataItem
nodeTypeAggregatedListWarningDataItem =
NodeTypeAggregatedListWarningDataItem' {_nValue = Nothing, _nKey = Nothing}
nValue :: Lens' NodeTypeAggregatedListWarningDataItem (Maybe Text)
nValue = lens _nValue (\ s a -> s{_nValue = a})
nKey :: Lens' NodeTypeAggregatedListWarningDataItem (Maybe Text)
nKey = lens _nKey (\ s a -> s{_nKey = a})
instance FromJSON
NodeTypeAggregatedListWarningDataItem
where
parseJSON
= withObject "NodeTypeAggregatedListWarningDataItem"
(\ o ->
NodeTypeAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NodeTypeAggregatedListWarningDataItem
where
toJSON NodeTypeAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _nValue, ("key" .=) <$> _nKey])
data TargetInstancesScopedListWarningDataItem =
TargetInstancesScopedListWarningDataItem'
{ _tislwdiValue :: !(Maybe Text)
, _tislwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstancesScopedListWarningDataItem
:: TargetInstancesScopedListWarningDataItem
targetInstancesScopedListWarningDataItem =
TargetInstancesScopedListWarningDataItem'
{_tislwdiValue = Nothing, _tislwdiKey = Nothing}
tislwdiValue :: Lens' TargetInstancesScopedListWarningDataItem (Maybe Text)
tislwdiValue
= lens _tislwdiValue (\ s a -> s{_tislwdiValue = a})
tislwdiKey :: Lens' TargetInstancesScopedListWarningDataItem (Maybe Text)
tislwdiKey
= lens _tislwdiKey (\ s a -> s{_tislwdiKey = a})
instance FromJSON
TargetInstancesScopedListWarningDataItem
where
parseJSON
= withObject
"TargetInstancesScopedListWarningDataItem"
(\ o ->
TargetInstancesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
TargetInstancesScopedListWarningDataItem
where
toJSON TargetInstancesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tislwdiValue,
("key" .=) <$> _tislwdiKey])
data MachineTypesScopedListWarning =
MachineTypesScopedListWarning'
{ _mtslwData :: !(Maybe [MachineTypesScopedListWarningDataItem])
, _mtslwCode :: !(Maybe MachineTypesScopedListWarningCode)
, _mtslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypesScopedListWarning
:: MachineTypesScopedListWarning
machineTypesScopedListWarning =
MachineTypesScopedListWarning'
{_mtslwData = Nothing, _mtslwCode = Nothing, _mtslwMessage = Nothing}
mtslwData :: Lens' MachineTypesScopedListWarning [MachineTypesScopedListWarningDataItem]
mtslwData
= lens _mtslwData (\ s a -> s{_mtslwData = a}) .
_Default
. _Coerce
mtslwCode :: Lens' MachineTypesScopedListWarning (Maybe MachineTypesScopedListWarningCode)
mtslwCode
= lens _mtslwCode (\ s a -> s{_mtslwCode = a})
mtslwMessage :: Lens' MachineTypesScopedListWarning (Maybe Text)
mtslwMessage
= lens _mtslwMessage (\ s a -> s{_mtslwMessage = a})
instance FromJSON MachineTypesScopedListWarning where
parseJSON
= withObject "MachineTypesScopedListWarning"
(\ o ->
MachineTypesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON MachineTypesScopedListWarning where
toJSON MachineTypesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _mtslwData,
("code" .=) <$> _mtslwCode,
("message" .=) <$> _mtslwMessage])
data ZoneSetLabelsRequest =
ZoneSetLabelsRequest'
{ _zslrLabels :: !(Maybe ZoneSetLabelsRequestLabels)
, _zslrLabelFingerprint :: !(Maybe Bytes)
}
deriving (Eq, Show, Data, Typeable, Generic)
zoneSetLabelsRequest
:: ZoneSetLabelsRequest
zoneSetLabelsRequest =
ZoneSetLabelsRequest' {_zslrLabels = Nothing, _zslrLabelFingerprint = Nothing}
zslrLabels :: Lens' ZoneSetLabelsRequest (Maybe ZoneSetLabelsRequestLabels)
zslrLabels
= lens _zslrLabels (\ s a -> s{_zslrLabels = a})
zslrLabelFingerprint :: Lens' ZoneSetLabelsRequest (Maybe ByteString)
zslrLabelFingerprint
= lens _zslrLabelFingerprint
(\ s a -> s{_zslrLabelFingerprint = a})
. mapping _Bytes
instance FromJSON ZoneSetLabelsRequest where
parseJSON
= withObject "ZoneSetLabelsRequest"
(\ o ->
ZoneSetLabelsRequest' <$>
(o .:? "labels") <*> (o .:? "labelFingerprint"))
instance ToJSON ZoneSetLabelsRequest where
toJSON ZoneSetLabelsRequest'{..}
= object
(catMaybes
[("labels" .=) <$> _zslrLabels,
("labelFingerprint" .=) <$> _zslrLabelFingerprint])
data TargetInstance =
TargetInstance'
{ _tiKind :: !Text
, _tiNATPolicy :: !(Maybe TargetInstanceNATPolicy)
, _tiZone :: !(Maybe Text)
, _tiSelfLink :: !(Maybe Text)
, _tiName :: !(Maybe Text)
, _tiCreationTimestamp :: !(Maybe Text)
, _tiId :: !(Maybe (Textual Word64))
, _tiDescription :: !(Maybe Text)
, _tiInstance :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstance
:: TargetInstance
targetInstance =
TargetInstance'
{ _tiKind = "compute#targetInstance"
, _tiNATPolicy = Nothing
, _tiZone = Nothing
, _tiSelfLink = Nothing
, _tiName = Nothing
, _tiCreationTimestamp = Nothing
, _tiId = Nothing
, _tiDescription = Nothing
, _tiInstance = Nothing
}
tiKind :: Lens' TargetInstance Text
tiKind = lens _tiKind (\ s a -> s{_tiKind = a})
tiNATPolicy :: Lens' TargetInstance (Maybe TargetInstanceNATPolicy)
tiNATPolicy
= lens _tiNATPolicy (\ s a -> s{_tiNATPolicy = a})
tiZone :: Lens' TargetInstance (Maybe Text)
tiZone = lens _tiZone (\ s a -> s{_tiZone = a})
tiSelfLink :: Lens' TargetInstance (Maybe Text)
tiSelfLink
= lens _tiSelfLink (\ s a -> s{_tiSelfLink = a})
tiName :: Lens' TargetInstance (Maybe Text)
tiName = lens _tiName (\ s a -> s{_tiName = a})
tiCreationTimestamp :: Lens' TargetInstance (Maybe Text)
tiCreationTimestamp
= lens _tiCreationTimestamp
(\ s a -> s{_tiCreationTimestamp = a})
tiId :: Lens' TargetInstance (Maybe Word64)
tiId
= lens _tiId (\ s a -> s{_tiId = a}) .
mapping _Coerce
tiDescription :: Lens' TargetInstance (Maybe Text)
tiDescription
= lens _tiDescription
(\ s a -> s{_tiDescription = a})
tiInstance :: Lens' TargetInstance (Maybe Text)
tiInstance
= lens _tiInstance (\ s a -> s{_tiInstance = a})
instance FromJSON TargetInstance where
parseJSON
= withObject "TargetInstance"
(\ o ->
TargetInstance' <$>
(o .:? "kind" .!= "compute#targetInstance") <*>
(o .:? "natPolicy")
<*> (o .:? "zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "description")
<*> (o .:? "instance"))
instance ToJSON TargetInstance where
toJSON TargetInstance'{..}
= object
(catMaybes
[Just ("kind" .= _tiKind),
("natPolicy" .=) <$> _tiNATPolicy,
("zone" .=) <$> _tiZone,
("selfLink" .=) <$> _tiSelfLink,
("name" .=) <$> _tiName,
("creationTimestamp" .=) <$> _tiCreationTimestamp,
("id" .=) <$> _tiId,
("description" .=) <$> _tiDescription,
("instance" .=) <$> _tiInstance])
data TargetPoolInstanceHealth =
TargetPoolInstanceHealth'
{ _tpihKind :: !Text
, _tpihHealthStatus :: !(Maybe [HealthStatus])
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolInstanceHealth
:: TargetPoolInstanceHealth
targetPoolInstanceHealth =
TargetPoolInstanceHealth'
{ _tpihKind = "compute#targetPoolInstanceHealth"
, _tpihHealthStatus = Nothing
}
tpihKind :: Lens' TargetPoolInstanceHealth Text
tpihKind = lens _tpihKind (\ s a -> s{_tpihKind = a})
tpihHealthStatus :: Lens' TargetPoolInstanceHealth [HealthStatus]
tpihHealthStatus
= lens _tpihHealthStatus
(\ s a -> s{_tpihHealthStatus = a})
. _Default
. _Coerce
instance FromJSON TargetPoolInstanceHealth where
parseJSON
= withObject "TargetPoolInstanceHealth"
(\ o ->
TargetPoolInstanceHealth' <$>
(o .:? "kind" .!= "compute#targetPoolInstanceHealth")
<*> (o .:? "healthStatus" .!= mempty))
instance ToJSON TargetPoolInstanceHealth where
toJSON TargetPoolInstanceHealth'{..}
= object
(catMaybes
[Just ("kind" .= _tpihKind),
("healthStatus" .=) <$> _tpihHealthStatus])
data AcceleratorTypeAggregatedList =
AcceleratorTypeAggregatedList'
{ _atalNextPageToken :: !(Maybe Text)
, _atalKind :: !Text
, _atalItems :: !(Maybe AcceleratorTypeAggregatedListItems)
, _atalSelfLink :: !(Maybe Text)
, _atalWarning :: !(Maybe AcceleratorTypeAggregatedListWarning)
, _atalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypeAggregatedList
:: AcceleratorTypeAggregatedList
acceleratorTypeAggregatedList =
AcceleratorTypeAggregatedList'
{ _atalNextPageToken = Nothing
, _atalKind = "compute#acceleratorTypeAggregatedList"
, _atalItems = Nothing
, _atalSelfLink = Nothing
, _atalWarning = Nothing
, _atalId = Nothing
}
atalNextPageToken :: Lens' AcceleratorTypeAggregatedList (Maybe Text)
atalNextPageToken
= lens _atalNextPageToken
(\ s a -> s{_atalNextPageToken = a})
atalKind :: Lens' AcceleratorTypeAggregatedList Text
atalKind = lens _atalKind (\ s a -> s{_atalKind = a})
atalItems :: Lens' AcceleratorTypeAggregatedList (Maybe AcceleratorTypeAggregatedListItems)
atalItems
= lens _atalItems (\ s a -> s{_atalItems = a})
atalSelfLink :: Lens' AcceleratorTypeAggregatedList (Maybe Text)
atalSelfLink
= lens _atalSelfLink (\ s a -> s{_atalSelfLink = a})
atalWarning :: Lens' AcceleratorTypeAggregatedList (Maybe AcceleratorTypeAggregatedListWarning)
atalWarning
= lens _atalWarning (\ s a -> s{_atalWarning = a})
atalId :: Lens' AcceleratorTypeAggregatedList (Maybe Text)
atalId = lens _atalId (\ s a -> s{_atalId = a})
instance FromJSON AcceleratorTypeAggregatedList where
parseJSON
= withObject "AcceleratorTypeAggregatedList"
(\ o ->
AcceleratorTypeAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#acceleratorTypeAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON AcceleratorTypeAggregatedList where
toJSON AcceleratorTypeAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _atalNextPageToken,
Just ("kind" .= _atalKind),
("items" .=) <$> _atalItems,
("selfLink" .=) <$> _atalSelfLink,
("warning" .=) <$> _atalWarning,
("id" .=) <$> _atalId])
newtype NetworkRoutingConfig =
NetworkRoutingConfig'
{ _nrcRoutingMode :: Maybe NetworkRoutingConfigRoutingMode
}
deriving (Eq, Show, Data, Typeable, Generic)
networkRoutingConfig
:: NetworkRoutingConfig
networkRoutingConfig = NetworkRoutingConfig' {_nrcRoutingMode = Nothing}
nrcRoutingMode :: Lens' NetworkRoutingConfig (Maybe NetworkRoutingConfigRoutingMode)
nrcRoutingMode
= lens _nrcRoutingMode
(\ s a -> s{_nrcRoutingMode = a})
instance FromJSON NetworkRoutingConfig where
parseJSON
= withObject "NetworkRoutingConfig"
(\ o ->
NetworkRoutingConfig' <$> (o .:? "routingMode"))
instance ToJSON NetworkRoutingConfig where
toJSON NetworkRoutingConfig'{..}
= object
(catMaybes [("routingMode" .=) <$> _nrcRoutingMode])
data NodeTemplateListWarning =
NodeTemplateListWarning'
{ _nodData :: !(Maybe [NodeTemplateListWarningDataItem])
, _nodCode :: !(Maybe NodeTemplateListWarningCode)
, _nodMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateListWarning
:: NodeTemplateListWarning
nodeTemplateListWarning =
NodeTemplateListWarning'
{_nodData = Nothing, _nodCode = Nothing, _nodMessage = Nothing}
nodData :: Lens' NodeTemplateListWarning [NodeTemplateListWarningDataItem]
nodData
= lens _nodData (\ s a -> s{_nodData = a}) . _Default
. _Coerce
nodCode :: Lens' NodeTemplateListWarning (Maybe NodeTemplateListWarningCode)
nodCode = lens _nodCode (\ s a -> s{_nodCode = a})
nodMessage :: Lens' NodeTemplateListWarning (Maybe Text)
nodMessage
= lens _nodMessage (\ s a -> s{_nodMessage = a})
instance FromJSON NodeTemplateListWarning where
parseJSON
= withObject "NodeTemplateListWarning"
(\ o ->
NodeTemplateListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeTemplateListWarning where
toJSON NodeTemplateListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _nodData, ("code" .=) <$> _nodCode,
("message" .=) <$> _nodMessage])
newtype InstanceGroupManagersListManagedInstancesResponse =
InstanceGroupManagersListManagedInstancesResponse'
{ _igmlmirManagedInstances :: Maybe [ManagedInstance]
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersListManagedInstancesResponse
:: InstanceGroupManagersListManagedInstancesResponse
instanceGroupManagersListManagedInstancesResponse =
InstanceGroupManagersListManagedInstancesResponse'
{_igmlmirManagedInstances = Nothing}
igmlmirManagedInstances :: Lens' InstanceGroupManagersListManagedInstancesResponse [ManagedInstance]
igmlmirManagedInstances
= lens _igmlmirManagedInstances
(\ s a -> s{_igmlmirManagedInstances = a})
. _Default
. _Coerce
instance FromJSON
InstanceGroupManagersListManagedInstancesResponse
where
parseJSON
= withObject
"InstanceGroupManagersListManagedInstancesResponse"
(\ o ->
InstanceGroupManagersListManagedInstancesResponse'
<$> (o .:? "managedInstances" .!= mempty))
instance ToJSON
InstanceGroupManagersListManagedInstancesResponse
where
toJSON
InstanceGroupManagersListManagedInstancesResponse'{..}
= object
(catMaybes
[("managedInstances" .=) <$>
_igmlmirManagedInstances])
data InstanceProperties =
InstanceProperties'
{ _ipServiceAccounts :: !(Maybe [ServiceAccount])
, _ipNetworkInterfaces :: !(Maybe [NetworkInterface])
, _ipGuestAccelerators :: !(Maybe [AcceleratorConfig])
, _ipMachineType :: !(Maybe Text)
, _ipMetadata :: !(Maybe Metadata)
, _ipShieldedInstanceConfig :: !(Maybe ShieldedInstanceConfig)
, _ipLabels :: !(Maybe InstancePropertiesLabels)
, _ipScheduling :: !(Maybe Scheduling)
, _ipMinCPUPlatform :: !(Maybe Text)
, _ipDisks :: !(Maybe [AttachedDisk])
, _ipCanIPForward :: !(Maybe Bool)
, _ipDescription :: !(Maybe Text)
, _ipTags :: !(Maybe Tags)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceProperties
:: InstanceProperties
instanceProperties =
InstanceProperties'
{ _ipServiceAccounts = Nothing
, _ipNetworkInterfaces = Nothing
, _ipGuestAccelerators = Nothing
, _ipMachineType = Nothing
, _ipMetadata = Nothing
, _ipShieldedInstanceConfig = Nothing
, _ipLabels = Nothing
, _ipScheduling = Nothing
, _ipMinCPUPlatform = Nothing
, _ipDisks = Nothing
, _ipCanIPForward = Nothing
, _ipDescription = Nothing
, _ipTags = Nothing
}
ipServiceAccounts :: Lens' InstanceProperties [ServiceAccount]
ipServiceAccounts
= lens _ipServiceAccounts
(\ s a -> s{_ipServiceAccounts = a})
. _Default
. _Coerce
ipNetworkInterfaces :: Lens' InstanceProperties [NetworkInterface]
ipNetworkInterfaces
= lens _ipNetworkInterfaces
(\ s a -> s{_ipNetworkInterfaces = a})
. _Default
. _Coerce
ipGuestAccelerators :: Lens' InstanceProperties [AcceleratorConfig]
ipGuestAccelerators
= lens _ipGuestAccelerators
(\ s a -> s{_ipGuestAccelerators = a})
. _Default
. _Coerce
ipMachineType :: Lens' InstanceProperties (Maybe Text)
ipMachineType
= lens _ipMachineType
(\ s a -> s{_ipMachineType = a})
ipMetadata :: Lens' InstanceProperties (Maybe Metadata)
ipMetadata
= lens _ipMetadata (\ s a -> s{_ipMetadata = a})
ipShieldedInstanceConfig :: Lens' InstanceProperties (Maybe ShieldedInstanceConfig)
ipShieldedInstanceConfig
= lens _ipShieldedInstanceConfig
(\ s a -> s{_ipShieldedInstanceConfig = a})
ipLabels :: Lens' InstanceProperties (Maybe InstancePropertiesLabels)
ipLabels = lens _ipLabels (\ s a -> s{_ipLabels = a})
ipScheduling :: Lens' InstanceProperties (Maybe Scheduling)
ipScheduling
= lens _ipScheduling (\ s a -> s{_ipScheduling = a})
ipMinCPUPlatform :: Lens' InstanceProperties (Maybe Text)
ipMinCPUPlatform
= lens _ipMinCPUPlatform
(\ s a -> s{_ipMinCPUPlatform = a})
ipDisks :: Lens' InstanceProperties [AttachedDisk]
ipDisks
= lens _ipDisks (\ s a -> s{_ipDisks = a}) . _Default
. _Coerce
ipCanIPForward :: Lens' InstanceProperties (Maybe Bool)
ipCanIPForward
= lens _ipCanIPForward
(\ s a -> s{_ipCanIPForward = a})
ipDescription :: Lens' InstanceProperties (Maybe Text)
ipDescription
= lens _ipDescription
(\ s a -> s{_ipDescription = a})
ipTags :: Lens' InstanceProperties (Maybe Tags)
ipTags = lens _ipTags (\ s a -> s{_ipTags = a})
instance FromJSON InstanceProperties where
parseJSON
= withObject "InstanceProperties"
(\ o ->
InstanceProperties' <$>
(o .:? "serviceAccounts" .!= mempty) <*>
(o .:? "networkInterfaces" .!= mempty)
<*> (o .:? "guestAccelerators" .!= mempty)
<*> (o .:? "machineType")
<*> (o .:? "metadata")
<*> (o .:? "shieldedInstanceConfig")
<*> (o .:? "labels")
<*> (o .:? "scheduling")
<*> (o .:? "minCpuPlatform")
<*> (o .:? "disks" .!= mempty)
<*> (o .:? "canIpForward")
<*> (o .:? "description")
<*> (o .:? "tags"))
instance ToJSON InstanceProperties where
toJSON InstanceProperties'{..}
= object
(catMaybes
[("serviceAccounts" .=) <$> _ipServiceAccounts,
("networkInterfaces" .=) <$> _ipNetworkInterfaces,
("guestAccelerators" .=) <$> _ipGuestAccelerators,
("machineType" .=) <$> _ipMachineType,
("metadata" .=) <$> _ipMetadata,
("shieldedInstanceConfig" .=) <$>
_ipShieldedInstanceConfig,
("labels" .=) <$> _ipLabels,
("scheduling" .=) <$> _ipScheduling,
("minCpuPlatform" .=) <$> _ipMinCPUPlatform,
("disks" .=) <$> _ipDisks,
("canIpForward" .=) <$> _ipCanIPForward,
("description" .=) <$> _ipDescription,
("tags" .=) <$> _ipTags])
newtype ProjectsListXpnHostsRequest =
ProjectsListXpnHostsRequest'
{ _plxhrOrganization :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
projectsListXpnHostsRequest
:: ProjectsListXpnHostsRequest
projectsListXpnHostsRequest =
ProjectsListXpnHostsRequest' {_plxhrOrganization = Nothing}
plxhrOrganization :: Lens' ProjectsListXpnHostsRequest (Maybe Text)
plxhrOrganization
= lens _plxhrOrganization
(\ s a -> s{_plxhrOrganization = a})
instance FromJSON ProjectsListXpnHostsRequest where
parseJSON
= withObject "ProjectsListXpnHostsRequest"
(\ o ->
ProjectsListXpnHostsRequest' <$>
(o .:? "organization"))
instance ToJSON ProjectsListXpnHostsRequest where
toJSON ProjectsListXpnHostsRequest'{..}
= object
(catMaybes
[("organization" .=) <$> _plxhrOrganization])
data RegionListWarning =
RegionListWarning'
{ _rlwData :: !(Maybe [RegionListWarningDataItem])
, _rlwCode :: !(Maybe RegionListWarningCode)
, _rlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionListWarning
:: RegionListWarning
regionListWarning =
RegionListWarning'
{_rlwData = Nothing, _rlwCode = Nothing, _rlwMessage = Nothing}
rlwData :: Lens' RegionListWarning [RegionListWarningDataItem]
rlwData
= lens _rlwData (\ s a -> s{_rlwData = a}) . _Default
. _Coerce
rlwCode :: Lens' RegionListWarning (Maybe RegionListWarningCode)
rlwCode = lens _rlwCode (\ s a -> s{_rlwCode = a})
rlwMessage :: Lens' RegionListWarning (Maybe Text)
rlwMessage
= lens _rlwMessage (\ s a -> s{_rlwMessage = a})
instance FromJSON RegionListWarning where
parseJSON
= withObject "RegionListWarning"
(\ o ->
RegionListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RegionListWarning where
toJSON RegionListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rlwData, ("code" .=) <$> _rlwCode,
("message" .=) <$> _rlwMessage])
data HTTP2HealthCheck =
HTTP2HealthCheck'
{ _httphcResponse :: !(Maybe Text)
, _httphcPortSpecification :: !(Maybe HTTP2HealthCheckPortSpecification)
, _httphcRequestPath :: !(Maybe Text)
, _httphcHost :: !(Maybe Text)
, _httphcProxyHeader :: !(Maybe HTTP2HealthCheckProxyHeader)
, _httphcPortName :: !(Maybe Text)
, _httphcPort :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
hTTP2HealthCheck
:: HTTP2HealthCheck
hTTP2HealthCheck =
HTTP2HealthCheck'
{ _httphcResponse = Nothing
, _httphcPortSpecification = Nothing
, _httphcRequestPath = Nothing
, _httphcHost = Nothing
, _httphcProxyHeader = Nothing
, _httphcPortName = Nothing
, _httphcPort = Nothing
}
httphcResponse :: Lens' HTTP2HealthCheck (Maybe Text)
httphcResponse
= lens _httphcResponse
(\ s a -> s{_httphcResponse = a})
httphcPortSpecification :: Lens' HTTP2HealthCheck (Maybe HTTP2HealthCheckPortSpecification)
httphcPortSpecification
= lens _httphcPortSpecification
(\ s a -> s{_httphcPortSpecification = a})
httphcRequestPath :: Lens' HTTP2HealthCheck (Maybe Text)
httphcRequestPath
= lens _httphcRequestPath
(\ s a -> s{_httphcRequestPath = a})
httphcHost :: Lens' HTTP2HealthCheck (Maybe Text)
httphcHost
= lens _httphcHost (\ s a -> s{_httphcHost = a})
httphcProxyHeader :: Lens' HTTP2HealthCheck (Maybe HTTP2HealthCheckProxyHeader)
httphcProxyHeader
= lens _httphcProxyHeader
(\ s a -> s{_httphcProxyHeader = a})
httphcPortName :: Lens' HTTP2HealthCheck (Maybe Text)
httphcPortName
= lens _httphcPortName
(\ s a -> s{_httphcPortName = a})
httphcPort :: Lens' HTTP2HealthCheck (Maybe Int32)
httphcPort
= lens _httphcPort (\ s a -> s{_httphcPort = a}) .
mapping _Coerce
instance FromJSON HTTP2HealthCheck where
parseJSON
= withObject "HTTP2HealthCheck"
(\ o ->
HTTP2HealthCheck' <$>
(o .:? "response") <*> (o .:? "portSpecification")
<*> (o .:? "requestPath")
<*> (o .:? "host")
<*> (o .:? "proxyHeader")
<*> (o .:? "portName")
<*> (o .:? "port"))
instance ToJSON HTTP2HealthCheck where
toJSON HTTP2HealthCheck'{..}
= object
(catMaybes
[("response" .=) <$> _httphcResponse,
("portSpecification" .=) <$>
_httphcPortSpecification,
("requestPath" .=) <$> _httphcRequestPath,
("host" .=) <$> _httphcHost,
("proxyHeader" .=) <$> _httphcProxyHeader,
("portName" .=) <$> _httphcPortName,
("port" .=) <$> _httphcPort])
data NodeGroupsScopedList =
NodeGroupsScopedList'
{ _ngslNodeGroups :: !(Maybe [NodeGroup])
, _ngslWarning :: !(Maybe NodeGroupsScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsScopedList
:: NodeGroupsScopedList
nodeGroupsScopedList =
NodeGroupsScopedList' {_ngslNodeGroups = Nothing, _ngslWarning = Nothing}
ngslNodeGroups :: Lens' NodeGroupsScopedList [NodeGroup]
ngslNodeGroups
= lens _ngslNodeGroups
(\ s a -> s{_ngslNodeGroups = a})
. _Default
. _Coerce
ngslWarning :: Lens' NodeGroupsScopedList (Maybe NodeGroupsScopedListWarning)
ngslWarning
= lens _ngslWarning (\ s a -> s{_ngslWarning = a})
instance FromJSON NodeGroupsScopedList where
parseJSON
= withObject "NodeGroupsScopedList"
(\ o ->
NodeGroupsScopedList' <$>
(o .:? "nodeGroups" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON NodeGroupsScopedList where
toJSON NodeGroupsScopedList'{..}
= object
(catMaybes
[("nodeGroups" .=) <$> _ngslNodeGroups,
("warning" .=) <$> _ngslWarning])
data DiskTypesScopedListWarning =
DiskTypesScopedListWarning'
{ _dtslwData :: !(Maybe [DiskTypesScopedListWarningDataItem])
, _dtslwCode :: !(Maybe DiskTypesScopedListWarningCode)
, _dtslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypesScopedListWarning
:: DiskTypesScopedListWarning
diskTypesScopedListWarning =
DiskTypesScopedListWarning'
{_dtslwData = Nothing, _dtslwCode = Nothing, _dtslwMessage = Nothing}
dtslwData :: Lens' DiskTypesScopedListWarning [DiskTypesScopedListWarningDataItem]
dtslwData
= lens _dtslwData (\ s a -> s{_dtslwData = a}) .
_Default
. _Coerce
dtslwCode :: Lens' DiskTypesScopedListWarning (Maybe DiskTypesScopedListWarningCode)
dtslwCode
= lens _dtslwCode (\ s a -> s{_dtslwCode = a})
dtslwMessage :: Lens' DiskTypesScopedListWarning (Maybe Text)
dtslwMessage
= lens _dtslwMessage (\ s a -> s{_dtslwMessage = a})
instance FromJSON DiskTypesScopedListWarning where
parseJSON
= withObject "DiskTypesScopedListWarning"
(\ o ->
DiskTypesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON DiskTypesScopedListWarning where
toJSON DiskTypesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _dtslwData,
("code" .=) <$> _dtslwCode,
("message" .=) <$> _dtslwMessage])
data RegionInstanceGroupManagerListWarningDataItem =
RegionInstanceGroupManagerListWarningDataItem'
{ _rigmlwdiValue :: !(Maybe Text)
, _rigmlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagerListWarningDataItem
:: RegionInstanceGroupManagerListWarningDataItem
regionInstanceGroupManagerListWarningDataItem =
RegionInstanceGroupManagerListWarningDataItem'
{_rigmlwdiValue = Nothing, _rigmlwdiKey = Nothing}
rigmlwdiValue :: Lens' RegionInstanceGroupManagerListWarningDataItem (Maybe Text)
rigmlwdiValue
= lens _rigmlwdiValue
(\ s a -> s{_rigmlwdiValue = a})
rigmlwdiKey :: Lens' RegionInstanceGroupManagerListWarningDataItem (Maybe Text)
rigmlwdiKey
= lens _rigmlwdiKey (\ s a -> s{_rigmlwdiKey = a})
instance FromJSON
RegionInstanceGroupManagerListWarningDataItem
where
parseJSON
= withObject
"RegionInstanceGroupManagerListWarningDataItem"
(\ o ->
RegionInstanceGroupManagerListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
RegionInstanceGroupManagerListWarningDataItem
where
toJSON
RegionInstanceGroupManagerListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _rigmlwdiValue,
("key" .=) <$> _rigmlwdiKey])
data AttachedDiskInitializeParams =
AttachedDiskInitializeParams'
{ _adipSourceImage :: !(Maybe Text)
, _adipDiskSizeGb :: !(Maybe (Textual Int64))
, _adipDiskName :: !(Maybe Text)
, _adipSourceImageEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _adipDiskType :: !(Maybe Text)
, _adipLabels :: !(Maybe AttachedDiskInitializeParamsLabels)
, _adipDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
attachedDiskInitializeParams
:: AttachedDiskInitializeParams
attachedDiskInitializeParams =
AttachedDiskInitializeParams'
{ _adipSourceImage = Nothing
, _adipDiskSizeGb = Nothing
, _adipDiskName = Nothing
, _adipSourceImageEncryptionKey = Nothing
, _adipDiskType = Nothing
, _adipLabels = Nothing
, _adipDescription = Nothing
}
adipSourceImage :: Lens' AttachedDiskInitializeParams (Maybe Text)
adipSourceImage
= lens _adipSourceImage
(\ s a -> s{_adipSourceImage = a})
adipDiskSizeGb :: Lens' AttachedDiskInitializeParams (Maybe Int64)
adipDiskSizeGb
= lens _adipDiskSizeGb
(\ s a -> s{_adipDiskSizeGb = a})
. mapping _Coerce
adipDiskName :: Lens' AttachedDiskInitializeParams (Maybe Text)
adipDiskName
= lens _adipDiskName (\ s a -> s{_adipDiskName = a})
adipSourceImageEncryptionKey :: Lens' AttachedDiskInitializeParams (Maybe CustomerEncryptionKey)
adipSourceImageEncryptionKey
= lens _adipSourceImageEncryptionKey
(\ s a -> s{_adipSourceImageEncryptionKey = a})
adipDiskType :: Lens' AttachedDiskInitializeParams (Maybe Text)
adipDiskType
= lens _adipDiskType (\ s a -> s{_adipDiskType = a})
adipLabels :: Lens' AttachedDiskInitializeParams (Maybe AttachedDiskInitializeParamsLabels)
adipLabels
= lens _adipLabels (\ s a -> s{_adipLabels = a})
adipDescription :: Lens' AttachedDiskInitializeParams (Maybe Text)
adipDescription
= lens _adipDescription
(\ s a -> s{_adipDescription = a})
instance FromJSON AttachedDiskInitializeParams where
parseJSON
= withObject "AttachedDiskInitializeParams"
(\ o ->
AttachedDiskInitializeParams' <$>
(o .:? "sourceImage") <*> (o .:? "diskSizeGb") <*>
(o .:? "diskName")
<*> (o .:? "sourceImageEncryptionKey")
<*> (o .:? "diskType")
<*> (o .:? "labels")
<*> (o .:? "description"))
instance ToJSON AttachedDiskInitializeParams where
toJSON AttachedDiskInitializeParams'{..}
= object
(catMaybes
[("sourceImage" .=) <$> _adipSourceImage,
("diskSizeGb" .=) <$> _adipDiskSizeGb,
("diskName" .=) <$> _adipDiskName,
("sourceImageEncryptionKey" .=) <$>
_adipSourceImageEncryptionKey,
("diskType" .=) <$> _adipDiskType,
("labels" .=) <$> _adipLabels,
("description" .=) <$> _adipDescription])
data UsableSubnetworkSecondaryRange =
UsableSubnetworkSecondaryRange'
{ _ussrRangeName :: !(Maybe Text)
, _ussrIPCIdRRange :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
usableSubnetworkSecondaryRange
:: UsableSubnetworkSecondaryRange
usableSubnetworkSecondaryRange =
UsableSubnetworkSecondaryRange'
{_ussrRangeName = Nothing, _ussrIPCIdRRange = Nothing}
ussrRangeName :: Lens' UsableSubnetworkSecondaryRange (Maybe Text)
ussrRangeName
= lens _ussrRangeName
(\ s a -> s{_ussrRangeName = a})
ussrIPCIdRRange :: Lens' UsableSubnetworkSecondaryRange (Maybe Text)
ussrIPCIdRRange
= lens _ussrIPCIdRRange
(\ s a -> s{_ussrIPCIdRRange = a})
instance FromJSON UsableSubnetworkSecondaryRange
where
parseJSON
= withObject "UsableSubnetworkSecondaryRange"
(\ o ->
UsableSubnetworkSecondaryRange' <$>
(o .:? "rangeName") <*> (o .:? "ipCidrRange"))
instance ToJSON UsableSubnetworkSecondaryRange where
toJSON UsableSubnetworkSecondaryRange'{..}
= object
(catMaybes
[("rangeName" .=) <$> _ussrRangeName,
("ipCidrRange" .=) <$> _ussrIPCIdRRange])
newtype NetworkEndpointGroupsAttachEndpointsRequest =
NetworkEndpointGroupsAttachEndpointsRequest'
{ _negaerNetworkEndpoints :: Maybe [NetworkEndpoint]
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsAttachEndpointsRequest
:: NetworkEndpointGroupsAttachEndpointsRequest
networkEndpointGroupsAttachEndpointsRequest =
NetworkEndpointGroupsAttachEndpointsRequest'
{_negaerNetworkEndpoints = Nothing}
negaerNetworkEndpoints :: Lens' NetworkEndpointGroupsAttachEndpointsRequest [NetworkEndpoint]
negaerNetworkEndpoints
= lens _negaerNetworkEndpoints
(\ s a -> s{_negaerNetworkEndpoints = a})
. _Default
. _Coerce
instance FromJSON
NetworkEndpointGroupsAttachEndpointsRequest
where
parseJSON
= withObject
"NetworkEndpointGroupsAttachEndpointsRequest"
(\ o ->
NetworkEndpointGroupsAttachEndpointsRequest' <$>
(o .:? "networkEndpoints" .!= mempty))
instance ToJSON
NetworkEndpointGroupsAttachEndpointsRequest
where
toJSON
NetworkEndpointGroupsAttachEndpointsRequest'{..}
= object
(catMaybes
[("networkEndpoints" .=) <$>
_negaerNetworkEndpoints])
data AddressesScopedListWarningDataItem =
AddressesScopedListWarningDataItem'
{ _aslwdiValue :: !(Maybe Text)
, _aslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressesScopedListWarningDataItem
:: AddressesScopedListWarningDataItem
addressesScopedListWarningDataItem =
AddressesScopedListWarningDataItem'
{_aslwdiValue = Nothing, _aslwdiKey = Nothing}
aslwdiValue :: Lens' AddressesScopedListWarningDataItem (Maybe Text)
aslwdiValue
= lens _aslwdiValue (\ s a -> s{_aslwdiValue = a})
aslwdiKey :: Lens' AddressesScopedListWarningDataItem (Maybe Text)
aslwdiKey
= lens _aslwdiKey (\ s a -> s{_aslwdiKey = a})
instance FromJSON AddressesScopedListWarningDataItem
where
parseJSON
= withObject "AddressesScopedListWarningDataItem"
(\ o ->
AddressesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON AddressesScopedListWarningDataItem
where
toJSON AddressesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _aslwdiValue,
("key" .=) <$> _aslwdiKey])
data InstanceGroupListWarningDataItem =
InstanceGroupListWarningDataItem'
{ _iglwdiValue :: !(Maybe Text)
, _iglwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupListWarningDataItem
:: InstanceGroupListWarningDataItem
instanceGroupListWarningDataItem =
InstanceGroupListWarningDataItem'
{_iglwdiValue = Nothing, _iglwdiKey = Nothing}
iglwdiValue :: Lens' InstanceGroupListWarningDataItem (Maybe Text)
iglwdiValue
= lens _iglwdiValue (\ s a -> s{_iglwdiValue = a})
iglwdiKey :: Lens' InstanceGroupListWarningDataItem (Maybe Text)
iglwdiKey
= lens _iglwdiKey (\ s a -> s{_iglwdiKey = a})
instance FromJSON InstanceGroupListWarningDataItem
where
parseJSON
= withObject "InstanceGroupListWarningDataItem"
(\ o ->
InstanceGroupListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON InstanceGroupListWarningDataItem
where
toJSON InstanceGroupListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _iglwdiValue,
("key" .=) <$> _iglwdiKey])
data NetworkInterface =
NetworkInterface'
{ _niKind :: !Text
, _niFingerprint :: !(Maybe Bytes)
, _niAliasIPRanges :: !(Maybe [AliasIPRange])
, _niNetwork :: !(Maybe Text)
, _niName :: !(Maybe Text)
, _niNetworkIP :: !(Maybe Text)
, _niSubnetwork :: !(Maybe Text)
, _niAccessConfigs :: !(Maybe [AccessConfig])
}
deriving (Eq, Show, Data, Typeable, Generic)
networkInterface
:: NetworkInterface
networkInterface =
NetworkInterface'
{ _niKind = "compute#networkInterface"
, _niFingerprint = Nothing
, _niAliasIPRanges = Nothing
, _niNetwork = Nothing
, _niName = Nothing
, _niNetworkIP = Nothing
, _niSubnetwork = Nothing
, _niAccessConfigs = Nothing
}
niKind :: Lens' NetworkInterface Text
niKind = lens _niKind (\ s a -> s{_niKind = a})
niFingerprint :: Lens' NetworkInterface (Maybe ByteString)
niFingerprint
= lens _niFingerprint
(\ s a -> s{_niFingerprint = a})
. mapping _Bytes
niAliasIPRanges :: Lens' NetworkInterface [AliasIPRange]
niAliasIPRanges
= lens _niAliasIPRanges
(\ s a -> s{_niAliasIPRanges = a})
. _Default
. _Coerce
niNetwork :: Lens' NetworkInterface (Maybe Text)
niNetwork
= lens _niNetwork (\ s a -> s{_niNetwork = a})
niName :: Lens' NetworkInterface (Maybe Text)
niName = lens _niName (\ s a -> s{_niName = a})
niNetworkIP :: Lens' NetworkInterface (Maybe Text)
niNetworkIP
= lens _niNetworkIP (\ s a -> s{_niNetworkIP = a})
niSubnetwork :: Lens' NetworkInterface (Maybe Text)
niSubnetwork
= lens _niSubnetwork (\ s a -> s{_niSubnetwork = a})
niAccessConfigs :: Lens' NetworkInterface [AccessConfig]
niAccessConfigs
= lens _niAccessConfigs
(\ s a -> s{_niAccessConfigs = a})
. _Default
. _Coerce
instance FromJSON NetworkInterface where
parseJSON
= withObject "NetworkInterface"
(\ o ->
NetworkInterface' <$>
(o .:? "kind" .!= "compute#networkInterface") <*>
(o .:? "fingerprint")
<*> (o .:? "aliasIpRanges" .!= mempty)
<*> (o .:? "network")
<*> (o .:? "name")
<*> (o .:? "networkIP")
<*> (o .:? "subnetwork")
<*> (o .:? "accessConfigs" .!= mempty))
instance ToJSON NetworkInterface where
toJSON NetworkInterface'{..}
= object
(catMaybes
[Just ("kind" .= _niKind),
("fingerprint" .=) <$> _niFingerprint,
("aliasIpRanges" .=) <$> _niAliasIPRanges,
("network" .=) <$> _niNetwork,
("name" .=) <$> _niName,
("networkIP" .=) <$> _niNetworkIP,
("subnetwork" .=) <$> _niSubnetwork,
("accessConfigs" .=) <$> _niAccessConfigs])
data RouterListWarning =
RouterListWarning'
{ _rData :: !(Maybe [RouterListWarningDataItem])
, _rCode :: !(Maybe RouterListWarningCode)
, _rMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerListWarning
:: RouterListWarning
routerListWarning =
RouterListWarning' {_rData = Nothing, _rCode = Nothing, _rMessage = Nothing}
rData :: Lens' RouterListWarning [RouterListWarningDataItem]
rData
= lens _rData (\ s a -> s{_rData = a}) . _Default .
_Coerce
rCode :: Lens' RouterListWarning (Maybe RouterListWarningCode)
rCode = lens _rCode (\ s a -> s{_rCode = a})
rMessage :: Lens' RouterListWarning (Maybe Text)
rMessage = lens _rMessage (\ s a -> s{_rMessage = a})
instance FromJSON RouterListWarning where
parseJSON
= withObject "RouterListWarning"
(\ o ->
RouterListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RouterListWarning where
toJSON RouterListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rData, ("code" .=) <$> _rCode,
("message" .=) <$> _rMessage])
data FirewallListWarningDataItem =
FirewallListWarningDataItem'
{ _flwdiValue :: !(Maybe Text)
, _flwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
firewallListWarningDataItem
:: FirewallListWarningDataItem
firewallListWarningDataItem =
FirewallListWarningDataItem' {_flwdiValue = Nothing, _flwdiKey = Nothing}
flwdiValue :: Lens' FirewallListWarningDataItem (Maybe Text)
flwdiValue
= lens _flwdiValue (\ s a -> s{_flwdiValue = a})
flwdiKey :: Lens' FirewallListWarningDataItem (Maybe Text)
flwdiKey = lens _flwdiKey (\ s a -> s{_flwdiKey = a})
instance FromJSON FirewallListWarningDataItem where
parseJSON
= withObject "FirewallListWarningDataItem"
(\ o ->
FirewallListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON FirewallListWarningDataItem where
toJSON FirewallListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _flwdiValue,
("key" .=) <$> _flwdiKey])
newtype TargetPoolsRemoveHealthCheckRequest =
TargetPoolsRemoveHealthCheckRequest'
{ _tprhcrHealthChecks :: Maybe [HealthCheckReference]
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolsRemoveHealthCheckRequest
:: TargetPoolsRemoveHealthCheckRequest
targetPoolsRemoveHealthCheckRequest =
TargetPoolsRemoveHealthCheckRequest' {_tprhcrHealthChecks = Nothing}
tprhcrHealthChecks :: Lens' TargetPoolsRemoveHealthCheckRequest [HealthCheckReference]
tprhcrHealthChecks
= lens _tprhcrHealthChecks
(\ s a -> s{_tprhcrHealthChecks = a})
. _Default
. _Coerce
instance FromJSON TargetPoolsRemoveHealthCheckRequest
where
parseJSON
= withObject "TargetPoolsRemoveHealthCheckRequest"
(\ o ->
TargetPoolsRemoveHealthCheckRequest' <$>
(o .:? "healthChecks" .!= mempty))
instance ToJSON TargetPoolsRemoveHealthCheckRequest
where
toJSON TargetPoolsRemoveHealthCheckRequest'{..}
= object
(catMaybes
[("healthChecks" .=) <$> _tprhcrHealthChecks])
data RegionInstanceGroupManagersSetTargetPoolsRequest =
RegionInstanceGroupManagersSetTargetPoolsRequest'
{ _rigmstprFingerprint :: !(Maybe Bytes)
, _rigmstprTargetPools :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagersSetTargetPoolsRequest
:: RegionInstanceGroupManagersSetTargetPoolsRequest
regionInstanceGroupManagersSetTargetPoolsRequest =
RegionInstanceGroupManagersSetTargetPoolsRequest'
{_rigmstprFingerprint = Nothing, _rigmstprTargetPools = Nothing}
rigmstprFingerprint :: Lens' RegionInstanceGroupManagersSetTargetPoolsRequest (Maybe ByteString)
rigmstprFingerprint
= lens _rigmstprFingerprint
(\ s a -> s{_rigmstprFingerprint = a})
. mapping _Bytes
rigmstprTargetPools :: Lens' RegionInstanceGroupManagersSetTargetPoolsRequest [Text]
rigmstprTargetPools
= lens _rigmstprTargetPools
(\ s a -> s{_rigmstprTargetPools = a})
. _Default
. _Coerce
instance FromJSON
RegionInstanceGroupManagersSetTargetPoolsRequest
where
parseJSON
= withObject
"RegionInstanceGroupManagersSetTargetPoolsRequest"
(\ o ->
RegionInstanceGroupManagersSetTargetPoolsRequest' <$>
(o .:? "fingerprint") <*>
(o .:? "targetPools" .!= mempty))
instance ToJSON
RegionInstanceGroupManagersSetTargetPoolsRequest
where
toJSON
RegionInstanceGroupManagersSetTargetPoolsRequest'{..}
= object
(catMaybes
[("fingerprint" .=) <$> _rigmstprFingerprint,
("targetPools" .=) <$> _rigmstprTargetPools])
data BackendBucketCdnPolicy =
BackendBucketCdnPolicy'
{ _bbcpSignedURLCacheMaxAgeSec :: !(Maybe (Textual Int64))
, _bbcpSignedURLKeyNames :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
backendBucketCdnPolicy
:: BackendBucketCdnPolicy
backendBucketCdnPolicy =
BackendBucketCdnPolicy'
{_bbcpSignedURLCacheMaxAgeSec = Nothing, _bbcpSignedURLKeyNames = Nothing}
bbcpSignedURLCacheMaxAgeSec :: Lens' BackendBucketCdnPolicy (Maybe Int64)
bbcpSignedURLCacheMaxAgeSec
= lens _bbcpSignedURLCacheMaxAgeSec
(\ s a -> s{_bbcpSignedURLCacheMaxAgeSec = a})
. mapping _Coerce
bbcpSignedURLKeyNames :: Lens' BackendBucketCdnPolicy [Text]
bbcpSignedURLKeyNames
= lens _bbcpSignedURLKeyNames
(\ s a -> s{_bbcpSignedURLKeyNames = a})
. _Default
. _Coerce
instance FromJSON BackendBucketCdnPolicy where
parseJSON
= withObject "BackendBucketCdnPolicy"
(\ o ->
BackendBucketCdnPolicy' <$>
(o .:? "signedUrlCacheMaxAgeSec") <*>
(o .:? "signedUrlKeyNames" .!= mempty))
instance ToJSON BackendBucketCdnPolicy where
toJSON BackendBucketCdnPolicy'{..}
= object
(catMaybes
[("signedUrlCacheMaxAgeSec" .=) <$>
_bbcpSignedURLCacheMaxAgeSec,
("signedUrlKeyNames" .=) <$> _bbcpSignedURLKeyNames])
data TargetSSLProxyList =
TargetSSLProxyList'
{ _tsplNextPageToken :: !(Maybe Text)
, _tsplKind :: !Text
, _tsplItems :: !(Maybe [TargetSSLProxy])
, _tsplSelfLink :: !(Maybe Text)
, _tsplWarning :: !(Maybe TargetSSLProxyListWarning)
, _tsplId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetSSLProxyList
:: TargetSSLProxyList
targetSSLProxyList =
TargetSSLProxyList'
{ _tsplNextPageToken = Nothing
, _tsplKind = "compute#targetSslProxyList"
, _tsplItems = Nothing
, _tsplSelfLink = Nothing
, _tsplWarning = Nothing
, _tsplId = Nothing
}
tsplNextPageToken :: Lens' TargetSSLProxyList (Maybe Text)
tsplNextPageToken
= lens _tsplNextPageToken
(\ s a -> s{_tsplNextPageToken = a})
tsplKind :: Lens' TargetSSLProxyList Text
tsplKind = lens _tsplKind (\ s a -> s{_tsplKind = a})
tsplItems :: Lens' TargetSSLProxyList [TargetSSLProxy]
tsplItems
= lens _tsplItems (\ s a -> s{_tsplItems = a}) .
_Default
. _Coerce
tsplSelfLink :: Lens' TargetSSLProxyList (Maybe Text)
tsplSelfLink
= lens _tsplSelfLink (\ s a -> s{_tsplSelfLink = a})
tsplWarning :: Lens' TargetSSLProxyList (Maybe TargetSSLProxyListWarning)
tsplWarning
= lens _tsplWarning (\ s a -> s{_tsplWarning = a})
tsplId :: Lens' TargetSSLProxyList (Maybe Text)
tsplId = lens _tsplId (\ s a -> s{_tsplId = a})
instance FromJSON TargetSSLProxyList where
parseJSON
= withObject "TargetSSLProxyList"
(\ o ->
TargetSSLProxyList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetSslProxyList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetSSLProxyList where
toJSON TargetSSLProxyList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _tsplNextPageToken,
Just ("kind" .= _tsplKind),
("items" .=) <$> _tsplItems,
("selfLink" .=) <$> _tsplSelfLink,
("warning" .=) <$> _tsplWarning,
("id" .=) <$> _tsplId])
data CustomerEncryptionKeyProtectedDisk =
CustomerEncryptionKeyProtectedDisk'
{ _cekpdDiskEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _cekpdSource :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
customerEncryptionKeyProtectedDisk
:: CustomerEncryptionKeyProtectedDisk
customerEncryptionKeyProtectedDisk =
CustomerEncryptionKeyProtectedDisk'
{_cekpdDiskEncryptionKey = Nothing, _cekpdSource = Nothing}
cekpdDiskEncryptionKey :: Lens' CustomerEncryptionKeyProtectedDisk (Maybe CustomerEncryptionKey)
cekpdDiskEncryptionKey
= lens _cekpdDiskEncryptionKey
(\ s a -> s{_cekpdDiskEncryptionKey = a})
cekpdSource :: Lens' CustomerEncryptionKeyProtectedDisk (Maybe Text)
cekpdSource
= lens _cekpdSource (\ s a -> s{_cekpdSource = a})
instance FromJSON CustomerEncryptionKeyProtectedDisk
where
parseJSON
= withObject "CustomerEncryptionKeyProtectedDisk"
(\ o ->
CustomerEncryptionKeyProtectedDisk' <$>
(o .:? "diskEncryptionKey") <*> (o .:? "source"))
instance ToJSON CustomerEncryptionKeyProtectedDisk
where
toJSON CustomerEncryptionKeyProtectedDisk'{..}
= object
(catMaybes
[("diskEncryptionKey" .=) <$>
_cekpdDiskEncryptionKey,
("source" .=) <$> _cekpdSource])
data InstanceTemplateList =
InstanceTemplateList'
{ _itlNextPageToken :: !(Maybe Text)
, _itlKind :: !Text
, _itlItems :: !(Maybe [InstanceTemplate])
, _itlSelfLink :: !(Maybe Text)
, _itlWarning :: !(Maybe InstanceTemplateListWarning)
, _itlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceTemplateList
:: InstanceTemplateList
instanceTemplateList =
InstanceTemplateList'
{ _itlNextPageToken = Nothing
, _itlKind = "compute#instanceTemplateList"
, _itlItems = Nothing
, _itlSelfLink = Nothing
, _itlWarning = Nothing
, _itlId = Nothing
}
itlNextPageToken :: Lens' InstanceTemplateList (Maybe Text)
itlNextPageToken
= lens _itlNextPageToken
(\ s a -> s{_itlNextPageToken = a})
itlKind :: Lens' InstanceTemplateList Text
itlKind = lens _itlKind (\ s a -> s{_itlKind = a})
itlItems :: Lens' InstanceTemplateList [InstanceTemplate]
itlItems
= lens _itlItems (\ s a -> s{_itlItems = a}) .
_Default
. _Coerce
itlSelfLink :: Lens' InstanceTemplateList (Maybe Text)
itlSelfLink
= lens _itlSelfLink (\ s a -> s{_itlSelfLink = a})
itlWarning :: Lens' InstanceTemplateList (Maybe InstanceTemplateListWarning)
itlWarning
= lens _itlWarning (\ s a -> s{_itlWarning = a})
itlId :: Lens' InstanceTemplateList (Maybe Text)
itlId = lens _itlId (\ s a -> s{_itlId = a})
instance FromJSON InstanceTemplateList where
parseJSON
= withObject "InstanceTemplateList"
(\ o ->
InstanceTemplateList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#instanceTemplateList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceTemplateList where
toJSON InstanceTemplateList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _itlNextPageToken,
Just ("kind" .= _itlKind),
("items" .=) <$> _itlItems,
("selfLink" .=) <$> _itlSelfLink,
("warning" .=) <$> _itlWarning,
("id" .=) <$> _itlId])
data Reference =
Reference'
{ _refKind :: !Text
, _refReferrer :: !(Maybe Text)
, _refReferenceType :: !(Maybe Text)
, _refTarget :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
reference
:: Reference
reference =
Reference'
{ _refKind = "compute#reference"
, _refReferrer = Nothing
, _refReferenceType = Nothing
, _refTarget = Nothing
}
refKind :: Lens' Reference Text
refKind = lens _refKind (\ s a -> s{_refKind = a})
refReferrer :: Lens' Reference (Maybe Text)
refReferrer
= lens _refReferrer (\ s a -> s{_refReferrer = a})
refReferenceType :: Lens' Reference (Maybe Text)
refReferenceType
= lens _refReferenceType
(\ s a -> s{_refReferenceType = a})
refTarget :: Lens' Reference (Maybe Text)
refTarget
= lens _refTarget (\ s a -> s{_refTarget = a})
instance FromJSON Reference where
parseJSON
= withObject "Reference"
(\ o ->
Reference' <$>
(o .:? "kind" .!= "compute#reference") <*>
(o .:? "referrer")
<*> (o .:? "referenceType")
<*> (o .:? "target"))
instance ToJSON Reference where
toJSON Reference'{..}
= object
(catMaybes
[Just ("kind" .= _refKind),
("referrer" .=) <$> _refReferrer,
("referenceType" .=) <$> _refReferenceType,
("target" .=) <$> _refTarget])
data InstanceGroupAggregatedListWarning =
InstanceGroupAggregatedListWarning'
{ _igalwData :: !(Maybe [InstanceGroupAggregatedListWarningDataItem])
, _igalwCode :: !(Maybe InstanceGroupAggregatedListWarningCode)
, _igalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupAggregatedListWarning
:: InstanceGroupAggregatedListWarning
instanceGroupAggregatedListWarning =
InstanceGroupAggregatedListWarning'
{_igalwData = Nothing, _igalwCode = Nothing, _igalwMessage = Nothing}
igalwData :: Lens' InstanceGroupAggregatedListWarning [InstanceGroupAggregatedListWarningDataItem]
igalwData
= lens _igalwData (\ s a -> s{_igalwData = a}) .
_Default
. _Coerce
igalwCode :: Lens' InstanceGroupAggregatedListWarning (Maybe InstanceGroupAggregatedListWarningCode)
igalwCode
= lens _igalwCode (\ s a -> s{_igalwCode = a})
igalwMessage :: Lens' InstanceGroupAggregatedListWarning (Maybe Text)
igalwMessage
= lens _igalwMessage (\ s a -> s{_igalwMessage = a})
instance FromJSON InstanceGroupAggregatedListWarning
where
parseJSON
= withObject "InstanceGroupAggregatedListWarning"
(\ o ->
InstanceGroupAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceGroupAggregatedListWarning
where
toJSON InstanceGroupAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _igalwData,
("code" .=) <$> _igalwCode,
("message" .=) <$> _igalwMessage])
data RouteList =
RouteList'
{ _rlNextPageToken :: !(Maybe Text)
, _rlKind :: !Text
, _rlItems :: !(Maybe [Route])
, _rlSelfLink :: !(Maybe Text)
, _rlWarning :: !(Maybe RouteListWarning)
, _rlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routeList
:: RouteList
routeList =
RouteList'
{ _rlNextPageToken = Nothing
, _rlKind = "compute#routeList"
, _rlItems = Nothing
, _rlSelfLink = Nothing
, _rlWarning = Nothing
, _rlId = Nothing
}
rlNextPageToken :: Lens' RouteList (Maybe Text)
rlNextPageToken
= lens _rlNextPageToken
(\ s a -> s{_rlNextPageToken = a})
rlKind :: Lens' RouteList Text
rlKind = lens _rlKind (\ s a -> s{_rlKind = a})
rlItems :: Lens' RouteList [Route]
rlItems
= lens _rlItems (\ s a -> s{_rlItems = a}) . _Default
. _Coerce
rlSelfLink :: Lens' RouteList (Maybe Text)
rlSelfLink
= lens _rlSelfLink (\ s a -> s{_rlSelfLink = a})
rlWarning :: Lens' RouteList (Maybe RouteListWarning)
rlWarning
= lens _rlWarning (\ s a -> s{_rlWarning = a})
rlId :: Lens' RouteList (Maybe Text)
rlId = lens _rlId (\ s a -> s{_rlId = a})
instance FromJSON RouteList where
parseJSON
= withObject "RouteList"
(\ o ->
RouteList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#routeList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RouteList where
toJSON RouteList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _rlNextPageToken,
Just ("kind" .= _rlKind), ("items" .=) <$> _rlItems,
("selfLink" .=) <$> _rlSelfLink,
("warning" .=) <$> _rlWarning, ("id" .=) <$> _rlId])
data InstanceListReferrers =
InstanceListReferrers'
{ _ilrNextPageToken :: !(Maybe Text)
, _ilrKind :: !Text
, _ilrItems :: !(Maybe [Reference])
, _ilrSelfLink :: !(Maybe Text)
, _ilrWarning :: !(Maybe InstanceListReferrersWarning)
, _ilrId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceListReferrers
:: InstanceListReferrers
instanceListReferrers =
InstanceListReferrers'
{ _ilrNextPageToken = Nothing
, _ilrKind = "compute#instanceListReferrers"
, _ilrItems = Nothing
, _ilrSelfLink = Nothing
, _ilrWarning = Nothing
, _ilrId = Nothing
}
ilrNextPageToken :: Lens' InstanceListReferrers (Maybe Text)
ilrNextPageToken
= lens _ilrNextPageToken
(\ s a -> s{_ilrNextPageToken = a})
ilrKind :: Lens' InstanceListReferrers Text
ilrKind = lens _ilrKind (\ s a -> s{_ilrKind = a})
ilrItems :: Lens' InstanceListReferrers [Reference]
ilrItems
= lens _ilrItems (\ s a -> s{_ilrItems = a}) .
_Default
. _Coerce
ilrSelfLink :: Lens' InstanceListReferrers (Maybe Text)
ilrSelfLink
= lens _ilrSelfLink (\ s a -> s{_ilrSelfLink = a})
ilrWarning :: Lens' InstanceListReferrers (Maybe InstanceListReferrersWarning)
ilrWarning
= lens _ilrWarning (\ s a -> s{_ilrWarning = a})
ilrId :: Lens' InstanceListReferrers (Maybe Text)
ilrId = lens _ilrId (\ s a -> s{_ilrId = a})
instance FromJSON InstanceListReferrers where
parseJSON
= withObject "InstanceListReferrers"
(\ o ->
InstanceListReferrers' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#instanceListReferrers")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceListReferrers where
toJSON InstanceListReferrers'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ilrNextPageToken,
Just ("kind" .= _ilrKind),
("items" .=) <$> _ilrItems,
("selfLink" .=) <$> _ilrSelfLink,
("warning" .=) <$> _ilrWarning,
("id" .=) <$> _ilrId])
data Router =
Router'
{ _rouBGPPeers :: !(Maybe [RouterBGPPeer])
, _rouBGP :: !(Maybe RouterBGP)
, _rouKind :: !Text
, _rouNetwork :: !(Maybe Text)
, _rouInterfaces :: !(Maybe [RouterInterface])
, _rouSelfLink :: !(Maybe Text)
, _rouName :: !(Maybe Text)
, _rouCreationTimestamp :: !(Maybe Text)
, _rouId :: !(Maybe (Textual Word64))
, _rouRegion :: !(Maybe Text)
, _rouNATs :: !(Maybe [RouterNAT])
, _rouDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
router
:: Router
router =
Router'
{ _rouBGPPeers = Nothing
, _rouBGP = Nothing
, _rouKind = "compute#router"
, _rouNetwork = Nothing
, _rouInterfaces = Nothing
, _rouSelfLink = Nothing
, _rouName = Nothing
, _rouCreationTimestamp = Nothing
, _rouId = Nothing
, _rouRegion = Nothing
, _rouNATs = Nothing
, _rouDescription = Nothing
}
rouBGPPeers :: Lens' Router [RouterBGPPeer]
rouBGPPeers
= lens _rouBGPPeers (\ s a -> s{_rouBGPPeers = a}) .
_Default
. _Coerce
rouBGP :: Lens' Router (Maybe RouterBGP)
rouBGP = lens _rouBGP (\ s a -> s{_rouBGP = a})
rouKind :: Lens' Router Text
rouKind = lens _rouKind (\ s a -> s{_rouKind = a})
rouNetwork :: Lens' Router (Maybe Text)
rouNetwork
= lens _rouNetwork (\ s a -> s{_rouNetwork = a})
rouInterfaces :: Lens' Router [RouterInterface]
rouInterfaces
= lens _rouInterfaces
(\ s a -> s{_rouInterfaces = a})
. _Default
. _Coerce
rouSelfLink :: Lens' Router (Maybe Text)
rouSelfLink
= lens _rouSelfLink (\ s a -> s{_rouSelfLink = a})
rouName :: Lens' Router (Maybe Text)
rouName = lens _rouName (\ s a -> s{_rouName = a})
rouCreationTimestamp :: Lens' Router (Maybe Text)
rouCreationTimestamp
= lens _rouCreationTimestamp
(\ s a -> s{_rouCreationTimestamp = a})
rouId :: Lens' Router (Maybe Word64)
rouId
= lens _rouId (\ s a -> s{_rouId = a}) .
mapping _Coerce
rouRegion :: Lens' Router (Maybe Text)
rouRegion
= lens _rouRegion (\ s a -> s{_rouRegion = a})
rouNATs :: Lens' Router [RouterNAT]
rouNATs
= lens _rouNATs (\ s a -> s{_rouNATs = a}) . _Default
. _Coerce
rouDescription :: Lens' Router (Maybe Text)
rouDescription
= lens _rouDescription
(\ s a -> s{_rouDescription = a})
instance FromJSON Router where
parseJSON
= withObject "Router"
(\ o ->
Router' <$>
(o .:? "bgpPeers" .!= mempty) <*> (o .:? "bgp") <*>
(o .:? "kind" .!= "compute#router")
<*> (o .:? "network")
<*> (o .:? "interfaces" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "nats" .!= mempty)
<*> (o .:? "description"))
instance ToJSON Router where
toJSON Router'{..}
= object
(catMaybes
[("bgpPeers" .=) <$> _rouBGPPeers,
("bgp" .=) <$> _rouBGP, Just ("kind" .= _rouKind),
("network" .=) <$> _rouNetwork,
("interfaces" .=) <$> _rouInterfaces,
("selfLink" .=) <$> _rouSelfLink,
("name" .=) <$> _rouName,
("creationTimestamp" .=) <$> _rouCreationTimestamp,
("id" .=) <$> _rouId, ("region" .=) <$> _rouRegion,
("nats" .=) <$> _rouNATs,
("description" .=) <$> _rouDescription])
data RouterAggregatedListWarningDataItem =
RouterAggregatedListWarningDataItem'
{ _ralwdiValue :: !(Maybe Text)
, _ralwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerAggregatedListWarningDataItem
:: RouterAggregatedListWarningDataItem
routerAggregatedListWarningDataItem =
RouterAggregatedListWarningDataItem'
{_ralwdiValue = Nothing, _ralwdiKey = Nothing}
ralwdiValue :: Lens' RouterAggregatedListWarningDataItem (Maybe Text)
ralwdiValue
= lens _ralwdiValue (\ s a -> s{_ralwdiValue = a})
ralwdiKey :: Lens' RouterAggregatedListWarningDataItem (Maybe Text)
ralwdiKey
= lens _ralwdiKey (\ s a -> s{_ralwdiKey = a})
instance FromJSON RouterAggregatedListWarningDataItem
where
parseJSON
= withObject "RouterAggregatedListWarningDataItem"
(\ o ->
RouterAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RouterAggregatedListWarningDataItem
where
toJSON RouterAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ralwdiValue,
("key" .=) <$> _ralwdiKey])
data RoutersScopedListWarningDataItem =
RoutersScopedListWarningDataItem'
{ _rslwdiValue :: !(Maybe Text)
, _rslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routersScopedListWarningDataItem
:: RoutersScopedListWarningDataItem
routersScopedListWarningDataItem =
RoutersScopedListWarningDataItem'
{_rslwdiValue = Nothing, _rslwdiKey = Nothing}
rslwdiValue :: Lens' RoutersScopedListWarningDataItem (Maybe Text)
rslwdiValue
= lens _rslwdiValue (\ s a -> s{_rslwdiValue = a})
rslwdiKey :: Lens' RoutersScopedListWarningDataItem (Maybe Text)
rslwdiKey
= lens _rslwdiKey (\ s a -> s{_rslwdiKey = a})
instance FromJSON RoutersScopedListWarningDataItem
where
parseJSON
= withObject "RoutersScopedListWarningDataItem"
(\ o ->
RoutersScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RoutersScopedListWarningDataItem
where
toJSON RoutersScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _rslwdiValue,
("key" .=) <$> _rslwdiKey])
newtype SubnetworksSetPrivateIPGoogleAccessRequest =
SubnetworksSetPrivateIPGoogleAccessRequest'
{ _sspigarPrivateIPGoogleAccess :: Maybe Bool
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworksSetPrivateIPGoogleAccessRequest
:: SubnetworksSetPrivateIPGoogleAccessRequest
subnetworksSetPrivateIPGoogleAccessRequest =
SubnetworksSetPrivateIPGoogleAccessRequest'
{_sspigarPrivateIPGoogleAccess = Nothing}
sspigarPrivateIPGoogleAccess :: Lens' SubnetworksSetPrivateIPGoogleAccessRequest (Maybe Bool)
sspigarPrivateIPGoogleAccess
= lens _sspigarPrivateIPGoogleAccess
(\ s a -> s{_sspigarPrivateIPGoogleAccess = a})
instance FromJSON
SubnetworksSetPrivateIPGoogleAccessRequest
where
parseJSON
= withObject
"SubnetworksSetPrivateIPGoogleAccessRequest"
(\ o ->
SubnetworksSetPrivateIPGoogleAccessRequest' <$>
(o .:? "privateIpGoogleAccess"))
instance ToJSON
SubnetworksSetPrivateIPGoogleAccessRequest
where
toJSON
SubnetworksSetPrivateIPGoogleAccessRequest'{..}
= object
(catMaybes
[("privateIpGoogleAccess" .=) <$>
_sspigarPrivateIPGoogleAccess])
data TargetHTTPSProxyListWarningDataItem =
TargetHTTPSProxyListWarningDataItem'
{ _thplwdiValue :: !(Maybe Text)
, _thplwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPSProxyListWarningDataItem
:: TargetHTTPSProxyListWarningDataItem
targetHTTPSProxyListWarningDataItem =
TargetHTTPSProxyListWarningDataItem'
{_thplwdiValue = Nothing, _thplwdiKey = Nothing}
thplwdiValue :: Lens' TargetHTTPSProxyListWarningDataItem (Maybe Text)
thplwdiValue
= lens _thplwdiValue (\ s a -> s{_thplwdiValue = a})
thplwdiKey :: Lens' TargetHTTPSProxyListWarningDataItem (Maybe Text)
thplwdiKey
= lens _thplwdiKey (\ s a -> s{_thplwdiKey = a})
instance FromJSON TargetHTTPSProxyListWarningDataItem
where
parseJSON
= withObject "TargetHTTPSProxyListWarningDataItem"
(\ o ->
TargetHTTPSProxyListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetHTTPSProxyListWarningDataItem
where
toJSON TargetHTTPSProxyListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _thplwdiValue,
("key" .=) <$> _thplwdiKey])
data TargetVPNGatewayList =
TargetVPNGatewayList'
{ _tvglNextPageToken :: !(Maybe Text)
, _tvglKind :: !Text
, _tvglItems :: !(Maybe [TargetVPNGateway])
, _tvglSelfLink :: !(Maybe Text)
, _tvglWarning :: !(Maybe TargetVPNGatewayListWarning)
, _tvglId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewayList
:: TargetVPNGatewayList
targetVPNGatewayList =
TargetVPNGatewayList'
{ _tvglNextPageToken = Nothing
, _tvglKind = "compute#targetVpnGatewayList"
, _tvglItems = Nothing
, _tvglSelfLink = Nothing
, _tvglWarning = Nothing
, _tvglId = Nothing
}
tvglNextPageToken :: Lens' TargetVPNGatewayList (Maybe Text)
tvglNextPageToken
= lens _tvglNextPageToken
(\ s a -> s{_tvglNextPageToken = a})
tvglKind :: Lens' TargetVPNGatewayList Text
tvglKind = lens _tvglKind (\ s a -> s{_tvglKind = a})
tvglItems :: Lens' TargetVPNGatewayList [TargetVPNGateway]
tvglItems
= lens _tvglItems (\ s a -> s{_tvglItems = a}) .
_Default
. _Coerce
tvglSelfLink :: Lens' TargetVPNGatewayList (Maybe Text)
tvglSelfLink
= lens _tvglSelfLink (\ s a -> s{_tvglSelfLink = a})
tvglWarning :: Lens' TargetVPNGatewayList (Maybe TargetVPNGatewayListWarning)
tvglWarning
= lens _tvglWarning (\ s a -> s{_tvglWarning = a})
tvglId :: Lens' TargetVPNGatewayList (Maybe Text)
tvglId = lens _tvglId (\ s a -> s{_tvglId = a})
instance FromJSON TargetVPNGatewayList where
parseJSON
= withObject "TargetVPNGatewayList"
(\ o ->
TargetVPNGatewayList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetVpnGatewayList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetVPNGatewayList where
toJSON TargetVPNGatewayList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _tvglNextPageToken,
Just ("kind" .= _tvglKind),
("items" .=) <$> _tvglItems,
("selfLink" .=) <$> _tvglSelfLink,
("warning" .=) <$> _tvglWarning,
("id" .=) <$> _tvglId])
data SSLCertificateList =
SSLCertificateList'
{ _sclNextPageToken :: !(Maybe Text)
, _sclKind :: !Text
, _sclItems :: !(Maybe [SSLCertificate])
, _sclSelfLink :: !(Maybe Text)
, _sclWarning :: !(Maybe SSLCertificateListWarning)
, _sclId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslCertificateList
:: SSLCertificateList
sslCertificateList =
SSLCertificateList'
{ _sclNextPageToken = Nothing
, _sclKind = "compute#sslCertificateList"
, _sclItems = Nothing
, _sclSelfLink = Nothing
, _sclWarning = Nothing
, _sclId = Nothing
}
sclNextPageToken :: Lens' SSLCertificateList (Maybe Text)
sclNextPageToken
= lens _sclNextPageToken
(\ s a -> s{_sclNextPageToken = a})
sclKind :: Lens' SSLCertificateList Text
sclKind = lens _sclKind (\ s a -> s{_sclKind = a})
sclItems :: Lens' SSLCertificateList [SSLCertificate]
sclItems
= lens _sclItems (\ s a -> s{_sclItems = a}) .
_Default
. _Coerce
sclSelfLink :: Lens' SSLCertificateList (Maybe Text)
sclSelfLink
= lens _sclSelfLink (\ s a -> s{_sclSelfLink = a})
sclWarning :: Lens' SSLCertificateList (Maybe SSLCertificateListWarning)
sclWarning
= lens _sclWarning (\ s a -> s{_sclWarning = a})
sclId :: Lens' SSLCertificateList (Maybe Text)
sclId = lens _sclId (\ s a -> s{_sclId = a})
instance FromJSON SSLCertificateList where
parseJSON
= withObject "SSLCertificateList"
(\ o ->
SSLCertificateList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#sslCertificateList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON SSLCertificateList where
toJSON SSLCertificateList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _sclNextPageToken,
Just ("kind" .= _sclKind),
("items" .=) <$> _sclItems,
("selfLink" .=) <$> _sclSelfLink,
("warning" .=) <$> _sclWarning,
("id" .=) <$> _sclId])
data FirewallAllowedItem =
FirewallAllowedItem'
{ _faiIPProtocol :: !(Maybe Text)
, _faiPorts :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
firewallAllowedItem
:: FirewallAllowedItem
firewallAllowedItem =
FirewallAllowedItem' {_faiIPProtocol = Nothing, _faiPorts = Nothing}
faiIPProtocol :: Lens' FirewallAllowedItem (Maybe Text)
faiIPProtocol
= lens _faiIPProtocol
(\ s a -> s{_faiIPProtocol = a})
faiPorts :: Lens' FirewallAllowedItem [Text]
faiPorts
= lens _faiPorts (\ s a -> s{_faiPorts = a}) .
_Default
. _Coerce
instance FromJSON FirewallAllowedItem where
parseJSON
= withObject "FirewallAllowedItem"
(\ o ->
FirewallAllowedItem' <$>
(o .:? "IPProtocol") <*> (o .:? "ports" .!= mempty))
instance ToJSON FirewallAllowedItem where
toJSON FirewallAllowedItem'{..}
= object
(catMaybes
[("IPProtocol" .=) <$> _faiIPProtocol,
("ports" .=) <$> _faiPorts])
data RouterAdvertisedIPRange =
RouterAdvertisedIPRange'
{ _rairRange :: !(Maybe Text)
, _rairDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerAdvertisedIPRange
:: RouterAdvertisedIPRange
routerAdvertisedIPRange =
RouterAdvertisedIPRange' {_rairRange = Nothing, _rairDescription = Nothing}
rairRange :: Lens' RouterAdvertisedIPRange (Maybe Text)
rairRange
= lens _rairRange (\ s a -> s{_rairRange = a})
rairDescription :: Lens' RouterAdvertisedIPRange (Maybe Text)
rairDescription
= lens _rairDescription
(\ s a -> s{_rairDescription = a})
instance FromJSON RouterAdvertisedIPRange where
parseJSON
= withObject "RouterAdvertisedIPRange"
(\ o ->
RouterAdvertisedIPRange' <$>
(o .:? "range") <*> (o .:? "description"))
instance ToJSON RouterAdvertisedIPRange where
toJSON RouterAdvertisedIPRange'{..}
= object
(catMaybes
[("range" .=) <$> _rairRange,
("description" .=) <$> _rairDescription])
data RouterListWarningDataItem =
RouterListWarningDataItem'
{ _rlwdiValue :: !(Maybe Text)
, _rlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerListWarningDataItem
:: RouterListWarningDataItem
routerListWarningDataItem =
RouterListWarningDataItem' {_rlwdiValue = Nothing, _rlwdiKey = Nothing}
rlwdiValue :: Lens' RouterListWarningDataItem (Maybe Text)
rlwdiValue
= lens _rlwdiValue (\ s a -> s{_rlwdiValue = a})
rlwdiKey :: Lens' RouterListWarningDataItem (Maybe Text)
rlwdiKey = lens _rlwdiKey (\ s a -> s{_rlwdiKey = a})
instance FromJSON RouterListWarningDataItem where
parseJSON
= withObject "RouterListWarningDataItem"
(\ o ->
RouterListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RouterListWarningDataItem where
toJSON RouterListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _rlwdiValue,
("key" .=) <$> _rlwdiKey])
data Rule =
Rule'
{ _rAction :: !(Maybe RuleAction)
, _rNotIns :: !(Maybe [Text])
, _rIns :: !(Maybe [Text])
, _rLogConfigs :: !(Maybe [LogConfig])
, _rConditions :: !(Maybe [Condition])
, _rPermissions :: !(Maybe [Text])
, _rDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
rule
:: Rule
rule =
Rule'
{ _rAction = Nothing
, _rNotIns = Nothing
, _rIns = Nothing
, _rLogConfigs = Nothing
, _rConditions = Nothing
, _rPermissions = Nothing
, _rDescription = Nothing
}
rAction :: Lens' Rule (Maybe RuleAction)
rAction = lens _rAction (\ s a -> s{_rAction = a})
rNotIns :: Lens' Rule [Text]
rNotIns
= lens _rNotIns (\ s a -> s{_rNotIns = a}) . _Default
. _Coerce
rIns :: Lens' Rule [Text]
rIns
= lens _rIns (\ s a -> s{_rIns = a}) . _Default .
_Coerce
rLogConfigs :: Lens' Rule [LogConfig]
rLogConfigs
= lens _rLogConfigs (\ s a -> s{_rLogConfigs = a}) .
_Default
. _Coerce
rConditions :: Lens' Rule [Condition]
rConditions
= lens _rConditions (\ s a -> s{_rConditions = a}) .
_Default
. _Coerce
rPermissions :: Lens' Rule [Text]
rPermissions
= lens _rPermissions (\ s a -> s{_rPermissions = a})
. _Default
. _Coerce
rDescription :: Lens' Rule (Maybe Text)
rDescription
= lens _rDescription (\ s a -> s{_rDescription = a})
instance FromJSON Rule where
parseJSON
= withObject "Rule"
(\ o ->
Rule' <$>
(o .:? "action") <*> (o .:? "notIns" .!= mempty) <*>
(o .:? "ins" .!= mempty)
<*> (o .:? "logConfigs" .!= mempty)
<*> (o .:? "conditions" .!= mempty)
<*> (o .:? "permissions" .!= mempty)
<*> (o .:? "description"))
instance ToJSON Rule where
toJSON Rule'{..}
= object
(catMaybes
[("action" .=) <$> _rAction,
("notIns" .=) <$> _rNotIns, ("ins" .=) <$> _rIns,
("logConfigs" .=) <$> _rLogConfigs,
("conditions" .=) <$> _rConditions,
("permissions" .=) <$> _rPermissions,
("description" .=) <$> _rDescription])
data BackendServiceAggregatedList =
BackendServiceAggregatedList'
{ _bsalNextPageToken :: !(Maybe Text)
, _bsalKind :: !Text
, _bsalItems :: !(Maybe BackendServiceAggregatedListItems)
, _bsalSelfLink :: !(Maybe Text)
, _bsalWarning :: !(Maybe BackendServiceAggregatedListWarning)
, _bsalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceAggregatedList
:: BackendServiceAggregatedList
backendServiceAggregatedList =
BackendServiceAggregatedList'
{ _bsalNextPageToken = Nothing
, _bsalKind = "compute#backendServiceAggregatedList"
, _bsalItems = Nothing
, _bsalSelfLink = Nothing
, _bsalWarning = Nothing
, _bsalId = Nothing
}
bsalNextPageToken :: Lens' BackendServiceAggregatedList (Maybe Text)
bsalNextPageToken
= lens _bsalNextPageToken
(\ s a -> s{_bsalNextPageToken = a})
bsalKind :: Lens' BackendServiceAggregatedList Text
bsalKind = lens _bsalKind (\ s a -> s{_bsalKind = a})
bsalItems :: Lens' BackendServiceAggregatedList (Maybe BackendServiceAggregatedListItems)
bsalItems
= lens _bsalItems (\ s a -> s{_bsalItems = a})
bsalSelfLink :: Lens' BackendServiceAggregatedList (Maybe Text)
bsalSelfLink
= lens _bsalSelfLink (\ s a -> s{_bsalSelfLink = a})
bsalWarning :: Lens' BackendServiceAggregatedList (Maybe BackendServiceAggregatedListWarning)
bsalWarning
= lens _bsalWarning (\ s a -> s{_bsalWarning = a})
bsalId :: Lens' BackendServiceAggregatedList (Maybe Text)
bsalId = lens _bsalId (\ s a -> s{_bsalId = a})
instance FromJSON BackendServiceAggregatedList where
parseJSON
= withObject "BackendServiceAggregatedList"
(\ o ->
BackendServiceAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#backendServiceAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON BackendServiceAggregatedList where
toJSON BackendServiceAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _bsalNextPageToken,
Just ("kind" .= _bsalKind),
("items" .=) <$> _bsalItems,
("selfLink" .=) <$> _bsalSelfLink,
("warning" .=) <$> _bsalWarning,
("id" .=) <$> _bsalId])
data Network =
Network'
{ _nAutoCreateSubnetworks :: !(Maybe Bool)
, _nKind :: !Text
, _nRoutingConfig :: !(Maybe NetworkRoutingConfig)
, _nSubnetworks :: !(Maybe [Text])
, _nIPv4Range :: !(Maybe Text)
, _nSelfLink :: !(Maybe Text)
, _nName :: !(Maybe Text)
, _nCreationTimestamp :: !(Maybe Text)
, _nId :: !(Maybe (Textual Word64))
, _nGatewayIPv4 :: !(Maybe Text)
, _nDescription :: !(Maybe Text)
, _nPeerings :: !(Maybe [NetworkPeering])
}
deriving (Eq, Show, Data, Typeable, Generic)
network
:: Network
network =
Network'
{ _nAutoCreateSubnetworks = Nothing
, _nKind = "compute#network"
, _nRoutingConfig = Nothing
, _nSubnetworks = Nothing
, _nIPv4Range = Nothing
, _nSelfLink = Nothing
, _nName = Nothing
, _nCreationTimestamp = Nothing
, _nId = Nothing
, _nGatewayIPv4 = Nothing
, _nDescription = Nothing
, _nPeerings = Nothing
}
nAutoCreateSubnetworks :: Lens' Network (Maybe Bool)
nAutoCreateSubnetworks
= lens _nAutoCreateSubnetworks
(\ s a -> s{_nAutoCreateSubnetworks = a})
nKind :: Lens' Network Text
nKind = lens _nKind (\ s a -> s{_nKind = a})
nRoutingConfig :: Lens' Network (Maybe NetworkRoutingConfig)
nRoutingConfig
= lens _nRoutingConfig
(\ s a -> s{_nRoutingConfig = a})
nSubnetworks :: Lens' Network [Text]
nSubnetworks
= lens _nSubnetworks (\ s a -> s{_nSubnetworks = a})
. _Default
. _Coerce
nIPv4Range :: Lens' Network (Maybe Text)
nIPv4Range
= lens _nIPv4Range (\ s a -> s{_nIPv4Range = a})
nSelfLink :: Lens' Network (Maybe Text)
nSelfLink
= lens _nSelfLink (\ s a -> s{_nSelfLink = a})
nName :: Lens' Network (Maybe Text)
nName = lens _nName (\ s a -> s{_nName = a})
nCreationTimestamp :: Lens' Network (Maybe Text)
nCreationTimestamp
= lens _nCreationTimestamp
(\ s a -> s{_nCreationTimestamp = a})
nId :: Lens' Network (Maybe Word64)
nId
= lens _nId (\ s a -> s{_nId = a}) . mapping _Coerce
nGatewayIPv4 :: Lens' Network (Maybe Text)
nGatewayIPv4
= lens _nGatewayIPv4 (\ s a -> s{_nGatewayIPv4 = a})
nDescription :: Lens' Network (Maybe Text)
nDescription
= lens _nDescription (\ s a -> s{_nDescription = a})
nPeerings :: Lens' Network [NetworkPeering]
nPeerings
= lens _nPeerings (\ s a -> s{_nPeerings = a}) .
_Default
. _Coerce
instance FromJSON Network where
parseJSON
= withObject "Network"
(\ o ->
Network' <$>
(o .:? "autoCreateSubnetworks") <*>
(o .:? "kind" .!= "compute#network")
<*> (o .:? "routingConfig")
<*> (o .:? "subnetworks" .!= mempty)
<*> (o .:? "IPv4Range")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "gatewayIPv4")
<*> (o .:? "description")
<*> (o .:? "peerings" .!= mempty))
instance ToJSON Network where
toJSON Network'{..}
= object
(catMaybes
[("autoCreateSubnetworks" .=) <$>
_nAutoCreateSubnetworks,
Just ("kind" .= _nKind),
("routingConfig" .=) <$> _nRoutingConfig,
("subnetworks" .=) <$> _nSubnetworks,
("IPv4Range" .=) <$> _nIPv4Range,
("selfLink" .=) <$> _nSelfLink,
("name" .=) <$> _nName,
("creationTimestamp" .=) <$> _nCreationTimestamp,
("id" .=) <$> _nId,
("gatewayIPv4" .=) <$> _nGatewayIPv4,
("description" .=) <$> _nDescription,
("peerings" .=) <$> _nPeerings])
data RoutersScopedListWarning =
RoutersScopedListWarning'
{ _rslwData :: !(Maybe [RoutersScopedListWarningDataItem])
, _rslwCode :: !(Maybe RoutersScopedListWarningCode)
, _rslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routersScopedListWarning
:: RoutersScopedListWarning
routersScopedListWarning =
RoutersScopedListWarning'
{_rslwData = Nothing, _rslwCode = Nothing, _rslwMessage = Nothing}
rslwData :: Lens' RoutersScopedListWarning [RoutersScopedListWarningDataItem]
rslwData
= lens _rslwData (\ s a -> s{_rslwData = a}) .
_Default
. _Coerce
rslwCode :: Lens' RoutersScopedListWarning (Maybe RoutersScopedListWarningCode)
rslwCode = lens _rslwCode (\ s a -> s{_rslwCode = a})
rslwMessage :: Lens' RoutersScopedListWarning (Maybe Text)
rslwMessage
= lens _rslwMessage (\ s a -> s{_rslwMessage = a})
instance FromJSON RoutersScopedListWarning where
parseJSON
= withObject "RoutersScopedListWarning"
(\ o ->
RoutersScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RoutersScopedListWarning where
toJSON RoutersScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rslwData,
("code" .=) <$> _rslwCode,
("message" .=) <$> _rslwMessage])
data UsableSubnetwork =
UsableSubnetwork'
{ _usNetwork :: !(Maybe Text)
, _usSecondaryIPRanges :: !(Maybe [UsableSubnetworkSecondaryRange])
, _usIPCIdRRange :: !(Maybe Text)
, _usSubnetwork :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
usableSubnetwork
:: UsableSubnetwork
usableSubnetwork =
UsableSubnetwork'
{ _usNetwork = Nothing
, _usSecondaryIPRanges = Nothing
, _usIPCIdRRange = Nothing
, _usSubnetwork = Nothing
}
usNetwork :: Lens' UsableSubnetwork (Maybe Text)
usNetwork
= lens _usNetwork (\ s a -> s{_usNetwork = a})
usSecondaryIPRanges :: Lens' UsableSubnetwork [UsableSubnetworkSecondaryRange]
usSecondaryIPRanges
= lens _usSecondaryIPRanges
(\ s a -> s{_usSecondaryIPRanges = a})
. _Default
. _Coerce
usIPCIdRRange :: Lens' UsableSubnetwork (Maybe Text)
usIPCIdRRange
= lens _usIPCIdRRange
(\ s a -> s{_usIPCIdRRange = a})
usSubnetwork :: Lens' UsableSubnetwork (Maybe Text)
usSubnetwork
= lens _usSubnetwork (\ s a -> s{_usSubnetwork = a})
instance FromJSON UsableSubnetwork where
parseJSON
= withObject "UsableSubnetwork"
(\ o ->
UsableSubnetwork' <$>
(o .:? "network") <*>
(o .:? "secondaryIpRanges" .!= mempty)
<*> (o .:? "ipCidrRange")
<*> (o .:? "subnetwork"))
instance ToJSON UsableSubnetwork where
toJSON UsableSubnetwork'{..}
= object
(catMaybes
[("network" .=) <$> _usNetwork,
("secondaryIpRanges" .=) <$> _usSecondaryIPRanges,
("ipCidrRange" .=) <$> _usIPCIdRRange,
("subnetwork" .=) <$> _usSubnetwork])
data TargetHTTPSProxyListWarning =
TargetHTTPSProxyListWarning'
{ _thplwData :: !(Maybe [TargetHTTPSProxyListWarningDataItem])
, _thplwCode :: !(Maybe TargetHTTPSProxyListWarningCode)
, _thplwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPSProxyListWarning
:: TargetHTTPSProxyListWarning
targetHTTPSProxyListWarning =
TargetHTTPSProxyListWarning'
{_thplwData = Nothing, _thplwCode = Nothing, _thplwMessage = Nothing}
thplwData :: Lens' TargetHTTPSProxyListWarning [TargetHTTPSProxyListWarningDataItem]
thplwData
= lens _thplwData (\ s a -> s{_thplwData = a}) .
_Default
. _Coerce
thplwCode :: Lens' TargetHTTPSProxyListWarning (Maybe TargetHTTPSProxyListWarningCode)
thplwCode
= lens _thplwCode (\ s a -> s{_thplwCode = a})
thplwMessage :: Lens' TargetHTTPSProxyListWarning (Maybe Text)
thplwMessage
= lens _thplwMessage (\ s a -> s{_thplwMessage = a})
instance FromJSON TargetHTTPSProxyListWarning where
parseJSON
= withObject "TargetHTTPSProxyListWarning"
(\ o ->
TargetHTTPSProxyListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetHTTPSProxyListWarning where
toJSON TargetHTTPSProxyListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _thplwData,
("code" .=) <$> _thplwCode,
("message" .=) <$> _thplwMessage])
data AddressesScopedListWarning =
AddressesScopedListWarning'
{ _aData :: !(Maybe [AddressesScopedListWarningDataItem])
, _aCode :: !(Maybe AddressesScopedListWarningCode)
, _aMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressesScopedListWarning
:: AddressesScopedListWarning
addressesScopedListWarning =
AddressesScopedListWarning'
{_aData = Nothing, _aCode = Nothing, _aMessage = Nothing}
aData :: Lens' AddressesScopedListWarning [AddressesScopedListWarningDataItem]
aData
= lens _aData (\ s a -> s{_aData = a}) . _Default .
_Coerce
aCode :: Lens' AddressesScopedListWarning (Maybe AddressesScopedListWarningCode)
aCode = lens _aCode (\ s a -> s{_aCode = a})
aMessage :: Lens' AddressesScopedListWarning (Maybe Text)
aMessage = lens _aMessage (\ s a -> s{_aMessage = a})
instance FromJSON AddressesScopedListWarning where
parseJSON
= withObject "AddressesScopedListWarning"
(\ o ->
AddressesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AddressesScopedListWarning where
toJSON AddressesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _aData, ("code" .=) <$> _aCode,
("message" .=) <$> _aMessage])
data SecurityPolicy =
SecurityPolicy'
{ _secRules :: !(Maybe [SecurityPolicyRule])
, _secKind :: !Text
, _secFingerprint :: !(Maybe Bytes)
, _secSelfLink :: !(Maybe Text)
, _secName :: !(Maybe Text)
, _secCreationTimestamp :: !(Maybe Text)
, _secId :: !(Maybe (Textual Word64))
, _secDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicy
:: SecurityPolicy
securityPolicy =
SecurityPolicy'
{ _secRules = Nothing
, _secKind = "compute#securityPolicy"
, _secFingerprint = Nothing
, _secSelfLink = Nothing
, _secName = Nothing
, _secCreationTimestamp = Nothing
, _secId = Nothing
, _secDescription = Nothing
}
secRules :: Lens' SecurityPolicy [SecurityPolicyRule]
secRules
= lens _secRules (\ s a -> s{_secRules = a}) .
_Default
. _Coerce
secKind :: Lens' SecurityPolicy Text
secKind = lens _secKind (\ s a -> s{_secKind = a})
secFingerprint :: Lens' SecurityPolicy (Maybe ByteString)
secFingerprint
= lens _secFingerprint
(\ s a -> s{_secFingerprint = a})
. mapping _Bytes
secSelfLink :: Lens' SecurityPolicy (Maybe Text)
secSelfLink
= lens _secSelfLink (\ s a -> s{_secSelfLink = a})
secName :: Lens' SecurityPolicy (Maybe Text)
secName = lens _secName (\ s a -> s{_secName = a})
secCreationTimestamp :: Lens' SecurityPolicy (Maybe Text)
secCreationTimestamp
= lens _secCreationTimestamp
(\ s a -> s{_secCreationTimestamp = a})
secId :: Lens' SecurityPolicy (Maybe Word64)
secId
= lens _secId (\ s a -> s{_secId = a}) .
mapping _Coerce
secDescription :: Lens' SecurityPolicy (Maybe Text)
secDescription
= lens _secDescription
(\ s a -> s{_secDescription = a})
instance FromJSON SecurityPolicy where
parseJSON
= withObject "SecurityPolicy"
(\ o ->
SecurityPolicy' <$>
(o .:? "rules" .!= mempty) <*>
(o .:? "kind" .!= "compute#securityPolicy")
<*> (o .:? "fingerprint")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "description"))
instance ToJSON SecurityPolicy where
toJSON SecurityPolicy'{..}
= object
(catMaybes
[("rules" .=) <$> _secRules,
Just ("kind" .= _secKind),
("fingerprint" .=) <$> _secFingerprint,
("selfLink" .=) <$> _secSelfLink,
("name" .=) <$> _secName,
("creationTimestamp" .=) <$> _secCreationTimestamp,
("id" .=) <$> _secId,
("description" .=) <$> _secDescription])
data InstanceGroupAggregatedListWarningDataItem =
InstanceGroupAggregatedListWarningDataItem'
{ _igalwdiValue :: !(Maybe Text)
, _igalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupAggregatedListWarningDataItem
:: InstanceGroupAggregatedListWarningDataItem
instanceGroupAggregatedListWarningDataItem =
InstanceGroupAggregatedListWarningDataItem'
{_igalwdiValue = Nothing, _igalwdiKey = Nothing}
igalwdiValue :: Lens' InstanceGroupAggregatedListWarningDataItem (Maybe Text)
igalwdiValue
= lens _igalwdiValue (\ s a -> s{_igalwdiValue = a})
igalwdiKey :: Lens' InstanceGroupAggregatedListWarningDataItem (Maybe Text)
igalwdiKey
= lens _igalwdiKey (\ s a -> s{_igalwdiKey = a})
instance FromJSON
InstanceGroupAggregatedListWarningDataItem
where
parseJSON
= withObject
"InstanceGroupAggregatedListWarningDataItem"
(\ o ->
InstanceGroupAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InstanceGroupAggregatedListWarningDataItem
where
toJSON
InstanceGroupAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _igalwdiValue,
("key" .=) <$> _igalwdiKey])
data ImageRawDisk =
ImageRawDisk'
{ _irdContainerType :: !(Maybe ImageRawDiskContainerType)
, _irdSource :: !(Maybe Text)
, _irdSha1Checksum :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
imageRawDisk
:: ImageRawDisk
imageRawDisk =
ImageRawDisk'
{ _irdContainerType = Nothing
, _irdSource = Nothing
, _irdSha1Checksum = Nothing
}
irdContainerType :: Lens' ImageRawDisk (Maybe ImageRawDiskContainerType)
irdContainerType
= lens _irdContainerType
(\ s a -> s{_irdContainerType = a})
irdSource :: Lens' ImageRawDisk (Maybe Text)
irdSource
= lens _irdSource (\ s a -> s{_irdSource = a})
irdSha1Checksum :: Lens' ImageRawDisk (Maybe Text)
irdSha1Checksum
= lens _irdSha1Checksum
(\ s a -> s{_irdSha1Checksum = a})
instance FromJSON ImageRawDisk where
parseJSON
= withObject "ImageRawDisk"
(\ o ->
ImageRawDisk' <$>
(o .:? "containerType") <*> (o .:? "source") <*>
(o .:? "sha1Checksum"))
instance ToJSON ImageRawDisk where
toJSON ImageRawDisk'{..}
= object
(catMaybes
[("containerType" .=) <$> _irdContainerType,
("source" .=) <$> _irdSource,
("sha1Checksum" .=) <$> _irdSha1Checksum])
data InstanceAggregatedList =
InstanceAggregatedList'
{ _ialNextPageToken :: !(Maybe Text)
, _ialKind :: !Text
, _ialItems :: !(Maybe InstanceAggregatedListItems)
, _ialSelfLink :: !(Maybe Text)
, _ialWarning :: !(Maybe InstanceAggregatedListWarning)
, _ialId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceAggregatedList
:: InstanceAggregatedList
instanceAggregatedList =
InstanceAggregatedList'
{ _ialNextPageToken = Nothing
, _ialKind = "compute#instanceAggregatedList"
, _ialItems = Nothing
, _ialSelfLink = Nothing
, _ialWarning = Nothing
, _ialId = Nothing
}
ialNextPageToken :: Lens' InstanceAggregatedList (Maybe Text)
ialNextPageToken
= lens _ialNextPageToken
(\ s a -> s{_ialNextPageToken = a})
ialKind :: Lens' InstanceAggregatedList Text
ialKind = lens _ialKind (\ s a -> s{_ialKind = a})
ialItems :: Lens' InstanceAggregatedList (Maybe InstanceAggregatedListItems)
ialItems = lens _ialItems (\ s a -> s{_ialItems = a})
ialSelfLink :: Lens' InstanceAggregatedList (Maybe Text)
ialSelfLink
= lens _ialSelfLink (\ s a -> s{_ialSelfLink = a})
ialWarning :: Lens' InstanceAggregatedList (Maybe InstanceAggregatedListWarning)
ialWarning
= lens _ialWarning (\ s a -> s{_ialWarning = a})
ialId :: Lens' InstanceAggregatedList (Maybe Text)
ialId = lens _ialId (\ s a -> s{_ialId = a})
instance FromJSON InstanceAggregatedList where
parseJSON
= withObject "InstanceAggregatedList"
(\ o ->
InstanceAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#instanceAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceAggregatedList where
toJSON InstanceAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ialNextPageToken,
Just ("kind" .= _ialKind),
("items" .=) <$> _ialItems,
("selfLink" .=) <$> _ialSelfLink,
("warning" .=) <$> _ialWarning,
("id" .=) <$> _ialId])
newtype ForwardingRuleReference =
ForwardingRuleReference'
{ _frrForwardingRule :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleReference
:: ForwardingRuleReference
forwardingRuleReference =
ForwardingRuleReference' {_frrForwardingRule = Nothing}
frrForwardingRule :: Lens' ForwardingRuleReference (Maybe Text)
frrForwardingRule
= lens _frrForwardingRule
(\ s a -> s{_frrForwardingRule = a})
instance FromJSON ForwardingRuleReference where
parseJSON
= withObject "ForwardingRuleReference"
(\ o ->
ForwardingRuleReference' <$>
(o .:? "forwardingRule"))
instance ToJSON ForwardingRuleReference where
toJSON ForwardingRuleReference'{..}
= object
(catMaybes
[("forwardingRule" .=) <$> _frrForwardingRule])
newtype TargetTCPProxiesSetBackendServiceRequest =
TargetTCPProxiesSetBackendServiceRequest'
{ _ttpsbsrService :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
targetTCPProxiesSetBackendServiceRequest
:: TargetTCPProxiesSetBackendServiceRequest
targetTCPProxiesSetBackendServiceRequest =
TargetTCPProxiesSetBackendServiceRequest' {_ttpsbsrService = Nothing}
ttpsbsrService :: Lens' TargetTCPProxiesSetBackendServiceRequest (Maybe Text)
ttpsbsrService
= lens _ttpsbsrService
(\ s a -> s{_ttpsbsrService = a})
instance FromJSON
TargetTCPProxiesSetBackendServiceRequest
where
parseJSON
= withObject
"TargetTCPProxiesSetBackendServiceRequest"
(\ o ->
TargetTCPProxiesSetBackendServiceRequest' <$>
(o .:? "service"))
instance ToJSON
TargetTCPProxiesSetBackendServiceRequest
where
toJSON TargetTCPProxiesSetBackendServiceRequest'{..}
= object
(catMaybes [("service" .=) <$> _ttpsbsrService])
data SSLHealthCheck =
SSLHealthCheck'
{ _shcResponse :: !(Maybe Text)
, _shcPortSpecification :: !(Maybe SSLHealthCheckPortSpecification)
, _shcProxyHeader :: !(Maybe SSLHealthCheckProxyHeader)
, _shcPortName :: !(Maybe Text)
, _shcPort :: !(Maybe (Textual Int32))
, _shcRequest :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslHealthCheck
:: SSLHealthCheck
sslHealthCheck =
SSLHealthCheck'
{ _shcResponse = Nothing
, _shcPortSpecification = Nothing
, _shcProxyHeader = Nothing
, _shcPortName = Nothing
, _shcPort = Nothing
, _shcRequest = Nothing
}
shcResponse :: Lens' SSLHealthCheck (Maybe Text)
shcResponse
= lens _shcResponse (\ s a -> s{_shcResponse = a})
shcPortSpecification :: Lens' SSLHealthCheck (Maybe SSLHealthCheckPortSpecification)
shcPortSpecification
= lens _shcPortSpecification
(\ s a -> s{_shcPortSpecification = a})
shcProxyHeader :: Lens' SSLHealthCheck (Maybe SSLHealthCheckProxyHeader)
shcProxyHeader
= lens _shcProxyHeader
(\ s a -> s{_shcProxyHeader = a})
shcPortName :: Lens' SSLHealthCheck (Maybe Text)
shcPortName
= lens _shcPortName (\ s a -> s{_shcPortName = a})
shcPort :: Lens' SSLHealthCheck (Maybe Int32)
shcPort
= lens _shcPort (\ s a -> s{_shcPort = a}) .
mapping _Coerce
shcRequest :: Lens' SSLHealthCheck (Maybe Text)
shcRequest
= lens _shcRequest (\ s a -> s{_shcRequest = a})
instance FromJSON SSLHealthCheck where
parseJSON
= withObject "SSLHealthCheck"
(\ o ->
SSLHealthCheck' <$>
(o .:? "response") <*> (o .:? "portSpecification")
<*> (o .:? "proxyHeader")
<*> (o .:? "portName")
<*> (o .:? "port")
<*> (o .:? "request"))
instance ToJSON SSLHealthCheck where
toJSON SSLHealthCheck'{..}
= object
(catMaybes
[("response" .=) <$> _shcResponse,
("portSpecification" .=) <$> _shcPortSpecification,
("proxyHeader" .=) <$> _shcProxyHeader,
("portName" .=) <$> _shcPortName,
("port" .=) <$> _shcPort,
("request" .=) <$> _shcRequest])
data Address =
Address'
{ _aPrefixLength :: !(Maybe (Textual Int32))
, _aNetworkTier :: !(Maybe AddressNetworkTier)
, _aStatus :: !(Maybe AddressStatus)
, _aUsers :: !(Maybe [Text])
, _aKind :: !Text
, _aIPVersion :: !(Maybe AddressIPVersion)
, _aNetwork :: !(Maybe Text)
, _aAddress :: !(Maybe Text)
, _aPurpose :: !(Maybe AddressPurpose)
, _aSelfLink :: !(Maybe Text)
, _aName :: !(Maybe Text)
, _aCreationTimestamp :: !(Maybe Text)
, _aSubnetwork :: !(Maybe Text)
, _aId :: !(Maybe (Textual Word64))
, _aRegion :: !(Maybe Text)
, _aDescription :: !(Maybe Text)
, _aAddressType :: !(Maybe AddressAddressType)
}
deriving (Eq, Show, Data, Typeable, Generic)
address
:: Address
address =
Address'
{ _aPrefixLength = Nothing
, _aNetworkTier = Nothing
, _aStatus = Nothing
, _aUsers = Nothing
, _aKind = "compute#address"
, _aIPVersion = Nothing
, _aNetwork = Nothing
, _aAddress = Nothing
, _aPurpose = Nothing
, _aSelfLink = Nothing
, _aName = Nothing
, _aCreationTimestamp = Nothing
, _aSubnetwork = Nothing
, _aId = Nothing
, _aRegion = Nothing
, _aDescription = Nothing
, _aAddressType = Nothing
}
aPrefixLength :: Lens' Address (Maybe Int32)
aPrefixLength
= lens _aPrefixLength
(\ s a -> s{_aPrefixLength = a})
. mapping _Coerce
aNetworkTier :: Lens' Address (Maybe AddressNetworkTier)
aNetworkTier
= lens _aNetworkTier (\ s a -> s{_aNetworkTier = a})
aStatus :: Lens' Address (Maybe AddressStatus)
aStatus = lens _aStatus (\ s a -> s{_aStatus = a})
aUsers :: Lens' Address [Text]
aUsers
= lens _aUsers (\ s a -> s{_aUsers = a}) . _Default .
_Coerce
aKind :: Lens' Address Text
aKind = lens _aKind (\ s a -> s{_aKind = a})
aIPVersion :: Lens' Address (Maybe AddressIPVersion)
aIPVersion
= lens _aIPVersion (\ s a -> s{_aIPVersion = a})
aNetwork :: Lens' Address (Maybe Text)
aNetwork = lens _aNetwork (\ s a -> s{_aNetwork = a})
aAddress :: Lens' Address (Maybe Text)
aAddress = lens _aAddress (\ s a -> s{_aAddress = a})
aPurpose :: Lens' Address (Maybe AddressPurpose)
aPurpose = lens _aPurpose (\ s a -> s{_aPurpose = a})
aSelfLink :: Lens' Address (Maybe Text)
aSelfLink
= lens _aSelfLink (\ s a -> s{_aSelfLink = a})
aName :: Lens' Address (Maybe Text)
aName = lens _aName (\ s a -> s{_aName = a})
aCreationTimestamp :: Lens' Address (Maybe Text)
aCreationTimestamp
= lens _aCreationTimestamp
(\ s a -> s{_aCreationTimestamp = a})
aSubnetwork :: Lens' Address (Maybe Text)
aSubnetwork
= lens _aSubnetwork (\ s a -> s{_aSubnetwork = a})
aId :: Lens' Address (Maybe Word64)
aId
= lens _aId (\ s a -> s{_aId = a}) . mapping _Coerce
aRegion :: Lens' Address (Maybe Text)
aRegion = lens _aRegion (\ s a -> s{_aRegion = a})
aDescription :: Lens' Address (Maybe Text)
aDescription
= lens _aDescription (\ s a -> s{_aDescription = a})
aAddressType :: Lens' Address (Maybe AddressAddressType)
aAddressType
= lens _aAddressType (\ s a -> s{_aAddressType = a})
instance FromJSON Address where
parseJSON
= withObject "Address"
(\ o ->
Address' <$>
(o .:? "prefixLength") <*> (o .:? "networkTier") <*>
(o .:? "status")
<*> (o .:? "users" .!= mempty)
<*> (o .:? "kind" .!= "compute#address")
<*> (o .:? "ipVersion")
<*> (o .:? "network")
<*> (o .:? "address")
<*> (o .:? "purpose")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "subnetwork")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "description")
<*> (o .:? "addressType"))
instance ToJSON Address where
toJSON Address'{..}
= object
(catMaybes
[("prefixLength" .=) <$> _aPrefixLength,
("networkTier" .=) <$> _aNetworkTier,
("status" .=) <$> _aStatus, ("users" .=) <$> _aUsers,
Just ("kind" .= _aKind),
("ipVersion" .=) <$> _aIPVersion,
("network" .=) <$> _aNetwork,
("address" .=) <$> _aAddress,
("purpose" .=) <$> _aPurpose,
("selfLink" .=) <$> _aSelfLink,
("name" .=) <$> _aName,
("creationTimestamp" .=) <$> _aCreationTimestamp,
("subnetwork" .=) <$> _aSubnetwork,
("id" .=) <$> _aId, ("region" .=) <$> _aRegion,
("description" .=) <$> _aDescription,
("addressType" .=) <$> _aAddressType])
newtype NodeGroupAggregatedListItems =
NodeGroupAggregatedListItems'
{ _ngaliAddtional :: HashMap Text NodeGroupsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupAggregatedListItems
:: HashMap Text NodeGroupsScopedList
-> NodeGroupAggregatedListItems
nodeGroupAggregatedListItems pNgaliAddtional_ =
NodeGroupAggregatedListItems' {_ngaliAddtional = _Coerce # pNgaliAddtional_}
ngaliAddtional :: Lens' NodeGroupAggregatedListItems (HashMap Text NodeGroupsScopedList)
ngaliAddtional
= lens _ngaliAddtional
(\ s a -> s{_ngaliAddtional = a})
. _Coerce
instance FromJSON NodeGroupAggregatedListItems where
parseJSON
= withObject "NodeGroupAggregatedListItems"
(\ o ->
NodeGroupAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON NodeGroupAggregatedListItems where
toJSON = toJSON . _ngaliAddtional
data InstanceGroupListWarning =
InstanceGroupListWarning'
{ _iglwData :: !(Maybe [InstanceGroupListWarningDataItem])
, _iglwCode :: !(Maybe InstanceGroupListWarningCode)
, _iglwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupListWarning
:: InstanceGroupListWarning
instanceGroupListWarning =
InstanceGroupListWarning'
{_iglwData = Nothing, _iglwCode = Nothing, _iglwMessage = Nothing}
iglwData :: Lens' InstanceGroupListWarning [InstanceGroupListWarningDataItem]
iglwData
= lens _iglwData (\ s a -> s{_iglwData = a}) .
_Default
. _Coerce
iglwCode :: Lens' InstanceGroupListWarning (Maybe InstanceGroupListWarningCode)
iglwCode = lens _iglwCode (\ s a -> s{_iglwCode = a})
iglwMessage :: Lens' InstanceGroupListWarning (Maybe Text)
iglwMessage
= lens _iglwMessage (\ s a -> s{_iglwMessage = a})
instance FromJSON InstanceGroupListWarning where
parseJSON
= withObject "InstanceGroupListWarning"
(\ o ->
InstanceGroupListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceGroupListWarning where
toJSON InstanceGroupListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _iglwData,
("code" .=) <$> _iglwCode,
("message" .=) <$> _iglwMessage])
newtype AttachedDiskInitializeParamsLabels =
AttachedDiskInitializeParamsLabels'
{ _adiplAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
attachedDiskInitializeParamsLabels
:: HashMap Text Text
-> AttachedDiskInitializeParamsLabels
attachedDiskInitializeParamsLabels pAdiplAddtional_ =
AttachedDiskInitializeParamsLabels'
{_adiplAddtional = _Coerce # pAdiplAddtional_}
adiplAddtional :: Lens' AttachedDiskInitializeParamsLabels (HashMap Text Text)
adiplAddtional
= lens _adiplAddtional
(\ s a -> s{_adiplAddtional = a})
. _Coerce
instance FromJSON AttachedDiskInitializeParamsLabels
where
parseJSON
= withObject "AttachedDiskInitializeParamsLabels"
(\ o ->
AttachedDiskInitializeParamsLabels' <$>
(parseJSONObject o))
instance ToJSON AttachedDiskInitializeParamsLabels
where
toJSON = toJSON . _adiplAddtional
data Zone =
Zone'
{ _zStatus :: !(Maybe ZoneStatus)
, _zKind :: !Text
, _zSelfLink :: !(Maybe Text)
, _zName :: !(Maybe Text)
, _zCreationTimestamp :: !(Maybe Text)
, _zId :: !(Maybe (Textual Word64))
, _zRegion :: !(Maybe Text)
, _zAvailableCPUPlatforms :: !(Maybe [Text])
, _zDescription :: !(Maybe Text)
, _zDeprecated :: !(Maybe DeprecationStatus)
}
deriving (Eq, Show, Data, Typeable, Generic)
zone
:: Zone
zone =
Zone'
{ _zStatus = Nothing
, _zKind = "compute#zone"
, _zSelfLink = Nothing
, _zName = Nothing
, _zCreationTimestamp = Nothing
, _zId = Nothing
, _zRegion = Nothing
, _zAvailableCPUPlatforms = Nothing
, _zDescription = Nothing
, _zDeprecated = Nothing
}
zStatus :: Lens' Zone (Maybe ZoneStatus)
zStatus = lens _zStatus (\ s a -> s{_zStatus = a})
zKind :: Lens' Zone Text
zKind = lens _zKind (\ s a -> s{_zKind = a})
zSelfLink :: Lens' Zone (Maybe Text)
zSelfLink
= lens _zSelfLink (\ s a -> s{_zSelfLink = a})
zName :: Lens' Zone (Maybe Text)
zName = lens _zName (\ s a -> s{_zName = a})
zCreationTimestamp :: Lens' Zone (Maybe Text)
zCreationTimestamp
= lens _zCreationTimestamp
(\ s a -> s{_zCreationTimestamp = a})
zId :: Lens' Zone (Maybe Word64)
zId
= lens _zId (\ s a -> s{_zId = a}) . mapping _Coerce
zRegion :: Lens' Zone (Maybe Text)
zRegion = lens _zRegion (\ s a -> s{_zRegion = a})
zAvailableCPUPlatforms :: Lens' Zone [Text]
zAvailableCPUPlatforms
= lens _zAvailableCPUPlatforms
(\ s a -> s{_zAvailableCPUPlatforms = a})
. _Default
. _Coerce
zDescription :: Lens' Zone (Maybe Text)
zDescription
= lens _zDescription (\ s a -> s{_zDescription = a})
zDeprecated :: Lens' Zone (Maybe DeprecationStatus)
zDeprecated
= lens _zDeprecated (\ s a -> s{_zDeprecated = a})
instance FromJSON Zone where
parseJSON
= withObject "Zone"
(\ o ->
Zone' <$>
(o .:? "status") <*>
(o .:? "kind" .!= "compute#zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "availableCpuPlatforms" .!= mempty)
<*> (o .:? "description")
<*> (o .:? "deprecated"))
instance ToJSON Zone where
toJSON Zone'{..}
= object
(catMaybes
[("status" .=) <$> _zStatus, Just ("kind" .= _zKind),
("selfLink" .=) <$> _zSelfLink,
("name" .=) <$> _zName,
("creationTimestamp" .=) <$> _zCreationTimestamp,
("id" .=) <$> _zId, ("region" .=) <$> _zRegion,
("availableCpuPlatforms" .=) <$>
_zAvailableCPUPlatforms,
("description" .=) <$> _zDescription,
("deprecated" .=) <$> _zDeprecated])
data RouterBGP =
RouterBGP'
{ _rbASN :: !(Maybe (Textual Word32))
, _rbAdvertiseMode :: !(Maybe RouterBGPAdvertiseMode)
, _rbAdvertisedGroups :: !(Maybe [RouterBGPAdvertisedGroupsItem])
, _rbAdvertisedIPRanges :: !(Maybe [RouterAdvertisedIPRange])
}
deriving (Eq, Show, Data, Typeable, Generic)
routerBGP
:: RouterBGP
routerBGP =
RouterBGP'
{ _rbASN = Nothing
, _rbAdvertiseMode = Nothing
, _rbAdvertisedGroups = Nothing
, _rbAdvertisedIPRanges = Nothing
}
rbASN :: Lens' RouterBGP (Maybe Word32)
rbASN
= lens _rbASN (\ s a -> s{_rbASN = a}) .
mapping _Coerce
rbAdvertiseMode :: Lens' RouterBGP (Maybe RouterBGPAdvertiseMode)
rbAdvertiseMode
= lens _rbAdvertiseMode
(\ s a -> s{_rbAdvertiseMode = a})
rbAdvertisedGroups :: Lens' RouterBGP [RouterBGPAdvertisedGroupsItem]
rbAdvertisedGroups
= lens _rbAdvertisedGroups
(\ s a -> s{_rbAdvertisedGroups = a})
. _Default
. _Coerce
rbAdvertisedIPRanges :: Lens' RouterBGP [RouterAdvertisedIPRange]
rbAdvertisedIPRanges
= lens _rbAdvertisedIPRanges
(\ s a -> s{_rbAdvertisedIPRanges = a})
. _Default
. _Coerce
instance FromJSON RouterBGP where
parseJSON
= withObject "RouterBGP"
(\ o ->
RouterBGP' <$>
(o .:? "asn") <*> (o .:? "advertiseMode") <*>
(o .:? "advertisedGroups" .!= mempty)
<*> (o .:? "advertisedIpRanges" .!= mempty))
instance ToJSON RouterBGP where
toJSON RouterBGP'{..}
= object
(catMaybes
[("asn" .=) <$> _rbASN,
("advertiseMode" .=) <$> _rbAdvertiseMode,
("advertisedGroups" .=) <$> _rbAdvertisedGroups,
("advertisedIpRanges" .=) <$> _rbAdvertisedIPRanges])
data FirewallListWarning =
FirewallListWarning'
{ _flwData :: !(Maybe [FirewallListWarningDataItem])
, _flwCode :: !(Maybe FirewallListWarningCode)
, _flwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
firewallListWarning
:: FirewallListWarning
firewallListWarning =
FirewallListWarning'
{_flwData = Nothing, _flwCode = Nothing, _flwMessage = Nothing}
flwData :: Lens' FirewallListWarning [FirewallListWarningDataItem]
flwData
= lens _flwData (\ s a -> s{_flwData = a}) . _Default
. _Coerce
flwCode :: Lens' FirewallListWarning (Maybe FirewallListWarningCode)
flwCode = lens _flwCode (\ s a -> s{_flwCode = a})
flwMessage :: Lens' FirewallListWarning (Maybe Text)
flwMessage
= lens _flwMessage (\ s a -> s{_flwMessage = a})
instance FromJSON FirewallListWarning where
parseJSON
= withObject "FirewallListWarning"
(\ o ->
FirewallListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON FirewallListWarning where
toJSON FirewallListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _flwData, ("code" .=) <$> _flwCode,
("message" .=) <$> _flwMessage])
data BackendServicesScopedList =
BackendServicesScopedList'
{ _bsslWarning :: !(Maybe BackendServicesScopedListWarning)
, _bsslBackendServices :: !(Maybe [BackendService])
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServicesScopedList
:: BackendServicesScopedList
backendServicesScopedList =
BackendServicesScopedList'
{_bsslWarning = Nothing, _bsslBackendServices = Nothing}
bsslWarning :: Lens' BackendServicesScopedList (Maybe BackendServicesScopedListWarning)
bsslWarning
= lens _bsslWarning (\ s a -> s{_bsslWarning = a})
bsslBackendServices :: Lens' BackendServicesScopedList [BackendService]
bsslBackendServices
= lens _bsslBackendServices
(\ s a -> s{_bsslBackendServices = a})
. _Default
. _Coerce
instance FromJSON BackendServicesScopedList where
parseJSON
= withObject "BackendServicesScopedList"
(\ o ->
BackendServicesScopedList' <$>
(o .:? "warning") <*>
(o .:? "backendServices" .!= mempty))
instance ToJSON BackendServicesScopedList where
toJSON BackendServicesScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _bsslWarning,
("backendServices" .=) <$> _bsslBackendServices])
newtype InstanceGroupManagersRecreateInstancesRequest =
InstanceGroupManagersRecreateInstancesRequest'
{ _igmrirInstances :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersRecreateInstancesRequest
:: InstanceGroupManagersRecreateInstancesRequest
instanceGroupManagersRecreateInstancesRequest =
InstanceGroupManagersRecreateInstancesRequest' {_igmrirInstances = Nothing}
igmrirInstances :: Lens' InstanceGroupManagersRecreateInstancesRequest [Text]
igmrirInstances
= lens _igmrirInstances
(\ s a -> s{_igmrirInstances = a})
. _Default
. _Coerce
instance FromJSON
InstanceGroupManagersRecreateInstancesRequest
where
parseJSON
= withObject
"InstanceGroupManagersRecreateInstancesRequest"
(\ o ->
InstanceGroupManagersRecreateInstancesRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON
InstanceGroupManagersRecreateInstancesRequest
where
toJSON
InstanceGroupManagersRecreateInstancesRequest'{..}
= object
(catMaybes [("instances" .=) <$> _igmrirInstances])
newtype TargetSSLProxiesSetSSLCertificatesRequest =
TargetSSLProxiesSetSSLCertificatesRequest'
{ _tspsscrSSLCertificates :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
targetSSLProxiesSetSSLCertificatesRequest
:: TargetSSLProxiesSetSSLCertificatesRequest
targetSSLProxiesSetSSLCertificatesRequest =
TargetSSLProxiesSetSSLCertificatesRequest' {_tspsscrSSLCertificates = Nothing}
tspsscrSSLCertificates :: Lens' TargetSSLProxiesSetSSLCertificatesRequest [Text]
tspsscrSSLCertificates
= lens _tspsscrSSLCertificates
(\ s a -> s{_tspsscrSSLCertificates = a})
. _Default
. _Coerce
instance FromJSON
TargetSSLProxiesSetSSLCertificatesRequest
where
parseJSON
= withObject
"TargetSSLProxiesSetSSLCertificatesRequest"
(\ o ->
TargetSSLProxiesSetSSLCertificatesRequest' <$>
(o .:? "sslCertificates" .!= mempty))
instance ToJSON
TargetSSLProxiesSetSSLCertificatesRequest
where
toJSON TargetSSLProxiesSetSSLCertificatesRequest'{..}
= object
(catMaybes
[("sslCertificates" .=) <$> _tspsscrSSLCertificates])
data HealthStatusForNetworkEndpoint =
HealthStatusForNetworkEndpoint'
{ _hsfneHealthCheck :: !(Maybe HealthCheckReference)
, _hsfneForwardingRule :: !(Maybe ForwardingRuleReference)
, _hsfneHealthState :: !(Maybe HealthStatusForNetworkEndpointHealthState)
, _hsfneBackendService :: !(Maybe BackendServiceReference)
}
deriving (Eq, Show, Data, Typeable, Generic)
healthStatusForNetworkEndpoint
:: HealthStatusForNetworkEndpoint
healthStatusForNetworkEndpoint =
HealthStatusForNetworkEndpoint'
{ _hsfneHealthCheck = Nothing
, _hsfneForwardingRule = Nothing
, _hsfneHealthState = Nothing
, _hsfneBackendService = Nothing
}
hsfneHealthCheck :: Lens' HealthStatusForNetworkEndpoint (Maybe HealthCheckReference)
hsfneHealthCheck
= lens _hsfneHealthCheck
(\ s a -> s{_hsfneHealthCheck = a})
hsfneForwardingRule :: Lens' HealthStatusForNetworkEndpoint (Maybe ForwardingRuleReference)
hsfneForwardingRule
= lens _hsfneForwardingRule
(\ s a -> s{_hsfneForwardingRule = a})
hsfneHealthState :: Lens' HealthStatusForNetworkEndpoint (Maybe HealthStatusForNetworkEndpointHealthState)
hsfneHealthState
= lens _hsfneHealthState
(\ s a -> s{_hsfneHealthState = a})
hsfneBackendService :: Lens' HealthStatusForNetworkEndpoint (Maybe BackendServiceReference)
hsfneBackendService
= lens _hsfneBackendService
(\ s a -> s{_hsfneBackendService = a})
instance FromJSON HealthStatusForNetworkEndpoint
where
parseJSON
= withObject "HealthStatusForNetworkEndpoint"
(\ o ->
HealthStatusForNetworkEndpoint' <$>
(o .:? "healthCheck") <*> (o .:? "forwardingRule")
<*> (o .:? "healthState")
<*> (o .:? "backendService"))
instance ToJSON HealthStatusForNetworkEndpoint where
toJSON HealthStatusForNetworkEndpoint'{..}
= object
(catMaybes
[("healthCheck" .=) <$> _hsfneHealthCheck,
("forwardingRule" .=) <$> _hsfneForwardingRule,
("healthState" .=) <$> _hsfneHealthState,
("backendService" .=) <$> _hsfneBackendService])
data RouterAggregatedListWarning =
RouterAggregatedListWarning'
{ _rouData :: !(Maybe [RouterAggregatedListWarningDataItem])
, _rouCode :: !(Maybe RouterAggregatedListWarningCode)
, _rouMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerAggregatedListWarning
:: RouterAggregatedListWarning
routerAggregatedListWarning =
RouterAggregatedListWarning'
{_rouData = Nothing, _rouCode = Nothing, _rouMessage = Nothing}
rouData :: Lens' RouterAggregatedListWarning [RouterAggregatedListWarningDataItem]
rouData
= lens _rouData (\ s a -> s{_rouData = a}) . _Default
. _Coerce
rouCode :: Lens' RouterAggregatedListWarning (Maybe RouterAggregatedListWarningCode)
rouCode = lens _rouCode (\ s a -> s{_rouCode = a})
rouMessage :: Lens' RouterAggregatedListWarning (Maybe Text)
rouMessage
= lens _rouMessage (\ s a -> s{_rouMessage = a})
instance FromJSON RouterAggregatedListWarning where
parseJSON
= withObject "RouterAggregatedListWarning"
(\ o ->
RouterAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RouterAggregatedListWarning where
toJSON RouterAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rouData, ("code" .=) <$> _rouCode,
("message" .=) <$> _rouMessage])
data InstancesScopedList =
InstancesScopedList'
{ _islWarning :: !(Maybe InstancesScopedListWarning)
, _islInstances :: !(Maybe [Instance])
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesScopedList
:: InstancesScopedList
instancesScopedList =
InstancesScopedList' {_islWarning = Nothing, _islInstances = Nothing}
islWarning :: Lens' InstancesScopedList (Maybe InstancesScopedListWarning)
islWarning
= lens _islWarning (\ s a -> s{_islWarning = a})
islInstances :: Lens' InstancesScopedList [Instance]
islInstances
= lens _islInstances (\ s a -> s{_islInstances = a})
. _Default
. _Coerce
instance FromJSON InstancesScopedList where
parseJSON
= withObject "InstancesScopedList"
(\ o ->
InstancesScopedList' <$>
(o .:? "warning") <*> (o .:? "instances" .!= mempty))
instance ToJSON InstancesScopedList where
toJSON InstancesScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _islWarning,
("instances" .=) <$> _islInstances])
newtype AcceleratorTypeAggregatedListItems =
AcceleratorTypeAggregatedListItems'
{ _ataliAddtional :: HashMap Text AcceleratorTypesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypeAggregatedListItems
:: HashMap Text AcceleratorTypesScopedList
-> AcceleratorTypeAggregatedListItems
acceleratorTypeAggregatedListItems pAtaliAddtional_ =
AcceleratorTypeAggregatedListItems'
{_ataliAddtional = _Coerce # pAtaliAddtional_}
ataliAddtional :: Lens' AcceleratorTypeAggregatedListItems (HashMap Text AcceleratorTypesScopedList)
ataliAddtional
= lens _ataliAddtional
(\ s a -> s{_ataliAddtional = a})
. _Coerce
instance FromJSON AcceleratorTypeAggregatedListItems
where
parseJSON
= withObject "AcceleratorTypeAggregatedListItems"
(\ o ->
AcceleratorTypeAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON AcceleratorTypeAggregatedListItems
where
toJSON = toJSON . _ataliAddtional
data TargetVPNGatewayAggregatedListWarningDataItem =
TargetVPNGatewayAggregatedListWarningDataItem'
{ _tvgalwdiValue :: !(Maybe Text)
, _tvgalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewayAggregatedListWarningDataItem
:: TargetVPNGatewayAggregatedListWarningDataItem
targetVPNGatewayAggregatedListWarningDataItem =
TargetVPNGatewayAggregatedListWarningDataItem'
{_tvgalwdiValue = Nothing, _tvgalwdiKey = Nothing}
tvgalwdiValue :: Lens' TargetVPNGatewayAggregatedListWarningDataItem (Maybe Text)
tvgalwdiValue
= lens _tvgalwdiValue
(\ s a -> s{_tvgalwdiValue = a})
tvgalwdiKey :: Lens' TargetVPNGatewayAggregatedListWarningDataItem (Maybe Text)
tvgalwdiKey
= lens _tvgalwdiKey (\ s a -> s{_tvgalwdiKey = a})
instance FromJSON
TargetVPNGatewayAggregatedListWarningDataItem
where
parseJSON
= withObject
"TargetVPNGatewayAggregatedListWarningDataItem"
(\ o ->
TargetVPNGatewayAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
TargetVPNGatewayAggregatedListWarningDataItem
where
toJSON
TargetVPNGatewayAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tvgalwdiValue,
("key" .=) <$> _tvgalwdiKey])
newtype HealthCheckReference =
HealthCheckReference'
{ _hcrHealthCheck :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
healthCheckReference
:: HealthCheckReference
healthCheckReference = HealthCheckReference' {_hcrHealthCheck = Nothing}
hcrHealthCheck :: Lens' HealthCheckReference (Maybe Text)
hcrHealthCheck
= lens _hcrHealthCheck
(\ s a -> s{_hcrHealthCheck = a})
instance FromJSON HealthCheckReference where
parseJSON
= withObject "HealthCheckReference"
(\ o ->
HealthCheckReference' <$> (o .:? "healthCheck"))
instance ToJSON HealthCheckReference where
toJSON HealthCheckReference'{..}
= object
(catMaybes [("healthCheck" .=) <$> _hcrHealthCheck])
newtype TargetInstanceAggregatedListItems =
TargetInstanceAggregatedListItems'
{ _tialiAddtional :: HashMap Text TargetInstancesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstanceAggregatedListItems
:: HashMap Text TargetInstancesScopedList
-> TargetInstanceAggregatedListItems
targetInstanceAggregatedListItems pTialiAddtional_ =
TargetInstanceAggregatedListItems'
{_tialiAddtional = _Coerce # pTialiAddtional_}
tialiAddtional :: Lens' TargetInstanceAggregatedListItems (HashMap Text TargetInstancesScopedList)
tialiAddtional
= lens _tialiAddtional
(\ s a -> s{_tialiAddtional = a})
. _Coerce
instance FromJSON TargetInstanceAggregatedListItems
where
parseJSON
= withObject "TargetInstanceAggregatedListItems"
(\ o ->
TargetInstanceAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON TargetInstanceAggregatedListItems
where
toJSON = toJSON . _tialiAddtional
newtype TargetHTTPSProxiesSetQuicOverrideRequest =
TargetHTTPSProxiesSetQuicOverrideRequest'
{ _thpsqorQuicOverride :: Maybe TargetHTTPSProxiesSetQuicOverrideRequestQuicOverride
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPSProxiesSetQuicOverrideRequest
:: TargetHTTPSProxiesSetQuicOverrideRequest
targetHTTPSProxiesSetQuicOverrideRequest =
TargetHTTPSProxiesSetQuicOverrideRequest' {_thpsqorQuicOverride = Nothing}
thpsqorQuicOverride :: Lens' TargetHTTPSProxiesSetQuicOverrideRequest (Maybe TargetHTTPSProxiesSetQuicOverrideRequestQuicOverride)
thpsqorQuicOverride
= lens _thpsqorQuicOverride
(\ s a -> s{_thpsqorQuicOverride = a})
instance FromJSON
TargetHTTPSProxiesSetQuicOverrideRequest
where
parseJSON
= withObject
"TargetHTTPSProxiesSetQuicOverrideRequest"
(\ o ->
TargetHTTPSProxiesSetQuicOverrideRequest' <$>
(o .:? "quicOverride"))
instance ToJSON
TargetHTTPSProxiesSetQuicOverrideRequest
where
toJSON TargetHTTPSProxiesSetQuicOverrideRequest'{..}
= object
(catMaybes
[("quicOverride" .=) <$> _thpsqorQuicOverride])
data TargetSSLProxyListWarning =
TargetSSLProxyListWarning'
{ _tsplwData :: !(Maybe [TargetSSLProxyListWarningDataItem])
, _tsplwCode :: !(Maybe TargetSSLProxyListWarningCode)
, _tsplwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetSSLProxyListWarning
:: TargetSSLProxyListWarning
targetSSLProxyListWarning =
TargetSSLProxyListWarning'
{_tsplwData = Nothing, _tsplwCode = Nothing, _tsplwMessage = Nothing}
tsplwData :: Lens' TargetSSLProxyListWarning [TargetSSLProxyListWarningDataItem]
tsplwData
= lens _tsplwData (\ s a -> s{_tsplwData = a}) .
_Default
. _Coerce
tsplwCode :: Lens' TargetSSLProxyListWarning (Maybe TargetSSLProxyListWarningCode)
tsplwCode
= lens _tsplwCode (\ s a -> s{_tsplwCode = a})
tsplwMessage :: Lens' TargetSSLProxyListWarning (Maybe Text)
tsplwMessage
= lens _tsplwMessage (\ s a -> s{_tsplwMessage = a})
instance FromJSON TargetSSLProxyListWarning where
parseJSON
= withObject "TargetSSLProxyListWarning"
(\ o ->
TargetSSLProxyListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetSSLProxyListWarning where
toJSON TargetSSLProxyListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tsplwData,
("code" .=) <$> _tsplwCode,
("message" .=) <$> _tsplwMessage])
data InstanceTemplateListWarning =
InstanceTemplateListWarning'
{ _itlwData :: !(Maybe [InstanceTemplateListWarningDataItem])
, _itlwCode :: !(Maybe InstanceTemplateListWarningCode)
, _itlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceTemplateListWarning
:: InstanceTemplateListWarning
instanceTemplateListWarning =
InstanceTemplateListWarning'
{_itlwData = Nothing, _itlwCode = Nothing, _itlwMessage = Nothing}
itlwData :: Lens' InstanceTemplateListWarning [InstanceTemplateListWarningDataItem]
itlwData
= lens _itlwData (\ s a -> s{_itlwData = a}) .
_Default
. _Coerce
itlwCode :: Lens' InstanceTemplateListWarning (Maybe InstanceTemplateListWarningCode)
itlwCode = lens _itlwCode (\ s a -> s{_itlwCode = a})
itlwMessage :: Lens' InstanceTemplateListWarning (Maybe Text)
itlwMessage
= lens _itlwMessage (\ s a -> s{_itlwMessage = a})
instance FromJSON InstanceTemplateListWarning where
parseJSON
= withObject "InstanceTemplateListWarning"
(\ o ->
InstanceTemplateListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceTemplateListWarning where
toJSON InstanceTemplateListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _itlwData,
("code" .=) <$> _itlwCode,
("message" .=) <$> _itlwMessage])
data InstanceListReferrersWarning =
InstanceListReferrersWarning'
{ _ilrwData :: !(Maybe [InstanceListReferrersWarningDataItem])
, _ilrwCode :: !(Maybe InstanceListReferrersWarningCode)
, _ilrwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceListReferrersWarning
:: InstanceListReferrersWarning
instanceListReferrersWarning =
InstanceListReferrersWarning'
{_ilrwData = Nothing, _ilrwCode = Nothing, _ilrwMessage = Nothing}
ilrwData :: Lens' InstanceListReferrersWarning [InstanceListReferrersWarningDataItem]
ilrwData
= lens _ilrwData (\ s a -> s{_ilrwData = a}) .
_Default
. _Coerce
ilrwCode :: Lens' InstanceListReferrersWarning (Maybe InstanceListReferrersWarningCode)
ilrwCode = lens _ilrwCode (\ s a -> s{_ilrwCode = a})
ilrwMessage :: Lens' InstanceListReferrersWarning (Maybe Text)
ilrwMessage
= lens _ilrwMessage (\ s a -> s{_ilrwMessage = a})
instance FromJSON InstanceListReferrersWarning where
parseJSON
= withObject "InstanceListReferrersWarning"
(\ o ->
InstanceListReferrersWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceListReferrersWarning where
toJSON InstanceListReferrersWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ilrwData,
("code" .=) <$> _ilrwCode,
("message" .=) <$> _ilrwMessage])
data RouteListWarning =
RouteListWarning'
{ _rlwlData :: !(Maybe [RouteListWarningDataItem])
, _rlwlCode :: !(Maybe RouteListWarningCode)
, _rlwlMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routeListWarning
:: RouteListWarning
routeListWarning =
RouteListWarning'
{_rlwlData = Nothing, _rlwlCode = Nothing, _rlwlMessage = Nothing}
rlwlData :: Lens' RouteListWarning [RouteListWarningDataItem]
rlwlData
= lens _rlwlData (\ s a -> s{_rlwlData = a}) .
_Default
. _Coerce
rlwlCode :: Lens' RouteListWarning (Maybe RouteListWarningCode)
rlwlCode = lens _rlwlCode (\ s a -> s{_rlwlCode = a})
rlwlMessage :: Lens' RouteListWarning (Maybe Text)
rlwlMessage
= lens _rlwlMessage (\ s a -> s{_rlwlMessage = a})
instance FromJSON RouteListWarning where
parseJSON
= withObject "RouteListWarning"
(\ o ->
RouteListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RouteListWarning where
toJSON RouteListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rlwlData,
("code" .=) <$> _rlwlCode,
("message" .=) <$> _rlwlMessage])
data InstanceGroupAggregatedList =
InstanceGroupAggregatedList'
{ _igalNextPageToken :: !(Maybe Text)
, _igalKind :: !Text
, _igalItems :: !(Maybe InstanceGroupAggregatedListItems)
, _igalSelfLink :: !(Maybe Text)
, _igalWarning :: !(Maybe InstanceGroupAggregatedListWarning)
, _igalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupAggregatedList
:: InstanceGroupAggregatedList
instanceGroupAggregatedList =
InstanceGroupAggregatedList'
{ _igalNextPageToken = Nothing
, _igalKind = "compute#instanceGroupAggregatedList"
, _igalItems = Nothing
, _igalSelfLink = Nothing
, _igalWarning = Nothing
, _igalId = Nothing
}
igalNextPageToken :: Lens' InstanceGroupAggregatedList (Maybe Text)
igalNextPageToken
= lens _igalNextPageToken
(\ s a -> s{_igalNextPageToken = a})
igalKind :: Lens' InstanceGroupAggregatedList Text
igalKind = lens _igalKind (\ s a -> s{_igalKind = a})
igalItems :: Lens' InstanceGroupAggregatedList (Maybe InstanceGroupAggregatedListItems)
igalItems
= lens _igalItems (\ s a -> s{_igalItems = a})
igalSelfLink :: Lens' InstanceGroupAggregatedList (Maybe Text)
igalSelfLink
= lens _igalSelfLink (\ s a -> s{_igalSelfLink = a})
igalWarning :: Lens' InstanceGroupAggregatedList (Maybe InstanceGroupAggregatedListWarning)
igalWarning
= lens _igalWarning (\ s a -> s{_igalWarning = a})
igalId :: Lens' InstanceGroupAggregatedList (Maybe Text)
igalId = lens _igalId (\ s a -> s{_igalId = a})
instance FromJSON InstanceGroupAggregatedList where
parseJSON
= withObject "InstanceGroupAggregatedList"
(\ o ->
InstanceGroupAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#instanceGroupAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceGroupAggregatedList where
toJSON InstanceGroupAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _igalNextPageToken,
Just ("kind" .= _igalKind),
("items" .=) <$> _igalItems,
("selfLink" .=) <$> _igalSelfLink,
("warning" .=) <$> _igalWarning,
("id" .=) <$> _igalId])
data Route =
Route'
{ _rrNextHopPeering :: !(Maybe Text)
, _rrPriority :: !(Maybe (Textual Word32))
, _rrKind :: !Text
, _rrNextHopGateway :: !(Maybe Text)
, _rrNextHopNetwork :: !(Maybe Text)
, _rrNetwork :: !(Maybe Text)
, _rrWarnings :: !(Maybe [RouteWarningsItem])
, _rrNextHopIP :: !(Maybe Text)
, _rrDestRange :: !(Maybe Text)
, _rrSelfLink :: !(Maybe Text)
, _rrName :: !(Maybe Text)
, _rrCreationTimestamp :: !(Maybe Text)
, _rrId :: !(Maybe (Textual Word64))
, _rrNextHopVPNTunnel :: !(Maybe Text)
, _rrDescription :: !(Maybe Text)
, _rrTags :: !(Maybe [Text])
, _rrNextHopInstance :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
route
:: Route
route =
Route'
{ _rrNextHopPeering = Nothing
, _rrPriority = Nothing
, _rrKind = "compute#route"
, _rrNextHopGateway = Nothing
, _rrNextHopNetwork = Nothing
, _rrNetwork = Nothing
, _rrWarnings = Nothing
, _rrNextHopIP = Nothing
, _rrDestRange = Nothing
, _rrSelfLink = Nothing
, _rrName = Nothing
, _rrCreationTimestamp = Nothing
, _rrId = Nothing
, _rrNextHopVPNTunnel = Nothing
, _rrDescription = Nothing
, _rrTags = Nothing
, _rrNextHopInstance = Nothing
}
rrNextHopPeering :: Lens' Route (Maybe Text)
rrNextHopPeering
= lens _rrNextHopPeering
(\ s a -> s{_rrNextHopPeering = a})
rrPriority :: Lens' Route (Maybe Word32)
rrPriority
= lens _rrPriority (\ s a -> s{_rrPriority = a}) .
mapping _Coerce
rrKind :: Lens' Route Text
rrKind = lens _rrKind (\ s a -> s{_rrKind = a})
rrNextHopGateway :: Lens' Route (Maybe Text)
rrNextHopGateway
= lens _rrNextHopGateway
(\ s a -> s{_rrNextHopGateway = a})
rrNextHopNetwork :: Lens' Route (Maybe Text)
rrNextHopNetwork
= lens _rrNextHopNetwork
(\ s a -> s{_rrNextHopNetwork = a})
rrNetwork :: Lens' Route (Maybe Text)
rrNetwork
= lens _rrNetwork (\ s a -> s{_rrNetwork = a})
rrWarnings :: Lens' Route [RouteWarningsItem]
rrWarnings
= lens _rrWarnings (\ s a -> s{_rrWarnings = a}) .
_Default
. _Coerce
rrNextHopIP :: Lens' Route (Maybe Text)
rrNextHopIP
= lens _rrNextHopIP (\ s a -> s{_rrNextHopIP = a})
rrDestRange :: Lens' Route (Maybe Text)
rrDestRange
= lens _rrDestRange (\ s a -> s{_rrDestRange = a})
rrSelfLink :: Lens' Route (Maybe Text)
rrSelfLink
= lens _rrSelfLink (\ s a -> s{_rrSelfLink = a})
rrName :: Lens' Route (Maybe Text)
rrName = lens _rrName (\ s a -> s{_rrName = a})
rrCreationTimestamp :: Lens' Route (Maybe Text)
rrCreationTimestamp
= lens _rrCreationTimestamp
(\ s a -> s{_rrCreationTimestamp = a})
rrId :: Lens' Route (Maybe Word64)
rrId
= lens _rrId (\ s a -> s{_rrId = a}) .
mapping _Coerce
rrNextHopVPNTunnel :: Lens' Route (Maybe Text)
rrNextHopVPNTunnel
= lens _rrNextHopVPNTunnel
(\ s a -> s{_rrNextHopVPNTunnel = a})
rrDescription :: Lens' Route (Maybe Text)
rrDescription
= lens _rrDescription
(\ s a -> s{_rrDescription = a})
rrTags :: Lens' Route [Text]
rrTags
= lens _rrTags (\ s a -> s{_rrTags = a}) . _Default .
_Coerce
rrNextHopInstance :: Lens' Route (Maybe Text)
rrNextHopInstance
= lens _rrNextHopInstance
(\ s a -> s{_rrNextHopInstance = a})
instance FromJSON Route where
parseJSON
= withObject "Route"
(\ o ->
Route' <$>
(o .:? "nextHopPeering") <*> (o .:? "priority") <*>
(o .:? "kind" .!= "compute#route")
<*> (o .:? "nextHopGateway")
<*> (o .:? "nextHopNetwork")
<*> (o .:? "network")
<*> (o .:? "warnings" .!= mempty)
<*> (o .:? "nextHopIp")
<*> (o .:? "destRange")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "nextHopVpnTunnel")
<*> (o .:? "description")
<*> (o .:? "tags" .!= mempty)
<*> (o .:? "nextHopInstance"))
instance ToJSON Route where
toJSON Route'{..}
= object
(catMaybes
[("nextHopPeering" .=) <$> _rrNextHopPeering,
("priority" .=) <$> _rrPriority,
Just ("kind" .= _rrKind),
("nextHopGateway" .=) <$> _rrNextHopGateway,
("nextHopNetwork" .=) <$> _rrNextHopNetwork,
("network" .=) <$> _rrNetwork,
("warnings" .=) <$> _rrWarnings,
("nextHopIp" .=) <$> _rrNextHopIP,
("destRange" .=) <$> _rrDestRange,
("selfLink" .=) <$> _rrSelfLink,
("name" .=) <$> _rrName,
("creationTimestamp" .=) <$> _rrCreationTimestamp,
("id" .=) <$> _rrId,
("nextHopVpnTunnel" .=) <$> _rrNextHopVPNTunnel,
("description" .=) <$> _rrDescription,
("tags" .=) <$> _rrTags,
("nextHopInstance" .=) <$> _rrNextHopInstance])
data TargetVPNGatewaysScopedListWarningDataItem =
TargetVPNGatewaysScopedListWarningDataItem'
{ _tvgslwdiValue :: !(Maybe Text)
, _tvgslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewaysScopedListWarningDataItem
:: TargetVPNGatewaysScopedListWarningDataItem
targetVPNGatewaysScopedListWarningDataItem =
TargetVPNGatewaysScopedListWarningDataItem'
{_tvgslwdiValue = Nothing, _tvgslwdiKey = Nothing}
tvgslwdiValue :: Lens' TargetVPNGatewaysScopedListWarningDataItem (Maybe Text)
tvgslwdiValue
= lens _tvgslwdiValue
(\ s a -> s{_tvgslwdiValue = a})
tvgslwdiKey :: Lens' TargetVPNGatewaysScopedListWarningDataItem (Maybe Text)
tvgslwdiKey
= lens _tvgslwdiKey (\ s a -> s{_tvgslwdiKey = a})
instance FromJSON
TargetVPNGatewaysScopedListWarningDataItem
where
parseJSON
= withObject
"TargetVPNGatewaysScopedListWarningDataItem"
(\ o ->
TargetVPNGatewaysScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
TargetVPNGatewaysScopedListWarningDataItem
where
toJSON
TargetVPNGatewaysScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tvgslwdiValue,
("key" .=) <$> _tvgslwdiKey])
data InterconnectLocationRegionInfo =
InterconnectLocationRegionInfo'
{ _ilriLocationPresence :: !(Maybe InterconnectLocationRegionInfoLocationPresence)
, _ilriExpectedRttMs :: !(Maybe (Textual Int64))
, _ilriRegion :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectLocationRegionInfo
:: InterconnectLocationRegionInfo
interconnectLocationRegionInfo =
InterconnectLocationRegionInfo'
{ _ilriLocationPresence = Nothing
, _ilriExpectedRttMs = Nothing
, _ilriRegion = Nothing
}
ilriLocationPresence :: Lens' InterconnectLocationRegionInfo (Maybe InterconnectLocationRegionInfoLocationPresence)
ilriLocationPresence
= lens _ilriLocationPresence
(\ s a -> s{_ilriLocationPresence = a})
ilriExpectedRttMs :: Lens' InterconnectLocationRegionInfo (Maybe Int64)
ilriExpectedRttMs
= lens _ilriExpectedRttMs
(\ s a -> s{_ilriExpectedRttMs = a})
. mapping _Coerce
ilriRegion :: Lens' InterconnectLocationRegionInfo (Maybe Text)
ilriRegion
= lens _ilriRegion (\ s a -> s{_ilriRegion = a})
instance FromJSON InterconnectLocationRegionInfo
where
parseJSON
= withObject "InterconnectLocationRegionInfo"
(\ o ->
InterconnectLocationRegionInfo' <$>
(o .:? "locationPresence") <*>
(o .:? "expectedRttMs")
<*> (o .:? "region"))
instance ToJSON InterconnectLocationRegionInfo where
toJSON InterconnectLocationRegionInfo'{..}
= object
(catMaybes
[("locationPresence" .=) <$> _ilriLocationPresence,
("expectedRttMs" .=) <$> _ilriExpectedRttMs,
("region" .=) <$> _ilriRegion])
newtype TargetHTTPSProxiesSetSSLCertificatesRequest =
TargetHTTPSProxiesSetSSLCertificatesRequest'
{ _thpsscrSSLCertificates :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPSProxiesSetSSLCertificatesRequest
:: TargetHTTPSProxiesSetSSLCertificatesRequest
targetHTTPSProxiesSetSSLCertificatesRequest =
TargetHTTPSProxiesSetSSLCertificatesRequest'
{_thpsscrSSLCertificates = Nothing}
thpsscrSSLCertificates :: Lens' TargetHTTPSProxiesSetSSLCertificatesRequest [Text]
thpsscrSSLCertificates
= lens _thpsscrSSLCertificates
(\ s a -> s{_thpsscrSSLCertificates = a})
. _Default
. _Coerce
instance FromJSON
TargetHTTPSProxiesSetSSLCertificatesRequest
where
parseJSON
= withObject
"TargetHTTPSProxiesSetSSLCertificatesRequest"
(\ o ->
TargetHTTPSProxiesSetSSLCertificatesRequest' <$>
(o .:? "sslCertificates" .!= mempty))
instance ToJSON
TargetHTTPSProxiesSetSSLCertificatesRequest
where
toJSON
TargetHTTPSProxiesSetSSLCertificatesRequest'{..}
= object
(catMaybes
[("sslCertificates" .=) <$> _thpsscrSSLCertificates])
data InstanceTemplate =
InstanceTemplate'
{ _itSourceInstance :: !(Maybe Text)
, _itKind :: !Text
, _itSelfLink :: !(Maybe Text)
, _itName :: !(Maybe Text)
, _itCreationTimestamp :: !(Maybe Text)
, _itId :: !(Maybe (Textual Word64))
, _itSourceInstanceParams :: !(Maybe SourceInstanceParams)
, _itDescription :: !(Maybe Text)
, _itProperties :: !(Maybe InstanceProperties)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceTemplate
:: InstanceTemplate
instanceTemplate =
InstanceTemplate'
{ _itSourceInstance = Nothing
, _itKind = "compute#instanceTemplate"
, _itSelfLink = Nothing
, _itName = Nothing
, _itCreationTimestamp = Nothing
, _itId = Nothing
, _itSourceInstanceParams = Nothing
, _itDescription = Nothing
, _itProperties = Nothing
}
itSourceInstance :: Lens' InstanceTemplate (Maybe Text)
itSourceInstance
= lens _itSourceInstance
(\ s a -> s{_itSourceInstance = a})
itKind :: Lens' InstanceTemplate Text
itKind = lens _itKind (\ s a -> s{_itKind = a})
itSelfLink :: Lens' InstanceTemplate (Maybe Text)
itSelfLink
= lens _itSelfLink (\ s a -> s{_itSelfLink = a})
itName :: Lens' InstanceTemplate (Maybe Text)
itName = lens _itName (\ s a -> s{_itName = a})
itCreationTimestamp :: Lens' InstanceTemplate (Maybe Text)
itCreationTimestamp
= lens _itCreationTimestamp
(\ s a -> s{_itCreationTimestamp = a})
itId :: Lens' InstanceTemplate (Maybe Word64)
itId
= lens _itId (\ s a -> s{_itId = a}) .
mapping _Coerce
itSourceInstanceParams :: Lens' InstanceTemplate (Maybe SourceInstanceParams)
itSourceInstanceParams
= lens _itSourceInstanceParams
(\ s a -> s{_itSourceInstanceParams = a})
itDescription :: Lens' InstanceTemplate (Maybe Text)
itDescription
= lens _itDescription
(\ s a -> s{_itDescription = a})
itProperties :: Lens' InstanceTemplate (Maybe InstanceProperties)
itProperties
= lens _itProperties (\ s a -> s{_itProperties = a})
instance FromJSON InstanceTemplate where
parseJSON
= withObject "InstanceTemplate"
(\ o ->
InstanceTemplate' <$>
(o .:? "sourceInstance") <*>
(o .:? "kind" .!= "compute#instanceTemplate")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "sourceInstanceParams")
<*> (o .:? "description")
<*> (o .:? "properties"))
instance ToJSON InstanceTemplate where
toJSON InstanceTemplate'{..}
= object
(catMaybes
[("sourceInstance" .=) <$> _itSourceInstance,
Just ("kind" .= _itKind),
("selfLink" .=) <$> _itSelfLink,
("name" .=) <$> _itName,
("creationTimestamp" .=) <$> _itCreationTimestamp,
("id" .=) <$> _itId,
("sourceInstanceParams" .=) <$>
_itSourceInstanceParams,
("description" .=) <$> _itDescription,
("properties" .=) <$> _itProperties])
data XpnResourceId =
XpnResourceId'
{ _xriId :: !(Maybe Text)
, _xriType :: !(Maybe XpnResourceIdType)
}
deriving (Eq, Show, Data, Typeable, Generic)
xpnResourceId
:: XpnResourceId
xpnResourceId = XpnResourceId' {_xriId = Nothing, _xriType = Nothing}
xriId :: Lens' XpnResourceId (Maybe Text)
xriId = lens _xriId (\ s a -> s{_xriId = a})
xriType :: Lens' XpnResourceId (Maybe XpnResourceIdType)
xriType = lens _xriType (\ s a -> s{_xriType = a})
instance FromJSON XpnResourceId where
parseJSON
= withObject "XpnResourceId"
(\ o ->
XpnResourceId' <$> (o .:? "id") <*> (o .:? "type"))
instance ToJSON XpnResourceId where
toJSON XpnResourceId'{..}
= object
(catMaybes
[("id" .=) <$> _xriId, ("type" .=) <$> _xriType])
data RouterList =
RouterList'
{ _rllNextPageToken :: !(Maybe Text)
, _rllKind :: !Text
, _rllItems :: !(Maybe [Router])
, _rllSelfLink :: !(Maybe Text)
, _rllWarning :: !(Maybe RouterListWarning)
, _rllId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerList
:: RouterList
routerList =
RouterList'
{ _rllNextPageToken = Nothing
, _rllKind = "compute#routerList"
, _rllItems = Nothing
, _rllSelfLink = Nothing
, _rllWarning = Nothing
, _rllId = Nothing
}
rllNextPageToken :: Lens' RouterList (Maybe Text)
rllNextPageToken
= lens _rllNextPageToken
(\ s a -> s{_rllNextPageToken = a})
rllKind :: Lens' RouterList Text
rllKind = lens _rllKind (\ s a -> s{_rllKind = a})
rllItems :: Lens' RouterList [Router]
rllItems
= lens _rllItems (\ s a -> s{_rllItems = a}) .
_Default
. _Coerce
rllSelfLink :: Lens' RouterList (Maybe Text)
rllSelfLink
= lens _rllSelfLink (\ s a -> s{_rllSelfLink = a})
rllWarning :: Lens' RouterList (Maybe RouterListWarning)
rllWarning
= lens _rllWarning (\ s a -> s{_rllWarning = a})
rllId :: Lens' RouterList (Maybe Text)
rllId = lens _rllId (\ s a -> s{_rllId = a})
instance FromJSON RouterList where
parseJSON
= withObject "RouterList"
(\ o ->
RouterList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#routerList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RouterList where
toJSON RouterList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _rllNextPageToken,
Just ("kind" .= _rllKind),
("items" .=) <$> _rllItems,
("selfLink" .=) <$> _rllSelfLink,
("warning" .=) <$> _rllWarning,
("id" .=) <$> _rllId])
data TargetSSLProxy =
TargetSSLProxy'
{ _tspSSLPolicy :: !(Maybe Text)
, _tspSSLCertificates :: !(Maybe [Text])
, _tspService :: !(Maybe Text)
, _tspKind :: !Text
, _tspSelfLink :: !(Maybe Text)
, _tspName :: !(Maybe Text)
, _tspCreationTimestamp :: !(Maybe Text)
, _tspId :: !(Maybe (Textual Word64))
, _tspProxyHeader :: !(Maybe TargetSSLProxyProxyHeader)
, _tspDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetSSLProxy
:: TargetSSLProxy
targetSSLProxy =
TargetSSLProxy'
{ _tspSSLPolicy = Nothing
, _tspSSLCertificates = Nothing
, _tspService = Nothing
, _tspKind = "compute#targetSslProxy"
, _tspSelfLink = Nothing
, _tspName = Nothing
, _tspCreationTimestamp = Nothing
, _tspId = Nothing
, _tspProxyHeader = Nothing
, _tspDescription = Nothing
}
tspSSLPolicy :: Lens' TargetSSLProxy (Maybe Text)
tspSSLPolicy
= lens _tspSSLPolicy (\ s a -> s{_tspSSLPolicy = a})
tspSSLCertificates :: Lens' TargetSSLProxy [Text]
tspSSLCertificates
= lens _tspSSLCertificates
(\ s a -> s{_tspSSLCertificates = a})
. _Default
. _Coerce
tspService :: Lens' TargetSSLProxy (Maybe Text)
tspService
= lens _tspService (\ s a -> s{_tspService = a})
tspKind :: Lens' TargetSSLProxy Text
tspKind = lens _tspKind (\ s a -> s{_tspKind = a})
tspSelfLink :: Lens' TargetSSLProxy (Maybe Text)
tspSelfLink
= lens _tspSelfLink (\ s a -> s{_tspSelfLink = a})
tspName :: Lens' TargetSSLProxy (Maybe Text)
tspName = lens _tspName (\ s a -> s{_tspName = a})
tspCreationTimestamp :: Lens' TargetSSLProxy (Maybe Text)
tspCreationTimestamp
= lens _tspCreationTimestamp
(\ s a -> s{_tspCreationTimestamp = a})
tspId :: Lens' TargetSSLProxy (Maybe Word64)
tspId
= lens _tspId (\ s a -> s{_tspId = a}) .
mapping _Coerce
tspProxyHeader :: Lens' TargetSSLProxy (Maybe TargetSSLProxyProxyHeader)
tspProxyHeader
= lens _tspProxyHeader
(\ s a -> s{_tspProxyHeader = a})
tspDescription :: Lens' TargetSSLProxy (Maybe Text)
tspDescription
= lens _tspDescription
(\ s a -> s{_tspDescription = a})
instance FromJSON TargetSSLProxy where
parseJSON
= withObject "TargetSSLProxy"
(\ o ->
TargetSSLProxy' <$>
(o .:? "sslPolicy") <*>
(o .:? "sslCertificates" .!= mempty)
<*> (o .:? "service")
<*> (o .:? "kind" .!= "compute#targetSslProxy")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "proxyHeader")
<*> (o .:? "description"))
instance ToJSON TargetSSLProxy where
toJSON TargetSSLProxy'{..}
= object
(catMaybes
[("sslPolicy" .=) <$> _tspSSLPolicy,
("sslCertificates" .=) <$> _tspSSLCertificates,
("service" .=) <$> _tspService,
Just ("kind" .= _tspKind),
("selfLink" .=) <$> _tspSelfLink,
("name" .=) <$> _tspName,
("creationTimestamp" .=) <$> _tspCreationTimestamp,
("id" .=) <$> _tspId,
("proxyHeader" .=) <$> _tspProxyHeader,
("description" .=) <$> _tspDescription])
newtype InstanceGroupManagerStatus =
InstanceGroupManagerStatus'
{ _igmsIsStable :: Maybe Bool
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerStatus
:: InstanceGroupManagerStatus
instanceGroupManagerStatus =
InstanceGroupManagerStatus' {_igmsIsStable = Nothing}
igmsIsStable :: Lens' InstanceGroupManagerStatus (Maybe Bool)
igmsIsStable
= lens _igmsIsStable (\ s a -> s{_igmsIsStable = a})
instance FromJSON InstanceGroupManagerStatus where
parseJSON
= withObject "InstanceGroupManagerStatus"
(\ o ->
InstanceGroupManagerStatus' <$> (o .:? "isStable"))
instance ToJSON InstanceGroupManagerStatus where
toJSON InstanceGroupManagerStatus'{..}
= object
(catMaybes [("isStable" .=) <$> _igmsIsStable])
data SSLCertificateListWarning =
SSLCertificateListWarning'
{ _sclwData :: !(Maybe [SSLCertificateListWarningDataItem])
, _sclwCode :: !(Maybe SSLCertificateListWarningCode)
, _sclwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslCertificateListWarning
:: SSLCertificateListWarning
sslCertificateListWarning =
SSLCertificateListWarning'
{_sclwData = Nothing, _sclwCode = Nothing, _sclwMessage = Nothing}
sclwData :: Lens' SSLCertificateListWarning [SSLCertificateListWarningDataItem]
sclwData
= lens _sclwData (\ s a -> s{_sclwData = a}) .
_Default
. _Coerce
sclwCode :: Lens' SSLCertificateListWarning (Maybe SSLCertificateListWarningCode)
sclwCode = lens _sclwCode (\ s a -> s{_sclwCode = a})
sclwMessage :: Lens' SSLCertificateListWarning (Maybe Text)
sclwMessage
= lens _sclwMessage (\ s a -> s{_sclwMessage = a})
instance FromJSON SSLCertificateListWarning where
parseJSON
= withObject "SSLCertificateListWarning"
(\ o ->
SSLCertificateListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SSLCertificateListWarning where
toJSON SSLCertificateListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _sclwData,
("code" .=) <$> _sclwCode,
("message" .=) <$> _sclwMessage])
data SnapshotListWarningDataItem =
SnapshotListWarningDataItem'
{ _slwdiValue :: !(Maybe Text)
, _slwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
snapshotListWarningDataItem
:: SnapshotListWarningDataItem
snapshotListWarningDataItem =
SnapshotListWarningDataItem' {_slwdiValue = Nothing, _slwdiKey = Nothing}
slwdiValue :: Lens' SnapshotListWarningDataItem (Maybe Text)
slwdiValue
= lens _slwdiValue (\ s a -> s{_slwdiValue = a})
slwdiKey :: Lens' SnapshotListWarningDataItem (Maybe Text)
slwdiKey = lens _slwdiKey (\ s a -> s{_slwdiKey = a})
instance FromJSON SnapshotListWarningDataItem where
parseJSON
= withObject "SnapshotListWarningDataItem"
(\ o ->
SnapshotListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON SnapshotListWarningDataItem where
toJSON SnapshotListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _slwdiValue,
("key" .=) <$> _slwdiKey])
data TargetVPNGateway =
TargetVPNGateway'
{ _tvgStatus :: !(Maybe TargetVPNGatewayStatus)
, _tvgKind :: !Text
, _tvgNetwork :: !(Maybe Text)
, _tvgSelfLink :: !(Maybe Text)
, _tvgName :: !(Maybe Text)
, _tvgCreationTimestamp :: !(Maybe Text)
, _tvgId :: !(Maybe (Textual Word64))
, _tvgRegion :: !(Maybe Text)
, _tvgTunnels :: !(Maybe [Text])
, _tvgDescription :: !(Maybe Text)
, _tvgForwardingRules :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGateway
:: TargetVPNGateway
targetVPNGateway =
TargetVPNGateway'
{ _tvgStatus = Nothing
, _tvgKind = "compute#targetVpnGateway"
, _tvgNetwork = Nothing
, _tvgSelfLink = Nothing
, _tvgName = Nothing
, _tvgCreationTimestamp = Nothing
, _tvgId = Nothing
, _tvgRegion = Nothing
, _tvgTunnels = Nothing
, _tvgDescription = Nothing
, _tvgForwardingRules = Nothing
}
tvgStatus :: Lens' TargetVPNGateway (Maybe TargetVPNGatewayStatus)
tvgStatus
= lens _tvgStatus (\ s a -> s{_tvgStatus = a})
tvgKind :: Lens' TargetVPNGateway Text
tvgKind = lens _tvgKind (\ s a -> s{_tvgKind = a})
tvgNetwork :: Lens' TargetVPNGateway (Maybe Text)
tvgNetwork
= lens _tvgNetwork (\ s a -> s{_tvgNetwork = a})
tvgSelfLink :: Lens' TargetVPNGateway (Maybe Text)
tvgSelfLink
= lens _tvgSelfLink (\ s a -> s{_tvgSelfLink = a})
tvgName :: Lens' TargetVPNGateway (Maybe Text)
tvgName = lens _tvgName (\ s a -> s{_tvgName = a})
tvgCreationTimestamp :: Lens' TargetVPNGateway (Maybe Text)
tvgCreationTimestamp
= lens _tvgCreationTimestamp
(\ s a -> s{_tvgCreationTimestamp = a})
tvgId :: Lens' TargetVPNGateway (Maybe Word64)
tvgId
= lens _tvgId (\ s a -> s{_tvgId = a}) .
mapping _Coerce
tvgRegion :: Lens' TargetVPNGateway (Maybe Text)
tvgRegion
= lens _tvgRegion (\ s a -> s{_tvgRegion = a})
tvgTunnels :: Lens' TargetVPNGateway [Text]
tvgTunnels
= lens _tvgTunnels (\ s a -> s{_tvgTunnels = a}) .
_Default
. _Coerce
tvgDescription :: Lens' TargetVPNGateway (Maybe Text)
tvgDescription
= lens _tvgDescription
(\ s a -> s{_tvgDescription = a})
tvgForwardingRules :: Lens' TargetVPNGateway [Text]
tvgForwardingRules
= lens _tvgForwardingRules
(\ s a -> s{_tvgForwardingRules = a})
. _Default
. _Coerce
instance FromJSON TargetVPNGateway where
parseJSON
= withObject "TargetVPNGateway"
(\ o ->
TargetVPNGateway' <$>
(o .:? "status") <*>
(o .:? "kind" .!= "compute#targetVpnGateway")
<*> (o .:? "network")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "tunnels" .!= mempty)
<*> (o .:? "description")
<*> (o .:? "forwardingRules" .!= mempty))
instance ToJSON TargetVPNGateway where
toJSON TargetVPNGateway'{..}
= object
(catMaybes
[("status" .=) <$> _tvgStatus,
Just ("kind" .= _tvgKind),
("network" .=) <$> _tvgNetwork,
("selfLink" .=) <$> _tvgSelfLink,
("name" .=) <$> _tvgName,
("creationTimestamp" .=) <$> _tvgCreationTimestamp,
("id" .=) <$> _tvgId, ("region" .=) <$> _tvgRegion,
("tunnels" .=) <$> _tvgTunnels,
("description" .=) <$> _tvgDescription,
("forwardingRules" .=) <$> _tvgForwardingRules])
data ResourceCommitment =
ResourceCommitment'
{ _rcAmount :: !(Maybe (Textual Int64))
, _rcType :: !(Maybe ResourceCommitmentType)
}
deriving (Eq, Show, Data, Typeable, Generic)
resourceCommitment
:: ResourceCommitment
resourceCommitment =
ResourceCommitment' {_rcAmount = Nothing, _rcType = Nothing}
rcAmount :: Lens' ResourceCommitment (Maybe Int64)
rcAmount
= lens _rcAmount (\ s a -> s{_rcAmount = a}) .
mapping _Coerce
rcType :: Lens' ResourceCommitment (Maybe ResourceCommitmentType)
rcType = lens _rcType (\ s a -> s{_rcType = a})
instance FromJSON ResourceCommitment where
parseJSON
= withObject "ResourceCommitment"
(\ o ->
ResourceCommitment' <$>
(o .:? "amount") <*> (o .:? "type"))
instance ToJSON ResourceCommitment where
toJSON ResourceCommitment'{..}
= object
(catMaybes
[("amount" .=) <$> _rcAmount,
("type" .=) <$> _rcType])
data BackendServiceIAP =
BackendServiceIAP'
{ _bsiapEnabled :: !(Maybe Bool)
, _bsiapOAuth2ClientSecretSha256 :: !(Maybe Text)
, _bsiapOAuth2ClientSecret :: !(Maybe Text)
, _bsiapOAuth2ClientId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceIAP
:: BackendServiceIAP
backendServiceIAP =
BackendServiceIAP'
{ _bsiapEnabled = Nothing
, _bsiapOAuth2ClientSecretSha256 = Nothing
, _bsiapOAuth2ClientSecret = Nothing
, _bsiapOAuth2ClientId = Nothing
}
bsiapEnabled :: Lens' BackendServiceIAP (Maybe Bool)
bsiapEnabled
= lens _bsiapEnabled (\ s a -> s{_bsiapEnabled = a})
bsiapOAuth2ClientSecretSha256 :: Lens' BackendServiceIAP (Maybe Text)
bsiapOAuth2ClientSecretSha256
= lens _bsiapOAuth2ClientSecretSha256
(\ s a -> s{_bsiapOAuth2ClientSecretSha256 = a})
bsiapOAuth2ClientSecret :: Lens' BackendServiceIAP (Maybe Text)
bsiapOAuth2ClientSecret
= lens _bsiapOAuth2ClientSecret
(\ s a -> s{_bsiapOAuth2ClientSecret = a})
bsiapOAuth2ClientId :: Lens' BackendServiceIAP (Maybe Text)
bsiapOAuth2ClientId
= lens _bsiapOAuth2ClientId
(\ s a -> s{_bsiapOAuth2ClientId = a})
instance FromJSON BackendServiceIAP where
parseJSON
= withObject "BackendServiceIAP"
(\ o ->
BackendServiceIAP' <$>
(o .:? "enabled") <*>
(o .:? "oauth2ClientSecretSha256")
<*> (o .:? "oauth2ClientSecret")
<*> (o .:? "oauth2ClientId"))
instance ToJSON BackendServiceIAP where
toJSON BackendServiceIAP'{..}
= object
(catMaybes
[("enabled" .=) <$> _bsiapEnabled,
("oauth2ClientSecretSha256" .=) <$>
_bsiapOAuth2ClientSecretSha256,
("oauth2ClientSecret" .=) <$>
_bsiapOAuth2ClientSecret,
("oauth2ClientId" .=) <$> _bsiapOAuth2ClientId])
data TargetVPNGatewayListWarning =
TargetVPNGatewayListWarning'
{ _tvglwData :: !(Maybe [TargetVPNGatewayListWarningDataItem])
, _tvglwCode :: !(Maybe TargetVPNGatewayListWarningCode)
, _tvglwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewayListWarning
:: TargetVPNGatewayListWarning
targetVPNGatewayListWarning =
TargetVPNGatewayListWarning'
{_tvglwData = Nothing, _tvglwCode = Nothing, _tvglwMessage = Nothing}
tvglwData :: Lens' TargetVPNGatewayListWarning [TargetVPNGatewayListWarningDataItem]
tvglwData
= lens _tvglwData (\ s a -> s{_tvglwData = a}) .
_Default
. _Coerce
tvglwCode :: Lens' TargetVPNGatewayListWarning (Maybe TargetVPNGatewayListWarningCode)
tvglwCode
= lens _tvglwCode (\ s a -> s{_tvglwCode = a})
tvglwMessage :: Lens' TargetVPNGatewayListWarning (Maybe Text)
tvglwMessage
= lens _tvglwMessage (\ s a -> s{_tvglwMessage = a})
instance FromJSON TargetVPNGatewayListWarning where
parseJSON
= withObject "TargetVPNGatewayListWarning"
(\ o ->
TargetVPNGatewayListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetVPNGatewayListWarning where
toJSON TargetVPNGatewayListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tvglwData,
("code" .=) <$> _tvglwCode,
("message" .=) <$> _tvglwMessage])
data VMEndpointNATMAppingsListWarningDataItem =
VMEndpointNATMAppingsListWarningDataItem'
{ _vmenatmalwdiValue :: !(Maybe Text)
, _vmenatmalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vMEndpointNATMAppingsListWarningDataItem
:: VMEndpointNATMAppingsListWarningDataItem
vMEndpointNATMAppingsListWarningDataItem =
VMEndpointNATMAppingsListWarningDataItem'
{_vmenatmalwdiValue = Nothing, _vmenatmalwdiKey = Nothing}
vmenatmalwdiValue :: Lens' VMEndpointNATMAppingsListWarningDataItem (Maybe Text)
vmenatmalwdiValue
= lens _vmenatmalwdiValue
(\ s a -> s{_vmenatmalwdiValue = a})
vmenatmalwdiKey :: Lens' VMEndpointNATMAppingsListWarningDataItem (Maybe Text)
vmenatmalwdiKey
= lens _vmenatmalwdiKey
(\ s a -> s{_vmenatmalwdiKey = a})
instance FromJSON
VMEndpointNATMAppingsListWarningDataItem
where
parseJSON
= withObject
"VMEndpointNATMAppingsListWarningDataItem"
(\ o ->
VMEndpointNATMAppingsListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
VMEndpointNATMAppingsListWarningDataItem
where
toJSON VMEndpointNATMAppingsListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _vmenatmalwdiValue,
("key" .=) <$> _vmenatmalwdiKey])
newtype URLMapsValidateResponse =
URLMapsValidateResponse'
{ _umvrResult :: Maybe URLMapValidationResult
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapsValidateResponse
:: URLMapsValidateResponse
urlMapsValidateResponse = URLMapsValidateResponse' {_umvrResult = Nothing}
umvrResult :: Lens' URLMapsValidateResponse (Maybe URLMapValidationResult)
umvrResult
= lens _umvrResult (\ s a -> s{_umvrResult = a})
instance FromJSON URLMapsValidateResponse where
parseJSON
= withObject "URLMapsValidateResponse"
(\ o ->
URLMapsValidateResponse' <$> (o .:? "result"))
instance ToJSON URLMapsValidateResponse where
toJSON URLMapsValidateResponse'{..}
= object (catMaybes [("result" .=) <$> _umvrResult])
data SSLCertificate =
SSLCertificate'
{ _scPrivateKey :: !(Maybe Text)
, _scKind :: !Text
, _scSelfLink :: !(Maybe Text)
, _scName :: !(Maybe Text)
, _scCreationTimestamp :: !(Maybe Text)
, _scId :: !(Maybe (Textual Word64))
, _scCertificate :: !(Maybe Text)
, _scDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslCertificate
:: SSLCertificate
sslCertificate =
SSLCertificate'
{ _scPrivateKey = Nothing
, _scKind = "compute#sslCertificate"
, _scSelfLink = Nothing
, _scName = Nothing
, _scCreationTimestamp = Nothing
, _scId = Nothing
, _scCertificate = Nothing
, _scDescription = Nothing
}
scPrivateKey :: Lens' SSLCertificate (Maybe Text)
scPrivateKey
= lens _scPrivateKey (\ s a -> s{_scPrivateKey = a})
scKind :: Lens' SSLCertificate Text
scKind = lens _scKind (\ s a -> s{_scKind = a})
scSelfLink :: Lens' SSLCertificate (Maybe Text)
scSelfLink
= lens _scSelfLink (\ s a -> s{_scSelfLink = a})
scName :: Lens' SSLCertificate (Maybe Text)
scName = lens _scName (\ s a -> s{_scName = a})
scCreationTimestamp :: Lens' SSLCertificate (Maybe Text)
scCreationTimestamp
= lens _scCreationTimestamp
(\ s a -> s{_scCreationTimestamp = a})
scId :: Lens' SSLCertificate (Maybe Word64)
scId
= lens _scId (\ s a -> s{_scId = a}) .
mapping _Coerce
scCertificate :: Lens' SSLCertificate (Maybe Text)
scCertificate
= lens _scCertificate
(\ s a -> s{_scCertificate = a})
scDescription :: Lens' SSLCertificate (Maybe Text)
scDescription
= lens _scDescription
(\ s a -> s{_scDescription = a})
instance FromJSON SSLCertificate where
parseJSON
= withObject "SSLCertificate"
(\ o ->
SSLCertificate' <$>
(o .:? "privateKey") <*>
(o .:? "kind" .!= "compute#sslCertificate")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "certificate")
<*> (o .:? "description"))
instance ToJSON SSLCertificate where
toJSON SSLCertificate'{..}
= object
(catMaybes
[("privateKey" .=) <$> _scPrivateKey,
Just ("kind" .= _scKind),
("selfLink" .=) <$> _scSelfLink,
("name" .=) <$> _scName,
("creationTimestamp" .=) <$> _scCreationTimestamp,
("id" .=) <$> _scId,
("certificate" .=) <$> _scCertificate,
("description" .=) <$> _scDescription])
data RouterStatusBGPPeerStatus =
RouterStatusBGPPeerStatus'
{ _rsbpsStatus :: !(Maybe RouterStatusBGPPeerStatusStatus)
, _rsbpsIPAddress :: !(Maybe Text)
, _rsbpsState :: !(Maybe Text)
, _rsbpsPeerIPAddress :: !(Maybe Text)
, _rsbpsUptime :: !(Maybe Text)
, _rsbpsNumLearnedRoutes :: !(Maybe (Textual Word32))
, _rsbpsName :: !(Maybe Text)
, _rsbpsUptimeSeconds :: !(Maybe Text)
, _rsbpsAdvertisedRoutes :: !(Maybe [Route])
, _rsbpsLinkedVPNTunnel :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerStatusBGPPeerStatus
:: RouterStatusBGPPeerStatus
routerStatusBGPPeerStatus =
RouterStatusBGPPeerStatus'
{ _rsbpsStatus = Nothing
, _rsbpsIPAddress = Nothing
, _rsbpsState = Nothing
, _rsbpsPeerIPAddress = Nothing
, _rsbpsUptime = Nothing
, _rsbpsNumLearnedRoutes = Nothing
, _rsbpsName = Nothing
, _rsbpsUptimeSeconds = Nothing
, _rsbpsAdvertisedRoutes = Nothing
, _rsbpsLinkedVPNTunnel = Nothing
}
rsbpsStatus :: Lens' RouterStatusBGPPeerStatus (Maybe RouterStatusBGPPeerStatusStatus)
rsbpsStatus
= lens _rsbpsStatus (\ s a -> s{_rsbpsStatus = a})
rsbpsIPAddress :: Lens' RouterStatusBGPPeerStatus (Maybe Text)
rsbpsIPAddress
= lens _rsbpsIPAddress
(\ s a -> s{_rsbpsIPAddress = a})
rsbpsState :: Lens' RouterStatusBGPPeerStatus (Maybe Text)
rsbpsState
= lens _rsbpsState (\ s a -> s{_rsbpsState = a})
rsbpsPeerIPAddress :: Lens' RouterStatusBGPPeerStatus (Maybe Text)
rsbpsPeerIPAddress
= lens _rsbpsPeerIPAddress
(\ s a -> s{_rsbpsPeerIPAddress = a})
rsbpsUptime :: Lens' RouterStatusBGPPeerStatus (Maybe Text)
rsbpsUptime
= lens _rsbpsUptime (\ s a -> s{_rsbpsUptime = a})
rsbpsNumLearnedRoutes :: Lens' RouterStatusBGPPeerStatus (Maybe Word32)
rsbpsNumLearnedRoutes
= lens _rsbpsNumLearnedRoutes
(\ s a -> s{_rsbpsNumLearnedRoutes = a})
. mapping _Coerce
rsbpsName :: Lens' RouterStatusBGPPeerStatus (Maybe Text)
rsbpsName
= lens _rsbpsName (\ s a -> s{_rsbpsName = a})
rsbpsUptimeSeconds :: Lens' RouterStatusBGPPeerStatus (Maybe Text)
rsbpsUptimeSeconds
= lens _rsbpsUptimeSeconds
(\ s a -> s{_rsbpsUptimeSeconds = a})
rsbpsAdvertisedRoutes :: Lens' RouterStatusBGPPeerStatus [Route]
rsbpsAdvertisedRoutes
= lens _rsbpsAdvertisedRoutes
(\ s a -> s{_rsbpsAdvertisedRoutes = a})
. _Default
. _Coerce
rsbpsLinkedVPNTunnel :: Lens' RouterStatusBGPPeerStatus (Maybe Text)
rsbpsLinkedVPNTunnel
= lens _rsbpsLinkedVPNTunnel
(\ s a -> s{_rsbpsLinkedVPNTunnel = a})
instance FromJSON RouterStatusBGPPeerStatus where
parseJSON
= withObject "RouterStatusBGPPeerStatus"
(\ o ->
RouterStatusBGPPeerStatus' <$>
(o .:? "status") <*> (o .:? "ipAddress") <*>
(o .:? "state")
<*> (o .:? "peerIpAddress")
<*> (o .:? "uptime")
<*> (o .:? "numLearnedRoutes")
<*> (o .:? "name")
<*> (o .:? "uptimeSeconds")
<*> (o .:? "advertisedRoutes" .!= mempty)
<*> (o .:? "linkedVpnTunnel"))
instance ToJSON RouterStatusBGPPeerStatus where
toJSON RouterStatusBGPPeerStatus'{..}
= object
(catMaybes
[("status" .=) <$> _rsbpsStatus,
("ipAddress" .=) <$> _rsbpsIPAddress,
("state" .=) <$> _rsbpsState,
("peerIpAddress" .=) <$> _rsbpsPeerIPAddress,
("uptime" .=) <$> _rsbpsUptime,
("numLearnedRoutes" .=) <$> _rsbpsNumLearnedRoutes,
("name" .=) <$> _rsbpsName,
("uptimeSeconds" .=) <$> _rsbpsUptimeSeconds,
("advertisedRoutes" .=) <$> _rsbpsAdvertisedRoutes,
("linkedVpnTunnel" .=) <$> _rsbpsLinkedVPNTunnel])
newtype URLMapReference =
URLMapReference'
{ _umrURLMap :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapReference
:: URLMapReference
urlMapReference = URLMapReference' {_umrURLMap = Nothing}
umrURLMap :: Lens' URLMapReference (Maybe Text)
umrURLMap
= lens _umrURLMap (\ s a -> s{_umrURLMap = a})
instance FromJSON URLMapReference where
parseJSON
= withObject "URLMapReference"
(\ o -> URLMapReference' <$> (o .:? "urlMap"))
instance ToJSON URLMapReference where
toJSON URLMapReference'{..}
= object (catMaybes [("urlMap" .=) <$> _umrURLMap])
newtype TargetPoolsAddHealthCheckRequest =
TargetPoolsAddHealthCheckRequest'
{ _tpahcrHealthChecks :: Maybe [HealthCheckReference]
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolsAddHealthCheckRequest
:: TargetPoolsAddHealthCheckRequest
targetPoolsAddHealthCheckRequest =
TargetPoolsAddHealthCheckRequest' {_tpahcrHealthChecks = Nothing}
tpahcrHealthChecks :: Lens' TargetPoolsAddHealthCheckRequest [HealthCheckReference]
tpahcrHealthChecks
= lens _tpahcrHealthChecks
(\ s a -> s{_tpahcrHealthChecks = a})
. _Default
. _Coerce
instance FromJSON TargetPoolsAddHealthCheckRequest
where
parseJSON
= withObject "TargetPoolsAddHealthCheckRequest"
(\ o ->
TargetPoolsAddHealthCheckRequest' <$>
(o .:? "healthChecks" .!= mempty))
instance ToJSON TargetPoolsAddHealthCheckRequest
where
toJSON TargetPoolsAddHealthCheckRequest'{..}
= object
(catMaybes
[("healthChecks" .=) <$> _tpahcrHealthChecks])
data CommitmentsScopedList =
CommitmentsScopedList'
{ _cslWarning :: !(Maybe CommitmentsScopedListWarning)
, _cslCommitments :: !(Maybe [Commitment])
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentsScopedList
:: CommitmentsScopedList
commitmentsScopedList =
CommitmentsScopedList' {_cslWarning = Nothing, _cslCommitments = Nothing}
cslWarning :: Lens' CommitmentsScopedList (Maybe CommitmentsScopedListWarning)
cslWarning
= lens _cslWarning (\ s a -> s{_cslWarning = a})
cslCommitments :: Lens' CommitmentsScopedList [Commitment]
cslCommitments
= lens _cslCommitments
(\ s a -> s{_cslCommitments = a})
. _Default
. _Coerce
instance FromJSON CommitmentsScopedList where
parseJSON
= withObject "CommitmentsScopedList"
(\ o ->
CommitmentsScopedList' <$>
(o .:? "warning") <*>
(o .:? "commitments" .!= mempty))
instance ToJSON CommitmentsScopedList where
toJSON CommitmentsScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _cslWarning,
("commitments" .=) <$> _cslCommitments])
newtype DiskAggregatedListItems =
DiskAggregatedListItems'
{ _daliAddtional :: HashMap Text DisksScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
diskAggregatedListItems
:: HashMap Text DisksScopedList
-> DiskAggregatedListItems
diskAggregatedListItems pDaliAddtional_ =
DiskAggregatedListItems' {_daliAddtional = _Coerce # pDaliAddtional_}
daliAddtional :: Lens' DiskAggregatedListItems (HashMap Text DisksScopedList)
daliAddtional
= lens _daliAddtional
(\ s a -> s{_daliAddtional = a})
. _Coerce
instance FromJSON DiskAggregatedListItems where
parseJSON
= withObject "DiskAggregatedListItems"
(\ o ->
DiskAggregatedListItems' <$> (parseJSONObject o))
instance ToJSON DiskAggregatedListItems where
toJSON = toJSON . _daliAddtional
data TargetVPNGatewayAggregatedListWarning =
TargetVPNGatewayAggregatedListWarning'
{ _tvgalwData :: !(Maybe [TargetVPNGatewayAggregatedListWarningDataItem])
, _tvgalwCode :: !(Maybe TargetVPNGatewayAggregatedListWarningCode)
, _tvgalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewayAggregatedListWarning
:: TargetVPNGatewayAggregatedListWarning
targetVPNGatewayAggregatedListWarning =
TargetVPNGatewayAggregatedListWarning'
{_tvgalwData = Nothing, _tvgalwCode = Nothing, _tvgalwMessage = Nothing}
tvgalwData :: Lens' TargetVPNGatewayAggregatedListWarning [TargetVPNGatewayAggregatedListWarningDataItem]
tvgalwData
= lens _tvgalwData (\ s a -> s{_tvgalwData = a}) .
_Default
. _Coerce
tvgalwCode :: Lens' TargetVPNGatewayAggregatedListWarning (Maybe TargetVPNGatewayAggregatedListWarningCode)
tvgalwCode
= lens _tvgalwCode (\ s a -> s{_tvgalwCode = a})
tvgalwMessage :: Lens' TargetVPNGatewayAggregatedListWarning (Maybe Text)
tvgalwMessage
= lens _tvgalwMessage
(\ s a -> s{_tvgalwMessage = a})
instance FromJSON
TargetVPNGatewayAggregatedListWarning
where
parseJSON
= withObject "TargetVPNGatewayAggregatedListWarning"
(\ o ->
TargetVPNGatewayAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetVPNGatewayAggregatedListWarning
where
toJSON TargetVPNGatewayAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tvgalwData,
("code" .=) <$> _tvgalwCode,
("message" .=) <$> _tvgalwMessage])
data UsageExportLocation =
UsageExportLocation'
{ _uelReportNamePrefix :: !(Maybe Text)
, _uelBucketName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
usageExportLocation
:: UsageExportLocation
usageExportLocation =
UsageExportLocation'
{_uelReportNamePrefix = Nothing, _uelBucketName = Nothing}
uelReportNamePrefix :: Lens' UsageExportLocation (Maybe Text)
uelReportNamePrefix
= lens _uelReportNamePrefix
(\ s a -> s{_uelReportNamePrefix = a})
uelBucketName :: Lens' UsageExportLocation (Maybe Text)
uelBucketName
= lens _uelBucketName
(\ s a -> s{_uelBucketName = a})
instance FromJSON UsageExportLocation where
parseJSON
= withObject "UsageExportLocation"
(\ o ->
UsageExportLocation' <$>
(o .:? "reportNamePrefix") <*> (o .:? "bucketName"))
instance ToJSON UsageExportLocation where
toJSON UsageExportLocation'{..}
= object
(catMaybes
[("reportNamePrefix" .=) <$> _uelReportNamePrefix,
("bucketName" .=) <$> _uelBucketName])
data ZoneList =
ZoneList'
{ _zlNextPageToken :: !(Maybe Text)
, _zlKind :: !Text
, _zlItems :: !(Maybe [Zone])
, _zlSelfLink :: !(Maybe Text)
, _zlWarning :: !(Maybe ZoneListWarning)
, _zlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
zoneList
:: ZoneList
zoneList =
ZoneList'
{ _zlNextPageToken = Nothing
, _zlKind = "compute#zoneList"
, _zlItems = Nothing
, _zlSelfLink = Nothing
, _zlWarning = Nothing
, _zlId = Nothing
}
zlNextPageToken :: Lens' ZoneList (Maybe Text)
zlNextPageToken
= lens _zlNextPageToken
(\ s a -> s{_zlNextPageToken = a})
zlKind :: Lens' ZoneList Text
zlKind = lens _zlKind (\ s a -> s{_zlKind = a})
zlItems :: Lens' ZoneList [Zone]
zlItems
= lens _zlItems (\ s a -> s{_zlItems = a}) . _Default
. _Coerce
zlSelfLink :: Lens' ZoneList (Maybe Text)
zlSelfLink
= lens _zlSelfLink (\ s a -> s{_zlSelfLink = a})
zlWarning :: Lens' ZoneList (Maybe ZoneListWarning)
zlWarning
= lens _zlWarning (\ s a -> s{_zlWarning = a})
zlId :: Lens' ZoneList (Maybe Text)
zlId = lens _zlId (\ s a -> s{_zlId = a})
instance FromJSON ZoneList where
parseJSON
= withObject "ZoneList"
(\ o ->
ZoneList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#zoneList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON ZoneList where
toJSON ZoneList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _zlNextPageToken,
Just ("kind" .= _zlKind), ("items" .=) <$> _zlItems,
("selfLink" .=) <$> _zlSelfLink,
("warning" .=) <$> _zlWarning, ("id" .=) <$> _zlId])
data SSLCertificateListWarningDataItem =
SSLCertificateListWarningDataItem'
{ _sclwdiValue :: !(Maybe Text)
, _sclwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslCertificateListWarningDataItem
:: SSLCertificateListWarningDataItem
sslCertificateListWarningDataItem =
SSLCertificateListWarningDataItem'
{_sclwdiValue = Nothing, _sclwdiKey = Nothing}
sclwdiValue :: Lens' SSLCertificateListWarningDataItem (Maybe Text)
sclwdiValue
= lens _sclwdiValue (\ s a -> s{_sclwdiValue = a})
sclwdiKey :: Lens' SSLCertificateListWarningDataItem (Maybe Text)
sclwdiKey
= lens _sclwdiKey (\ s a -> s{_sclwdiKey = a})
instance FromJSON SSLCertificateListWarningDataItem
where
parseJSON
= withObject "SSLCertificateListWarningDataItem"
(\ o ->
SSLCertificateListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON SSLCertificateListWarningDataItem
where
toJSON SSLCertificateListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _sclwdiValue,
("key" .=) <$> _sclwdiKey])
newtype DistributionPolicyZoneConfiguration =
DistributionPolicyZoneConfiguration'
{ _dpzcZone :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
distributionPolicyZoneConfiguration
:: DistributionPolicyZoneConfiguration
distributionPolicyZoneConfiguration =
DistributionPolicyZoneConfiguration' {_dpzcZone = Nothing}
dpzcZone :: Lens' DistributionPolicyZoneConfiguration (Maybe Text)
dpzcZone = lens _dpzcZone (\ s a -> s{_dpzcZone = a})
instance FromJSON DistributionPolicyZoneConfiguration
where
parseJSON
= withObject "DistributionPolicyZoneConfiguration"
(\ o ->
DistributionPolicyZoneConfiguration' <$>
(o .:? "zone"))
instance ToJSON DistributionPolicyZoneConfiguration
where
toJSON DistributionPolicyZoneConfiguration'{..}
= object (catMaybes [("zone" .=) <$> _dpzcZone])
newtype TargetTCPProxiesSetProxyHeaderRequest =
TargetTCPProxiesSetProxyHeaderRequest'
{ _ttpsphrProxyHeader :: Maybe TargetTCPProxiesSetProxyHeaderRequestProxyHeader
}
deriving (Eq, Show, Data, Typeable, Generic)
targetTCPProxiesSetProxyHeaderRequest
:: TargetTCPProxiesSetProxyHeaderRequest
targetTCPProxiesSetProxyHeaderRequest =
TargetTCPProxiesSetProxyHeaderRequest' {_ttpsphrProxyHeader = Nothing}
ttpsphrProxyHeader :: Lens' TargetTCPProxiesSetProxyHeaderRequest (Maybe TargetTCPProxiesSetProxyHeaderRequestProxyHeader)
ttpsphrProxyHeader
= lens _ttpsphrProxyHeader
(\ s a -> s{_ttpsphrProxyHeader = a})
instance FromJSON
TargetTCPProxiesSetProxyHeaderRequest
where
parseJSON
= withObject "TargetTCPProxiesSetProxyHeaderRequest"
(\ o ->
TargetTCPProxiesSetProxyHeaderRequest' <$>
(o .:? "proxyHeader"))
instance ToJSON TargetTCPProxiesSetProxyHeaderRequest
where
toJSON TargetTCPProxiesSetProxyHeaderRequest'{..}
= object
(catMaybes
[("proxyHeader" .=) <$> _ttpsphrProxyHeader])
data RouterBGPPeer =
RouterBGPPeer'
{ _rbpIPAddress :: !(Maybe Text)
, _rbpInterfaceName :: !(Maybe Text)
, _rbpPeerIPAddress :: !(Maybe Text)
, _rbpAdvertisedRoutePriority :: !(Maybe (Textual Word32))
, _rbpPeerASN :: !(Maybe (Textual Word32))
, _rbpAdvertiseMode :: !(Maybe RouterBGPPeerAdvertiseMode)
, _rbpName :: !(Maybe Text)
, _rbpAdvertisedGroups :: !(Maybe [RouterBGPPeerAdvertisedGroupsItem])
, _rbpManagementType :: !(Maybe RouterBGPPeerManagementType)
, _rbpAdvertisedIPRanges :: !(Maybe [RouterAdvertisedIPRange])
}
deriving (Eq, Show, Data, Typeable, Generic)
routerBGPPeer
:: RouterBGPPeer
routerBGPPeer =
RouterBGPPeer'
{ _rbpIPAddress = Nothing
, _rbpInterfaceName = Nothing
, _rbpPeerIPAddress = Nothing
, _rbpAdvertisedRoutePriority = Nothing
, _rbpPeerASN = Nothing
, _rbpAdvertiseMode = Nothing
, _rbpName = Nothing
, _rbpAdvertisedGroups = Nothing
, _rbpManagementType = Nothing
, _rbpAdvertisedIPRanges = Nothing
}
rbpIPAddress :: Lens' RouterBGPPeer (Maybe Text)
rbpIPAddress
= lens _rbpIPAddress (\ s a -> s{_rbpIPAddress = a})
rbpInterfaceName :: Lens' RouterBGPPeer (Maybe Text)
rbpInterfaceName
= lens _rbpInterfaceName
(\ s a -> s{_rbpInterfaceName = a})
rbpPeerIPAddress :: Lens' RouterBGPPeer (Maybe Text)
rbpPeerIPAddress
= lens _rbpPeerIPAddress
(\ s a -> s{_rbpPeerIPAddress = a})
rbpAdvertisedRoutePriority :: Lens' RouterBGPPeer (Maybe Word32)
rbpAdvertisedRoutePriority
= lens _rbpAdvertisedRoutePriority
(\ s a -> s{_rbpAdvertisedRoutePriority = a})
. mapping _Coerce
rbpPeerASN :: Lens' RouterBGPPeer (Maybe Word32)
rbpPeerASN
= lens _rbpPeerASN (\ s a -> s{_rbpPeerASN = a}) .
mapping _Coerce
rbpAdvertiseMode :: Lens' RouterBGPPeer (Maybe RouterBGPPeerAdvertiseMode)
rbpAdvertiseMode
= lens _rbpAdvertiseMode
(\ s a -> s{_rbpAdvertiseMode = a})
rbpName :: Lens' RouterBGPPeer (Maybe Text)
rbpName = lens _rbpName (\ s a -> s{_rbpName = a})
rbpAdvertisedGroups :: Lens' RouterBGPPeer [RouterBGPPeerAdvertisedGroupsItem]
rbpAdvertisedGroups
= lens _rbpAdvertisedGroups
(\ s a -> s{_rbpAdvertisedGroups = a})
. _Default
. _Coerce
rbpManagementType :: Lens' RouterBGPPeer (Maybe RouterBGPPeerManagementType)
rbpManagementType
= lens _rbpManagementType
(\ s a -> s{_rbpManagementType = a})
rbpAdvertisedIPRanges :: Lens' RouterBGPPeer [RouterAdvertisedIPRange]
rbpAdvertisedIPRanges
= lens _rbpAdvertisedIPRanges
(\ s a -> s{_rbpAdvertisedIPRanges = a})
. _Default
. _Coerce
instance FromJSON RouterBGPPeer where
parseJSON
= withObject "RouterBGPPeer"
(\ o ->
RouterBGPPeer' <$>
(o .:? "ipAddress") <*> (o .:? "interfaceName") <*>
(o .:? "peerIpAddress")
<*> (o .:? "advertisedRoutePriority")
<*> (o .:? "peerAsn")
<*> (o .:? "advertiseMode")
<*> (o .:? "name")
<*> (o .:? "advertisedGroups" .!= mempty)
<*> (o .:? "managementType")
<*> (o .:? "advertisedIpRanges" .!= mempty))
instance ToJSON RouterBGPPeer where
toJSON RouterBGPPeer'{..}
= object
(catMaybes
[("ipAddress" .=) <$> _rbpIPAddress,
("interfaceName" .=) <$> _rbpInterfaceName,
("peerIpAddress" .=) <$> _rbpPeerIPAddress,
("advertisedRoutePriority" .=) <$>
_rbpAdvertisedRoutePriority,
("peerAsn" .=) <$> _rbpPeerASN,
("advertiseMode" .=) <$> _rbpAdvertiseMode,
("name" .=) <$> _rbpName,
("advertisedGroups" .=) <$> _rbpAdvertisedGroups,
("managementType" .=) <$> _rbpManagementType,
("advertisedIpRanges" .=) <$>
_rbpAdvertisedIPRanges])
newtype SubnetworksExpandIPCIdRRangeRequest =
SubnetworksExpandIPCIdRRangeRequest'
{ _seicirrrIPCIdRRange :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworksExpandIPCIdRRangeRequest
:: SubnetworksExpandIPCIdRRangeRequest
subnetworksExpandIPCIdRRangeRequest =
SubnetworksExpandIPCIdRRangeRequest' {_seicirrrIPCIdRRange = Nothing}
seicirrrIPCIdRRange :: Lens' SubnetworksExpandIPCIdRRangeRequest (Maybe Text)
seicirrrIPCIdRRange
= lens _seicirrrIPCIdRRange
(\ s a -> s{_seicirrrIPCIdRRange = a})
instance FromJSON SubnetworksExpandIPCIdRRangeRequest
where
parseJSON
= withObject "SubnetworksExpandIPCIdRRangeRequest"
(\ o ->
SubnetworksExpandIPCIdRRangeRequest' <$>
(o .:? "ipCidrRange"))
instance ToJSON SubnetworksExpandIPCIdRRangeRequest
where
toJSON SubnetworksExpandIPCIdRRangeRequest'{..}
= object
(catMaybes
[("ipCidrRange" .=) <$> _seicirrrIPCIdRRange])
data ManagedInstance =
ManagedInstance'
{ _miLastAttempt :: !(Maybe ManagedInstanceLastAttempt)
, _miCurrentAction :: !(Maybe ManagedInstanceCurrentAction)
, _miVersion :: !(Maybe ManagedInstanceVersion)
, _miId :: !(Maybe (Textual Word64))
, _miInstanceStatus :: !(Maybe ManagedInstanceInstanceStatus)
, _miInstance :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
managedInstance
:: ManagedInstance
managedInstance =
ManagedInstance'
{ _miLastAttempt = Nothing
, _miCurrentAction = Nothing
, _miVersion = Nothing
, _miId = Nothing
, _miInstanceStatus = Nothing
, _miInstance = Nothing
}
miLastAttempt :: Lens' ManagedInstance (Maybe ManagedInstanceLastAttempt)
miLastAttempt
= lens _miLastAttempt
(\ s a -> s{_miLastAttempt = a})
miCurrentAction :: Lens' ManagedInstance (Maybe ManagedInstanceCurrentAction)
miCurrentAction
= lens _miCurrentAction
(\ s a -> s{_miCurrentAction = a})
miVersion :: Lens' ManagedInstance (Maybe ManagedInstanceVersion)
miVersion
= lens _miVersion (\ s a -> s{_miVersion = a})
miId :: Lens' ManagedInstance (Maybe Word64)
miId
= lens _miId (\ s a -> s{_miId = a}) .
mapping _Coerce
miInstanceStatus :: Lens' ManagedInstance (Maybe ManagedInstanceInstanceStatus)
miInstanceStatus
= lens _miInstanceStatus
(\ s a -> s{_miInstanceStatus = a})
miInstance :: Lens' ManagedInstance (Maybe Text)
miInstance
= lens _miInstance (\ s a -> s{_miInstance = a})
instance FromJSON ManagedInstance where
parseJSON
= withObject "ManagedInstance"
(\ o ->
ManagedInstance' <$>
(o .:? "lastAttempt") <*> (o .:? "currentAction") <*>
(o .:? "version")
<*> (o .:? "id")
<*> (o .:? "instanceStatus")
<*> (o .:? "instance"))
instance ToJSON ManagedInstance where
toJSON ManagedInstance'{..}
= object
(catMaybes
[("lastAttempt" .=) <$> _miLastAttempt,
("currentAction" .=) <$> _miCurrentAction,
("version" .=) <$> _miVersion, ("id" .=) <$> _miId,
("instanceStatus" .=) <$> _miInstanceStatus,
("instance" .=) <$> _miInstance])
newtype InstanceGroupManagerAggregatedListItems =
InstanceGroupManagerAggregatedListItems'
{ _igmaliAddtional :: HashMap Text InstanceGroupManagersScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerAggregatedListItems
:: HashMap Text InstanceGroupManagersScopedList
-> InstanceGroupManagerAggregatedListItems
instanceGroupManagerAggregatedListItems pIgmaliAddtional_ =
InstanceGroupManagerAggregatedListItems'
{_igmaliAddtional = _Coerce # pIgmaliAddtional_}
igmaliAddtional :: Lens' InstanceGroupManagerAggregatedListItems (HashMap Text InstanceGroupManagersScopedList)
igmaliAddtional
= lens _igmaliAddtional
(\ s a -> s{_igmaliAddtional = a})
. _Coerce
instance FromJSON
InstanceGroupManagerAggregatedListItems
where
parseJSON
= withObject
"InstanceGroupManagerAggregatedListItems"
(\ o ->
InstanceGroupManagerAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON
InstanceGroupManagerAggregatedListItems
where
toJSON = toJSON . _igmaliAddtional
newtype InstanceGroupManagersDeleteInstancesRequest =
InstanceGroupManagersDeleteInstancesRequest'
{ _igmdirInstances :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersDeleteInstancesRequest
:: InstanceGroupManagersDeleteInstancesRequest
instanceGroupManagersDeleteInstancesRequest =
InstanceGroupManagersDeleteInstancesRequest' {_igmdirInstances = Nothing}
igmdirInstances :: Lens' InstanceGroupManagersDeleteInstancesRequest [Text]
igmdirInstances
= lens _igmdirInstances
(\ s a -> s{_igmdirInstances = a})
. _Default
. _Coerce
instance FromJSON
InstanceGroupManagersDeleteInstancesRequest
where
parseJSON
= withObject
"InstanceGroupManagersDeleteInstancesRequest"
(\ o ->
InstanceGroupManagersDeleteInstancesRequest' <$>
(o .:? "instances" .!= mempty))
instance ToJSON
InstanceGroupManagersDeleteInstancesRequest
where
toJSON
InstanceGroupManagersDeleteInstancesRequest'{..}
= object
(catMaybes [("instances" .=) <$> _igmdirInstances])
data Backend =
Backend'
{ _bGroup :: !(Maybe Text)
, _bBalancingMode :: !(Maybe BackendBalancingMode)
, _bMaxUtilization :: !(Maybe (Textual Double))
, _bMaxRate :: !(Maybe (Textual Int32))
, _bMaxConnections :: !(Maybe (Textual Int32))
, _bMaxConnectionsPerInstance :: !(Maybe (Textual Int32))
, _bMaxRatePerEndpoint :: !(Maybe (Textual Double))
, _bMaxConnectionsPerEndpoint :: !(Maybe (Textual Int32))
, _bMaxRatePerInstance :: !(Maybe (Textual Double))
, _bDescription :: !(Maybe Text)
, _bCapacityScaler :: !(Maybe (Textual Double))
}
deriving (Eq, Show, Data, Typeable, Generic)
backend
:: Backend
backend =
Backend'
{ _bGroup = Nothing
, _bBalancingMode = Nothing
, _bMaxUtilization = Nothing
, _bMaxRate = Nothing
, _bMaxConnections = Nothing
, _bMaxConnectionsPerInstance = Nothing
, _bMaxRatePerEndpoint = Nothing
, _bMaxConnectionsPerEndpoint = Nothing
, _bMaxRatePerInstance = Nothing
, _bDescription = Nothing
, _bCapacityScaler = Nothing
}
bGroup :: Lens' Backend (Maybe Text)
bGroup = lens _bGroup (\ s a -> s{_bGroup = a})
bBalancingMode :: Lens' Backend (Maybe BackendBalancingMode)
bBalancingMode
= lens _bBalancingMode
(\ s a -> s{_bBalancingMode = a})
bMaxUtilization :: Lens' Backend (Maybe Double)
bMaxUtilization
= lens _bMaxUtilization
(\ s a -> s{_bMaxUtilization = a})
. mapping _Coerce
bMaxRate :: Lens' Backend (Maybe Int32)
bMaxRate
= lens _bMaxRate (\ s a -> s{_bMaxRate = a}) .
mapping _Coerce
bMaxConnections :: Lens' Backend (Maybe Int32)
bMaxConnections
= lens _bMaxConnections
(\ s a -> s{_bMaxConnections = a})
. mapping _Coerce
bMaxConnectionsPerInstance :: Lens' Backend (Maybe Int32)
bMaxConnectionsPerInstance
= lens _bMaxConnectionsPerInstance
(\ s a -> s{_bMaxConnectionsPerInstance = a})
. mapping _Coerce
bMaxRatePerEndpoint :: Lens' Backend (Maybe Double)
bMaxRatePerEndpoint
= lens _bMaxRatePerEndpoint
(\ s a -> s{_bMaxRatePerEndpoint = a})
. mapping _Coerce
bMaxConnectionsPerEndpoint :: Lens' Backend (Maybe Int32)
bMaxConnectionsPerEndpoint
= lens _bMaxConnectionsPerEndpoint
(\ s a -> s{_bMaxConnectionsPerEndpoint = a})
. mapping _Coerce
bMaxRatePerInstance :: Lens' Backend (Maybe Double)
bMaxRatePerInstance
= lens _bMaxRatePerInstance
(\ s a -> s{_bMaxRatePerInstance = a})
. mapping _Coerce
bDescription :: Lens' Backend (Maybe Text)
bDescription
= lens _bDescription (\ s a -> s{_bDescription = a})
bCapacityScaler :: Lens' Backend (Maybe Double)
bCapacityScaler
= lens _bCapacityScaler
(\ s a -> s{_bCapacityScaler = a})
. mapping _Coerce
instance FromJSON Backend where
parseJSON
= withObject "Backend"
(\ o ->
Backend' <$>
(o .:? "group") <*> (o .:? "balancingMode") <*>
(o .:? "maxUtilization")
<*> (o .:? "maxRate")
<*> (o .:? "maxConnections")
<*> (o .:? "maxConnectionsPerInstance")
<*> (o .:? "maxRatePerEndpoint")
<*> (o .:? "maxConnectionsPerEndpoint")
<*> (o .:? "maxRatePerInstance")
<*> (o .:? "description")
<*> (o .:? "capacityScaler"))
instance ToJSON Backend where
toJSON Backend'{..}
= object
(catMaybes
[("group" .=) <$> _bGroup,
("balancingMode" .=) <$> _bBalancingMode,
("maxUtilization" .=) <$> _bMaxUtilization,
("maxRate" .=) <$> _bMaxRate,
("maxConnections" .=) <$> _bMaxConnections,
("maxConnectionsPerInstance" .=) <$>
_bMaxConnectionsPerInstance,
("maxRatePerEndpoint" .=) <$> _bMaxRatePerEndpoint,
("maxConnectionsPerEndpoint" .=) <$>
_bMaxConnectionsPerEndpoint,
("maxRatePerInstance" .=) <$> _bMaxRatePerInstance,
("description" .=) <$> _bDescription,
("capacityScaler" .=) <$> _bCapacityScaler])
data TargetVPNGatewaysScopedListWarning =
TargetVPNGatewaysScopedListWarning'
{ _tvgslwData :: !(Maybe [TargetVPNGatewaysScopedListWarningDataItem])
, _tvgslwCode :: !(Maybe TargetVPNGatewaysScopedListWarningCode)
, _tvgslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewaysScopedListWarning
:: TargetVPNGatewaysScopedListWarning
targetVPNGatewaysScopedListWarning =
TargetVPNGatewaysScopedListWarning'
{_tvgslwData = Nothing, _tvgslwCode = Nothing, _tvgslwMessage = Nothing}
tvgslwData :: Lens' TargetVPNGatewaysScopedListWarning [TargetVPNGatewaysScopedListWarningDataItem]
tvgslwData
= lens _tvgslwData (\ s a -> s{_tvgslwData = a}) .
_Default
. _Coerce
tvgslwCode :: Lens' TargetVPNGatewaysScopedListWarning (Maybe TargetVPNGatewaysScopedListWarningCode)
tvgslwCode
= lens _tvgslwCode (\ s a -> s{_tvgslwCode = a})
tvgslwMessage :: Lens' TargetVPNGatewaysScopedListWarning (Maybe Text)
tvgslwMessage
= lens _tvgslwMessage
(\ s a -> s{_tvgslwMessage = a})
instance FromJSON TargetVPNGatewaysScopedListWarning
where
parseJSON
= withObject "TargetVPNGatewaysScopedListWarning"
(\ o ->
TargetVPNGatewaysScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetVPNGatewaysScopedListWarning
where
toJSON TargetVPNGatewaysScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tvgslwData,
("code" .=) <$> _tvgslwCode,
("message" .=) <$> _tvgslwMessage])
data AddressList =
AddressList'
{ _alNextPageToken :: !(Maybe Text)
, _alKind :: !Text
, _alItems :: !(Maybe [Address])
, _alSelfLink :: !(Maybe Text)
, _alWarning :: !(Maybe AddressListWarning)
, _alId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressList
:: AddressList
addressList =
AddressList'
{ _alNextPageToken = Nothing
, _alKind = "compute#addressList"
, _alItems = Nothing
, _alSelfLink = Nothing
, _alWarning = Nothing
, _alId = Nothing
}
alNextPageToken :: Lens' AddressList (Maybe Text)
alNextPageToken
= lens _alNextPageToken
(\ s a -> s{_alNextPageToken = a})
alKind :: Lens' AddressList Text
alKind = lens _alKind (\ s a -> s{_alKind = a})
alItems :: Lens' AddressList [Address]
alItems
= lens _alItems (\ s a -> s{_alItems = a}) . _Default
. _Coerce
alSelfLink :: Lens' AddressList (Maybe Text)
alSelfLink
= lens _alSelfLink (\ s a -> s{_alSelfLink = a})
alWarning :: Lens' AddressList (Maybe AddressListWarning)
alWarning
= lens _alWarning (\ s a -> s{_alWarning = a})
alId :: Lens' AddressList (Maybe Text)
alId = lens _alId (\ s a -> s{_alId = a})
instance FromJSON AddressList where
parseJSON
= withObject "AddressList"
(\ o ->
AddressList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#addressList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON AddressList where
toJSON AddressList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _alNextPageToken,
Just ("kind" .= _alKind), ("items" .=) <$> _alItems,
("selfLink" .=) <$> _alSelfLink,
("warning" .=) <$> _alWarning, ("id" .=) <$> _alId])
data TargetVPNGatewayListWarningDataItem =
TargetVPNGatewayListWarningDataItem'
{ _tvglwdiValue :: !(Maybe Text)
, _tvglwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewayListWarningDataItem
:: TargetVPNGatewayListWarningDataItem
targetVPNGatewayListWarningDataItem =
TargetVPNGatewayListWarningDataItem'
{_tvglwdiValue = Nothing, _tvglwdiKey = Nothing}
tvglwdiValue :: Lens' TargetVPNGatewayListWarningDataItem (Maybe Text)
tvglwdiValue
= lens _tvglwdiValue (\ s a -> s{_tvglwdiValue = a})
tvglwdiKey :: Lens' TargetVPNGatewayListWarningDataItem (Maybe Text)
tvglwdiKey
= lens _tvglwdiKey (\ s a -> s{_tvglwdiKey = a})
instance FromJSON TargetVPNGatewayListWarningDataItem
where
parseJSON
= withObject "TargetVPNGatewayListWarningDataItem"
(\ o ->
TargetVPNGatewayListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetVPNGatewayListWarningDataItem
where
toJSON TargetVPNGatewayListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tvglwdiValue,
("key" .=) <$> _tvglwdiKey])
newtype ForwardingRuleAggregatedListItems =
ForwardingRuleAggregatedListItems'
{ _fraliAddtional :: HashMap Text ForwardingRulesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleAggregatedListItems
:: HashMap Text ForwardingRulesScopedList
-> ForwardingRuleAggregatedListItems
forwardingRuleAggregatedListItems pFraliAddtional_ =
ForwardingRuleAggregatedListItems'
{_fraliAddtional = _Coerce # pFraliAddtional_}
fraliAddtional :: Lens' ForwardingRuleAggregatedListItems (HashMap Text ForwardingRulesScopedList)
fraliAddtional
= lens _fraliAddtional
(\ s a -> s{_fraliAddtional = a})
. _Coerce
instance FromJSON ForwardingRuleAggregatedListItems
where
parseJSON
= withObject "ForwardingRuleAggregatedListItems"
(\ o ->
ForwardingRuleAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON ForwardingRuleAggregatedListItems
where
toJSON = toJSON . _fraliAddtional
data InterconnectAttachmentAggregatedList =
InterconnectAttachmentAggregatedList'
{ _iaalNextPageToken :: !(Maybe Text)
, _iaalKind :: !Text
, _iaalItems :: !(Maybe InterconnectAttachmentAggregatedListItems)
, _iaalSelfLink :: !(Maybe Text)
, _iaalWarning :: !(Maybe InterconnectAttachmentAggregatedListWarning)
, _iaalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentAggregatedList
:: InterconnectAttachmentAggregatedList
interconnectAttachmentAggregatedList =
InterconnectAttachmentAggregatedList'
{ _iaalNextPageToken = Nothing
, _iaalKind = "compute#interconnectAttachmentAggregatedList"
, _iaalItems = Nothing
, _iaalSelfLink = Nothing
, _iaalWarning = Nothing
, _iaalId = Nothing
}
iaalNextPageToken :: Lens' InterconnectAttachmentAggregatedList (Maybe Text)
iaalNextPageToken
= lens _iaalNextPageToken
(\ s a -> s{_iaalNextPageToken = a})
iaalKind :: Lens' InterconnectAttachmentAggregatedList Text
iaalKind = lens _iaalKind (\ s a -> s{_iaalKind = a})
iaalItems :: Lens' InterconnectAttachmentAggregatedList (Maybe InterconnectAttachmentAggregatedListItems)
iaalItems
= lens _iaalItems (\ s a -> s{_iaalItems = a})
iaalSelfLink :: Lens' InterconnectAttachmentAggregatedList (Maybe Text)
iaalSelfLink
= lens _iaalSelfLink (\ s a -> s{_iaalSelfLink = a})
iaalWarning :: Lens' InterconnectAttachmentAggregatedList (Maybe InterconnectAttachmentAggregatedListWarning)
iaalWarning
= lens _iaalWarning (\ s a -> s{_iaalWarning = a})
iaalId :: Lens' InterconnectAttachmentAggregatedList (Maybe Text)
iaalId = lens _iaalId (\ s a -> s{_iaalId = a})
instance FromJSON
InterconnectAttachmentAggregatedList
where
parseJSON
= withObject "InterconnectAttachmentAggregatedList"
(\ o ->
InterconnectAttachmentAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#interconnectAttachmentAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InterconnectAttachmentAggregatedList
where
toJSON InterconnectAttachmentAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _iaalNextPageToken,
Just ("kind" .= _iaalKind),
("items" .=) <$> _iaalItems,
("selfLink" .=) <$> _iaalSelfLink,
("warning" .=) <$> _iaalWarning,
("id" .=) <$> _iaalId])
newtype OperationAggregatedListItems =
OperationAggregatedListItems'
{ _oaliAddtional :: HashMap Text OperationsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
operationAggregatedListItems
:: HashMap Text OperationsScopedList
-> OperationAggregatedListItems
operationAggregatedListItems pOaliAddtional_ =
OperationAggregatedListItems' {_oaliAddtional = _Coerce # pOaliAddtional_}
oaliAddtional :: Lens' OperationAggregatedListItems (HashMap Text OperationsScopedList)
oaliAddtional
= lens _oaliAddtional
(\ s a -> s{_oaliAddtional = a})
. _Coerce
instance FromJSON OperationAggregatedListItems where
parseJSON
= withObject "OperationAggregatedListItems"
(\ o ->
OperationAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON OperationAggregatedListItems where
toJSON = toJSON . _oaliAddtional
data InstanceGroupManagerActionsSummary =
InstanceGroupManagerActionsSummary'
{ _igmasDeleting :: !(Maybe (Textual Int32))
, _igmasRestarting :: !(Maybe (Textual Int32))
, _igmasNone :: !(Maybe (Textual Int32))
, _igmasCreating :: !(Maybe (Textual Int32))
, _igmasVerifying :: !(Maybe (Textual Int32))
, _igmasRefreshing :: !(Maybe (Textual Int32))
, _igmasCreatingWithoutRetries :: !(Maybe (Textual Int32))
, _igmasRecreating :: !(Maybe (Textual Int32))
, _igmasAbandoning :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerActionsSummary
:: InstanceGroupManagerActionsSummary
instanceGroupManagerActionsSummary =
InstanceGroupManagerActionsSummary'
{ _igmasDeleting = Nothing
, _igmasRestarting = Nothing
, _igmasNone = Nothing
, _igmasCreating = Nothing
, _igmasVerifying = Nothing
, _igmasRefreshing = Nothing
, _igmasCreatingWithoutRetries = Nothing
, _igmasRecreating = Nothing
, _igmasAbandoning = Nothing
}
igmasDeleting :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasDeleting
= lens _igmasDeleting
(\ s a -> s{_igmasDeleting = a})
. mapping _Coerce
igmasRestarting :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasRestarting
= lens _igmasRestarting
(\ s a -> s{_igmasRestarting = a})
. mapping _Coerce
igmasNone :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasNone
= lens _igmasNone (\ s a -> s{_igmasNone = a}) .
mapping _Coerce
igmasCreating :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasCreating
= lens _igmasCreating
(\ s a -> s{_igmasCreating = a})
. mapping _Coerce
igmasVerifying :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasVerifying
= lens _igmasVerifying
(\ s a -> s{_igmasVerifying = a})
. mapping _Coerce
igmasRefreshing :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasRefreshing
= lens _igmasRefreshing
(\ s a -> s{_igmasRefreshing = a})
. mapping _Coerce
igmasCreatingWithoutRetries :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasCreatingWithoutRetries
= lens _igmasCreatingWithoutRetries
(\ s a -> s{_igmasCreatingWithoutRetries = a})
. mapping _Coerce
igmasRecreating :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasRecreating
= lens _igmasRecreating
(\ s a -> s{_igmasRecreating = a})
. mapping _Coerce
igmasAbandoning :: Lens' InstanceGroupManagerActionsSummary (Maybe Int32)
igmasAbandoning
= lens _igmasAbandoning
(\ s a -> s{_igmasAbandoning = a})
. mapping _Coerce
instance FromJSON InstanceGroupManagerActionsSummary
where
parseJSON
= withObject "InstanceGroupManagerActionsSummary"
(\ o ->
InstanceGroupManagerActionsSummary' <$>
(o .:? "deleting") <*> (o .:? "restarting") <*>
(o .:? "none")
<*> (o .:? "creating")
<*> (o .:? "verifying")
<*> (o .:? "refreshing")
<*> (o .:? "creatingWithoutRetries")
<*> (o .:? "recreating")
<*> (o .:? "abandoning"))
instance ToJSON InstanceGroupManagerActionsSummary
where
toJSON InstanceGroupManagerActionsSummary'{..}
= object
(catMaybes
[("deleting" .=) <$> _igmasDeleting,
("restarting" .=) <$> _igmasRestarting,
("none" .=) <$> _igmasNone,
("creating" .=) <$> _igmasCreating,
("verifying" .=) <$> _igmasVerifying,
("refreshing" .=) <$> _igmasRefreshing,
("creatingWithoutRetries" .=) <$>
_igmasCreatingWithoutRetries,
("recreating" .=) <$> _igmasRecreating,
("abandoning" .=) <$> _igmasAbandoning])
data XpnHostList =
XpnHostList'
{ _xhlNextPageToken :: !(Maybe Text)
, _xhlKind :: !Text
, _xhlItems :: !(Maybe [Project])
, _xhlSelfLink :: !(Maybe Text)
, _xhlWarning :: !(Maybe XpnHostListWarning)
, _xhlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
xpnHostList
:: XpnHostList
xpnHostList =
XpnHostList'
{ _xhlNextPageToken = Nothing
, _xhlKind = "compute#xpnHostList"
, _xhlItems = Nothing
, _xhlSelfLink = Nothing
, _xhlWarning = Nothing
, _xhlId = Nothing
}
xhlNextPageToken :: Lens' XpnHostList (Maybe Text)
xhlNextPageToken
= lens _xhlNextPageToken
(\ s a -> s{_xhlNextPageToken = a})
xhlKind :: Lens' XpnHostList Text
xhlKind = lens _xhlKind (\ s a -> s{_xhlKind = a})
xhlItems :: Lens' XpnHostList [Project]
xhlItems
= lens _xhlItems (\ s a -> s{_xhlItems = a}) .
_Default
. _Coerce
xhlSelfLink :: Lens' XpnHostList (Maybe Text)
xhlSelfLink
= lens _xhlSelfLink (\ s a -> s{_xhlSelfLink = a})
xhlWarning :: Lens' XpnHostList (Maybe XpnHostListWarning)
xhlWarning
= lens _xhlWarning (\ s a -> s{_xhlWarning = a})
xhlId :: Lens' XpnHostList (Maybe Text)
xhlId = lens _xhlId (\ s a -> s{_xhlId = a})
instance FromJSON XpnHostList where
parseJSON
= withObject "XpnHostList"
(\ o ->
XpnHostList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#xpnHostList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON XpnHostList where
toJSON XpnHostList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _xhlNextPageToken,
Just ("kind" .= _xhlKind),
("items" .=) <$> _xhlItems,
("selfLink" .=) <$> _xhlSelfLink,
("warning" .=) <$> _xhlWarning,
("id" .=) <$> _xhlId])
data InstanceTemplateListWarningDataItem =
InstanceTemplateListWarningDataItem'
{ _itlwdiValue :: !(Maybe Text)
, _itlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceTemplateListWarningDataItem
:: InstanceTemplateListWarningDataItem
instanceTemplateListWarningDataItem =
InstanceTemplateListWarningDataItem'
{_itlwdiValue = Nothing, _itlwdiKey = Nothing}
itlwdiValue :: Lens' InstanceTemplateListWarningDataItem (Maybe Text)
itlwdiValue
= lens _itlwdiValue (\ s a -> s{_itlwdiValue = a})
itlwdiKey :: Lens' InstanceTemplateListWarningDataItem (Maybe Text)
itlwdiKey
= lens _itlwdiKey (\ s a -> s{_itlwdiKey = a})
instance FromJSON InstanceTemplateListWarningDataItem
where
parseJSON
= withObject "InstanceTemplateListWarningDataItem"
(\ o ->
InstanceTemplateListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON InstanceTemplateListWarningDataItem
where
toJSON InstanceTemplateListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _itlwdiValue,
("key" .=) <$> _itlwdiKey])
data ServiceAccount =
ServiceAccount'
{ _saEmail :: !(Maybe Text)
, _saScopes :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
serviceAccount
:: ServiceAccount
serviceAccount = ServiceAccount' {_saEmail = Nothing, _saScopes = Nothing}
saEmail :: Lens' ServiceAccount (Maybe Text)
saEmail = lens _saEmail (\ s a -> s{_saEmail = a})
saScopes :: Lens' ServiceAccount [Text]
saScopes
= lens _saScopes (\ s a -> s{_saScopes = a}) .
_Default
. _Coerce
instance FromJSON ServiceAccount where
parseJSON
= withObject "ServiceAccount"
(\ o ->
ServiceAccount' <$>
(o .:? "email") <*> (o .:? "scopes" .!= mempty))
instance ToJSON ServiceAccount where
toJSON ServiceAccount'{..}
= object
(catMaybes
[("email" .=) <$> _saEmail,
("scopes" .=) <$> _saScopes])
data SnapshotListWarning =
SnapshotListWarning'
{ _sData :: !(Maybe [SnapshotListWarningDataItem])
, _sCode :: !(Maybe SnapshotListWarningCode)
, _sMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
snapshotListWarning
:: SnapshotListWarning
snapshotListWarning =
SnapshotListWarning' {_sData = Nothing, _sCode = Nothing, _sMessage = Nothing}
sData :: Lens' SnapshotListWarning [SnapshotListWarningDataItem]
sData
= lens _sData (\ s a -> s{_sData = a}) . _Default .
_Coerce
sCode :: Lens' SnapshotListWarning (Maybe SnapshotListWarningCode)
sCode = lens _sCode (\ s a -> s{_sCode = a})
sMessage :: Lens' SnapshotListWarning (Maybe Text)
sMessage = lens _sMessage (\ s a -> s{_sMessage = a})
instance FromJSON SnapshotListWarning where
parseJSON
= withObject "SnapshotListWarning"
(\ o ->
SnapshotListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SnapshotListWarning where
toJSON SnapshotListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _sData, ("code" .=) <$> _sCode,
("message" .=) <$> _sMessage])
newtype RegionInstanceGroupManagersAbandonInstancesRequest =
RegionInstanceGroupManagersAbandonInstancesRequest'
{ _rigmairInstances :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagersAbandonInstancesRequest
:: RegionInstanceGroupManagersAbandonInstancesRequest
regionInstanceGroupManagersAbandonInstancesRequest =
RegionInstanceGroupManagersAbandonInstancesRequest'
{_rigmairInstances = Nothing}
rigmairInstances :: Lens' RegionInstanceGroupManagersAbandonInstancesRequest [Text]
rigmairInstances
= lens _rigmairInstances
(\ s a -> s{_rigmairInstances = a})
. _Default
. _Coerce
instance FromJSON
RegionInstanceGroupManagersAbandonInstancesRequest
where
parseJSON
= withObject
"RegionInstanceGroupManagersAbandonInstancesRequest"
(\ o ->
RegionInstanceGroupManagersAbandonInstancesRequest'
<$> (o .:? "instances" .!= mempty))
instance ToJSON
RegionInstanceGroupManagersAbandonInstancesRequest
where
toJSON
RegionInstanceGroupManagersAbandonInstancesRequest'{..}
= object
(catMaybes [("instances" .=) <$> _rigmairInstances])
data NetworkList =
NetworkList'
{ _nlNextPageToken :: !(Maybe Text)
, _nlKind :: !Text
, _nlItems :: !(Maybe [Network])
, _nlSelfLink :: !(Maybe Text)
, _nlWarning :: !(Maybe NetworkListWarning)
, _nlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkList
:: NetworkList
networkList =
NetworkList'
{ _nlNextPageToken = Nothing
, _nlKind = "compute#networkList"
, _nlItems = Nothing
, _nlSelfLink = Nothing
, _nlWarning = Nothing
, _nlId = Nothing
}
nlNextPageToken :: Lens' NetworkList (Maybe Text)
nlNextPageToken
= lens _nlNextPageToken
(\ s a -> s{_nlNextPageToken = a})
nlKind :: Lens' NetworkList Text
nlKind = lens _nlKind (\ s a -> s{_nlKind = a})
nlItems :: Lens' NetworkList [Network]
nlItems
= lens _nlItems (\ s a -> s{_nlItems = a}) . _Default
. _Coerce
nlSelfLink :: Lens' NetworkList (Maybe Text)
nlSelfLink
= lens _nlSelfLink (\ s a -> s{_nlSelfLink = a})
nlWarning :: Lens' NetworkList (Maybe NetworkListWarning)
nlWarning
= lens _nlWarning (\ s a -> s{_nlWarning = a})
nlId :: Lens' NetworkList (Maybe Text)
nlId = lens _nlId (\ s a -> s{_nlId = a})
instance FromJSON NetworkList where
parseJSON
= withObject "NetworkList"
(\ o ->
NetworkList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#networkList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NetworkList where
toJSON NetworkList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _nlNextPageToken,
Just ("kind" .= _nlKind), ("items" .=) <$> _nlItems,
("selfLink" .=) <$> _nlSelfLink,
("warning" .=) <$> _nlWarning, ("id" .=) <$> _nlId])
data NetworkPeering =
NetworkPeering'
{ _netState :: !(Maybe NetworkPeeringState)
, _netExchangeSubnetRoutes :: !(Maybe Bool)
, _netStateDetails :: !(Maybe Text)
, _netNetwork :: !(Maybe Text)
, _netName :: !(Maybe Text)
, _netAutoCreateRoutes :: !(Maybe Bool)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkPeering
:: NetworkPeering
networkPeering =
NetworkPeering'
{ _netState = Nothing
, _netExchangeSubnetRoutes = Nothing
, _netStateDetails = Nothing
, _netNetwork = Nothing
, _netName = Nothing
, _netAutoCreateRoutes = Nothing
}
netState :: Lens' NetworkPeering (Maybe NetworkPeeringState)
netState = lens _netState (\ s a -> s{_netState = a})
netExchangeSubnetRoutes :: Lens' NetworkPeering (Maybe Bool)
netExchangeSubnetRoutes
= lens _netExchangeSubnetRoutes
(\ s a -> s{_netExchangeSubnetRoutes = a})
netStateDetails :: Lens' NetworkPeering (Maybe Text)
netStateDetails
= lens _netStateDetails
(\ s a -> s{_netStateDetails = a})
netNetwork :: Lens' NetworkPeering (Maybe Text)
netNetwork
= lens _netNetwork (\ s a -> s{_netNetwork = a})
netName :: Lens' NetworkPeering (Maybe Text)
netName = lens _netName (\ s a -> s{_netName = a})
netAutoCreateRoutes :: Lens' NetworkPeering (Maybe Bool)
netAutoCreateRoutes
= lens _netAutoCreateRoutes
(\ s a -> s{_netAutoCreateRoutes = a})
instance FromJSON NetworkPeering where
parseJSON
= withObject "NetworkPeering"
(\ o ->
NetworkPeering' <$>
(o .:? "state") <*> (o .:? "exchangeSubnetRoutes")
<*> (o .:? "stateDetails")
<*> (o .:? "network")
<*> (o .:? "name")
<*> (o .:? "autoCreateRoutes"))
instance ToJSON NetworkPeering where
toJSON NetworkPeering'{..}
= object
(catMaybes
[("state" .=) <$> _netState,
("exchangeSubnetRoutes" .=) <$>
_netExchangeSubnetRoutes,
("stateDetails" .=) <$> _netStateDetails,
("network" .=) <$> _netNetwork,
("name" .=) <$> _netName,
("autoCreateRoutes" .=) <$> _netAutoCreateRoutes])
data TargetSSLProxyListWarningDataItem =
TargetSSLProxyListWarningDataItem'
{ _tsplwdiValue :: !(Maybe Text)
, _tsplwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetSSLProxyListWarningDataItem
:: TargetSSLProxyListWarningDataItem
targetSSLProxyListWarningDataItem =
TargetSSLProxyListWarningDataItem'
{_tsplwdiValue = Nothing, _tsplwdiKey = Nothing}
tsplwdiValue :: Lens' TargetSSLProxyListWarningDataItem (Maybe Text)
tsplwdiValue
= lens _tsplwdiValue (\ s a -> s{_tsplwdiValue = a})
tsplwdiKey :: Lens' TargetSSLProxyListWarningDataItem (Maybe Text)
tsplwdiKey
= lens _tsplwdiKey (\ s a -> s{_tsplwdiKey = a})
instance FromJSON TargetSSLProxyListWarningDataItem
where
parseJSON
= withObject "TargetSSLProxyListWarningDataItem"
(\ o ->
TargetSSLProxyListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetSSLProxyListWarningDataItem
where
toJSON TargetSSLProxyListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tsplwdiValue,
("key" .=) <$> _tsplwdiKey])
newtype InstanceGroupsListInstancesRequest =
InstanceGroupsListInstancesRequest'
{ _iglirInstanceState :: Maybe InstanceGroupsListInstancesRequestInstanceState
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsListInstancesRequest
:: InstanceGroupsListInstancesRequest
instanceGroupsListInstancesRequest =
InstanceGroupsListInstancesRequest' {_iglirInstanceState = Nothing}
iglirInstanceState :: Lens' InstanceGroupsListInstancesRequest (Maybe InstanceGroupsListInstancesRequestInstanceState)
iglirInstanceState
= lens _iglirInstanceState
(\ s a -> s{_iglirInstanceState = a})
instance FromJSON InstanceGroupsListInstancesRequest
where
parseJSON
= withObject "InstanceGroupsListInstancesRequest"
(\ o ->
InstanceGroupsListInstancesRequest' <$>
(o .:? "instanceState"))
instance ToJSON InstanceGroupsListInstancesRequest
where
toJSON InstanceGroupsListInstancesRequest'{..}
= object
(catMaybes
[("instanceState" .=) <$> _iglirInstanceState])
data InstanceListReferrersWarningDataItem =
InstanceListReferrersWarningDataItem'
{ _ilrwdiValue :: !(Maybe Text)
, _ilrwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceListReferrersWarningDataItem
:: InstanceListReferrersWarningDataItem
instanceListReferrersWarningDataItem =
InstanceListReferrersWarningDataItem'
{_ilrwdiValue = Nothing, _ilrwdiKey = Nothing}
ilrwdiValue :: Lens' InstanceListReferrersWarningDataItem (Maybe Text)
ilrwdiValue
= lens _ilrwdiValue (\ s a -> s{_ilrwdiValue = a})
ilrwdiKey :: Lens' InstanceListReferrersWarningDataItem (Maybe Text)
ilrwdiKey
= lens _ilrwdiKey (\ s a -> s{_ilrwdiKey = a})
instance FromJSON
InstanceListReferrersWarningDataItem
where
parseJSON
= withObject "InstanceListReferrersWarningDataItem"
(\ o ->
InstanceListReferrersWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON InstanceListReferrersWarningDataItem
where
toJSON InstanceListReferrersWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ilrwdiValue,
("key" .=) <$> _ilrwdiKey])
data RouteListWarningDataItem =
RouteListWarningDataItem'
{ _rValue :: !(Maybe Text)
, _rKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routeListWarningDataItem
:: RouteListWarningDataItem
routeListWarningDataItem =
RouteListWarningDataItem' {_rValue = Nothing, _rKey = Nothing}
rValue :: Lens' RouteListWarningDataItem (Maybe Text)
rValue = lens _rValue (\ s a -> s{_rValue = a})
rKey :: Lens' RouteListWarningDataItem (Maybe Text)
rKey = lens _rKey (\ s a -> s{_rKey = a})
instance FromJSON RouteListWarningDataItem where
parseJSON
= withObject "RouteListWarningDataItem"
(\ o ->
RouteListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RouteListWarningDataItem where
toJSON RouteListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _rValue, ("key" .=) <$> _rKey])
data InterconnectAttachmentsScopedList =
InterconnectAttachmentsScopedList'
{ _iaslWarning :: !(Maybe InterconnectAttachmentsScopedListWarning)
, _iaslInterconnectAttachments :: !(Maybe [InterconnectAttachment])
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentsScopedList
:: InterconnectAttachmentsScopedList
interconnectAttachmentsScopedList =
InterconnectAttachmentsScopedList'
{_iaslWarning = Nothing, _iaslInterconnectAttachments = Nothing}
iaslWarning :: Lens' InterconnectAttachmentsScopedList (Maybe InterconnectAttachmentsScopedListWarning)
iaslWarning
= lens _iaslWarning (\ s a -> s{_iaslWarning = a})
iaslInterconnectAttachments :: Lens' InterconnectAttachmentsScopedList [InterconnectAttachment]
iaslInterconnectAttachments
= lens _iaslInterconnectAttachments
(\ s a -> s{_iaslInterconnectAttachments = a})
. _Default
. _Coerce
instance FromJSON InterconnectAttachmentsScopedList
where
parseJSON
= withObject "InterconnectAttachmentsScopedList"
(\ o ->
InterconnectAttachmentsScopedList' <$>
(o .:? "warning") <*>
(o .:? "interconnectAttachments" .!= mempty))
instance ToJSON InterconnectAttachmentsScopedList
where
toJSON InterconnectAttachmentsScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _iaslWarning,
("interconnectAttachments" .=) <$>
_iaslInterconnectAttachments])
data SecurityPolicyList =
SecurityPolicyList'
{ _splNextPageToken :: !(Maybe Text)
, _splKind :: !Text
, _splItems :: !(Maybe [SecurityPolicy])
, _splWarning :: !(Maybe SecurityPolicyListWarning)
, _splId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicyList
:: SecurityPolicyList
securityPolicyList =
SecurityPolicyList'
{ _splNextPageToken = Nothing
, _splKind = "compute#securityPolicyList"
, _splItems = Nothing
, _splWarning = Nothing
, _splId = Nothing
}
splNextPageToken :: Lens' SecurityPolicyList (Maybe Text)
splNextPageToken
= lens _splNextPageToken
(\ s a -> s{_splNextPageToken = a})
splKind :: Lens' SecurityPolicyList Text
splKind = lens _splKind (\ s a -> s{_splKind = a})
splItems :: Lens' SecurityPolicyList [SecurityPolicy]
splItems
= lens _splItems (\ s a -> s{_splItems = a}) .
_Default
. _Coerce
splWarning :: Lens' SecurityPolicyList (Maybe SecurityPolicyListWarning)
splWarning
= lens _splWarning (\ s a -> s{_splWarning = a})
splId :: Lens' SecurityPolicyList (Maybe Text)
splId = lens _splId (\ s a -> s{_splId = a})
instance FromJSON SecurityPolicyList where
parseJSON
= withObject "SecurityPolicyList"
(\ o ->
SecurityPolicyList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#securityPolicyList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON SecurityPolicyList where
toJSON SecurityPolicyList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _splNextPageToken,
Just ("kind" .= _splKind),
("items" .=) <$> _splItems,
("warning" .=) <$> _splWarning,
("id" .=) <$> _splId])
data CommitmentAggregatedList =
CommitmentAggregatedList'
{ _calNextPageToken :: !(Maybe Text)
, _calKind :: !Text
, _calItems :: !(Maybe CommitmentAggregatedListItems)
, _calSelfLink :: !(Maybe Text)
, _calWarning :: !(Maybe CommitmentAggregatedListWarning)
, _calId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentAggregatedList
:: CommitmentAggregatedList
commitmentAggregatedList =
CommitmentAggregatedList'
{ _calNextPageToken = Nothing
, _calKind = "compute#commitmentAggregatedList"
, _calItems = Nothing
, _calSelfLink = Nothing
, _calWarning = Nothing
, _calId = Nothing
}
calNextPageToken :: Lens' CommitmentAggregatedList (Maybe Text)
calNextPageToken
= lens _calNextPageToken
(\ s a -> s{_calNextPageToken = a})
calKind :: Lens' CommitmentAggregatedList Text
calKind = lens _calKind (\ s a -> s{_calKind = a})
calItems :: Lens' CommitmentAggregatedList (Maybe CommitmentAggregatedListItems)
calItems = lens _calItems (\ s a -> s{_calItems = a})
calSelfLink :: Lens' CommitmentAggregatedList (Maybe Text)
calSelfLink
= lens _calSelfLink (\ s a -> s{_calSelfLink = a})
calWarning :: Lens' CommitmentAggregatedList (Maybe CommitmentAggregatedListWarning)
calWarning
= lens _calWarning (\ s a -> s{_calWarning = a})
calId :: Lens' CommitmentAggregatedList (Maybe Text)
calId = lens _calId (\ s a -> s{_calId = a})
instance FromJSON CommitmentAggregatedList where
parseJSON
= withObject "CommitmentAggregatedList"
(\ o ->
CommitmentAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#commitmentAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON CommitmentAggregatedList where
toJSON CommitmentAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _calNextPageToken,
Just ("kind" .= _calKind),
("items" .=) <$> _calItems,
("selfLink" .=) <$> _calSelfLink,
("warning" .=) <$> _calWarning,
("id" .=) <$> _calId])
data RegionInstanceGroupList =
RegionInstanceGroupList'
{ _riglNextPageToken :: !(Maybe Text)
, _riglKind :: !Text
, _riglItems :: !(Maybe [InstanceGroup])
, _riglSelfLink :: !(Maybe Text)
, _riglWarning :: !(Maybe RegionInstanceGroupListWarning)
, _riglId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupList
:: RegionInstanceGroupList
regionInstanceGroupList =
RegionInstanceGroupList'
{ _riglNextPageToken = Nothing
, _riglKind = "compute#regionInstanceGroupList"
, _riglItems = Nothing
, _riglSelfLink = Nothing
, _riglWarning = Nothing
, _riglId = Nothing
}
riglNextPageToken :: Lens' RegionInstanceGroupList (Maybe Text)
riglNextPageToken
= lens _riglNextPageToken
(\ s a -> s{_riglNextPageToken = a})
riglKind :: Lens' RegionInstanceGroupList Text
riglKind = lens _riglKind (\ s a -> s{_riglKind = a})
riglItems :: Lens' RegionInstanceGroupList [InstanceGroup]
riglItems
= lens _riglItems (\ s a -> s{_riglItems = a}) .
_Default
. _Coerce
riglSelfLink :: Lens' RegionInstanceGroupList (Maybe Text)
riglSelfLink
= lens _riglSelfLink (\ s a -> s{_riglSelfLink = a})
riglWarning :: Lens' RegionInstanceGroupList (Maybe RegionInstanceGroupListWarning)
riglWarning
= lens _riglWarning (\ s a -> s{_riglWarning = a})
riglId :: Lens' RegionInstanceGroupList (Maybe Text)
riglId = lens _riglId (\ s a -> s{_riglId = a})
instance FromJSON RegionInstanceGroupList where
parseJSON
= withObject "RegionInstanceGroupList"
(\ o ->
RegionInstanceGroupList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#regionInstanceGroupList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RegionInstanceGroupList where
toJSON RegionInstanceGroupList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _riglNextPageToken,
Just ("kind" .= _riglKind),
("items" .=) <$> _riglItems,
("selfLink" .=) <$> _riglSelfLink,
("warning" .=) <$> _riglWarning,
("id" .=) <$> _riglId])
data VMEndpointNATMAppingsListWarning =
VMEndpointNATMAppingsListWarning'
{ _vmenatmalwData :: !(Maybe [VMEndpointNATMAppingsListWarningDataItem])
, _vmenatmalwCode :: !(Maybe VMEndpointNATMAppingsListWarningCode)
, _vmenatmalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vMEndpointNATMAppingsListWarning
:: VMEndpointNATMAppingsListWarning
vMEndpointNATMAppingsListWarning =
VMEndpointNATMAppingsListWarning'
{ _vmenatmalwData = Nothing
, _vmenatmalwCode = Nothing
, _vmenatmalwMessage = Nothing
}
vmenatmalwData :: Lens' VMEndpointNATMAppingsListWarning [VMEndpointNATMAppingsListWarningDataItem]
vmenatmalwData
= lens _vmenatmalwData
(\ s a -> s{_vmenatmalwData = a})
. _Default
. _Coerce
vmenatmalwCode :: Lens' VMEndpointNATMAppingsListWarning (Maybe VMEndpointNATMAppingsListWarningCode)
vmenatmalwCode
= lens _vmenatmalwCode
(\ s a -> s{_vmenatmalwCode = a})
vmenatmalwMessage :: Lens' VMEndpointNATMAppingsListWarning (Maybe Text)
vmenatmalwMessage
= lens _vmenatmalwMessage
(\ s a -> s{_vmenatmalwMessage = a})
instance FromJSON VMEndpointNATMAppingsListWarning
where
parseJSON
= withObject "VMEndpointNATMAppingsListWarning"
(\ o ->
VMEndpointNATMAppingsListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON VMEndpointNATMAppingsListWarning
where
toJSON VMEndpointNATMAppingsListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _vmenatmalwData,
("code" .=) <$> _vmenatmalwCode,
("message" .=) <$> _vmenatmalwMessage])
newtype TargetPoolAggregatedListItems =
TargetPoolAggregatedListItems'
{ _tpaliAddtional :: HashMap Text TargetPoolsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolAggregatedListItems
:: HashMap Text TargetPoolsScopedList
-> TargetPoolAggregatedListItems
targetPoolAggregatedListItems pTpaliAddtional_ =
TargetPoolAggregatedListItems' {_tpaliAddtional = _Coerce # pTpaliAddtional_}
tpaliAddtional :: Lens' TargetPoolAggregatedListItems (HashMap Text TargetPoolsScopedList)
tpaliAddtional
= lens _tpaliAddtional
(\ s a -> s{_tpaliAddtional = a})
. _Coerce
instance FromJSON TargetPoolAggregatedListItems where
parseJSON
= withObject "TargetPoolAggregatedListItems"
(\ o ->
TargetPoolAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON TargetPoolAggregatedListItems where
toJSON = toJSON . _tpaliAddtional
newtype NodeGroupsAddNodesRequest =
NodeGroupsAddNodesRequest'
{ _nganrAdditionalNodeCount :: Maybe (Textual Int32)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsAddNodesRequest
:: NodeGroupsAddNodesRequest
nodeGroupsAddNodesRequest =
NodeGroupsAddNodesRequest' {_nganrAdditionalNodeCount = Nothing}
nganrAdditionalNodeCount :: Lens' NodeGroupsAddNodesRequest (Maybe Int32)
nganrAdditionalNodeCount
= lens _nganrAdditionalNodeCount
(\ s a -> s{_nganrAdditionalNodeCount = a})
. mapping _Coerce
instance FromJSON NodeGroupsAddNodesRequest where
parseJSON
= withObject "NodeGroupsAddNodesRequest"
(\ o ->
NodeGroupsAddNodesRequest' <$>
(o .:? "additionalNodeCount"))
instance ToJSON NodeGroupsAddNodesRequest where
toJSON NodeGroupsAddNodesRequest'{..}
= object
(catMaybes
[("additionalNodeCount" .=) <$>
_nganrAdditionalNodeCount])
data NodeTypeAggregatedList =
NodeTypeAggregatedList'
{ _ntalNextPageToken :: !(Maybe Text)
, _ntalKind :: !Text
, _ntalItems :: !(Maybe NodeTypeAggregatedListItems)
, _ntalSelfLink :: !(Maybe Text)
, _ntalWarning :: !(Maybe NodeTypeAggregatedListWarning)
, _ntalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypeAggregatedList
:: NodeTypeAggregatedList
nodeTypeAggregatedList =
NodeTypeAggregatedList'
{ _ntalNextPageToken = Nothing
, _ntalKind = "compute#nodeTypeAggregatedList"
, _ntalItems = Nothing
, _ntalSelfLink = Nothing
, _ntalWarning = Nothing
, _ntalId = Nothing
}
ntalNextPageToken :: Lens' NodeTypeAggregatedList (Maybe Text)
ntalNextPageToken
= lens _ntalNextPageToken
(\ s a -> s{_ntalNextPageToken = a})
ntalKind :: Lens' NodeTypeAggregatedList Text
ntalKind = lens _ntalKind (\ s a -> s{_ntalKind = a})
ntalItems :: Lens' NodeTypeAggregatedList (Maybe NodeTypeAggregatedListItems)
ntalItems
= lens _ntalItems (\ s a -> s{_ntalItems = a})
ntalSelfLink :: Lens' NodeTypeAggregatedList (Maybe Text)
ntalSelfLink
= lens _ntalSelfLink (\ s a -> s{_ntalSelfLink = a})
ntalWarning :: Lens' NodeTypeAggregatedList (Maybe NodeTypeAggregatedListWarning)
ntalWarning
= lens _ntalWarning (\ s a -> s{_ntalWarning = a})
ntalId :: Lens' NodeTypeAggregatedList (Maybe Text)
ntalId = lens _ntalId (\ s a -> s{_ntalId = a})
instance FromJSON NodeTypeAggregatedList where
parseJSON
= withObject "NodeTypeAggregatedList"
(\ o ->
NodeTypeAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#nodeTypeAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NodeTypeAggregatedList where
toJSON NodeTypeAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ntalNextPageToken,
Just ("kind" .= _ntalKind),
("items" .=) <$> _ntalItems,
("selfLink" .=) <$> _ntalSelfLink,
("warning" .=) <$> _ntalWarning,
("id" .=) <$> _ntalId])
data TargetInstancesScopedList =
TargetInstancesScopedList'
{ _tislWarning :: !(Maybe TargetInstancesScopedListWarning)
, _tislTargetInstances :: !(Maybe [TargetInstance])
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstancesScopedList
:: TargetInstancesScopedList
targetInstancesScopedList =
TargetInstancesScopedList'
{_tislWarning = Nothing, _tislTargetInstances = Nothing}
tislWarning :: Lens' TargetInstancesScopedList (Maybe TargetInstancesScopedListWarning)
tislWarning
= lens _tislWarning (\ s a -> s{_tislWarning = a})
tislTargetInstances :: Lens' TargetInstancesScopedList [TargetInstance]
tislTargetInstances
= lens _tislTargetInstances
(\ s a -> s{_tislTargetInstances = a})
. _Default
. _Coerce
instance FromJSON TargetInstancesScopedList where
parseJSON
= withObject "TargetInstancesScopedList"
(\ o ->
TargetInstancesScopedList' <$>
(o .:? "warning") <*>
(o .:? "targetInstances" .!= mempty))
instance ToJSON TargetInstancesScopedList where
toJSON TargetInstancesScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _tislWarning,
("targetInstances" .=) <$> _tislTargetInstances])
data SubnetworkListWarningDataItem =
SubnetworkListWarningDataItem'
{ _sValue :: !(Maybe Text)
, _sKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkListWarningDataItem
:: SubnetworkListWarningDataItem
subnetworkListWarningDataItem =
SubnetworkListWarningDataItem' {_sValue = Nothing, _sKey = Nothing}
sValue :: Lens' SubnetworkListWarningDataItem (Maybe Text)
sValue = lens _sValue (\ s a -> s{_sValue = a})
sKey :: Lens' SubnetworkListWarningDataItem (Maybe Text)
sKey = lens _sKey (\ s a -> s{_sKey = a})
instance FromJSON SubnetworkListWarningDataItem where
parseJSON
= withObject "SubnetworkListWarningDataItem"
(\ o ->
SubnetworkListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON SubnetworkListWarningDataItem where
toJSON SubnetworkListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _sValue, ("key" .=) <$> _sKey])
data NetworkEndpointGroupListWarningDataItem =
NetworkEndpointGroupListWarningDataItem'
{ _neglwdiValue :: !(Maybe Text)
, _neglwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupListWarningDataItem
:: NetworkEndpointGroupListWarningDataItem
networkEndpointGroupListWarningDataItem =
NetworkEndpointGroupListWarningDataItem'
{_neglwdiValue = Nothing, _neglwdiKey = Nothing}
neglwdiValue :: Lens' NetworkEndpointGroupListWarningDataItem (Maybe Text)
neglwdiValue
= lens _neglwdiValue (\ s a -> s{_neglwdiValue = a})
neglwdiKey :: Lens' NetworkEndpointGroupListWarningDataItem (Maybe Text)
neglwdiKey
= lens _neglwdiKey (\ s a -> s{_neglwdiKey = a})
instance FromJSON
NetworkEndpointGroupListWarningDataItem
where
parseJSON
= withObject
"NetworkEndpointGroupListWarningDataItem"
(\ o ->
NetworkEndpointGroupListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
NetworkEndpointGroupListWarningDataItem
where
toJSON NetworkEndpointGroupListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _neglwdiValue,
("key" .=) <$> _neglwdiKey])
newtype ProjectsDisableXpnResourceRequest =
ProjectsDisableXpnResourceRequest'
{ _pdxrrXpnResource :: Maybe XpnResourceId
}
deriving (Eq, Show, Data, Typeable, Generic)
projectsDisableXpnResourceRequest
:: ProjectsDisableXpnResourceRequest
projectsDisableXpnResourceRequest =
ProjectsDisableXpnResourceRequest' {_pdxrrXpnResource = Nothing}
pdxrrXpnResource :: Lens' ProjectsDisableXpnResourceRequest (Maybe XpnResourceId)
pdxrrXpnResource
= lens _pdxrrXpnResource
(\ s a -> s{_pdxrrXpnResource = a})
instance FromJSON ProjectsDisableXpnResourceRequest
where
parseJSON
= withObject "ProjectsDisableXpnResourceRequest"
(\ o ->
ProjectsDisableXpnResourceRequest' <$>
(o .:? "xpnResource"))
instance ToJSON ProjectsDisableXpnResourceRequest
where
toJSON ProjectsDisableXpnResourceRequest'{..}
= object
(catMaybes
[("xpnResource" .=) <$> _pdxrrXpnResource])
newtype AddressAggregatedListItems =
AddressAggregatedListItems'
{ _aAddtional :: HashMap Text AddressesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
addressAggregatedListItems
:: HashMap Text AddressesScopedList
-> AddressAggregatedListItems
addressAggregatedListItems pAAddtional_ =
AddressAggregatedListItems' {_aAddtional = _Coerce # pAAddtional_}
aAddtional :: Lens' AddressAggregatedListItems (HashMap Text AddressesScopedList)
aAddtional
= lens _aAddtional (\ s a -> s{_aAddtional = a}) .
_Coerce
instance FromJSON AddressAggregatedListItems where
parseJSON
= withObject "AddressAggregatedListItems"
(\ o ->
AddressAggregatedListItems' <$> (parseJSONObject o))
instance ToJSON AddressAggregatedListItems where
toJSON = toJSON . _aAddtional
data AutoscalerList =
AutoscalerList'
{ _autNextPageToken :: !(Maybe Text)
, _autKind :: !Text
, _autItems :: !(Maybe [Autoscaler])
, _autSelfLink :: !(Maybe Text)
, _autWarning :: !(Maybe AutoscalerListWarning)
, _autId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerList
:: AutoscalerList
autoscalerList =
AutoscalerList'
{ _autNextPageToken = Nothing
, _autKind = "compute#autoscalerList"
, _autItems = Nothing
, _autSelfLink = Nothing
, _autWarning = Nothing
, _autId = Nothing
}
autNextPageToken :: Lens' AutoscalerList (Maybe Text)
autNextPageToken
= lens _autNextPageToken
(\ s a -> s{_autNextPageToken = a})
autKind :: Lens' AutoscalerList Text
autKind = lens _autKind (\ s a -> s{_autKind = a})
autItems :: Lens' AutoscalerList [Autoscaler]
autItems
= lens _autItems (\ s a -> s{_autItems = a}) .
_Default
. _Coerce
autSelfLink :: Lens' AutoscalerList (Maybe Text)
autSelfLink
= lens _autSelfLink (\ s a -> s{_autSelfLink = a})
autWarning :: Lens' AutoscalerList (Maybe AutoscalerListWarning)
autWarning
= lens _autWarning (\ s a -> s{_autWarning = a})
autId :: Lens' AutoscalerList (Maybe Text)
autId = lens _autId (\ s a -> s{_autId = a})
instance FromJSON AutoscalerList where
parseJSON
= withObject "AutoscalerList"
(\ o ->
AutoscalerList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#autoscalerList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON AutoscalerList where
toJSON AutoscalerList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _autNextPageToken,
Just ("kind" .= _autKind),
("items" .=) <$> _autItems,
("selfLink" .=) <$> _autSelfLink,
("warning" .=) <$> _autWarning,
("id" .=) <$> _autId])
data NetworkEndpointGroupAggregatedListWarning =
NetworkEndpointGroupAggregatedListWarning'
{ _negalwData :: !(Maybe [NetworkEndpointGroupAggregatedListWarningDataItem])
, _negalwCode :: !(Maybe NetworkEndpointGroupAggregatedListWarningCode)
, _negalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupAggregatedListWarning
:: NetworkEndpointGroupAggregatedListWarning
networkEndpointGroupAggregatedListWarning =
NetworkEndpointGroupAggregatedListWarning'
{_negalwData = Nothing, _negalwCode = Nothing, _negalwMessage = Nothing}
negalwData :: Lens' NetworkEndpointGroupAggregatedListWarning [NetworkEndpointGroupAggregatedListWarningDataItem]
negalwData
= lens _negalwData (\ s a -> s{_negalwData = a}) .
_Default
. _Coerce
negalwCode :: Lens' NetworkEndpointGroupAggregatedListWarning (Maybe NetworkEndpointGroupAggregatedListWarningCode)
negalwCode
= lens _negalwCode (\ s a -> s{_negalwCode = a})
negalwMessage :: Lens' NetworkEndpointGroupAggregatedListWarning (Maybe Text)
negalwMessage
= lens _negalwMessage
(\ s a -> s{_negalwMessage = a})
instance FromJSON
NetworkEndpointGroupAggregatedListWarning
where
parseJSON
= withObject
"NetworkEndpointGroupAggregatedListWarning"
(\ o ->
NetworkEndpointGroupAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
NetworkEndpointGroupAggregatedListWarning
where
toJSON NetworkEndpointGroupAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _negalwData,
("code" .=) <$> _negalwCode,
("message" .=) <$> _negalwMessage])
data InterconnectListWarningDataItem =
InterconnectListWarningDataItem'
{ _iValue :: !(Maybe Text)
, _iKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectListWarningDataItem
:: InterconnectListWarningDataItem
interconnectListWarningDataItem =
InterconnectListWarningDataItem' {_iValue = Nothing, _iKey = Nothing}
iValue :: Lens' InterconnectListWarningDataItem (Maybe Text)
iValue = lens _iValue (\ s a -> s{_iValue = a})
iKey :: Lens' InterconnectListWarningDataItem (Maybe Text)
iKey = lens _iKey (\ s a -> s{_iKey = a})
instance FromJSON InterconnectListWarningDataItem
where
parseJSON
= withObject "InterconnectListWarningDataItem"
(\ o ->
InterconnectListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON InterconnectListWarningDataItem where
toJSON InterconnectListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _iValue, ("key" .=) <$> _iKey])
data SubnetworkAggregatedListWarning =
SubnetworkAggregatedListWarning'
{ _salwData :: !(Maybe [SubnetworkAggregatedListWarningDataItem])
, _salwCode :: !(Maybe SubnetworkAggregatedListWarningCode)
, _salwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkAggregatedListWarning
:: SubnetworkAggregatedListWarning
subnetworkAggregatedListWarning =
SubnetworkAggregatedListWarning'
{_salwData = Nothing, _salwCode = Nothing, _salwMessage = Nothing}
salwData :: Lens' SubnetworkAggregatedListWarning [SubnetworkAggregatedListWarningDataItem]
salwData
= lens _salwData (\ s a -> s{_salwData = a}) .
_Default
. _Coerce
salwCode :: Lens' SubnetworkAggregatedListWarning (Maybe SubnetworkAggregatedListWarningCode)
salwCode = lens _salwCode (\ s a -> s{_salwCode = a})
salwMessage :: Lens' SubnetworkAggregatedListWarning (Maybe Text)
salwMessage
= lens _salwMessage (\ s a -> s{_salwMessage = a})
instance FromJSON SubnetworkAggregatedListWarning
where
parseJSON
= withObject "SubnetworkAggregatedListWarning"
(\ o ->
SubnetworkAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SubnetworkAggregatedListWarning where
toJSON SubnetworkAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _salwData,
("code" .=) <$> _salwCode,
("message" .=) <$> _salwMessage])
data InterconnectLocation =
InterconnectLocation'
{ _intFacilityProviderFacilityId :: !(Maybe Text)
, _intStatus :: !(Maybe InterconnectLocationStatus)
, _intRegionInfos :: !(Maybe [InterconnectLocationRegionInfo])
, _intKind :: !Text
, _intAddress :: !(Maybe Text)
, _intFacilityProvider :: !(Maybe Text)
, _intSelfLink :: !(Maybe Text)
, _intPeeringdbFacilityId :: !(Maybe Text)
, _intName :: !(Maybe Text)
, _intCity :: !(Maybe Text)
, _intAvailabilityZone :: !(Maybe Text)
, _intCreationTimestamp :: !(Maybe Text)
, _intId :: !(Maybe (Textual Word64))
, _intContinent :: !(Maybe InterconnectLocationContinent)
, _intDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectLocation
:: InterconnectLocation
interconnectLocation =
InterconnectLocation'
{ _intFacilityProviderFacilityId = Nothing
, _intStatus = Nothing
, _intRegionInfos = Nothing
, _intKind = "compute#interconnectLocation"
, _intAddress = Nothing
, _intFacilityProvider = Nothing
, _intSelfLink = Nothing
, _intPeeringdbFacilityId = Nothing
, _intName = Nothing
, _intCity = Nothing
, _intAvailabilityZone = Nothing
, _intCreationTimestamp = Nothing
, _intId = Nothing
, _intContinent = Nothing
, _intDescription = Nothing
}
intFacilityProviderFacilityId :: Lens' InterconnectLocation (Maybe Text)
intFacilityProviderFacilityId
= lens _intFacilityProviderFacilityId
(\ s a -> s{_intFacilityProviderFacilityId = a})
intStatus :: Lens' InterconnectLocation (Maybe InterconnectLocationStatus)
intStatus
= lens _intStatus (\ s a -> s{_intStatus = a})
intRegionInfos :: Lens' InterconnectLocation [InterconnectLocationRegionInfo]
intRegionInfos
= lens _intRegionInfos
(\ s a -> s{_intRegionInfos = a})
. _Default
. _Coerce
intKind :: Lens' InterconnectLocation Text
intKind = lens _intKind (\ s a -> s{_intKind = a})
intAddress :: Lens' InterconnectLocation (Maybe Text)
intAddress
= lens _intAddress (\ s a -> s{_intAddress = a})
intFacilityProvider :: Lens' InterconnectLocation (Maybe Text)
intFacilityProvider
= lens _intFacilityProvider
(\ s a -> s{_intFacilityProvider = a})
intSelfLink :: Lens' InterconnectLocation (Maybe Text)
intSelfLink
= lens _intSelfLink (\ s a -> s{_intSelfLink = a})
intPeeringdbFacilityId :: Lens' InterconnectLocation (Maybe Text)
intPeeringdbFacilityId
= lens _intPeeringdbFacilityId
(\ s a -> s{_intPeeringdbFacilityId = a})
intName :: Lens' InterconnectLocation (Maybe Text)
intName = lens _intName (\ s a -> s{_intName = a})
intCity :: Lens' InterconnectLocation (Maybe Text)
intCity = lens _intCity (\ s a -> s{_intCity = a})
intAvailabilityZone :: Lens' InterconnectLocation (Maybe Text)
intAvailabilityZone
= lens _intAvailabilityZone
(\ s a -> s{_intAvailabilityZone = a})
intCreationTimestamp :: Lens' InterconnectLocation (Maybe Text)
intCreationTimestamp
= lens _intCreationTimestamp
(\ s a -> s{_intCreationTimestamp = a})
intId :: Lens' InterconnectLocation (Maybe Word64)
intId
= lens _intId (\ s a -> s{_intId = a}) .
mapping _Coerce
intContinent :: Lens' InterconnectLocation (Maybe InterconnectLocationContinent)
intContinent
= lens _intContinent (\ s a -> s{_intContinent = a})
intDescription :: Lens' InterconnectLocation (Maybe Text)
intDescription
= lens _intDescription
(\ s a -> s{_intDescription = a})
instance FromJSON InterconnectLocation where
parseJSON
= withObject "InterconnectLocation"
(\ o ->
InterconnectLocation' <$>
(o .:? "facilityProviderFacilityId") <*>
(o .:? "status")
<*> (o .:? "regionInfos" .!= mempty)
<*> (o .:? "kind" .!= "compute#interconnectLocation")
<*> (o .:? "address")
<*> (o .:? "facilityProvider")
<*> (o .:? "selfLink")
<*> (o .:? "peeringdbFacilityId")
<*> (o .:? "name")
<*> (o .:? "city")
<*> (o .:? "availabilityZone")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "continent")
<*> (o .:? "description"))
instance ToJSON InterconnectLocation where
toJSON InterconnectLocation'{..}
= object
(catMaybes
[("facilityProviderFacilityId" .=) <$>
_intFacilityProviderFacilityId,
("status" .=) <$> _intStatus,
("regionInfos" .=) <$> _intRegionInfos,
Just ("kind" .= _intKind),
("address" .=) <$> _intAddress,
("facilityProvider" .=) <$> _intFacilityProvider,
("selfLink" .=) <$> _intSelfLink,
("peeringdbFacilityId" .=) <$>
_intPeeringdbFacilityId,
("name" .=) <$> _intName, ("city" .=) <$> _intCity,
("availabilityZone" .=) <$> _intAvailabilityZone,
("creationTimestamp" .=) <$> _intCreationTimestamp,
("id" .=) <$> _intId,
("continent" .=) <$> _intContinent,
("description" .=) <$> _intDescription])
newtype TargetSSLProxiesSetProxyHeaderRequest =
TargetSSLProxiesSetProxyHeaderRequest'
{ _tspsphrProxyHeader :: Maybe TargetSSLProxiesSetProxyHeaderRequestProxyHeader
}
deriving (Eq, Show, Data, Typeable, Generic)
targetSSLProxiesSetProxyHeaderRequest
:: TargetSSLProxiesSetProxyHeaderRequest
targetSSLProxiesSetProxyHeaderRequest =
TargetSSLProxiesSetProxyHeaderRequest' {_tspsphrProxyHeader = Nothing}
tspsphrProxyHeader :: Lens' TargetSSLProxiesSetProxyHeaderRequest (Maybe TargetSSLProxiesSetProxyHeaderRequestProxyHeader)
tspsphrProxyHeader
= lens _tspsphrProxyHeader
(\ s a -> s{_tspsphrProxyHeader = a})
instance FromJSON
TargetSSLProxiesSetProxyHeaderRequest
where
parseJSON
= withObject "TargetSSLProxiesSetProxyHeaderRequest"
(\ o ->
TargetSSLProxiesSetProxyHeaderRequest' <$>
(o .:? "proxyHeader"))
instance ToJSON TargetSSLProxiesSetProxyHeaderRequest
where
toJSON TargetSSLProxiesSetProxyHeaderRequest'{..}
= object
(catMaybes
[("proxyHeader" .=) <$> _tspsphrProxyHeader])
data VPNTunnelAggregatedList =
VPNTunnelAggregatedList'
{ _vtalNextPageToken :: !(Maybe Text)
, _vtalKind :: !Text
, _vtalItems :: !(Maybe VPNTunnelAggregatedListItems)
, _vtalSelfLink :: !(Maybe Text)
, _vtalWarning :: !(Maybe VPNTunnelAggregatedListWarning)
, _vtalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelAggregatedList
:: VPNTunnelAggregatedList
vpnTunnelAggregatedList =
VPNTunnelAggregatedList'
{ _vtalNextPageToken = Nothing
, _vtalKind = "compute#vpnTunnelAggregatedList"
, _vtalItems = Nothing
, _vtalSelfLink = Nothing
, _vtalWarning = Nothing
, _vtalId = Nothing
}
vtalNextPageToken :: Lens' VPNTunnelAggregatedList (Maybe Text)
vtalNextPageToken
= lens _vtalNextPageToken
(\ s a -> s{_vtalNextPageToken = a})
vtalKind :: Lens' VPNTunnelAggregatedList Text
vtalKind = lens _vtalKind (\ s a -> s{_vtalKind = a})
vtalItems :: Lens' VPNTunnelAggregatedList (Maybe VPNTunnelAggregatedListItems)
vtalItems
= lens _vtalItems (\ s a -> s{_vtalItems = a})
vtalSelfLink :: Lens' VPNTunnelAggregatedList (Maybe Text)
vtalSelfLink
= lens _vtalSelfLink (\ s a -> s{_vtalSelfLink = a})
vtalWarning :: Lens' VPNTunnelAggregatedList (Maybe VPNTunnelAggregatedListWarning)
vtalWarning
= lens _vtalWarning (\ s a -> s{_vtalWarning = a})
vtalId :: Lens' VPNTunnelAggregatedList (Maybe Text)
vtalId = lens _vtalId (\ s a -> s{_vtalId = a})
instance FromJSON VPNTunnelAggregatedList where
parseJSON
= withObject "VPNTunnelAggregatedList"
(\ o ->
VPNTunnelAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#vpnTunnelAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON VPNTunnelAggregatedList where
toJSON VPNTunnelAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _vtalNextPageToken,
Just ("kind" .= _vtalKind),
("items" .=) <$> _vtalItems,
("selfLink" .=) <$> _vtalSelfLink,
("warning" .=) <$> _vtalWarning,
("id" .=) <$> _vtalId])
data SSLPoliciesListWarningDataItem =
SSLPoliciesListWarningDataItem'
{ _splwdiValue :: !(Maybe Text)
, _splwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPoliciesListWarningDataItem
:: SSLPoliciesListWarningDataItem
sslPoliciesListWarningDataItem =
SSLPoliciesListWarningDataItem' {_splwdiValue = Nothing, _splwdiKey = Nothing}
splwdiValue :: Lens' SSLPoliciesListWarningDataItem (Maybe Text)
splwdiValue
= lens _splwdiValue (\ s a -> s{_splwdiValue = a})
splwdiKey :: Lens' SSLPoliciesListWarningDataItem (Maybe Text)
splwdiKey
= lens _splwdiKey (\ s a -> s{_splwdiKey = a})
instance FromJSON SSLPoliciesListWarningDataItem
where
parseJSON
= withObject "SSLPoliciesListWarningDataItem"
(\ o ->
SSLPoliciesListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON SSLPoliciesListWarningDataItem where
toJSON SSLPoliciesListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _splwdiValue,
("key" .=) <$> _splwdiKey])
data InterconnectCircuitInfo =
InterconnectCircuitInfo'
{ _iciGoogleCircuitId :: !(Maybe Text)
, _iciCustomerDemarcId :: !(Maybe Text)
, _iciGoogleDemarcId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectCircuitInfo
:: InterconnectCircuitInfo
interconnectCircuitInfo =
InterconnectCircuitInfo'
{ _iciGoogleCircuitId = Nothing
, _iciCustomerDemarcId = Nothing
, _iciGoogleDemarcId = Nothing
}
iciGoogleCircuitId :: Lens' InterconnectCircuitInfo (Maybe Text)
iciGoogleCircuitId
= lens _iciGoogleCircuitId
(\ s a -> s{_iciGoogleCircuitId = a})
iciCustomerDemarcId :: Lens' InterconnectCircuitInfo (Maybe Text)
iciCustomerDemarcId
= lens _iciCustomerDemarcId
(\ s a -> s{_iciCustomerDemarcId = a})
iciGoogleDemarcId :: Lens' InterconnectCircuitInfo (Maybe Text)
iciGoogleDemarcId
= lens _iciGoogleDemarcId
(\ s a -> s{_iciGoogleDemarcId = a})
instance FromJSON InterconnectCircuitInfo where
parseJSON
= withObject "InterconnectCircuitInfo"
(\ o ->
InterconnectCircuitInfo' <$>
(o .:? "googleCircuitId") <*>
(o .:? "customerDemarcId")
<*> (o .:? "googleDemarcId"))
instance ToJSON InterconnectCircuitInfo where
toJSON InterconnectCircuitInfo'{..}
= object
(catMaybes
[("googleCircuitId" .=) <$> _iciGoogleCircuitId,
("customerDemarcId" .=) <$> _iciCustomerDemarcId,
("googleDemarcId" .=) <$> _iciGoogleDemarcId])
data AttachedDisk =
AttachedDisk'
{ _adDiskEncryptionKey :: !(Maybe CustomerEncryptionKey)
, _adKind :: !Text
, _adMode :: !(Maybe AttachedDiskMode)
, _adGuestOSFeatures :: !(Maybe [GuestOSFeature])
, _adBoot :: !(Maybe Bool)
, _adAutoDelete :: !(Maybe Bool)
, _adInitializeParams :: !(Maybe AttachedDiskInitializeParams)
, _adDeviceName :: !(Maybe Text)
, _adInterface :: !(Maybe AttachedDiskInterface)
, _adSource :: !(Maybe Text)
, _adLicenses :: !(Maybe [Text])
, _adType :: !(Maybe AttachedDiskType)
, _adIndex :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
attachedDisk
:: AttachedDisk
attachedDisk =
AttachedDisk'
{ _adDiskEncryptionKey = Nothing
, _adKind = "compute#attachedDisk"
, _adMode = Nothing
, _adGuestOSFeatures = Nothing
, _adBoot = Nothing
, _adAutoDelete = Nothing
, _adInitializeParams = Nothing
, _adDeviceName = Nothing
, _adInterface = Nothing
, _adSource = Nothing
, _adLicenses = Nothing
, _adType = Nothing
, _adIndex = Nothing
}
adDiskEncryptionKey :: Lens' AttachedDisk (Maybe CustomerEncryptionKey)
adDiskEncryptionKey
= lens _adDiskEncryptionKey
(\ s a -> s{_adDiskEncryptionKey = a})
adKind :: Lens' AttachedDisk Text
adKind = lens _adKind (\ s a -> s{_adKind = a})
adMode :: Lens' AttachedDisk (Maybe AttachedDiskMode)
adMode = lens _adMode (\ s a -> s{_adMode = a})
adGuestOSFeatures :: Lens' AttachedDisk [GuestOSFeature]
adGuestOSFeatures
= lens _adGuestOSFeatures
(\ s a -> s{_adGuestOSFeatures = a})
. _Default
. _Coerce
adBoot :: Lens' AttachedDisk (Maybe Bool)
adBoot = lens _adBoot (\ s a -> s{_adBoot = a})
adAutoDelete :: Lens' AttachedDisk (Maybe Bool)
adAutoDelete
= lens _adAutoDelete (\ s a -> s{_adAutoDelete = a})
adInitializeParams :: Lens' AttachedDisk (Maybe AttachedDiskInitializeParams)
adInitializeParams
= lens _adInitializeParams
(\ s a -> s{_adInitializeParams = a})
adDeviceName :: Lens' AttachedDisk (Maybe Text)
adDeviceName
= lens _adDeviceName (\ s a -> s{_adDeviceName = a})
adInterface :: Lens' AttachedDisk (Maybe AttachedDiskInterface)
adInterface
= lens _adInterface (\ s a -> s{_adInterface = a})
adSource :: Lens' AttachedDisk (Maybe Text)
adSource = lens _adSource (\ s a -> s{_adSource = a})
adLicenses :: Lens' AttachedDisk [Text]
adLicenses
= lens _adLicenses (\ s a -> s{_adLicenses = a}) .
_Default
. _Coerce
adType :: Lens' AttachedDisk (Maybe AttachedDiskType)
adType = lens _adType (\ s a -> s{_adType = a})
adIndex :: Lens' AttachedDisk (Maybe Int32)
adIndex
= lens _adIndex (\ s a -> s{_adIndex = a}) .
mapping _Coerce
instance FromJSON AttachedDisk where
parseJSON
= withObject "AttachedDisk"
(\ o ->
AttachedDisk' <$>
(o .:? "diskEncryptionKey") <*>
(o .:? "kind" .!= "compute#attachedDisk")
<*> (o .:? "mode")
<*> (o .:? "guestOsFeatures" .!= mempty)
<*> (o .:? "boot")
<*> (o .:? "autoDelete")
<*> (o .:? "initializeParams")
<*> (o .:? "deviceName")
<*> (o .:? "interface")
<*> (o .:? "source")
<*> (o .:? "licenses" .!= mempty)
<*> (o .:? "type")
<*> (o .:? "index"))
instance ToJSON AttachedDisk where
toJSON AttachedDisk'{..}
= object
(catMaybes
[("diskEncryptionKey" .=) <$> _adDiskEncryptionKey,
Just ("kind" .= _adKind), ("mode" .=) <$> _adMode,
("guestOsFeatures" .=) <$> _adGuestOSFeatures,
("boot" .=) <$> _adBoot,
("autoDelete" .=) <$> _adAutoDelete,
("initializeParams" .=) <$> _adInitializeParams,
("deviceName" .=) <$> _adDeviceName,
("interface" .=) <$> _adInterface,
("source" .=) <$> _adSource,
("licenses" .=) <$> _adLicenses,
("type" .=) <$> _adType, ("index" .=) <$> _adIndex])
data HTTPHealthCheckListWarningDataItem =
HTTPHealthCheckListWarningDataItem'
{ _httphclwdiValue :: !(Maybe Text)
, _httphclwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
hTTPHealthCheckListWarningDataItem
:: HTTPHealthCheckListWarningDataItem
hTTPHealthCheckListWarningDataItem =
HTTPHealthCheckListWarningDataItem'
{_httphclwdiValue = Nothing, _httphclwdiKey = Nothing}
httphclwdiValue :: Lens' HTTPHealthCheckListWarningDataItem (Maybe Text)
httphclwdiValue
= lens _httphclwdiValue
(\ s a -> s{_httphclwdiValue = a})
httphclwdiKey :: Lens' HTTPHealthCheckListWarningDataItem (Maybe Text)
httphclwdiKey
= lens _httphclwdiKey
(\ s a -> s{_httphclwdiKey = a})
instance FromJSON HTTPHealthCheckListWarningDataItem
where
parseJSON
= withObject "HTTPHealthCheckListWarningDataItem"
(\ o ->
HTTPHealthCheckListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON HTTPHealthCheckListWarningDataItem
where
toJSON HTTPHealthCheckListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _httphclwdiValue,
("key" .=) <$> _httphclwdiKey])
data DiskTypeList =
DiskTypeList'
{ _dtlNextPageToken :: !(Maybe Text)
, _dtlKind :: !Text
, _dtlItems :: !(Maybe [DiskType])
, _dtlSelfLink :: !(Maybe Text)
, _dtlWarning :: !(Maybe DiskTypeListWarning)
, _dtlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypeList
:: DiskTypeList
diskTypeList =
DiskTypeList'
{ _dtlNextPageToken = Nothing
, _dtlKind = "compute#diskTypeList"
, _dtlItems = Nothing
, _dtlSelfLink = Nothing
, _dtlWarning = Nothing
, _dtlId = Nothing
}
dtlNextPageToken :: Lens' DiskTypeList (Maybe Text)
dtlNextPageToken
= lens _dtlNextPageToken
(\ s a -> s{_dtlNextPageToken = a})
dtlKind :: Lens' DiskTypeList Text
dtlKind = lens _dtlKind (\ s a -> s{_dtlKind = a})
dtlItems :: Lens' DiskTypeList [DiskType]
dtlItems
= lens _dtlItems (\ s a -> s{_dtlItems = a}) .
_Default
. _Coerce
dtlSelfLink :: Lens' DiskTypeList (Maybe Text)
dtlSelfLink
= lens _dtlSelfLink (\ s a -> s{_dtlSelfLink = a})
dtlWarning :: Lens' DiskTypeList (Maybe DiskTypeListWarning)
dtlWarning
= lens _dtlWarning (\ s a -> s{_dtlWarning = a})
dtlId :: Lens' DiskTypeList (Maybe Text)
dtlId = lens _dtlId (\ s a -> s{_dtlId = a})
instance FromJSON DiskTypeList where
parseJSON
= withObject "DiskTypeList"
(\ o ->
DiskTypeList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#diskTypeList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON DiskTypeList where
toJSON DiskTypeList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _dtlNextPageToken,
Just ("kind" .= _dtlKind),
("items" .=) <$> _dtlItems,
("selfLink" .=) <$> _dtlSelfLink,
("warning" .=) <$> _dtlWarning,
("id" .=) <$> _dtlId])
data RegionInstanceGroupsSetNamedPortsRequest =
RegionInstanceGroupsSetNamedPortsRequest'
{ _rigsnprFingerprint :: !(Maybe Bytes)
, _rigsnprNamedPorts :: !(Maybe [NamedPort])
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupsSetNamedPortsRequest
:: RegionInstanceGroupsSetNamedPortsRequest
regionInstanceGroupsSetNamedPortsRequest =
RegionInstanceGroupsSetNamedPortsRequest'
{_rigsnprFingerprint = Nothing, _rigsnprNamedPorts = Nothing}
rigsnprFingerprint :: Lens' RegionInstanceGroupsSetNamedPortsRequest (Maybe ByteString)
rigsnprFingerprint
= lens _rigsnprFingerprint
(\ s a -> s{_rigsnprFingerprint = a})
. mapping _Bytes
rigsnprNamedPorts :: Lens' RegionInstanceGroupsSetNamedPortsRequest [NamedPort]
rigsnprNamedPorts
= lens _rigsnprNamedPorts
(\ s a -> s{_rigsnprNamedPorts = a})
. _Default
. _Coerce
instance FromJSON
RegionInstanceGroupsSetNamedPortsRequest
where
parseJSON
= withObject
"RegionInstanceGroupsSetNamedPortsRequest"
(\ o ->
RegionInstanceGroupsSetNamedPortsRequest' <$>
(o .:? "fingerprint") <*>
(o .:? "namedPorts" .!= mempty))
instance ToJSON
RegionInstanceGroupsSetNamedPortsRequest
where
toJSON RegionInstanceGroupsSetNamedPortsRequest'{..}
= object
(catMaybes
[("fingerprint" .=) <$> _rigsnprFingerprint,
("namedPorts" .=) <$> _rigsnprNamedPorts])
newtype TestPermissionsRequest =
TestPermissionsRequest'
{ _tPermissions :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
testPermissionsRequest
:: TestPermissionsRequest
testPermissionsRequest = TestPermissionsRequest' {_tPermissions = Nothing}
tPermissions :: Lens' TestPermissionsRequest [Text]
tPermissions
= lens _tPermissions (\ s a -> s{_tPermissions = a})
. _Default
. _Coerce
instance FromJSON TestPermissionsRequest where
parseJSON
= withObject "TestPermissionsRequest"
(\ o ->
TestPermissionsRequest' <$>
(o .:? "permissions" .!= mempty))
instance ToJSON TestPermissionsRequest where
toJSON TestPermissionsRequest'{..}
= object
(catMaybes [("permissions" .=) <$> _tPermissions])
data TargetTCPProxyListWarningDataItem =
TargetTCPProxyListWarningDataItem'
{ _ttplwdiValue :: !(Maybe Text)
, _ttplwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetTCPProxyListWarningDataItem
:: TargetTCPProxyListWarningDataItem
targetTCPProxyListWarningDataItem =
TargetTCPProxyListWarningDataItem'
{_ttplwdiValue = Nothing, _ttplwdiKey = Nothing}
ttplwdiValue :: Lens' TargetTCPProxyListWarningDataItem (Maybe Text)
ttplwdiValue
= lens _ttplwdiValue (\ s a -> s{_ttplwdiValue = a})
ttplwdiKey :: Lens' TargetTCPProxyListWarningDataItem (Maybe Text)
ttplwdiKey
= lens _ttplwdiKey (\ s a -> s{_ttplwdiKey = a})
instance FromJSON TargetTCPProxyListWarningDataItem
where
parseJSON
= withObject "TargetTCPProxyListWarningDataItem"
(\ o ->
TargetTCPProxyListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetTCPProxyListWarningDataItem
where
toJSON TargetTCPProxyListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ttplwdiValue,
("key" .=) <$> _ttplwdiKey])
data ProjectsGetXpnResources =
ProjectsGetXpnResources'
{ _pgxrNextPageToken :: !(Maybe Text)
, _pgxrKind :: !Text
, _pgxrResources :: !(Maybe [XpnResourceId])
}
deriving (Eq, Show, Data, Typeable, Generic)
projectsGetXpnResources
:: ProjectsGetXpnResources
projectsGetXpnResources =
ProjectsGetXpnResources'
{ _pgxrNextPageToken = Nothing
, _pgxrKind = "compute#projectsGetXpnResources"
, _pgxrResources = Nothing
}
pgxrNextPageToken :: Lens' ProjectsGetXpnResources (Maybe Text)
pgxrNextPageToken
= lens _pgxrNextPageToken
(\ s a -> s{_pgxrNextPageToken = a})
pgxrKind :: Lens' ProjectsGetXpnResources Text
pgxrKind = lens _pgxrKind (\ s a -> s{_pgxrKind = a})
pgxrResources :: Lens' ProjectsGetXpnResources [XpnResourceId]
pgxrResources
= lens _pgxrResources
(\ s a -> s{_pgxrResources = a})
. _Default
. _Coerce
instance FromJSON ProjectsGetXpnResources where
parseJSON
= withObject "ProjectsGetXpnResources"
(\ o ->
ProjectsGetXpnResources' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#projectsGetXpnResources")
<*> (o .:? "resources" .!= mempty))
instance ToJSON ProjectsGetXpnResources where
toJSON ProjectsGetXpnResources'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _pgxrNextPageToken,
Just ("kind" .= _pgxrKind),
("resources" .=) <$> _pgxrResources])
data NetworkEndpointWithHealthStatus =
NetworkEndpointWithHealthStatus'
{ _newhsHealths :: !(Maybe [HealthStatusForNetworkEndpoint])
, _newhsNetworkEndpoint :: !(Maybe NetworkEndpoint)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointWithHealthStatus
:: NetworkEndpointWithHealthStatus
networkEndpointWithHealthStatus =
NetworkEndpointWithHealthStatus'
{_newhsHealths = Nothing, _newhsNetworkEndpoint = Nothing}
newhsHealths :: Lens' NetworkEndpointWithHealthStatus [HealthStatusForNetworkEndpoint]
newhsHealths
= lens _newhsHealths (\ s a -> s{_newhsHealths = a})
. _Default
. _Coerce
newhsNetworkEndpoint :: Lens' NetworkEndpointWithHealthStatus (Maybe NetworkEndpoint)
newhsNetworkEndpoint
= lens _newhsNetworkEndpoint
(\ s a -> s{_newhsNetworkEndpoint = a})
instance FromJSON NetworkEndpointWithHealthStatus
where
parseJSON
= withObject "NetworkEndpointWithHealthStatus"
(\ o ->
NetworkEndpointWithHealthStatus' <$>
(o .:? "healths" .!= mempty) <*>
(o .:? "networkEndpoint"))
instance ToJSON NetworkEndpointWithHealthStatus where
toJSON NetworkEndpointWithHealthStatus'{..}
= object
(catMaybes
[("healths" .=) <$> _newhsHealths,
("networkEndpoint" .=) <$> _newhsNetworkEndpoint])
data MachineTypeList =
MachineTypeList'
{ _mtlNextPageToken :: !(Maybe Text)
, _mtlKind :: !Text
, _mtlItems :: !(Maybe [MachineType])
, _mtlSelfLink :: !(Maybe Text)
, _mtlWarning :: !(Maybe MachineTypeListWarning)
, _mtlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeList
:: MachineTypeList
machineTypeList =
MachineTypeList'
{ _mtlNextPageToken = Nothing
, _mtlKind = "compute#machineTypeList"
, _mtlItems = Nothing
, _mtlSelfLink = Nothing
, _mtlWarning = Nothing
, _mtlId = Nothing
}
mtlNextPageToken :: Lens' MachineTypeList (Maybe Text)
mtlNextPageToken
= lens _mtlNextPageToken
(\ s a -> s{_mtlNextPageToken = a})
mtlKind :: Lens' MachineTypeList Text
mtlKind = lens _mtlKind (\ s a -> s{_mtlKind = a})
mtlItems :: Lens' MachineTypeList [MachineType]
mtlItems
= lens _mtlItems (\ s a -> s{_mtlItems = a}) .
_Default
. _Coerce
mtlSelfLink :: Lens' MachineTypeList (Maybe Text)
mtlSelfLink
= lens _mtlSelfLink (\ s a -> s{_mtlSelfLink = a})
mtlWarning :: Lens' MachineTypeList (Maybe MachineTypeListWarning)
mtlWarning
= lens _mtlWarning (\ s a -> s{_mtlWarning = a})
mtlId :: Lens' MachineTypeList (Maybe Text)
mtlId = lens _mtlId (\ s a -> s{_mtlId = a})
instance FromJSON MachineTypeList where
parseJSON
= withObject "MachineTypeList"
(\ o ->
MachineTypeList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#machineTypeList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON MachineTypeList where
toJSON MachineTypeList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _mtlNextPageToken,
Just ("kind" .= _mtlKind),
("items" .=) <$> _mtlItems,
("selfLink" .=) <$> _mtlSelfLink,
("warning" .=) <$> _mtlWarning,
("id" .=) <$> _mtlId])
data TargetHTTPProxyList =
TargetHTTPProxyList'
{ _thttpplNextPageToken :: !(Maybe Text)
, _thttpplKind :: !Text
, _thttpplItems :: !(Maybe [TargetHTTPProxy])
, _thttpplSelfLink :: !(Maybe Text)
, _thttpplWarning :: !(Maybe TargetHTTPProxyListWarning)
, _thttpplId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPProxyList
:: TargetHTTPProxyList
targetHTTPProxyList =
TargetHTTPProxyList'
{ _thttpplNextPageToken = Nothing
, _thttpplKind = "compute#targetHttpProxyList"
, _thttpplItems = Nothing
, _thttpplSelfLink = Nothing
, _thttpplWarning = Nothing
, _thttpplId = Nothing
}
thttpplNextPageToken :: Lens' TargetHTTPProxyList (Maybe Text)
thttpplNextPageToken
= lens _thttpplNextPageToken
(\ s a -> s{_thttpplNextPageToken = a})
thttpplKind :: Lens' TargetHTTPProxyList Text
thttpplKind
= lens _thttpplKind (\ s a -> s{_thttpplKind = a})
thttpplItems :: Lens' TargetHTTPProxyList [TargetHTTPProxy]
thttpplItems
= lens _thttpplItems (\ s a -> s{_thttpplItems = a})
. _Default
. _Coerce
thttpplSelfLink :: Lens' TargetHTTPProxyList (Maybe Text)
thttpplSelfLink
= lens _thttpplSelfLink
(\ s a -> s{_thttpplSelfLink = a})
thttpplWarning :: Lens' TargetHTTPProxyList (Maybe TargetHTTPProxyListWarning)
thttpplWarning
= lens _thttpplWarning
(\ s a -> s{_thttpplWarning = a})
thttpplId :: Lens' TargetHTTPProxyList (Maybe Text)
thttpplId
= lens _thttpplId (\ s a -> s{_thttpplId = a})
instance FromJSON TargetHTTPProxyList where
parseJSON
= withObject "TargetHTTPProxyList"
(\ o ->
TargetHTTPProxyList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetHttpProxyList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetHTTPProxyList where
toJSON TargetHTTPProxyList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _thttpplNextPageToken,
Just ("kind" .= _thttpplKind),
("items" .=) <$> _thttpplItems,
("selfLink" .=) <$> _thttpplSelfLink,
("warning" .=) <$> _thttpplWarning,
("id" .=) <$> _thttpplId])
data NodeGroupsListNodesWarning =
NodeGroupsListNodesWarning'
{ _nglnwData :: !(Maybe [NodeGroupsListNodesWarningDataItem])
, _nglnwCode :: !(Maybe NodeGroupsListNodesWarningCode)
, _nglnwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsListNodesWarning
:: NodeGroupsListNodesWarning
nodeGroupsListNodesWarning =
NodeGroupsListNodesWarning'
{_nglnwData = Nothing, _nglnwCode = Nothing, _nglnwMessage = Nothing}
nglnwData :: Lens' NodeGroupsListNodesWarning [NodeGroupsListNodesWarningDataItem]
nglnwData
= lens _nglnwData (\ s a -> s{_nglnwData = a}) .
_Default
. _Coerce
nglnwCode :: Lens' NodeGroupsListNodesWarning (Maybe NodeGroupsListNodesWarningCode)
nglnwCode
= lens _nglnwCode (\ s a -> s{_nglnwCode = a})
nglnwMessage :: Lens' NodeGroupsListNodesWarning (Maybe Text)
nglnwMessage
= lens _nglnwMessage (\ s a -> s{_nglnwMessage = a})
instance FromJSON NodeGroupsListNodesWarning where
parseJSON
= withObject "NodeGroupsListNodesWarning"
(\ o ->
NodeGroupsListNodesWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeGroupsListNodesWarning where
toJSON NodeGroupsListNodesWarning'{..}
= object
(catMaybes
[("data" .=) <$> _nglnwData,
("code" .=) <$> _nglnwCode,
("message" .=) <$> _nglnwMessage])
data NodeTemplateAggregatedList =
NodeTemplateAggregatedList'
{ _nodNextPageToken :: !(Maybe Text)
, _nodKind :: !Text
, _nodItems :: !(Maybe NodeTemplateAggregatedListItems)
, _nodSelfLink :: !(Maybe Text)
, _nodWarning :: !(Maybe NodeTemplateAggregatedListWarning)
, _nodId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateAggregatedList
:: NodeTemplateAggregatedList
nodeTemplateAggregatedList =
NodeTemplateAggregatedList'
{ _nodNextPageToken = Nothing
, _nodKind = "compute#nodeTemplateAggregatedList"
, _nodItems = Nothing
, _nodSelfLink = Nothing
, _nodWarning = Nothing
, _nodId = Nothing
}
nodNextPageToken :: Lens' NodeTemplateAggregatedList (Maybe Text)
nodNextPageToken
= lens _nodNextPageToken
(\ s a -> s{_nodNextPageToken = a})
nodKind :: Lens' NodeTemplateAggregatedList Text
nodKind = lens _nodKind (\ s a -> s{_nodKind = a})
nodItems :: Lens' NodeTemplateAggregatedList (Maybe NodeTemplateAggregatedListItems)
nodItems = lens _nodItems (\ s a -> s{_nodItems = a})
nodSelfLink :: Lens' NodeTemplateAggregatedList (Maybe Text)
nodSelfLink
= lens _nodSelfLink (\ s a -> s{_nodSelfLink = a})
nodWarning :: Lens' NodeTemplateAggregatedList (Maybe NodeTemplateAggregatedListWarning)
nodWarning
= lens _nodWarning (\ s a -> s{_nodWarning = a})
nodId :: Lens' NodeTemplateAggregatedList (Maybe Text)
nodId = lens _nodId (\ s a -> s{_nodId = a})
instance FromJSON NodeTemplateAggregatedList where
parseJSON
= withObject "NodeTemplateAggregatedList"
(\ o ->
NodeTemplateAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#nodeTemplateAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NodeTemplateAggregatedList where
toJSON NodeTemplateAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _nodNextPageToken,
Just ("kind" .= _nodKind),
("items" .=) <$> _nodItems,
("selfLink" .=) <$> _nodSelfLink,
("warning" .=) <$> _nodWarning,
("id" .=) <$> _nodId])
data InterconnectLocationListWarning =
InterconnectLocationListWarning'
{ _illwData :: !(Maybe [InterconnectLocationListWarningDataItem])
, _illwCode :: !(Maybe InterconnectLocationListWarningCode)
, _illwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectLocationListWarning
:: InterconnectLocationListWarning
interconnectLocationListWarning =
InterconnectLocationListWarning'
{_illwData = Nothing, _illwCode = Nothing, _illwMessage = Nothing}
illwData :: Lens' InterconnectLocationListWarning [InterconnectLocationListWarningDataItem]
illwData
= lens _illwData (\ s a -> s{_illwData = a}) .
_Default
. _Coerce
illwCode :: Lens' InterconnectLocationListWarning (Maybe InterconnectLocationListWarningCode)
illwCode = lens _illwCode (\ s a -> s{_illwCode = a})
illwMessage :: Lens' InterconnectLocationListWarning (Maybe Text)
illwMessage
= lens _illwMessage (\ s a -> s{_illwMessage = a})
instance FromJSON InterconnectLocationListWarning
where
parseJSON
= withObject "InterconnectLocationListWarning"
(\ o ->
InterconnectLocationListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InterconnectLocationListWarning where
toJSON InterconnectLocationListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _illwData,
("code" .=) <$> _illwCode,
("message" .=) <$> _illwMessage])
data InstanceGroupsListInstancesWarning =
InstanceGroupsListInstancesWarning'
{ _igliwData :: !(Maybe [InstanceGroupsListInstancesWarningDataItem])
, _igliwCode :: !(Maybe InstanceGroupsListInstancesWarningCode)
, _igliwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsListInstancesWarning
:: InstanceGroupsListInstancesWarning
instanceGroupsListInstancesWarning =
InstanceGroupsListInstancesWarning'
{_igliwData = Nothing, _igliwCode = Nothing, _igliwMessage = Nothing}
igliwData :: Lens' InstanceGroupsListInstancesWarning [InstanceGroupsListInstancesWarningDataItem]
igliwData
= lens _igliwData (\ s a -> s{_igliwData = a}) .
_Default
. _Coerce
igliwCode :: Lens' InstanceGroupsListInstancesWarning (Maybe InstanceGroupsListInstancesWarningCode)
igliwCode
= lens _igliwCode (\ s a -> s{_igliwCode = a})
igliwMessage :: Lens' InstanceGroupsListInstancesWarning (Maybe Text)
igliwMessage
= lens _igliwMessage (\ s a -> s{_igliwMessage = a})
instance FromJSON InstanceGroupsListInstancesWarning
where
parseJSON
= withObject "InstanceGroupsListInstancesWarning"
(\ o ->
InstanceGroupsListInstancesWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceGroupsListInstancesWarning
where
toJSON InstanceGroupsListInstancesWarning'{..}
= object
(catMaybes
[("data" .=) <$> _igliwData,
("code" .=) <$> _igliwCode,
("message" .=) <$> _igliwMessage])
data RegionInstanceGroupManagerList =
RegionInstanceGroupManagerList'
{ _rigmlNextPageToken :: !(Maybe Text)
, _rigmlKind :: !Text
, _rigmlItems :: !(Maybe [InstanceGroupManager])
, _rigmlSelfLink :: !(Maybe Text)
, _rigmlWarning :: !(Maybe RegionInstanceGroupManagerListWarning)
, _rigmlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagerList
:: RegionInstanceGroupManagerList
regionInstanceGroupManagerList =
RegionInstanceGroupManagerList'
{ _rigmlNextPageToken = Nothing
, _rigmlKind = "compute#regionInstanceGroupManagerList"
, _rigmlItems = Nothing
, _rigmlSelfLink = Nothing
, _rigmlWarning = Nothing
, _rigmlId = Nothing
}
rigmlNextPageToken :: Lens' RegionInstanceGroupManagerList (Maybe Text)
rigmlNextPageToken
= lens _rigmlNextPageToken
(\ s a -> s{_rigmlNextPageToken = a})
rigmlKind :: Lens' RegionInstanceGroupManagerList Text
rigmlKind
= lens _rigmlKind (\ s a -> s{_rigmlKind = a})
rigmlItems :: Lens' RegionInstanceGroupManagerList [InstanceGroupManager]
rigmlItems
= lens _rigmlItems (\ s a -> s{_rigmlItems = a}) .
_Default
. _Coerce
rigmlSelfLink :: Lens' RegionInstanceGroupManagerList (Maybe Text)
rigmlSelfLink
= lens _rigmlSelfLink
(\ s a -> s{_rigmlSelfLink = a})
rigmlWarning :: Lens' RegionInstanceGroupManagerList (Maybe RegionInstanceGroupManagerListWarning)
rigmlWarning
= lens _rigmlWarning (\ s a -> s{_rigmlWarning = a})
rigmlId :: Lens' RegionInstanceGroupManagerList (Maybe Text)
rigmlId = lens _rigmlId (\ s a -> s{_rigmlId = a})
instance FromJSON RegionInstanceGroupManagerList
where
parseJSON
= withObject "RegionInstanceGroupManagerList"
(\ o ->
RegionInstanceGroupManagerList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#regionInstanceGroupManagerList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RegionInstanceGroupManagerList where
toJSON RegionInstanceGroupManagerList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _rigmlNextPageToken,
Just ("kind" .= _rigmlKind),
("items" .=) <$> _rigmlItems,
("selfLink" .=) <$> _rigmlSelfLink,
("warning" .=) <$> _rigmlWarning,
("id" .=) <$> _rigmlId])
data DiskTypesScopedList =
DiskTypesScopedList'
{ _dtslDiskTypes :: !(Maybe [DiskType])
, _dtslWarning :: !(Maybe DiskTypesScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypesScopedList
:: DiskTypesScopedList
diskTypesScopedList =
DiskTypesScopedList' {_dtslDiskTypes = Nothing, _dtslWarning = Nothing}
dtslDiskTypes :: Lens' DiskTypesScopedList [DiskType]
dtslDiskTypes
= lens _dtslDiskTypes
(\ s a -> s{_dtslDiskTypes = a})
. _Default
. _Coerce
dtslWarning :: Lens' DiskTypesScopedList (Maybe DiskTypesScopedListWarning)
dtslWarning
= lens _dtslWarning (\ s a -> s{_dtslWarning = a})
instance FromJSON DiskTypesScopedList where
parseJSON
= withObject "DiskTypesScopedList"
(\ o ->
DiskTypesScopedList' <$>
(o .:? "diskTypes" .!= mempty) <*> (o .:? "warning"))
instance ToJSON DiskTypesScopedList where
toJSON DiskTypesScopedList'{..}
= object
(catMaybes
[("diskTypes" .=) <$> _dtslDiskTypes,
("warning" .=) <$> _dtslWarning])
data LogConfigCloudAuditOptions =
LogConfigCloudAuditOptions'
{ _lccaoAuthorizationLoggingOptions :: !(Maybe AuthorizationLoggingOptions)
, _lccaoLogName :: !(Maybe LogConfigCloudAuditOptionsLogName)
}
deriving (Eq, Show, Data, Typeable, Generic)
logConfigCloudAuditOptions
:: LogConfigCloudAuditOptions
logConfigCloudAuditOptions =
LogConfigCloudAuditOptions'
{_lccaoAuthorizationLoggingOptions = Nothing, _lccaoLogName = Nothing}
lccaoAuthorizationLoggingOptions :: Lens' LogConfigCloudAuditOptions (Maybe AuthorizationLoggingOptions)
lccaoAuthorizationLoggingOptions
= lens _lccaoAuthorizationLoggingOptions
(\ s a -> s{_lccaoAuthorizationLoggingOptions = a})
lccaoLogName :: Lens' LogConfigCloudAuditOptions (Maybe LogConfigCloudAuditOptionsLogName)
lccaoLogName
= lens _lccaoLogName (\ s a -> s{_lccaoLogName = a})
instance FromJSON LogConfigCloudAuditOptions where
parseJSON
= withObject "LogConfigCloudAuditOptions"
(\ o ->
LogConfigCloudAuditOptions' <$>
(o .:? "authorizationLoggingOptions") <*>
(o .:? "logName"))
instance ToJSON LogConfigCloudAuditOptions where
toJSON LogConfigCloudAuditOptions'{..}
= object
(catMaybes
[("authorizationLoggingOptions" .=) <$>
_lccaoAuthorizationLoggingOptions,
("logName" .=) <$> _lccaoLogName])
newtype ProjectsSetDefaultNetworkTierRequest =
ProjectsSetDefaultNetworkTierRequest'
{ _psdntrNetworkTier :: Maybe ProjectsSetDefaultNetworkTierRequestNetworkTier
}
deriving (Eq, Show, Data, Typeable, Generic)
projectsSetDefaultNetworkTierRequest
:: ProjectsSetDefaultNetworkTierRequest
projectsSetDefaultNetworkTierRequest =
ProjectsSetDefaultNetworkTierRequest' {_psdntrNetworkTier = Nothing}
psdntrNetworkTier :: Lens' ProjectsSetDefaultNetworkTierRequest (Maybe ProjectsSetDefaultNetworkTierRequestNetworkTier)
psdntrNetworkTier
= lens _psdntrNetworkTier
(\ s a -> s{_psdntrNetworkTier = a})
instance FromJSON
ProjectsSetDefaultNetworkTierRequest
where
parseJSON
= withObject "ProjectsSetDefaultNetworkTierRequest"
(\ o ->
ProjectsSetDefaultNetworkTierRequest' <$>
(o .:? "networkTier"))
instance ToJSON ProjectsSetDefaultNetworkTierRequest
where
toJSON ProjectsSetDefaultNetworkTierRequest'{..}
= object
(catMaybes
[("networkTier" .=) <$> _psdntrNetworkTier])
data ImageListWarningDataItem =
ImageListWarningDataItem'
{ _imaValue :: !(Maybe Text)
, _imaKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
imageListWarningDataItem
:: ImageListWarningDataItem
imageListWarningDataItem =
ImageListWarningDataItem' {_imaValue = Nothing, _imaKey = Nothing}
imaValue :: Lens' ImageListWarningDataItem (Maybe Text)
imaValue = lens _imaValue (\ s a -> s{_imaValue = a})
imaKey :: Lens' ImageListWarningDataItem (Maybe Text)
imaKey = lens _imaKey (\ s a -> s{_imaKey = a})
instance FromJSON ImageListWarningDataItem where
parseJSON
= withObject "ImageListWarningDataItem"
(\ o ->
ImageListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON ImageListWarningDataItem where
toJSON ImageListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _imaValue, ("key" .=) <$> _imaKey])
data AcceleratorTypeListWarningDataItem =
AcceleratorTypeListWarningDataItem'
{ _atlwdiValue :: !(Maybe Text)
, _atlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypeListWarningDataItem
:: AcceleratorTypeListWarningDataItem
acceleratorTypeListWarningDataItem =
AcceleratorTypeListWarningDataItem'
{_atlwdiValue = Nothing, _atlwdiKey = Nothing}
atlwdiValue :: Lens' AcceleratorTypeListWarningDataItem (Maybe Text)
atlwdiValue
= lens _atlwdiValue (\ s a -> s{_atlwdiValue = a})
atlwdiKey :: Lens' AcceleratorTypeListWarningDataItem (Maybe Text)
atlwdiKey
= lens _atlwdiKey (\ s a -> s{_atlwdiKey = a})
instance FromJSON AcceleratorTypeListWarningDataItem
where
parseJSON
= withObject "AcceleratorTypeListWarningDataItem"
(\ o ->
AcceleratorTypeListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON AcceleratorTypeListWarningDataItem
where
toJSON AcceleratorTypeListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _atlwdiValue,
("key" .=) <$> _atlwdiKey])
data InterconnectOutageNotification =
InterconnectOutageNotification'
{ _ionState :: !(Maybe InterconnectOutageNotificationState)
, _ionAffectedCircuits :: !(Maybe [Text])
, _ionStartTime :: !(Maybe (Textual Int64))
, _ionIssueType :: !(Maybe InterconnectOutageNotificationIssueType)
, _ionName :: !(Maybe Text)
, _ionEndTime :: !(Maybe (Textual Int64))
, _ionSource :: !(Maybe InterconnectOutageNotificationSource)
, _ionDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectOutageNotification
:: InterconnectOutageNotification
interconnectOutageNotification =
InterconnectOutageNotification'
{ _ionState = Nothing
, _ionAffectedCircuits = Nothing
, _ionStartTime = Nothing
, _ionIssueType = Nothing
, _ionName = Nothing
, _ionEndTime = Nothing
, _ionSource = Nothing
, _ionDescription = Nothing
}
ionState :: Lens' InterconnectOutageNotification (Maybe InterconnectOutageNotificationState)
ionState = lens _ionState (\ s a -> s{_ionState = a})
ionAffectedCircuits :: Lens' InterconnectOutageNotification [Text]
ionAffectedCircuits
= lens _ionAffectedCircuits
(\ s a -> s{_ionAffectedCircuits = a})
. _Default
. _Coerce
ionStartTime :: Lens' InterconnectOutageNotification (Maybe Int64)
ionStartTime
= lens _ionStartTime (\ s a -> s{_ionStartTime = a})
. mapping _Coerce
ionIssueType :: Lens' InterconnectOutageNotification (Maybe InterconnectOutageNotificationIssueType)
ionIssueType
= lens _ionIssueType (\ s a -> s{_ionIssueType = a})
ionName :: Lens' InterconnectOutageNotification (Maybe Text)
ionName = lens _ionName (\ s a -> s{_ionName = a})
ionEndTime :: Lens' InterconnectOutageNotification (Maybe Int64)
ionEndTime
= lens _ionEndTime (\ s a -> s{_ionEndTime = a}) .
mapping _Coerce
ionSource :: Lens' InterconnectOutageNotification (Maybe InterconnectOutageNotificationSource)
ionSource
= lens _ionSource (\ s a -> s{_ionSource = a})
ionDescription :: Lens' InterconnectOutageNotification (Maybe Text)
ionDescription
= lens _ionDescription
(\ s a -> s{_ionDescription = a})
instance FromJSON InterconnectOutageNotification
where
parseJSON
= withObject "InterconnectOutageNotification"
(\ o ->
InterconnectOutageNotification' <$>
(o .:? "state") <*>
(o .:? "affectedCircuits" .!= mempty)
<*> (o .:? "startTime")
<*> (o .:? "issueType")
<*> (o .:? "name")
<*> (o .:? "endTime")
<*> (o .:? "source")
<*> (o .:? "description"))
instance ToJSON InterconnectOutageNotification where
toJSON InterconnectOutageNotification'{..}
= object
(catMaybes
[("state" .=) <$> _ionState,
("affectedCircuits" .=) <$> _ionAffectedCircuits,
("startTime" .=) <$> _ionStartTime,
("issueType" .=) <$> _ionIssueType,
("name" .=) <$> _ionName,
("endTime" .=) <$> _ionEndTime,
("source" .=) <$> _ionSource,
("description" .=) <$> _ionDescription])
data NodeTemplateList =
NodeTemplateList'
{ _ntlNextPageToken :: !(Maybe Text)
, _ntlKind :: !Text
, _ntlItems :: !(Maybe [NodeTemplate])
, _ntlSelfLink :: !(Maybe Text)
, _ntlWarning :: !(Maybe NodeTemplateListWarning)
, _ntlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateList
:: NodeTemplateList
nodeTemplateList =
NodeTemplateList'
{ _ntlNextPageToken = Nothing
, _ntlKind = "compute#nodeTemplateList"
, _ntlItems = Nothing
, _ntlSelfLink = Nothing
, _ntlWarning = Nothing
, _ntlId = Nothing
}
ntlNextPageToken :: Lens' NodeTemplateList (Maybe Text)
ntlNextPageToken
= lens _ntlNextPageToken
(\ s a -> s{_ntlNextPageToken = a})
ntlKind :: Lens' NodeTemplateList Text
ntlKind = lens _ntlKind (\ s a -> s{_ntlKind = a})
ntlItems :: Lens' NodeTemplateList [NodeTemplate]
ntlItems
= lens _ntlItems (\ s a -> s{_ntlItems = a}) .
_Default
. _Coerce
ntlSelfLink :: Lens' NodeTemplateList (Maybe Text)
ntlSelfLink
= lens _ntlSelfLink (\ s a -> s{_ntlSelfLink = a})
ntlWarning :: Lens' NodeTemplateList (Maybe NodeTemplateListWarning)
ntlWarning
= lens _ntlWarning (\ s a -> s{_ntlWarning = a})
ntlId :: Lens' NodeTemplateList (Maybe Text)
ntlId = lens _ntlId (\ s a -> s{_ntlId = a})
instance FromJSON NodeTemplateList where
parseJSON
= withObject "NodeTemplateList"
(\ o ->
NodeTemplateList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#nodeTemplateList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NodeTemplateList where
toJSON NodeTemplateList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ntlNextPageToken,
Just ("kind" .= _ntlKind),
("items" .=) <$> _ntlItems,
("selfLink" .=) <$> _ntlSelfLink,
("warning" .=) <$> _ntlWarning,
("id" .=) <$> _ntlId])
data DiskTypeAggregatedList =
DiskTypeAggregatedList'
{ _dtalNextPageToken :: !(Maybe Text)
, _dtalKind :: !Text
, _dtalItems :: !(Maybe DiskTypeAggregatedListItems)
, _dtalSelfLink :: !(Maybe Text)
, _dtalWarning :: !(Maybe DiskTypeAggregatedListWarning)
, _dtalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypeAggregatedList
:: DiskTypeAggregatedList
diskTypeAggregatedList =
DiskTypeAggregatedList'
{ _dtalNextPageToken = Nothing
, _dtalKind = "compute#diskTypeAggregatedList"
, _dtalItems = Nothing
, _dtalSelfLink = Nothing
, _dtalWarning = Nothing
, _dtalId = Nothing
}
dtalNextPageToken :: Lens' DiskTypeAggregatedList (Maybe Text)
dtalNextPageToken
= lens _dtalNextPageToken
(\ s a -> s{_dtalNextPageToken = a})
dtalKind :: Lens' DiskTypeAggregatedList Text
dtalKind = lens _dtalKind (\ s a -> s{_dtalKind = a})
dtalItems :: Lens' DiskTypeAggregatedList (Maybe DiskTypeAggregatedListItems)
dtalItems
= lens _dtalItems (\ s a -> s{_dtalItems = a})
dtalSelfLink :: Lens' DiskTypeAggregatedList (Maybe Text)
dtalSelfLink
= lens _dtalSelfLink (\ s a -> s{_dtalSelfLink = a})
dtalWarning :: Lens' DiskTypeAggregatedList (Maybe DiskTypeAggregatedListWarning)
dtalWarning
= lens _dtalWarning (\ s a -> s{_dtalWarning = a})
dtalId :: Lens' DiskTypeAggregatedList (Maybe Text)
dtalId = lens _dtalId (\ s a -> s{_dtalId = a})
instance FromJSON DiskTypeAggregatedList where
parseJSON
= withObject "DiskTypeAggregatedList"
(\ o ->
DiskTypeAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#diskTypeAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON DiskTypeAggregatedList where
toJSON DiskTypeAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _dtalNextPageToken,
Just ("kind" .= _dtalKind),
("items" .=) <$> _dtalItems,
("selfLink" .=) <$> _dtalSelfLink,
("warning" .=) <$> _dtalWarning,
("id" .=) <$> _dtalId])
data HTTPHealthCheck =
HTTPHealthCheck'
{ _hResponse :: !(Maybe Text)
, _hPortSpecification :: !(Maybe HTTPHealthCheckPortSpecification)
, _hRequestPath :: !(Maybe Text)
, _hHost :: !(Maybe Text)
, _hProxyHeader :: !(Maybe HTTPHealthCheckProxyHeader)
, _hPortName :: !(Maybe Text)
, _hPort :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
hTTPHealthCheck
:: HTTPHealthCheck
hTTPHealthCheck =
HTTPHealthCheck'
{ _hResponse = Nothing
, _hPortSpecification = Nothing
, _hRequestPath = Nothing
, _hHost = Nothing
, _hProxyHeader = Nothing
, _hPortName = Nothing
, _hPort = Nothing
}
hResponse :: Lens' HTTPHealthCheck (Maybe Text)
hResponse
= lens _hResponse (\ s a -> s{_hResponse = a})
hPortSpecification :: Lens' HTTPHealthCheck (Maybe HTTPHealthCheckPortSpecification)
hPortSpecification
= lens _hPortSpecification
(\ s a -> s{_hPortSpecification = a})
hRequestPath :: Lens' HTTPHealthCheck (Maybe Text)
hRequestPath
= lens _hRequestPath (\ s a -> s{_hRequestPath = a})
hHost :: Lens' HTTPHealthCheck (Maybe Text)
hHost = lens _hHost (\ s a -> s{_hHost = a})
hProxyHeader :: Lens' HTTPHealthCheck (Maybe HTTPHealthCheckProxyHeader)
hProxyHeader
= lens _hProxyHeader (\ s a -> s{_hProxyHeader = a})
hPortName :: Lens' HTTPHealthCheck (Maybe Text)
hPortName
= lens _hPortName (\ s a -> s{_hPortName = a})
hPort :: Lens' HTTPHealthCheck (Maybe Int32)
hPort
= lens _hPort (\ s a -> s{_hPort = a}) .
mapping _Coerce
instance FromJSON HTTPHealthCheck where
parseJSON
= withObject "HTTPHealthCheck"
(\ o ->
HTTPHealthCheck' <$>
(o .:? "response") <*> (o .:? "portSpecification")
<*> (o .:? "requestPath")
<*> (o .:? "host")
<*> (o .:? "proxyHeader")
<*> (o .:? "portName")
<*> (o .:? "port"))
instance ToJSON HTTPHealthCheck where
toJSON HTTPHealthCheck'{..}
= object
(catMaybes
[("response" .=) <$> _hResponse,
("portSpecification" .=) <$> _hPortSpecification,
("requestPath" .=) <$> _hRequestPath,
("host" .=) <$> _hHost,
("proxyHeader" .=) <$> _hProxyHeader,
("portName" .=) <$> _hPortName,
("port" .=) <$> _hPort])
data URLMapListWarningDataItem =
URLMapListWarningDataItem'
{ _umlwdiValue :: !(Maybe Text)
, _umlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapListWarningDataItem
:: URLMapListWarningDataItem
urlMapListWarningDataItem =
URLMapListWarningDataItem' {_umlwdiValue = Nothing, _umlwdiKey = Nothing}
umlwdiValue :: Lens' URLMapListWarningDataItem (Maybe Text)
umlwdiValue
= lens _umlwdiValue (\ s a -> s{_umlwdiValue = a})
umlwdiKey :: Lens' URLMapListWarningDataItem (Maybe Text)
umlwdiKey
= lens _umlwdiKey (\ s a -> s{_umlwdiKey = a})
instance FromJSON URLMapListWarningDataItem where
parseJSON
= withObject "URLMapListWarningDataItem"
(\ o ->
URLMapListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON URLMapListWarningDataItem where
toJSON URLMapListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _umlwdiValue,
("key" .=) <$> _umlwdiKey])
data RouterNATSubnetworkToNAT =
RouterNATSubnetworkToNAT'
{ _rnatstnatSourceIPRangesToNAT :: !(Maybe [RouterNATSubnetworkToNATSourceIPRangesToNATItem])
, _rnatstnatName :: !(Maybe Text)
, _rnatstnatSecondaryIPRangeNames :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
routerNATSubnetworkToNAT
:: RouterNATSubnetworkToNAT
routerNATSubnetworkToNAT =
RouterNATSubnetworkToNAT'
{ _rnatstnatSourceIPRangesToNAT = Nothing
, _rnatstnatName = Nothing
, _rnatstnatSecondaryIPRangeNames = Nothing
}
rnatstnatSourceIPRangesToNAT :: Lens' RouterNATSubnetworkToNAT [RouterNATSubnetworkToNATSourceIPRangesToNATItem]
rnatstnatSourceIPRangesToNAT
= lens _rnatstnatSourceIPRangesToNAT
(\ s a -> s{_rnatstnatSourceIPRangesToNAT = a})
. _Default
. _Coerce
rnatstnatName :: Lens' RouterNATSubnetworkToNAT (Maybe Text)
rnatstnatName
= lens _rnatstnatName
(\ s a -> s{_rnatstnatName = a})
rnatstnatSecondaryIPRangeNames :: Lens' RouterNATSubnetworkToNAT [Text]
rnatstnatSecondaryIPRangeNames
= lens _rnatstnatSecondaryIPRangeNames
(\ s a -> s{_rnatstnatSecondaryIPRangeNames = a})
. _Default
. _Coerce
instance FromJSON RouterNATSubnetworkToNAT where
parseJSON
= withObject "RouterNATSubnetworkToNAT"
(\ o ->
RouterNATSubnetworkToNAT' <$>
(o .:? "sourceIpRangesToNat" .!= mempty) <*>
(o .:? "name")
<*> (o .:? "secondaryIpRangeNames" .!= mempty))
instance ToJSON RouterNATSubnetworkToNAT where
toJSON RouterNATSubnetworkToNAT'{..}
= object
(catMaybes
[("sourceIpRangesToNat" .=) <$>
_rnatstnatSourceIPRangesToNAT,
("name" .=) <$> _rnatstnatName,
("secondaryIpRangeNames" .=) <$>
_rnatstnatSecondaryIPRangeNames])
data BackendServiceGroupHealth =
BackendServiceGroupHealth'
{ _bsghKind :: !Text
, _bsghHealthStatus :: !(Maybe [HealthStatus])
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceGroupHealth
:: BackendServiceGroupHealth
backendServiceGroupHealth =
BackendServiceGroupHealth'
{ _bsghKind = "compute#backendServiceGroupHealth"
, _bsghHealthStatus = Nothing
}
bsghKind :: Lens' BackendServiceGroupHealth Text
bsghKind = lens _bsghKind (\ s a -> s{_bsghKind = a})
bsghHealthStatus :: Lens' BackendServiceGroupHealth [HealthStatus]
bsghHealthStatus
= lens _bsghHealthStatus
(\ s a -> s{_bsghHealthStatus = a})
. _Default
. _Coerce
instance FromJSON BackendServiceGroupHealth where
parseJSON
= withObject "BackendServiceGroupHealth"
(\ o ->
BackendServiceGroupHealth' <$>
(o .:? "kind" .!=
"compute#backendServiceGroupHealth")
<*> (o .:? "healthStatus" .!= mempty))
instance ToJSON BackendServiceGroupHealth where
toJSON BackendServiceGroupHealth'{..}
= object
(catMaybes
[Just ("kind" .= _bsghKind),
("healthStatus" .=) <$> _bsghHealthStatus])
data AutoscalersScopedList =
AutoscalersScopedList'
{ _aAutoscalers :: !(Maybe [Autoscaler])
, _aWarning :: !(Maybe AutoscalersScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalersScopedList
:: AutoscalersScopedList
autoscalersScopedList =
AutoscalersScopedList' {_aAutoscalers = Nothing, _aWarning = Nothing}
aAutoscalers :: Lens' AutoscalersScopedList [Autoscaler]
aAutoscalers
= lens _aAutoscalers (\ s a -> s{_aAutoscalers = a})
. _Default
. _Coerce
aWarning :: Lens' AutoscalersScopedList (Maybe AutoscalersScopedListWarning)
aWarning = lens _aWarning (\ s a -> s{_aWarning = a})
instance FromJSON AutoscalersScopedList where
parseJSON
= withObject "AutoscalersScopedList"
(\ o ->
AutoscalersScopedList' <$>
(o .:? "autoscalers" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON AutoscalersScopedList where
toJSON AutoscalersScopedList'{..}
= object
(catMaybes
[("autoscalers" .=) <$> _aAutoscalers,
("warning" .=) <$> _aWarning])
newtype LogConfigDataAccessOptions =
LogConfigDataAccessOptions'
{ _lcdaoLogMode :: Maybe LogConfigDataAccessOptionsLogMode
}
deriving (Eq, Show, Data, Typeable, Generic)
logConfigDataAccessOptions
:: LogConfigDataAccessOptions
logConfigDataAccessOptions =
LogConfigDataAccessOptions' {_lcdaoLogMode = Nothing}
lcdaoLogMode :: Lens' LogConfigDataAccessOptions (Maybe LogConfigDataAccessOptionsLogMode)
lcdaoLogMode
= lens _lcdaoLogMode (\ s a -> s{_lcdaoLogMode = a})
instance FromJSON LogConfigDataAccessOptions where
parseJSON
= withObject "LogConfigDataAccessOptions"
(\ o ->
LogConfigDataAccessOptions' <$> (o .:? "logMode"))
instance ToJSON LogConfigDataAccessOptions where
toJSON LogConfigDataAccessOptions'{..}
= object
(catMaybes [("logMode" .=) <$> _lcdaoLogMode])
data AutoscalerAggregatedList =
AutoscalerAggregatedList'
{ _aalNextPageToken :: !(Maybe Text)
, _aalKind :: !Text
, _aalItems :: !(Maybe AutoscalerAggregatedListItems)
, _aalSelfLink :: !(Maybe Text)
, _aalWarning :: !(Maybe AutoscalerAggregatedListWarning)
, _aalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerAggregatedList
:: AutoscalerAggregatedList
autoscalerAggregatedList =
AutoscalerAggregatedList'
{ _aalNextPageToken = Nothing
, _aalKind = "compute#autoscalerAggregatedList"
, _aalItems = Nothing
, _aalSelfLink = Nothing
, _aalWarning = Nothing
, _aalId = Nothing
}
aalNextPageToken :: Lens' AutoscalerAggregatedList (Maybe Text)
aalNextPageToken
= lens _aalNextPageToken
(\ s a -> s{_aalNextPageToken = a})
aalKind :: Lens' AutoscalerAggregatedList Text
aalKind = lens _aalKind (\ s a -> s{_aalKind = a})
aalItems :: Lens' AutoscalerAggregatedList (Maybe AutoscalerAggregatedListItems)
aalItems = lens _aalItems (\ s a -> s{_aalItems = a})
aalSelfLink :: Lens' AutoscalerAggregatedList (Maybe Text)
aalSelfLink
= lens _aalSelfLink (\ s a -> s{_aalSelfLink = a})
aalWarning :: Lens' AutoscalerAggregatedList (Maybe AutoscalerAggregatedListWarning)
aalWarning
= lens _aalWarning (\ s a -> s{_aalWarning = a})
aalId :: Lens' AutoscalerAggregatedList (Maybe Text)
aalId = lens _aalId (\ s a -> s{_aalId = a})
instance FromJSON AutoscalerAggregatedList where
parseJSON
= withObject "AutoscalerAggregatedList"
(\ o ->
AutoscalerAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#autoscalerAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON AutoscalerAggregatedList where
toJSON AutoscalerAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _aalNextPageToken,
Just ("kind" .= _aalKind),
("items" .=) <$> _aalItems,
("selfLink" .=) <$> _aalSelfLink,
("warning" .=) <$> _aalWarning,
("id" .=) <$> _aalId])
newtype RouterAggregatedListItems =
RouterAggregatedListItems'
{ _raliAddtional :: HashMap Text RoutersScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
routerAggregatedListItems
:: HashMap Text RoutersScopedList
-> RouterAggregatedListItems
routerAggregatedListItems pRaliAddtional_ =
RouterAggregatedListItems' {_raliAddtional = _Coerce # pRaliAddtional_}
raliAddtional :: Lens' RouterAggregatedListItems (HashMap Text RoutersScopedList)
raliAddtional
= lens _raliAddtional
(\ s a -> s{_raliAddtional = a})
. _Coerce
instance FromJSON RouterAggregatedListItems where
parseJSON
= withObject "RouterAggregatedListItems"
(\ o ->
RouterAggregatedListItems' <$> (parseJSONObject o))
instance ToJSON RouterAggregatedListItems where
toJSON = toJSON . _raliAddtional
data AcceleratorTypesScopedListWarning =
AcceleratorTypesScopedListWarning'
{ _atslwData :: !(Maybe [AcceleratorTypesScopedListWarningDataItem])
, _atslwCode :: !(Maybe AcceleratorTypesScopedListWarningCode)
, _atslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypesScopedListWarning
:: AcceleratorTypesScopedListWarning
acceleratorTypesScopedListWarning =
AcceleratorTypesScopedListWarning'
{_atslwData = Nothing, _atslwCode = Nothing, _atslwMessage = Nothing}
atslwData :: Lens' AcceleratorTypesScopedListWarning [AcceleratorTypesScopedListWarningDataItem]
atslwData
= lens _atslwData (\ s a -> s{_atslwData = a}) .
_Default
. _Coerce
atslwCode :: Lens' AcceleratorTypesScopedListWarning (Maybe AcceleratorTypesScopedListWarningCode)
atslwCode
= lens _atslwCode (\ s a -> s{_atslwCode = a})
atslwMessage :: Lens' AcceleratorTypesScopedListWarning (Maybe Text)
atslwMessage
= lens _atslwMessage (\ s a -> s{_atslwMessage = a})
instance FromJSON AcceleratorTypesScopedListWarning
where
parseJSON
= withObject "AcceleratorTypesScopedListWarning"
(\ o ->
AcceleratorTypesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AcceleratorTypesScopedListWarning
where
toJSON AcceleratorTypesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _atslwData,
("code" .=) <$> _atslwCode,
("message" .=) <$> _atslwMessage])
data TargetTCPProxy =
TargetTCPProxy'
{ _ttpService :: !(Maybe Text)
, _ttpKind :: !Text
, _ttpSelfLink :: !(Maybe Text)
, _ttpName :: !(Maybe Text)
, _ttpCreationTimestamp :: !(Maybe Text)
, _ttpId :: !(Maybe (Textual Word64))
, _ttpProxyHeader :: !(Maybe TargetTCPProxyProxyHeader)
, _ttpDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetTCPProxy
:: TargetTCPProxy
targetTCPProxy =
TargetTCPProxy'
{ _ttpService = Nothing
, _ttpKind = "compute#targetTcpProxy"
, _ttpSelfLink = Nothing
, _ttpName = Nothing
, _ttpCreationTimestamp = Nothing
, _ttpId = Nothing
, _ttpProxyHeader = Nothing
, _ttpDescription = Nothing
}
ttpService :: Lens' TargetTCPProxy (Maybe Text)
ttpService
= lens _ttpService (\ s a -> s{_ttpService = a})
ttpKind :: Lens' TargetTCPProxy Text
ttpKind = lens _ttpKind (\ s a -> s{_ttpKind = a})
ttpSelfLink :: Lens' TargetTCPProxy (Maybe Text)
ttpSelfLink
= lens _ttpSelfLink (\ s a -> s{_ttpSelfLink = a})
ttpName :: Lens' TargetTCPProxy (Maybe Text)
ttpName = lens _ttpName (\ s a -> s{_ttpName = a})
ttpCreationTimestamp :: Lens' TargetTCPProxy (Maybe Text)
ttpCreationTimestamp
= lens _ttpCreationTimestamp
(\ s a -> s{_ttpCreationTimestamp = a})
ttpId :: Lens' TargetTCPProxy (Maybe Word64)
ttpId
= lens _ttpId (\ s a -> s{_ttpId = a}) .
mapping _Coerce
ttpProxyHeader :: Lens' TargetTCPProxy (Maybe TargetTCPProxyProxyHeader)
ttpProxyHeader
= lens _ttpProxyHeader
(\ s a -> s{_ttpProxyHeader = a})
ttpDescription :: Lens' TargetTCPProxy (Maybe Text)
ttpDescription
= lens _ttpDescription
(\ s a -> s{_ttpDescription = a})
instance FromJSON TargetTCPProxy where
parseJSON
= withObject "TargetTCPProxy"
(\ o ->
TargetTCPProxy' <$>
(o .:? "service") <*>
(o .:? "kind" .!= "compute#targetTcpProxy")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "proxyHeader")
<*> (o .:? "description"))
instance ToJSON TargetTCPProxy where
toJSON TargetTCPProxy'{..}
= object
(catMaybes
[("service" .=) <$> _ttpService,
Just ("kind" .= _ttpKind),
("selfLink" .=) <$> _ttpSelfLink,
("name" .=) <$> _ttpName,
("creationTimestamp" .=) <$> _ttpCreationTimestamp,
("id" .=) <$> _ttpId,
("proxyHeader" .=) <$> _ttpProxyHeader,
("description" .=) <$> _ttpDescription])
data BackendBucketListWarning =
BackendBucketListWarning'
{ _bblwData :: !(Maybe [BackendBucketListWarningDataItem])
, _bblwCode :: !(Maybe BackendBucketListWarningCode)
, _bblwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendBucketListWarning
:: BackendBucketListWarning
backendBucketListWarning =
BackendBucketListWarning'
{_bblwData = Nothing, _bblwCode = Nothing, _bblwMessage = Nothing}
bblwData :: Lens' BackendBucketListWarning [BackendBucketListWarningDataItem]
bblwData
= lens _bblwData (\ s a -> s{_bblwData = a}) .
_Default
. _Coerce
bblwCode :: Lens' BackendBucketListWarning (Maybe BackendBucketListWarningCode)
bblwCode = lens _bblwCode (\ s a -> s{_bblwCode = a})
bblwMessage :: Lens' BackendBucketListWarning (Maybe Text)
bblwMessage
= lens _bblwMessage (\ s a -> s{_bblwMessage = a})
instance FromJSON BackendBucketListWarning where
parseJSON
= withObject "BackendBucketListWarning"
(\ o ->
BackendBucketListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON BackendBucketListWarning where
toJSON BackendBucketListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _bblwData,
("code" .=) <$> _bblwCode,
("message" .=) <$> _bblwMessage])
newtype ImageLabels =
ImageLabels'
{ _iAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
imageLabels
:: HashMap Text Text
-> ImageLabels
imageLabels pIAddtional_ = ImageLabels' {_iAddtional = _Coerce # pIAddtional_}
iAddtional :: Lens' ImageLabels (HashMap Text Text)
iAddtional
= lens _iAddtional (\ s a -> s{_iAddtional = a}) .
_Coerce
instance FromJSON ImageLabels where
parseJSON
= withObject "ImageLabels"
(\ o -> ImageLabels' <$> (parseJSONObject o))
instance ToJSON ImageLabels where
toJSON = toJSON . _iAddtional
newtype DistributionPolicy =
DistributionPolicy'
{ _dpZones :: Maybe [DistributionPolicyZoneConfiguration]
}
deriving (Eq, Show, Data, Typeable, Generic)
distributionPolicy
:: DistributionPolicy
distributionPolicy = DistributionPolicy' {_dpZones = Nothing}
dpZones :: Lens' DistributionPolicy [DistributionPolicyZoneConfiguration]
dpZones
= lens _dpZones (\ s a -> s{_dpZones = a}) . _Default
. _Coerce
instance FromJSON DistributionPolicy where
parseJSON
= withObject "DistributionPolicy"
(\ o ->
DistributionPolicy' <$> (o .:? "zones" .!= mempty))
instance ToJSON DistributionPolicy where
toJSON DistributionPolicy'{..}
= object (catMaybes [("zones" .=) <$> _dpZones])
data NodeGroupListWarningDataItem =
NodeGroupListWarningDataItem'
{ _nglwdiValue :: !(Maybe Text)
, _nglwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupListWarningDataItem
:: NodeGroupListWarningDataItem
nodeGroupListWarningDataItem =
NodeGroupListWarningDataItem' {_nglwdiValue = Nothing, _nglwdiKey = Nothing}
nglwdiValue :: Lens' NodeGroupListWarningDataItem (Maybe Text)
nglwdiValue
= lens _nglwdiValue (\ s a -> s{_nglwdiValue = a})
nglwdiKey :: Lens' NodeGroupListWarningDataItem (Maybe Text)
nglwdiKey
= lens _nglwdiKey (\ s a -> s{_nglwdiKey = a})
instance FromJSON NodeGroupListWarningDataItem where
parseJSON
= withObject "NodeGroupListWarningDataItem"
(\ o ->
NodeGroupListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NodeGroupListWarningDataItem where
toJSON NodeGroupListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _nglwdiValue,
("key" .=) <$> _nglwdiKey])
data AutoscalingPolicy =
AutoscalingPolicy'
{ _apCustomMetricUtilizations :: !(Maybe [AutoscalingPolicyCustomMetricUtilization])
, _apMaxNumReplicas :: !(Maybe (Textual Int32))
, _apCPUUtilization :: !(Maybe AutoscalingPolicyCPUUtilization)
, _apLoadBalancingUtilization :: !(Maybe AutoscalingPolicyLoadBalancingUtilization)
, _apMinNumReplicas :: !(Maybe (Textual Int32))
, _apCoolDownPeriodSec :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalingPolicy
:: AutoscalingPolicy
autoscalingPolicy =
AutoscalingPolicy'
{ _apCustomMetricUtilizations = Nothing
, _apMaxNumReplicas = Nothing
, _apCPUUtilization = Nothing
, _apLoadBalancingUtilization = Nothing
, _apMinNumReplicas = Nothing
, _apCoolDownPeriodSec = Nothing
}
apCustomMetricUtilizations :: Lens' AutoscalingPolicy [AutoscalingPolicyCustomMetricUtilization]
apCustomMetricUtilizations
= lens _apCustomMetricUtilizations
(\ s a -> s{_apCustomMetricUtilizations = a})
. _Default
. _Coerce
apMaxNumReplicas :: Lens' AutoscalingPolicy (Maybe Int32)
apMaxNumReplicas
= lens _apMaxNumReplicas
(\ s a -> s{_apMaxNumReplicas = a})
. mapping _Coerce
apCPUUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyCPUUtilization)
apCPUUtilization
= lens _apCPUUtilization
(\ s a -> s{_apCPUUtilization = a})
apLoadBalancingUtilization :: Lens' AutoscalingPolicy (Maybe AutoscalingPolicyLoadBalancingUtilization)
apLoadBalancingUtilization
= lens _apLoadBalancingUtilization
(\ s a -> s{_apLoadBalancingUtilization = a})
apMinNumReplicas :: Lens' AutoscalingPolicy (Maybe Int32)
apMinNumReplicas
= lens _apMinNumReplicas
(\ s a -> s{_apMinNumReplicas = a})
. mapping _Coerce
apCoolDownPeriodSec :: Lens' AutoscalingPolicy (Maybe Int32)
apCoolDownPeriodSec
= lens _apCoolDownPeriodSec
(\ s a -> s{_apCoolDownPeriodSec = a})
. mapping _Coerce
instance FromJSON AutoscalingPolicy where
parseJSON
= withObject "AutoscalingPolicy"
(\ o ->
AutoscalingPolicy' <$>
(o .:? "customMetricUtilizations" .!= mempty) <*>
(o .:? "maxNumReplicas")
<*> (o .:? "cpuUtilization")
<*> (o .:? "loadBalancingUtilization")
<*> (o .:? "minNumReplicas")
<*> (o .:? "coolDownPeriodSec"))
instance ToJSON AutoscalingPolicy where
toJSON AutoscalingPolicy'{..}
= object
(catMaybes
[("customMetricUtilizations" .=) <$>
_apCustomMetricUtilizations,
("maxNumReplicas" .=) <$> _apMaxNumReplicas,
("cpuUtilization" .=) <$> _apCPUUtilization,
("loadBalancingUtilization" .=) <$>
_apLoadBalancingUtilization,
("minNumReplicas" .=) <$> _apMinNumReplicas,
("coolDownPeriodSec" .=) <$> _apCoolDownPeriodSec])
data NodeGroupAggregatedListWarning =
NodeGroupAggregatedListWarning'
{ _ngalwData :: !(Maybe [NodeGroupAggregatedListWarningDataItem])
, _ngalwCode :: !(Maybe NodeGroupAggregatedListWarningCode)
, _ngalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupAggregatedListWarning
:: NodeGroupAggregatedListWarning
nodeGroupAggregatedListWarning =
NodeGroupAggregatedListWarning'
{_ngalwData = Nothing, _ngalwCode = Nothing, _ngalwMessage = Nothing}
ngalwData :: Lens' NodeGroupAggregatedListWarning [NodeGroupAggregatedListWarningDataItem]
ngalwData
= lens _ngalwData (\ s a -> s{_ngalwData = a}) .
_Default
. _Coerce
ngalwCode :: Lens' NodeGroupAggregatedListWarning (Maybe NodeGroupAggregatedListWarningCode)
ngalwCode
= lens _ngalwCode (\ s a -> s{_ngalwCode = a})
ngalwMessage :: Lens' NodeGroupAggregatedListWarning (Maybe Text)
ngalwMessage
= lens _ngalwMessage (\ s a -> s{_ngalwMessage = a})
instance FromJSON NodeGroupAggregatedListWarning
where
parseJSON
= withObject "NodeGroupAggregatedListWarning"
(\ o ->
NodeGroupAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeGroupAggregatedListWarning where
toJSON NodeGroupAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ngalwData,
("code" .=) <$> _ngalwCode,
("message" .=) <$> _ngalwMessage])
data RegionList =
RegionList'
{ _regNextPageToken :: !(Maybe Text)
, _regKind :: !Text
, _regItems :: !(Maybe [Region])
, _regSelfLink :: !(Maybe Text)
, _regWarning :: !(Maybe RegionListWarning)
, _regId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionList
:: RegionList
regionList =
RegionList'
{ _regNextPageToken = Nothing
, _regKind = "compute#regionList"
, _regItems = Nothing
, _regSelfLink = Nothing
, _regWarning = Nothing
, _regId = Nothing
}
regNextPageToken :: Lens' RegionList (Maybe Text)
regNextPageToken
= lens _regNextPageToken
(\ s a -> s{_regNextPageToken = a})
regKind :: Lens' RegionList Text
regKind = lens _regKind (\ s a -> s{_regKind = a})
regItems :: Lens' RegionList [Region]
regItems
= lens _regItems (\ s a -> s{_regItems = a}) .
_Default
. _Coerce
regSelfLink :: Lens' RegionList (Maybe Text)
regSelfLink
= lens _regSelfLink (\ s a -> s{_regSelfLink = a})
regWarning :: Lens' RegionList (Maybe RegionListWarning)
regWarning
= lens _regWarning (\ s a -> s{_regWarning = a})
regId :: Lens' RegionList (Maybe Text)
regId = lens _regId (\ s a -> s{_regId = a})
instance FromJSON RegionList where
parseJSON
= withObject "RegionList"
(\ o ->
RegionList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#regionList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON RegionList where
toJSON RegionList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _regNextPageToken,
Just ("kind" .= _regKind),
("items" .=) <$> _regItems,
("selfLink" .=) <$> _regSelfLink,
("warning" .=) <$> _regWarning,
("id" .=) <$> _regId])
data SchedulingNodeAffinity =
SchedulingNodeAffinity'
{ _snaOperator :: !(Maybe SchedulingNodeAffinityOperator)
, _snaValues :: !(Maybe [Text])
, _snaKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
schedulingNodeAffinity
:: SchedulingNodeAffinity
schedulingNodeAffinity =
SchedulingNodeAffinity'
{_snaOperator = Nothing, _snaValues = Nothing, _snaKey = Nothing}
snaOperator :: Lens' SchedulingNodeAffinity (Maybe SchedulingNodeAffinityOperator)
snaOperator
= lens _snaOperator (\ s a -> s{_snaOperator = a})
snaValues :: Lens' SchedulingNodeAffinity [Text]
snaValues
= lens _snaValues (\ s a -> s{_snaValues = a}) .
_Default
. _Coerce
snaKey :: Lens' SchedulingNodeAffinity (Maybe Text)
snaKey = lens _snaKey (\ s a -> s{_snaKey = a})
instance FromJSON SchedulingNodeAffinity where
parseJSON
= withObject "SchedulingNodeAffinity"
(\ o ->
SchedulingNodeAffinity' <$>
(o .:? "operator") <*> (o .:? "values" .!= mempty)
<*> (o .:? "key"))
instance ToJSON SchedulingNodeAffinity where
toJSON SchedulingNodeAffinity'{..}
= object
(catMaybes
[("operator" .=) <$> _snaOperator,
("values" .=) <$> _snaValues,
("key" .=) <$> _snaKey])
data VPNTunnelList =
VPNTunnelList'
{ _vtlNextPageToken :: !(Maybe Text)
, _vtlKind :: !Text
, _vtlItems :: !(Maybe [VPNTunnel])
, _vtlSelfLink :: !(Maybe Text)
, _vtlWarning :: !(Maybe VPNTunnelListWarning)
, _vtlId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelList
:: VPNTunnelList
vpnTunnelList =
VPNTunnelList'
{ _vtlNextPageToken = Nothing
, _vtlKind = "compute#vpnTunnelList"
, _vtlItems = Nothing
, _vtlSelfLink = Nothing
, _vtlWarning = Nothing
, _vtlId = Nothing
}
vtlNextPageToken :: Lens' VPNTunnelList (Maybe Text)
vtlNextPageToken
= lens _vtlNextPageToken
(\ s a -> s{_vtlNextPageToken = a})
vtlKind :: Lens' VPNTunnelList Text
vtlKind = lens _vtlKind (\ s a -> s{_vtlKind = a})
vtlItems :: Lens' VPNTunnelList [VPNTunnel]
vtlItems
= lens _vtlItems (\ s a -> s{_vtlItems = a}) .
_Default
. _Coerce
vtlSelfLink :: Lens' VPNTunnelList (Maybe Text)
vtlSelfLink
= lens _vtlSelfLink (\ s a -> s{_vtlSelfLink = a})
vtlWarning :: Lens' VPNTunnelList (Maybe VPNTunnelListWarning)
vtlWarning
= lens _vtlWarning (\ s a -> s{_vtlWarning = a})
vtlId :: Lens' VPNTunnelList (Maybe Text)
vtlId = lens _vtlId (\ s a -> s{_vtlId = a})
instance FromJSON VPNTunnelList where
parseJSON
= withObject "VPNTunnelList"
(\ o ->
VPNTunnelList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#vpnTunnelList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON VPNTunnelList where
toJSON VPNTunnelList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _vtlNextPageToken,
Just ("kind" .= _vtlKind),
("items" .=) <$> _vtlItems,
("selfLink" .=) <$> _vtlSelfLink,
("warning" .=) <$> _vtlWarning,
("id" .=) <$> _vtlId])
data AcceleratorTypeAggregatedListWarning =
AcceleratorTypeAggregatedListWarning'
{ _atalwData :: !(Maybe [AcceleratorTypeAggregatedListWarningDataItem])
, _atalwCode :: !(Maybe AcceleratorTypeAggregatedListWarningCode)
, _atalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorTypeAggregatedListWarning
:: AcceleratorTypeAggregatedListWarning
acceleratorTypeAggregatedListWarning =
AcceleratorTypeAggregatedListWarning'
{_atalwData = Nothing, _atalwCode = Nothing, _atalwMessage = Nothing}
atalwData :: Lens' AcceleratorTypeAggregatedListWarning [AcceleratorTypeAggregatedListWarningDataItem]
atalwData
= lens _atalwData (\ s a -> s{_atalwData = a}) .
_Default
. _Coerce
atalwCode :: Lens' AcceleratorTypeAggregatedListWarning (Maybe AcceleratorTypeAggregatedListWarningCode)
atalwCode
= lens _atalwCode (\ s a -> s{_atalwCode = a})
atalwMessage :: Lens' AcceleratorTypeAggregatedListWarning (Maybe Text)
atalwMessage
= lens _atalwMessage (\ s a -> s{_atalwMessage = a})
instance FromJSON
AcceleratorTypeAggregatedListWarning
where
parseJSON
= withObject "AcceleratorTypeAggregatedListWarning"
(\ o ->
AcceleratorTypeAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AcceleratorTypeAggregatedListWarning
where
toJSON AcceleratorTypeAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _atalwData,
("code" .=) <$> _atalwCode,
("message" .=) <$> _atalwMessage])
data RegionInstanceGroupsListInstancesWarningDataItem =
RegionInstanceGroupsListInstancesWarningDataItem'
{ _rigliwdiValue :: !(Maybe Text)
, _rigliwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupsListInstancesWarningDataItem
:: RegionInstanceGroupsListInstancesWarningDataItem
regionInstanceGroupsListInstancesWarningDataItem =
RegionInstanceGroupsListInstancesWarningDataItem'
{_rigliwdiValue = Nothing, _rigliwdiKey = Nothing}
rigliwdiValue :: Lens' RegionInstanceGroupsListInstancesWarningDataItem (Maybe Text)
rigliwdiValue
= lens _rigliwdiValue
(\ s a -> s{_rigliwdiValue = a})
rigliwdiKey :: Lens' RegionInstanceGroupsListInstancesWarningDataItem (Maybe Text)
rigliwdiKey
= lens _rigliwdiKey (\ s a -> s{_rigliwdiKey = a})
instance FromJSON
RegionInstanceGroupsListInstancesWarningDataItem
where
parseJSON
= withObject
"RegionInstanceGroupsListInstancesWarningDataItem"
(\ o ->
RegionInstanceGroupsListInstancesWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
RegionInstanceGroupsListInstancesWarningDataItem
where
toJSON
RegionInstanceGroupsListInstancesWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _rigliwdiValue,
("key" .=) <$> _rigliwdiKey])
data Interconnect =
Interconnect'
{ _iiState :: !(Maybe InterconnectState)
, _iiInterconnectType :: !(Maybe InterconnectInterconnectType)
, _iiLocation :: !(Maybe Text)
, _iiPeerIPAddress :: !(Maybe Text)
, _iiKind :: !Text
, _iiExpectedOutages :: !(Maybe [InterconnectOutageNotification])
, _iiProvisionedLinkCount :: !(Maybe (Textual Int32))
, _iiCustomerName :: !(Maybe Text)
, _iiRequestedLinkCount :: !(Maybe (Textual Int32))
, _iiOperationalStatus :: !(Maybe InterconnectOperationalStatus)
, _iiSelfLink :: !(Maybe Text)
, _iiName :: !(Maybe Text)
, _iiGoogleReferenceId :: !(Maybe Text)
, _iiCreationTimestamp :: !(Maybe Text)
, _iiAdminEnabled :: !(Maybe Bool)
, _iiId :: !(Maybe (Textual Word64))
, _iiInterconnectAttachments :: !(Maybe [Text])
, _iiLinkType :: !(Maybe InterconnectLinkType)
, _iiGoogleIPAddress :: !(Maybe Text)
, _iiDescription :: !(Maybe Text)
, _iiNocContactEmail :: !(Maybe Text)
, _iiCircuitInfos :: !(Maybe [InterconnectCircuitInfo])
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnect
:: Interconnect
interconnect =
Interconnect'
{ _iiState = Nothing
, _iiInterconnectType = Nothing
, _iiLocation = Nothing
, _iiPeerIPAddress = Nothing
, _iiKind = "compute#interconnect"
, _iiExpectedOutages = Nothing
, _iiProvisionedLinkCount = Nothing
, _iiCustomerName = Nothing
, _iiRequestedLinkCount = Nothing
, _iiOperationalStatus = Nothing
, _iiSelfLink = Nothing
, _iiName = Nothing
, _iiGoogleReferenceId = Nothing
, _iiCreationTimestamp = Nothing
, _iiAdminEnabled = Nothing
, _iiId = Nothing
, _iiInterconnectAttachments = Nothing
, _iiLinkType = Nothing
, _iiGoogleIPAddress = Nothing
, _iiDescription = Nothing
, _iiNocContactEmail = Nothing
, _iiCircuitInfos = Nothing
}
iiState :: Lens' Interconnect (Maybe InterconnectState)
iiState = lens _iiState (\ s a -> s{_iiState = a})
iiInterconnectType :: Lens' Interconnect (Maybe InterconnectInterconnectType)
iiInterconnectType
= lens _iiInterconnectType
(\ s a -> s{_iiInterconnectType = a})
iiLocation :: Lens' Interconnect (Maybe Text)
iiLocation
= lens _iiLocation (\ s a -> s{_iiLocation = a})
iiPeerIPAddress :: Lens' Interconnect (Maybe Text)
iiPeerIPAddress
= lens _iiPeerIPAddress
(\ s a -> s{_iiPeerIPAddress = a})
iiKind :: Lens' Interconnect Text
iiKind = lens _iiKind (\ s a -> s{_iiKind = a})
iiExpectedOutages :: Lens' Interconnect [InterconnectOutageNotification]
iiExpectedOutages
= lens _iiExpectedOutages
(\ s a -> s{_iiExpectedOutages = a})
. _Default
. _Coerce
iiProvisionedLinkCount :: Lens' Interconnect (Maybe Int32)
iiProvisionedLinkCount
= lens _iiProvisionedLinkCount
(\ s a -> s{_iiProvisionedLinkCount = a})
. mapping _Coerce
iiCustomerName :: Lens' Interconnect (Maybe Text)
iiCustomerName
= lens _iiCustomerName
(\ s a -> s{_iiCustomerName = a})
iiRequestedLinkCount :: Lens' Interconnect (Maybe Int32)
iiRequestedLinkCount
= lens _iiRequestedLinkCount
(\ s a -> s{_iiRequestedLinkCount = a})
. mapping _Coerce
iiOperationalStatus :: Lens' Interconnect (Maybe InterconnectOperationalStatus)
iiOperationalStatus
= lens _iiOperationalStatus
(\ s a -> s{_iiOperationalStatus = a})
iiSelfLink :: Lens' Interconnect (Maybe Text)
iiSelfLink
= lens _iiSelfLink (\ s a -> s{_iiSelfLink = a})
iiName :: Lens' Interconnect (Maybe Text)
iiName = lens _iiName (\ s a -> s{_iiName = a})
iiGoogleReferenceId :: Lens' Interconnect (Maybe Text)
iiGoogleReferenceId
= lens _iiGoogleReferenceId
(\ s a -> s{_iiGoogleReferenceId = a})
iiCreationTimestamp :: Lens' Interconnect (Maybe Text)
iiCreationTimestamp
= lens _iiCreationTimestamp
(\ s a -> s{_iiCreationTimestamp = a})
iiAdminEnabled :: Lens' Interconnect (Maybe Bool)
iiAdminEnabled
= lens _iiAdminEnabled
(\ s a -> s{_iiAdminEnabled = a})
iiId :: Lens' Interconnect (Maybe Word64)
iiId
= lens _iiId (\ s a -> s{_iiId = a}) .
mapping _Coerce
iiInterconnectAttachments :: Lens' Interconnect [Text]
iiInterconnectAttachments
= lens _iiInterconnectAttachments
(\ s a -> s{_iiInterconnectAttachments = a})
. _Default
. _Coerce
iiLinkType :: Lens' Interconnect (Maybe InterconnectLinkType)
iiLinkType
= lens _iiLinkType (\ s a -> s{_iiLinkType = a})
iiGoogleIPAddress :: Lens' Interconnect (Maybe Text)
iiGoogleIPAddress
= lens _iiGoogleIPAddress
(\ s a -> s{_iiGoogleIPAddress = a})
iiDescription :: Lens' Interconnect (Maybe Text)
iiDescription
= lens _iiDescription
(\ s a -> s{_iiDescription = a})
iiNocContactEmail :: Lens' Interconnect (Maybe Text)
iiNocContactEmail
= lens _iiNocContactEmail
(\ s a -> s{_iiNocContactEmail = a})
iiCircuitInfos :: Lens' Interconnect [InterconnectCircuitInfo]
iiCircuitInfos
= lens _iiCircuitInfos
(\ s a -> s{_iiCircuitInfos = a})
. _Default
. _Coerce
instance FromJSON Interconnect where
parseJSON
= withObject "Interconnect"
(\ o ->
Interconnect' <$>
(o .:? "state") <*> (o .:? "interconnectType") <*>
(o .:? "location")
<*> (o .:? "peerIpAddress")
<*> (o .:? "kind" .!= "compute#interconnect")
<*> (o .:? "expectedOutages" .!= mempty)
<*> (o .:? "provisionedLinkCount")
<*> (o .:? "customerName")
<*> (o .:? "requestedLinkCount")
<*> (o .:? "operationalStatus")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "googleReferenceId")
<*> (o .:? "creationTimestamp")
<*> (o .:? "adminEnabled")
<*> (o .:? "id")
<*> (o .:? "interconnectAttachments" .!= mempty)
<*> (o .:? "linkType")
<*> (o .:? "googleIpAddress")
<*> (o .:? "description")
<*> (o .:? "nocContactEmail")
<*> (o .:? "circuitInfos" .!= mempty))
instance ToJSON Interconnect where
toJSON Interconnect'{..}
= object
(catMaybes
[("state" .=) <$> _iiState,
("interconnectType" .=) <$> _iiInterconnectType,
("location" .=) <$> _iiLocation,
("peerIpAddress" .=) <$> _iiPeerIPAddress,
Just ("kind" .= _iiKind),
("expectedOutages" .=) <$> _iiExpectedOutages,
("provisionedLinkCount" .=) <$>
_iiProvisionedLinkCount,
("customerName" .=) <$> _iiCustomerName,
("requestedLinkCount" .=) <$> _iiRequestedLinkCount,
("operationalStatus" .=) <$> _iiOperationalStatus,
("selfLink" .=) <$> _iiSelfLink,
("name" .=) <$> _iiName,
("googleReferenceId" .=) <$> _iiGoogleReferenceId,
("creationTimestamp" .=) <$> _iiCreationTimestamp,
("adminEnabled" .=) <$> _iiAdminEnabled,
("id" .=) <$> _iiId,
("interconnectAttachments" .=) <$>
_iiInterconnectAttachments,
("linkType" .=) <$> _iiLinkType,
("googleIpAddress" .=) <$> _iiGoogleIPAddress,
("description" .=) <$> _iiDescription,
("nocContactEmail" .=) <$> _iiNocContactEmail,
("circuitInfos" .=) <$> _iiCircuitInfos])
newtype MachineTypeScratchDisksItem =
MachineTypeScratchDisksItem'
{ _mtsdiDiskGb :: Maybe (Textual Int32)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeScratchDisksItem
:: MachineTypeScratchDisksItem
machineTypeScratchDisksItem =
MachineTypeScratchDisksItem' {_mtsdiDiskGb = Nothing}
mtsdiDiskGb :: Lens' MachineTypeScratchDisksItem (Maybe Int32)
mtsdiDiskGb
= lens _mtsdiDiskGb (\ s a -> s{_mtsdiDiskGb = a}) .
mapping _Coerce
instance FromJSON MachineTypeScratchDisksItem where
parseJSON
= withObject "MachineTypeScratchDisksItem"
(\ o ->
MachineTypeScratchDisksItem' <$> (o .:? "diskGb"))
instance ToJSON MachineTypeScratchDisksItem where
toJSON MachineTypeScratchDisksItem'{..}
= object (catMaybes [("diskGb" .=) <$> _mtsdiDiskGb])
data NetworkEndpointGroupsScopedListWarningDataItem =
NetworkEndpointGroupsScopedListWarningDataItem'
{ _negslwdiValue :: !(Maybe Text)
, _negslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsScopedListWarningDataItem
:: NetworkEndpointGroupsScopedListWarningDataItem
networkEndpointGroupsScopedListWarningDataItem =
NetworkEndpointGroupsScopedListWarningDataItem'
{_negslwdiValue = Nothing, _negslwdiKey = Nothing}
negslwdiValue :: Lens' NetworkEndpointGroupsScopedListWarningDataItem (Maybe Text)
negslwdiValue
= lens _negslwdiValue
(\ s a -> s{_negslwdiValue = a})
negslwdiKey :: Lens' NetworkEndpointGroupsScopedListWarningDataItem (Maybe Text)
negslwdiKey
= lens _negslwdiKey (\ s a -> s{_negslwdiKey = a})
instance FromJSON
NetworkEndpointGroupsScopedListWarningDataItem
where
parseJSON
= withObject
"NetworkEndpointGroupsScopedListWarningDataItem"
(\ o ->
NetworkEndpointGroupsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
NetworkEndpointGroupsScopedListWarningDataItem
where
toJSON
NetworkEndpointGroupsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _negslwdiValue,
("key" .=) <$> _negslwdiKey])
data SubnetworksScopedListWarningDataItem =
SubnetworksScopedListWarningDataItem'
{ _sslwdiValue :: !(Maybe Text)
, _sslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworksScopedListWarningDataItem
:: SubnetworksScopedListWarningDataItem
subnetworksScopedListWarningDataItem =
SubnetworksScopedListWarningDataItem'
{_sslwdiValue = Nothing, _sslwdiKey = Nothing}
sslwdiValue :: Lens' SubnetworksScopedListWarningDataItem (Maybe Text)
sslwdiValue
= lens _sslwdiValue (\ s a -> s{_sslwdiValue = a})
sslwdiKey :: Lens' SubnetworksScopedListWarningDataItem (Maybe Text)
sslwdiKey
= lens _sslwdiKey (\ s a -> s{_sslwdiKey = a})
instance FromJSON
SubnetworksScopedListWarningDataItem
where
parseJSON
= withObject "SubnetworksScopedListWarningDataItem"
(\ o ->
SubnetworksScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON SubnetworksScopedListWarningDataItem
where
toJSON SubnetworksScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _sslwdiValue,
("key" .=) <$> _sslwdiKey])
data MachineTypesScopedList =
MachineTypesScopedList'
{ _mtslMachineTypes :: !(Maybe [MachineType])
, _mtslWarning :: !(Maybe MachineTypesScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypesScopedList
:: MachineTypesScopedList
machineTypesScopedList =
MachineTypesScopedList' {_mtslMachineTypes = Nothing, _mtslWarning = Nothing}
mtslMachineTypes :: Lens' MachineTypesScopedList [MachineType]
mtslMachineTypes
= lens _mtslMachineTypes
(\ s a -> s{_mtslMachineTypes = a})
. _Default
. _Coerce
mtslWarning :: Lens' MachineTypesScopedList (Maybe MachineTypesScopedListWarning)
mtslWarning
= lens _mtslWarning (\ s a -> s{_mtslWarning = a})
instance FromJSON MachineTypesScopedList where
parseJSON
= withObject "MachineTypesScopedList"
(\ o ->
MachineTypesScopedList' <$>
(o .:? "machineTypes" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON MachineTypesScopedList where
toJSON MachineTypesScopedList'{..}
= object
(catMaybes
[("machineTypes" .=) <$> _mtslMachineTypes,
("warning" .=) <$> _mtslWarning])
data NetworkEndpointGroup =
NetworkEndpointGroup'
{ _negSize :: !(Maybe (Textual Int32))
, _negKind :: !Text
, _negNetwork :: !(Maybe Text)
, _negZone :: !(Maybe Text)
, _negSelfLink :: !(Maybe Text)
, _negName :: !(Maybe Text)
, _negCreationTimestamp :: !(Maybe Text)
, _negDefaultPort :: !(Maybe (Textual Int32))
, _negSubnetwork :: !(Maybe Text)
, _negNetworkEndpointType :: !(Maybe NetworkEndpointGroupNetworkEndpointType)
, _negId :: !(Maybe (Textual Word64))
, _negDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroup
:: NetworkEndpointGroup
networkEndpointGroup =
NetworkEndpointGroup'
{ _negSize = Nothing
, _negKind = "compute#networkEndpointGroup"
, _negNetwork = Nothing
, _negZone = Nothing
, _negSelfLink = Nothing
, _negName = Nothing
, _negCreationTimestamp = Nothing
, _negDefaultPort = Nothing
, _negSubnetwork = Nothing
, _negNetworkEndpointType = Nothing
, _negId = Nothing
, _negDescription = Nothing
}
negSize :: Lens' NetworkEndpointGroup (Maybe Int32)
negSize
= lens _negSize (\ s a -> s{_negSize = a}) .
mapping _Coerce
negKind :: Lens' NetworkEndpointGroup Text
negKind = lens _negKind (\ s a -> s{_negKind = a})
negNetwork :: Lens' NetworkEndpointGroup (Maybe Text)
negNetwork
= lens _negNetwork (\ s a -> s{_negNetwork = a})
negZone :: Lens' NetworkEndpointGroup (Maybe Text)
negZone = lens _negZone (\ s a -> s{_negZone = a})
negSelfLink :: Lens' NetworkEndpointGroup (Maybe Text)
negSelfLink
= lens _negSelfLink (\ s a -> s{_negSelfLink = a})
negName :: Lens' NetworkEndpointGroup (Maybe Text)
negName = lens _negName (\ s a -> s{_negName = a})
negCreationTimestamp :: Lens' NetworkEndpointGroup (Maybe Text)
negCreationTimestamp
= lens _negCreationTimestamp
(\ s a -> s{_negCreationTimestamp = a})
negDefaultPort :: Lens' NetworkEndpointGroup (Maybe Int32)
negDefaultPort
= lens _negDefaultPort
(\ s a -> s{_negDefaultPort = a})
. mapping _Coerce
negSubnetwork :: Lens' NetworkEndpointGroup (Maybe Text)
negSubnetwork
= lens _negSubnetwork
(\ s a -> s{_negSubnetwork = a})
negNetworkEndpointType :: Lens' NetworkEndpointGroup (Maybe NetworkEndpointGroupNetworkEndpointType)
negNetworkEndpointType
= lens _negNetworkEndpointType
(\ s a -> s{_negNetworkEndpointType = a})
negId :: Lens' NetworkEndpointGroup (Maybe Word64)
negId
= lens _negId (\ s a -> s{_negId = a}) .
mapping _Coerce
negDescription :: Lens' NetworkEndpointGroup (Maybe Text)
negDescription
= lens _negDescription
(\ s a -> s{_negDescription = a})
instance FromJSON NetworkEndpointGroup where
parseJSON
= withObject "NetworkEndpointGroup"
(\ o ->
NetworkEndpointGroup' <$>
(o .:? "size") <*>
(o .:? "kind" .!= "compute#networkEndpointGroup")
<*> (o .:? "network")
<*> (o .:? "zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "defaultPort")
<*> (o .:? "subnetwork")
<*> (o .:? "networkEndpointType")
<*> (o .:? "id")
<*> (o .:? "description"))
instance ToJSON NetworkEndpointGroup where
toJSON NetworkEndpointGroup'{..}
= object
(catMaybes
[("size" .=) <$> _negSize, Just ("kind" .= _negKind),
("network" .=) <$> _negNetwork,
("zone" .=) <$> _negZone,
("selfLink" .=) <$> _negSelfLink,
("name" .=) <$> _negName,
("creationTimestamp" .=) <$> _negCreationTimestamp,
("defaultPort" .=) <$> _negDefaultPort,
("subnetwork" .=) <$> _negSubnetwork,
("networkEndpointType" .=) <$>
_negNetworkEndpointType,
("id" .=) <$> _negId,
("description" .=) <$> _negDescription])
data Subnetwork =
Subnetwork'
{ _subKind :: !Text
, _subFingerprint :: !(Maybe Bytes)
, _subNetwork :: !(Maybe Text)
, _subGatewayAddress :: !(Maybe Text)
, _subSelfLink :: !(Maybe Text)
, _subEnableFlowLogs :: !(Maybe Bool)
, _subName :: !(Maybe Text)
, _subSecondaryIPRanges :: !(Maybe [SubnetworkSecondaryRange])
, _subCreationTimestamp :: !(Maybe Text)
, _subIPCIdRRange :: !(Maybe Text)
, _subId :: !(Maybe (Textual Word64))
, _subRegion :: !(Maybe Text)
, _subDescription :: !(Maybe Text)
, _subPrivateIPGoogleAccess :: !(Maybe Bool)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetwork
:: Subnetwork
subnetwork =
Subnetwork'
{ _subKind = "compute#subnetwork"
, _subFingerprint = Nothing
, _subNetwork = Nothing
, _subGatewayAddress = Nothing
, _subSelfLink = Nothing
, _subEnableFlowLogs = Nothing
, _subName = Nothing
, _subSecondaryIPRanges = Nothing
, _subCreationTimestamp = Nothing
, _subIPCIdRRange = Nothing
, _subId = Nothing
, _subRegion = Nothing
, _subDescription = Nothing
, _subPrivateIPGoogleAccess = Nothing
}
subKind :: Lens' Subnetwork Text
subKind = lens _subKind (\ s a -> s{_subKind = a})
subFingerprint :: Lens' Subnetwork (Maybe ByteString)
subFingerprint
= lens _subFingerprint
(\ s a -> s{_subFingerprint = a})
. mapping _Bytes
subNetwork :: Lens' Subnetwork (Maybe Text)
subNetwork
= lens _subNetwork (\ s a -> s{_subNetwork = a})
subGatewayAddress :: Lens' Subnetwork (Maybe Text)
subGatewayAddress
= lens _subGatewayAddress
(\ s a -> s{_subGatewayAddress = a})
subSelfLink :: Lens' Subnetwork (Maybe Text)
subSelfLink
= lens _subSelfLink (\ s a -> s{_subSelfLink = a})
subEnableFlowLogs :: Lens' Subnetwork (Maybe Bool)
subEnableFlowLogs
= lens _subEnableFlowLogs
(\ s a -> s{_subEnableFlowLogs = a})
subName :: Lens' Subnetwork (Maybe Text)
subName = lens _subName (\ s a -> s{_subName = a})
subSecondaryIPRanges :: Lens' Subnetwork [SubnetworkSecondaryRange]
subSecondaryIPRanges
= lens _subSecondaryIPRanges
(\ s a -> s{_subSecondaryIPRanges = a})
. _Default
. _Coerce
subCreationTimestamp :: Lens' Subnetwork (Maybe Text)
subCreationTimestamp
= lens _subCreationTimestamp
(\ s a -> s{_subCreationTimestamp = a})
subIPCIdRRange :: Lens' Subnetwork (Maybe Text)
subIPCIdRRange
= lens _subIPCIdRRange
(\ s a -> s{_subIPCIdRRange = a})
subId :: Lens' Subnetwork (Maybe Word64)
subId
= lens _subId (\ s a -> s{_subId = a}) .
mapping _Coerce
subRegion :: Lens' Subnetwork (Maybe Text)
subRegion
= lens _subRegion (\ s a -> s{_subRegion = a})
subDescription :: Lens' Subnetwork (Maybe Text)
subDescription
= lens _subDescription
(\ s a -> s{_subDescription = a})
subPrivateIPGoogleAccess :: Lens' Subnetwork (Maybe Bool)
subPrivateIPGoogleAccess
= lens _subPrivateIPGoogleAccess
(\ s a -> s{_subPrivateIPGoogleAccess = a})
instance FromJSON Subnetwork where
parseJSON
= withObject "Subnetwork"
(\ o ->
Subnetwork' <$>
(o .:? "kind" .!= "compute#subnetwork") <*>
(o .:? "fingerprint")
<*> (o .:? "network")
<*> (o .:? "gatewayAddress")
<*> (o .:? "selfLink")
<*> (o .:? "enableFlowLogs")
<*> (o .:? "name")
<*> (o .:? "secondaryIpRanges" .!= mempty)
<*> (o .:? "creationTimestamp")
<*> (o .:? "ipCidrRange")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "description")
<*> (o .:? "privateIpGoogleAccess"))
instance ToJSON Subnetwork where
toJSON Subnetwork'{..}
= object
(catMaybes
[Just ("kind" .= _subKind),
("fingerprint" .=) <$> _subFingerprint,
("network" .=) <$> _subNetwork,
("gatewayAddress" .=) <$> _subGatewayAddress,
("selfLink" .=) <$> _subSelfLink,
("enableFlowLogs" .=) <$> _subEnableFlowLogs,
("name" .=) <$> _subName,
("secondaryIpRanges" .=) <$> _subSecondaryIPRanges,
("creationTimestamp" .=) <$> _subCreationTimestamp,
("ipCidrRange" .=) <$> _subIPCIdRRange,
("id" .=) <$> _subId, ("region" .=) <$> _subRegion,
("description" .=) <$> _subDescription,
("privateIpGoogleAccess" .=) <$>
_subPrivateIPGoogleAccess])
data HealthCheckListWarning =
HealthCheckListWarning'
{ _hclwData :: !(Maybe [HealthCheckListWarningDataItem])
, _hclwCode :: !(Maybe HealthCheckListWarningCode)
, _hclwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
healthCheckListWarning
:: HealthCheckListWarning
healthCheckListWarning =
HealthCheckListWarning'
{_hclwData = Nothing, _hclwCode = Nothing, _hclwMessage = Nothing}
hclwData :: Lens' HealthCheckListWarning [HealthCheckListWarningDataItem]
hclwData
= lens _hclwData (\ s a -> s{_hclwData = a}) .
_Default
. _Coerce
hclwCode :: Lens' HealthCheckListWarning (Maybe HealthCheckListWarningCode)
hclwCode = lens _hclwCode (\ s a -> s{_hclwCode = a})
hclwMessage :: Lens' HealthCheckListWarning (Maybe Text)
hclwMessage
= lens _hclwMessage (\ s a -> s{_hclwMessage = a})
instance FromJSON HealthCheckListWarning where
parseJSON
= withObject "HealthCheckListWarning"
(\ o ->
HealthCheckListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON HealthCheckListWarning where
toJSON HealthCheckListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _hclwData,
("code" .=) <$> _hclwCode,
("message" .=) <$> _hclwMessage])
data MachineTypeAggregatedList =
MachineTypeAggregatedList'
{ _mtalNextPageToken :: !(Maybe Text)
, _mtalKind :: !Text
, _mtalItems :: !(Maybe MachineTypeAggregatedListItems)
, _mtalSelfLink :: !(Maybe Text)
, _mtalWarning :: !(Maybe MachineTypeAggregatedListWarning)
, _mtalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeAggregatedList
:: MachineTypeAggregatedList
machineTypeAggregatedList =
MachineTypeAggregatedList'
{ _mtalNextPageToken = Nothing
, _mtalKind = "compute#machineTypeAggregatedList"
, _mtalItems = Nothing
, _mtalSelfLink = Nothing
, _mtalWarning = Nothing
, _mtalId = Nothing
}
mtalNextPageToken :: Lens' MachineTypeAggregatedList (Maybe Text)
mtalNextPageToken
= lens _mtalNextPageToken
(\ s a -> s{_mtalNextPageToken = a})
mtalKind :: Lens' MachineTypeAggregatedList Text
mtalKind = lens _mtalKind (\ s a -> s{_mtalKind = a})
mtalItems :: Lens' MachineTypeAggregatedList (Maybe MachineTypeAggregatedListItems)
mtalItems
= lens _mtalItems (\ s a -> s{_mtalItems = a})
mtalSelfLink :: Lens' MachineTypeAggregatedList (Maybe Text)
mtalSelfLink
= lens _mtalSelfLink (\ s a -> s{_mtalSelfLink = a})
mtalWarning :: Lens' MachineTypeAggregatedList (Maybe MachineTypeAggregatedListWarning)
mtalWarning
= lens _mtalWarning (\ s a -> s{_mtalWarning = a})
mtalId :: Lens' MachineTypeAggregatedList (Maybe Text)
mtalId = lens _mtalId (\ s a -> s{_mtalId = a})
instance FromJSON MachineTypeAggregatedList where
parseJSON
= withObject "MachineTypeAggregatedList"
(\ o ->
MachineTypeAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#machineTypeAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON MachineTypeAggregatedList where
toJSON MachineTypeAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _mtalNextPageToken,
Just ("kind" .= _mtalKind),
("items" .=) <$> _mtalItems,
("selfLink" .=) <$> _mtalSelfLink,
("warning" .=) <$> _mtalWarning,
("id" .=) <$> _mtalId])
data NetworkEndpointGroupsListNetworkEndpointsWarningDataItem =
NetworkEndpointGroupsListNetworkEndpointsWarningDataItem'
{ _neglnewdiValue :: !(Maybe Text)
, _neglnewdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupsListNetworkEndpointsWarningDataItem
:: NetworkEndpointGroupsListNetworkEndpointsWarningDataItem
networkEndpointGroupsListNetworkEndpointsWarningDataItem =
NetworkEndpointGroupsListNetworkEndpointsWarningDataItem'
{_neglnewdiValue = Nothing, _neglnewdiKey = Nothing}
neglnewdiValue :: Lens' NetworkEndpointGroupsListNetworkEndpointsWarningDataItem (Maybe Text)
neglnewdiValue
= lens _neglnewdiValue
(\ s a -> s{_neglnewdiValue = a})
neglnewdiKey :: Lens' NetworkEndpointGroupsListNetworkEndpointsWarningDataItem (Maybe Text)
neglnewdiKey
= lens _neglnewdiKey (\ s a -> s{_neglnewdiKey = a})
instance FromJSON
NetworkEndpointGroupsListNetworkEndpointsWarningDataItem
where
parseJSON
= withObject
"NetworkEndpointGroupsListNetworkEndpointsWarningDataItem"
(\ o ->
NetworkEndpointGroupsListNetworkEndpointsWarningDataItem'
<$> (o .:? "value") <*> (o .:? "key"))
instance ToJSON
NetworkEndpointGroupsListNetworkEndpointsWarningDataItem
where
toJSON
NetworkEndpointGroupsListNetworkEndpointsWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _neglnewdiValue,
("key" .=) <$> _neglnewdiKey])
data NodeGroupsScopedListWarning =
NodeGroupsScopedListWarning'
{ _ngslwData :: !(Maybe [NodeGroupsScopedListWarningDataItem])
, _ngslwCode :: !(Maybe NodeGroupsScopedListWarningCode)
, _ngslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsScopedListWarning
:: NodeGroupsScopedListWarning
nodeGroupsScopedListWarning =
NodeGroupsScopedListWarning'
{_ngslwData = Nothing, _ngslwCode = Nothing, _ngslwMessage = Nothing}
ngslwData :: Lens' NodeGroupsScopedListWarning [NodeGroupsScopedListWarningDataItem]
ngslwData
= lens _ngslwData (\ s a -> s{_ngslwData = a}) .
_Default
. _Coerce
ngslwCode :: Lens' NodeGroupsScopedListWarning (Maybe NodeGroupsScopedListWarningCode)
ngslwCode
= lens _ngslwCode (\ s a -> s{_ngslwCode = a})
ngslwMessage :: Lens' NodeGroupsScopedListWarning (Maybe Text)
ngslwMessage
= lens _ngslwMessage (\ s a -> s{_ngslwMessage = a})
instance FromJSON NodeGroupsScopedListWarning where
parseJSON
= withObject "NodeGroupsScopedListWarning"
(\ o ->
NodeGroupsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeGroupsScopedListWarning where
toJSON NodeGroupsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ngslwData,
("code" .=) <$> _ngslwCode,
("message" .=) <$> _ngslwMessage])
data NodeTypeList =
NodeTypeList'
{ _ntltNextPageToken :: !(Maybe Text)
, _ntltKind :: !Text
, _ntltItems :: !(Maybe [NodeType])
, _ntltSelfLink :: !(Maybe Text)
, _ntltWarning :: !(Maybe NodeTypeListWarning)
, _ntltId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypeList
:: NodeTypeList
nodeTypeList =
NodeTypeList'
{ _ntltNextPageToken = Nothing
, _ntltKind = "compute#nodeTypeList"
, _ntltItems = Nothing
, _ntltSelfLink = Nothing
, _ntltWarning = Nothing
, _ntltId = Nothing
}
ntltNextPageToken :: Lens' NodeTypeList (Maybe Text)
ntltNextPageToken
= lens _ntltNextPageToken
(\ s a -> s{_ntltNextPageToken = a})
ntltKind :: Lens' NodeTypeList Text
ntltKind = lens _ntltKind (\ s a -> s{_ntltKind = a})
ntltItems :: Lens' NodeTypeList [NodeType]
ntltItems
= lens _ntltItems (\ s a -> s{_ntltItems = a}) .
_Default
. _Coerce
ntltSelfLink :: Lens' NodeTypeList (Maybe Text)
ntltSelfLink
= lens _ntltSelfLink (\ s a -> s{_ntltSelfLink = a})
ntltWarning :: Lens' NodeTypeList (Maybe NodeTypeListWarning)
ntltWarning
= lens _ntltWarning (\ s a -> s{_ntltWarning = a})
ntltId :: Lens' NodeTypeList (Maybe Text)
ntltId = lens _ntltId (\ s a -> s{_ntltId = a})
instance FromJSON NodeTypeList where
parseJSON
= withObject "NodeTypeList"
(\ o ->
NodeTypeList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#nodeTypeList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NodeTypeList where
toJSON NodeTypeList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ntltNextPageToken,
Just ("kind" .= _ntltKind),
("items" .=) <$> _ntltItems,
("selfLink" .=) <$> _ntltSelfLink,
("warning" .=) <$> _ntltWarning,
("id" .=) <$> _ntltId])
data DiskType =
DiskType'
{ _dtKind :: !Text
, _dtZone :: !(Maybe Text)
, _dtSelfLink :: !(Maybe Text)
, _dtName :: !(Maybe Text)
, _dtCreationTimestamp :: !(Maybe Text)
, _dtId :: !(Maybe (Textual Word64))
, _dtRegion :: !(Maybe Text)
, _dtValidDiskSize :: !(Maybe Text)
, _dtDescription :: !(Maybe Text)
, _dtDefaultDiskSizeGb :: !(Maybe (Textual Int64))
, _dtDeprecated :: !(Maybe DeprecationStatus)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskType
:: DiskType
diskType =
DiskType'
{ _dtKind = "compute#diskType"
, _dtZone = Nothing
, _dtSelfLink = Nothing
, _dtName = Nothing
, _dtCreationTimestamp = Nothing
, _dtId = Nothing
, _dtRegion = Nothing
, _dtValidDiskSize = Nothing
, _dtDescription = Nothing
, _dtDefaultDiskSizeGb = Nothing
, _dtDeprecated = Nothing
}
dtKind :: Lens' DiskType Text
dtKind = lens _dtKind (\ s a -> s{_dtKind = a})
dtZone :: Lens' DiskType (Maybe Text)
dtZone = lens _dtZone (\ s a -> s{_dtZone = a})
dtSelfLink :: Lens' DiskType (Maybe Text)
dtSelfLink
= lens _dtSelfLink (\ s a -> s{_dtSelfLink = a})
dtName :: Lens' DiskType (Maybe Text)
dtName = lens _dtName (\ s a -> s{_dtName = a})
dtCreationTimestamp :: Lens' DiskType (Maybe Text)
dtCreationTimestamp
= lens _dtCreationTimestamp
(\ s a -> s{_dtCreationTimestamp = a})
dtId :: Lens' DiskType (Maybe Word64)
dtId
= lens _dtId (\ s a -> s{_dtId = a}) .
mapping _Coerce
dtRegion :: Lens' DiskType (Maybe Text)
dtRegion = lens _dtRegion (\ s a -> s{_dtRegion = a})
dtValidDiskSize :: Lens' DiskType (Maybe Text)
dtValidDiskSize
= lens _dtValidDiskSize
(\ s a -> s{_dtValidDiskSize = a})
dtDescription :: Lens' DiskType (Maybe Text)
dtDescription
= lens _dtDescription
(\ s a -> s{_dtDescription = a})
dtDefaultDiskSizeGb :: Lens' DiskType (Maybe Int64)
dtDefaultDiskSizeGb
= lens _dtDefaultDiskSizeGb
(\ s a -> s{_dtDefaultDiskSizeGb = a})
. mapping _Coerce
dtDeprecated :: Lens' DiskType (Maybe DeprecationStatus)
dtDeprecated
= lens _dtDeprecated (\ s a -> s{_dtDeprecated = a})
instance FromJSON DiskType where
parseJSON
= withObject "DiskType"
(\ o ->
DiskType' <$>
(o .:? "kind" .!= "compute#diskType") <*>
(o .:? "zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "validDiskSize")
<*> (o .:? "description")
<*> (o .:? "defaultDiskSizeGb")
<*> (o .:? "deprecated"))
instance ToJSON DiskType where
toJSON DiskType'{..}
= object
(catMaybes
[Just ("kind" .= _dtKind), ("zone" .=) <$> _dtZone,
("selfLink" .=) <$> _dtSelfLink,
("name" .=) <$> _dtName,
("creationTimestamp" .=) <$> _dtCreationTimestamp,
("id" .=) <$> _dtId, ("region" .=) <$> _dtRegion,
("validDiskSize" .=) <$> _dtValidDiskSize,
("description" .=) <$> _dtDescription,
("defaultDiskSizeGb" .=) <$> _dtDefaultDiskSizeGb,
("deprecated" .=) <$> _dtDeprecated])
data NodeTemplateAggregatedListWarning =
NodeTemplateAggregatedListWarning'
{ _ntalwData :: !(Maybe [NodeTemplateAggregatedListWarningDataItem])
, _ntalwCode :: !(Maybe NodeTemplateAggregatedListWarningCode)
, _ntalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateAggregatedListWarning
:: NodeTemplateAggregatedListWarning
nodeTemplateAggregatedListWarning =
NodeTemplateAggregatedListWarning'
{_ntalwData = Nothing, _ntalwCode = Nothing, _ntalwMessage = Nothing}
ntalwData :: Lens' NodeTemplateAggregatedListWarning [NodeTemplateAggregatedListWarningDataItem]
ntalwData
= lens _ntalwData (\ s a -> s{_ntalwData = a}) .
_Default
. _Coerce
ntalwCode :: Lens' NodeTemplateAggregatedListWarning (Maybe NodeTemplateAggregatedListWarningCode)
ntalwCode
= lens _ntalwCode (\ s a -> s{_ntalwCode = a})
ntalwMessage :: Lens' NodeTemplateAggregatedListWarning (Maybe Text)
ntalwMessage
= lens _ntalwMessage (\ s a -> s{_ntalwMessage = a})
instance FromJSON NodeTemplateAggregatedListWarning
where
parseJSON
= withObject "NodeTemplateAggregatedListWarning"
(\ o ->
NodeTemplateAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeTemplateAggregatedListWarning
where
toJSON NodeTemplateAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ntalwData,
("code" .=) <$> _ntalwCode,
("message" .=) <$> _ntalwMessage])
data AutoscalerAggregatedListWarningDataItem =
AutoscalerAggregatedListWarningDataItem'
{ _aalwdiValue :: !(Maybe Text)
, _aalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerAggregatedListWarningDataItem
:: AutoscalerAggregatedListWarningDataItem
autoscalerAggregatedListWarningDataItem =
AutoscalerAggregatedListWarningDataItem'
{_aalwdiValue = Nothing, _aalwdiKey = Nothing}
aalwdiValue :: Lens' AutoscalerAggregatedListWarningDataItem (Maybe Text)
aalwdiValue
= lens _aalwdiValue (\ s a -> s{_aalwdiValue = a})
aalwdiKey :: Lens' AutoscalerAggregatedListWarningDataItem (Maybe Text)
aalwdiKey
= lens _aalwdiKey (\ s a -> s{_aalwdiKey = a})
instance FromJSON
AutoscalerAggregatedListWarningDataItem
where
parseJSON
= withObject
"AutoscalerAggregatedListWarningDataItem"
(\ o ->
AutoscalerAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
AutoscalerAggregatedListWarningDataItem
where
toJSON AutoscalerAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _aalwdiValue,
("key" .=) <$> _aalwdiKey])
newtype ZoneSetLabelsRequestLabels =
ZoneSetLabelsRequestLabels'
{ _zslrlAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
zoneSetLabelsRequestLabels
:: HashMap Text Text
-> ZoneSetLabelsRequestLabels
zoneSetLabelsRequestLabels pZslrlAddtional_ =
ZoneSetLabelsRequestLabels' {_zslrlAddtional = _Coerce # pZslrlAddtional_}
zslrlAddtional :: Lens' ZoneSetLabelsRequestLabels (HashMap Text Text)
zslrlAddtional
= lens _zslrlAddtional
(\ s a -> s{_zslrlAddtional = a})
. _Coerce
instance FromJSON ZoneSetLabelsRequestLabels where
parseJSON
= withObject "ZoneSetLabelsRequestLabels"
(\ o ->
ZoneSetLabelsRequestLabels' <$> (parseJSONObject o))
instance ToJSON ZoneSetLabelsRequestLabels where
toJSON = toJSON . _zslrlAddtional
data NodeTypeListWarningDataItem =
NodeTypeListWarningDataItem'
{ _ntlwdiValue :: !(Maybe Text)
, _ntlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypeListWarningDataItem
:: NodeTypeListWarningDataItem
nodeTypeListWarningDataItem =
NodeTypeListWarningDataItem' {_ntlwdiValue = Nothing, _ntlwdiKey = Nothing}
ntlwdiValue :: Lens' NodeTypeListWarningDataItem (Maybe Text)
ntlwdiValue
= lens _ntlwdiValue (\ s a -> s{_ntlwdiValue = a})
ntlwdiKey :: Lens' NodeTypeListWarningDataItem (Maybe Text)
ntlwdiKey
= lens _ntlwdiKey (\ s a -> s{_ntlwdiKey = a})
instance FromJSON NodeTypeListWarningDataItem where
parseJSON
= withObject "NodeTypeListWarningDataItem"
(\ o ->
NodeTypeListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NodeTypeListWarningDataItem where
toJSON NodeTypeListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ntlwdiValue,
("key" .=) <$> _ntlwdiKey])
data URLMapValidationResult =
URLMapValidationResult'
{ _umvrLoadErrors :: !(Maybe [Text])
, _umvrLoadSucceeded :: !(Maybe Bool)
, _umvrTestPassed :: !(Maybe Bool)
, _umvrTestFailures :: !(Maybe [TestFailure])
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapValidationResult
:: URLMapValidationResult
urlMapValidationResult =
URLMapValidationResult'
{ _umvrLoadErrors = Nothing
, _umvrLoadSucceeded = Nothing
, _umvrTestPassed = Nothing
, _umvrTestFailures = Nothing
}
umvrLoadErrors :: Lens' URLMapValidationResult [Text]
umvrLoadErrors
= lens _umvrLoadErrors
(\ s a -> s{_umvrLoadErrors = a})
. _Default
. _Coerce
umvrLoadSucceeded :: Lens' URLMapValidationResult (Maybe Bool)
umvrLoadSucceeded
= lens _umvrLoadSucceeded
(\ s a -> s{_umvrLoadSucceeded = a})
umvrTestPassed :: Lens' URLMapValidationResult (Maybe Bool)
umvrTestPassed
= lens _umvrTestPassed
(\ s a -> s{_umvrTestPassed = a})
umvrTestFailures :: Lens' URLMapValidationResult [TestFailure]
umvrTestFailures
= lens _umvrTestFailures
(\ s a -> s{_umvrTestFailures = a})
. _Default
. _Coerce
instance FromJSON URLMapValidationResult where
parseJSON
= withObject "URLMapValidationResult"
(\ o ->
URLMapValidationResult' <$>
(o .:? "loadErrors" .!= mempty) <*>
(o .:? "loadSucceeded")
<*> (o .:? "testPassed")
<*> (o .:? "testFailures" .!= mempty))
instance ToJSON URLMapValidationResult where
toJSON URLMapValidationResult'{..}
= object
(catMaybes
[("loadErrors" .=) <$> _umvrLoadErrors,
("loadSucceeded" .=) <$> _umvrLoadSucceeded,
("testPassed" .=) <$> _umvrTestPassed,
("testFailures" .=) <$> _umvrTestFailures])
data Metadata =
Metadata'
{ _mKind :: !Text
, _mFingerprint :: !(Maybe Bytes)
, _mItems :: !(Maybe [MetadataItemsItem])
}
deriving (Eq, Show, Data, Typeable, Generic)
metadata
:: Metadata
metadata =
Metadata'
{_mKind = "compute#metadata", _mFingerprint = Nothing, _mItems = Nothing}
mKind :: Lens' Metadata Text
mKind = lens _mKind (\ s a -> s{_mKind = a})
mFingerprint :: Lens' Metadata (Maybe ByteString)
mFingerprint
= lens _mFingerprint (\ s a -> s{_mFingerprint = a})
. mapping _Bytes
mItems :: Lens' Metadata [MetadataItemsItem]
mItems
= lens _mItems (\ s a -> s{_mItems = a}) . _Default .
_Coerce
instance FromJSON Metadata where
parseJSON
= withObject "Metadata"
(\ o ->
Metadata' <$>
(o .:? "kind" .!= "compute#metadata") <*>
(o .:? "fingerprint")
<*> (o .:? "items" .!= mempty))
instance ToJSON Metadata where
toJSON Metadata'{..}
= object
(catMaybes
[Just ("kind" .= _mKind),
("fingerprint" .=) <$> _mFingerprint,
("items" .=) <$> _mItems])
data RouteWarningsItem =
RouteWarningsItem'
{ _rwiData :: !(Maybe [RouteWarningsItemDataItem])
, _rwiCode :: !(Maybe RouteWarningsItemCode)
, _rwiMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routeWarningsItem
:: RouteWarningsItem
routeWarningsItem =
RouteWarningsItem'
{_rwiData = Nothing, _rwiCode = Nothing, _rwiMessage = Nothing}
rwiData :: Lens' RouteWarningsItem [RouteWarningsItemDataItem]
rwiData
= lens _rwiData (\ s a -> s{_rwiData = a}) . _Default
. _Coerce
rwiCode :: Lens' RouteWarningsItem (Maybe RouteWarningsItemCode)
rwiCode = lens _rwiCode (\ s a -> s{_rwiCode = a})
rwiMessage :: Lens' RouteWarningsItem (Maybe Text)
rwiMessage
= lens _rwiMessage (\ s a -> s{_rwiMessage = a})
instance FromJSON RouteWarningsItem where
parseJSON
= withObject "RouteWarningsItem"
(\ o ->
RouteWarningsItem' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RouteWarningsItem where
toJSON RouteWarningsItem'{..}
= object
(catMaybes
[("data" .=) <$> _rwiData, ("code" .=) <$> _rwiCode,
("message" .=) <$> _rwiMessage])
data NodeGroupsListNodes =
NodeGroupsListNodes'
{ _nglnNextPageToken :: !(Maybe Text)
, _nglnKind :: !Text
, _nglnItems :: !(Maybe [NodeGroupNode])
, _nglnSelfLink :: !(Maybe Text)
, _nglnWarning :: !(Maybe NodeGroupsListNodesWarning)
, _nglnId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeGroupsListNodes
:: NodeGroupsListNodes
nodeGroupsListNodes =
NodeGroupsListNodes'
{ _nglnNextPageToken = Nothing
, _nglnKind = "compute#nodeGroupsListNodes"
, _nglnItems = Nothing
, _nglnSelfLink = Nothing
, _nglnWarning = Nothing
, _nglnId = Nothing
}
nglnNextPageToken :: Lens' NodeGroupsListNodes (Maybe Text)
nglnNextPageToken
= lens _nglnNextPageToken
(\ s a -> s{_nglnNextPageToken = a})
nglnKind :: Lens' NodeGroupsListNodes Text
nglnKind = lens _nglnKind (\ s a -> s{_nglnKind = a})
nglnItems :: Lens' NodeGroupsListNodes [NodeGroupNode]
nglnItems
= lens _nglnItems (\ s a -> s{_nglnItems = a}) .
_Default
. _Coerce
nglnSelfLink :: Lens' NodeGroupsListNodes (Maybe Text)
nglnSelfLink
= lens _nglnSelfLink (\ s a -> s{_nglnSelfLink = a})
nglnWarning :: Lens' NodeGroupsListNodes (Maybe NodeGroupsListNodesWarning)
nglnWarning
= lens _nglnWarning (\ s a -> s{_nglnWarning = a})
nglnId :: Lens' NodeGroupsListNodes (Maybe Text)
nglnId = lens _nglnId (\ s a -> s{_nglnId = a})
instance FromJSON NodeGroupsListNodes where
parseJSON
= withObject "NodeGroupsListNodes"
(\ o ->
NodeGroupsListNodes' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#nodeGroupsListNodes")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NodeGroupsListNodes where
toJSON NodeGroupsListNodes'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _nglnNextPageToken,
Just ("kind" .= _nglnKind),
("items" .=) <$> _nglnItems,
("selfLink" .=) <$> _nglnSelfLink,
("warning" .=) <$> _nglnWarning,
("id" .=) <$> _nglnId])
data InterconnectLocationList =
InterconnectLocationList'
{ _illNextPageToken :: !(Maybe Text)
, _illKind :: !Text
, _illItems :: !(Maybe [InterconnectLocation])
, _illSelfLink :: !(Maybe Text)
, _illWarning :: !(Maybe InterconnectLocationListWarning)
, _illId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectLocationList
:: InterconnectLocationList
interconnectLocationList =
InterconnectLocationList'
{ _illNextPageToken = Nothing
, _illKind = "compute#interconnectLocationList"
, _illItems = Nothing
, _illSelfLink = Nothing
, _illWarning = Nothing
, _illId = Nothing
}
illNextPageToken :: Lens' InterconnectLocationList (Maybe Text)
illNextPageToken
= lens _illNextPageToken
(\ s a -> s{_illNextPageToken = a})
illKind :: Lens' InterconnectLocationList Text
illKind = lens _illKind (\ s a -> s{_illKind = a})
illItems :: Lens' InterconnectLocationList [InterconnectLocation]
illItems
= lens _illItems (\ s a -> s{_illItems = a}) .
_Default
. _Coerce
illSelfLink :: Lens' InterconnectLocationList (Maybe Text)
illSelfLink
= lens _illSelfLink (\ s a -> s{_illSelfLink = a})
illWarning :: Lens' InterconnectLocationList (Maybe InterconnectLocationListWarning)
illWarning
= lens _illWarning (\ s a -> s{_illWarning = a})
illId :: Lens' InterconnectLocationList (Maybe Text)
illId = lens _illId (\ s a -> s{_illId = a})
instance FromJSON InterconnectLocationList where
parseJSON
= withObject "InterconnectLocationList"
(\ o ->
InterconnectLocationList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#interconnectLocationList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InterconnectLocationList where
toJSON InterconnectLocationList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _illNextPageToken,
Just ("kind" .= _illKind),
("items" .=) <$> _illItems,
("selfLink" .=) <$> _illSelfLink,
("warning" .=) <$> _illWarning,
("id" .=) <$> _illId])
newtype SSLPoliciesListAvailableFeaturesResponse =
SSLPoliciesListAvailableFeaturesResponse'
{ _splafrFeatures :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPoliciesListAvailableFeaturesResponse
:: SSLPoliciesListAvailableFeaturesResponse
sslPoliciesListAvailableFeaturesResponse =
SSLPoliciesListAvailableFeaturesResponse' {_splafrFeatures = Nothing}
splafrFeatures :: Lens' SSLPoliciesListAvailableFeaturesResponse [Text]
splafrFeatures
= lens _splafrFeatures
(\ s a -> s{_splafrFeatures = a})
. _Default
. _Coerce
instance FromJSON
SSLPoliciesListAvailableFeaturesResponse
where
parseJSON
= withObject
"SSLPoliciesListAvailableFeaturesResponse"
(\ o ->
SSLPoliciesListAvailableFeaturesResponse' <$>
(o .:? "features" .!= mempty))
instance ToJSON
SSLPoliciesListAvailableFeaturesResponse
where
toJSON SSLPoliciesListAvailableFeaturesResponse'{..}
= object
(catMaybes [("features" .=) <$> _splafrFeatures])
newtype InstancePropertiesLabels =
InstancePropertiesLabels'
{ _iplAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
instancePropertiesLabels
:: HashMap Text Text
-> InstancePropertiesLabels
instancePropertiesLabels pIplAddtional_ =
InstancePropertiesLabels' {_iplAddtional = _Coerce # pIplAddtional_}
iplAddtional :: Lens' InstancePropertiesLabels (HashMap Text Text)
iplAddtional
= lens _iplAddtional (\ s a -> s{_iplAddtional = a})
. _Coerce
instance FromJSON InstancePropertiesLabels where
parseJSON
= withObject "InstancePropertiesLabels"
(\ o ->
InstancePropertiesLabels' <$> (parseJSONObject o))
instance ToJSON InstancePropertiesLabels where
toJSON = toJSON . _iplAddtional
data MachineTypesScopedListWarningDataItem =
MachineTypesScopedListWarningDataItem'
{ _mtslwdiValue :: !(Maybe Text)
, _mtslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypesScopedListWarningDataItem
:: MachineTypesScopedListWarningDataItem
machineTypesScopedListWarningDataItem =
MachineTypesScopedListWarningDataItem'
{_mtslwdiValue = Nothing, _mtslwdiKey = Nothing}
mtslwdiValue :: Lens' MachineTypesScopedListWarningDataItem (Maybe Text)
mtslwdiValue
= lens _mtslwdiValue (\ s a -> s{_mtslwdiValue = a})
mtslwdiKey :: Lens' MachineTypesScopedListWarningDataItem (Maybe Text)
mtslwdiKey
= lens _mtslwdiKey (\ s a -> s{_mtslwdiKey = a})
instance FromJSON
MachineTypesScopedListWarningDataItem
where
parseJSON
= withObject "MachineTypesScopedListWarningDataItem"
(\ o ->
MachineTypesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON MachineTypesScopedListWarningDataItem
where
toJSON MachineTypesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _mtslwdiValue,
("key" .=) <$> _mtslwdiKey])
data DiskTypeListWarning =
DiskTypeListWarning'
{ _dtlwData :: !(Maybe [DiskTypeListWarningDataItem])
, _dtlwCode :: !(Maybe DiskTypeListWarningCode)
, _dtlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypeListWarning
:: DiskTypeListWarning
diskTypeListWarning =
DiskTypeListWarning'
{_dtlwData = Nothing, _dtlwCode = Nothing, _dtlwMessage = Nothing}
dtlwData :: Lens' DiskTypeListWarning [DiskTypeListWarningDataItem]
dtlwData
= lens _dtlwData (\ s a -> s{_dtlwData = a}) .
_Default
. _Coerce
dtlwCode :: Lens' DiskTypeListWarning (Maybe DiskTypeListWarningCode)
dtlwCode = lens _dtlwCode (\ s a -> s{_dtlwCode = a})
dtlwMessage :: Lens' DiskTypeListWarning (Maybe Text)
dtlwMessage
= lens _dtlwMessage (\ s a -> s{_dtlwMessage = a})
instance FromJSON DiskTypeListWarning where
parseJSON
= withObject "DiskTypeListWarning"
(\ o ->
DiskTypeListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON DiskTypeListWarning where
toJSON DiskTypeListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _dtlwData,
("code" .=) <$> _dtlwCode,
("message" .=) <$> _dtlwMessage])
data NodeTemplateListWarningDataItem =
NodeTemplateListWarningDataItem'
{ _nodValue :: !(Maybe Text)
, _nodKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateListWarningDataItem
:: NodeTemplateListWarningDataItem
nodeTemplateListWarningDataItem =
NodeTemplateListWarningDataItem' {_nodValue = Nothing, _nodKey = Nothing}
nodValue :: Lens' NodeTemplateListWarningDataItem (Maybe Text)
nodValue = lens _nodValue (\ s a -> s{_nodValue = a})
nodKey :: Lens' NodeTemplateListWarningDataItem (Maybe Text)
nodKey = lens _nodKey (\ s a -> s{_nodKey = a})
instance FromJSON NodeTemplateListWarningDataItem
where
parseJSON
= withObject "NodeTemplateListWarningDataItem"
(\ o ->
NodeTemplateListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NodeTemplateListWarningDataItem where
toJSON NodeTemplateListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _nodValue, ("key" .=) <$> _nodKey])
data RegionListWarningDataItem =
RegionListWarningDataItem'
{ _regValue :: !(Maybe Text)
, _regKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionListWarningDataItem
:: RegionListWarningDataItem
regionListWarningDataItem =
RegionListWarningDataItem' {_regValue = Nothing, _regKey = Nothing}
regValue :: Lens' RegionListWarningDataItem (Maybe Text)
regValue = lens _regValue (\ s a -> s{_regValue = a})
regKey :: Lens' RegionListWarningDataItem (Maybe Text)
regKey = lens _regKey (\ s a -> s{_regKey = a})
instance FromJSON RegionListWarningDataItem where
parseJSON
= withObject "RegionListWarningDataItem"
(\ o ->
RegionListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RegionListWarningDataItem where
toJSON RegionListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _regValue, ("key" .=) <$> _regKey])
newtype InstancesSetMachineResourcesRequest =
InstancesSetMachineResourcesRequest'
{ _ismrrGuestAccelerators :: Maybe [AcceleratorConfig]
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesSetMachineResourcesRequest
:: InstancesSetMachineResourcesRequest
instancesSetMachineResourcesRequest =
InstancesSetMachineResourcesRequest' {_ismrrGuestAccelerators = Nothing}
ismrrGuestAccelerators :: Lens' InstancesSetMachineResourcesRequest [AcceleratorConfig]
ismrrGuestAccelerators
= lens _ismrrGuestAccelerators
(\ s a -> s{_ismrrGuestAccelerators = a})
. _Default
. _Coerce
instance FromJSON InstancesSetMachineResourcesRequest
where
parseJSON
= withObject "InstancesSetMachineResourcesRequest"
(\ o ->
InstancesSetMachineResourcesRequest' <$>
(o .:? "guestAccelerators" .!= mempty))
instance ToJSON InstancesSetMachineResourcesRequest
where
toJSON InstancesSetMachineResourcesRequest'{..}
= object
(catMaybes
[("guestAccelerators" .=) <$>
_ismrrGuestAccelerators])
data InstancesSetServiceAccountRequest =
InstancesSetServiceAccountRequest'
{ _issarEmail :: !(Maybe Text)
, _issarScopes :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesSetServiceAccountRequest
:: InstancesSetServiceAccountRequest
instancesSetServiceAccountRequest =
InstancesSetServiceAccountRequest'
{_issarEmail = Nothing, _issarScopes = Nothing}
issarEmail :: Lens' InstancesSetServiceAccountRequest (Maybe Text)
issarEmail
= lens _issarEmail (\ s a -> s{_issarEmail = a})
issarScopes :: Lens' InstancesSetServiceAccountRequest [Text]
issarScopes
= lens _issarScopes (\ s a -> s{_issarScopes = a}) .
_Default
. _Coerce
instance FromJSON InstancesSetServiceAccountRequest
where
parseJSON
= withObject "InstancesSetServiceAccountRequest"
(\ o ->
InstancesSetServiceAccountRequest' <$>
(o .:? "email") <*> (o .:? "scopes" .!= mempty))
instance ToJSON InstancesSetServiceAccountRequest
where
toJSON InstancesSetServiceAccountRequest'{..}
= object
(catMaybes
[("email" .=) <$> _issarEmail,
("scopes" .=) <$> _issarScopes])
newtype SecurityPolicyReference =
SecurityPolicyReference'
{ _sprSecurityPolicy :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicyReference
:: SecurityPolicyReference
securityPolicyReference =
SecurityPolicyReference' {_sprSecurityPolicy = Nothing}
sprSecurityPolicy :: Lens' SecurityPolicyReference (Maybe Text)
sprSecurityPolicy
= lens _sprSecurityPolicy
(\ s a -> s{_sprSecurityPolicy = a})
instance FromJSON SecurityPolicyReference where
parseJSON
= withObject "SecurityPolicyReference"
(\ o ->
SecurityPolicyReference' <$>
(o .:? "securityPolicy"))
instance ToJSON SecurityPolicyReference where
toJSON SecurityPolicyReference'{..}
= object
(catMaybes
[("securityPolicy" .=) <$> _sprSecurityPolicy])
data DiskTypesScopedListWarningDataItem =
DiskTypesScopedListWarningDataItem'
{ _dtslwdiValue :: !(Maybe Text)
, _dtslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypesScopedListWarningDataItem
:: DiskTypesScopedListWarningDataItem
diskTypesScopedListWarningDataItem =
DiskTypesScopedListWarningDataItem'
{_dtslwdiValue = Nothing, _dtslwdiKey = Nothing}
dtslwdiValue :: Lens' DiskTypesScopedListWarningDataItem (Maybe Text)
dtslwdiValue
= lens _dtslwdiValue (\ s a -> s{_dtslwdiValue = a})
dtslwdiKey :: Lens' DiskTypesScopedListWarningDataItem (Maybe Text)
dtslwdiKey
= lens _dtslwdiKey (\ s a -> s{_dtslwdiKey = a})
instance FromJSON DiskTypesScopedListWarningDataItem
where
parseJSON
= withObject "DiskTypesScopedListWarningDataItem"
(\ o ->
DiskTypesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON DiskTypesScopedListWarningDataItem
where
toJSON DiskTypesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _dtslwdiValue,
("key" .=) <$> _dtslwdiKey])
data VMEndpointNATMAppingsInterfaceNATMAppings =
VMEndpointNATMAppingsInterfaceNATMAppings'
{ _vmenatmainatmaSourceAliasIPRange :: !(Maybe Text)
, _vmenatmainatmaSourceVirtualIP :: !(Maybe Text)
, _vmenatmainatmaNATIPPortRanges :: !(Maybe [Text])
, _vmenatmainatmaNumTotalNATPorts :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
vMEndpointNATMAppingsInterfaceNATMAppings
:: VMEndpointNATMAppingsInterfaceNATMAppings
vMEndpointNATMAppingsInterfaceNATMAppings =
VMEndpointNATMAppingsInterfaceNATMAppings'
{ _vmenatmainatmaSourceAliasIPRange = Nothing
, _vmenatmainatmaSourceVirtualIP = Nothing
, _vmenatmainatmaNATIPPortRanges = Nothing
, _vmenatmainatmaNumTotalNATPorts = Nothing
}
vmenatmainatmaSourceAliasIPRange :: Lens' VMEndpointNATMAppingsInterfaceNATMAppings (Maybe Text)
vmenatmainatmaSourceAliasIPRange
= lens _vmenatmainatmaSourceAliasIPRange
(\ s a -> s{_vmenatmainatmaSourceAliasIPRange = a})
vmenatmainatmaSourceVirtualIP :: Lens' VMEndpointNATMAppingsInterfaceNATMAppings (Maybe Text)
vmenatmainatmaSourceVirtualIP
= lens _vmenatmainatmaSourceVirtualIP
(\ s a -> s{_vmenatmainatmaSourceVirtualIP = a})
vmenatmainatmaNATIPPortRanges :: Lens' VMEndpointNATMAppingsInterfaceNATMAppings [Text]
vmenatmainatmaNATIPPortRanges
= lens _vmenatmainatmaNATIPPortRanges
(\ s a -> s{_vmenatmainatmaNATIPPortRanges = a})
. _Default
. _Coerce
vmenatmainatmaNumTotalNATPorts :: Lens' VMEndpointNATMAppingsInterfaceNATMAppings (Maybe Int32)
vmenatmainatmaNumTotalNATPorts
= lens _vmenatmainatmaNumTotalNATPorts
(\ s a -> s{_vmenatmainatmaNumTotalNATPorts = a})
. mapping _Coerce
instance FromJSON
VMEndpointNATMAppingsInterfaceNATMAppings
where
parseJSON
= withObject
"VMEndpointNATMAppingsInterfaceNATMAppings"
(\ o ->
VMEndpointNATMAppingsInterfaceNATMAppings' <$>
(o .:? "sourceAliasIpRange") <*>
(o .:? "sourceVirtualIp")
<*> (o .:? "natIpPortRanges" .!= mempty)
<*> (o .:? "numTotalNatPorts"))
instance ToJSON
VMEndpointNATMAppingsInterfaceNATMAppings
where
toJSON VMEndpointNATMAppingsInterfaceNATMAppings'{..}
= object
(catMaybes
[("sourceAliasIpRange" .=) <$>
_vmenatmainatmaSourceAliasIPRange,
("sourceVirtualIp" .=) <$>
_vmenatmainatmaSourceVirtualIP,
("natIpPortRanges" .=) <$>
_vmenatmainatmaNATIPPortRanges,
("numTotalNatPorts" .=) <$>
_vmenatmainatmaNumTotalNATPorts])
data VPNTunnelAggregatedListWarning =
VPNTunnelAggregatedListWarning'
{ _vtalwData :: !(Maybe [VPNTunnelAggregatedListWarningDataItem])
, _vtalwCode :: !(Maybe VPNTunnelAggregatedListWarningCode)
, _vtalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelAggregatedListWarning
:: VPNTunnelAggregatedListWarning
vpnTunnelAggregatedListWarning =
VPNTunnelAggregatedListWarning'
{_vtalwData = Nothing, _vtalwCode = Nothing, _vtalwMessage = Nothing}
vtalwData :: Lens' VPNTunnelAggregatedListWarning [VPNTunnelAggregatedListWarningDataItem]
vtalwData
= lens _vtalwData (\ s a -> s{_vtalwData = a}) .
_Default
. _Coerce
vtalwCode :: Lens' VPNTunnelAggregatedListWarning (Maybe VPNTunnelAggregatedListWarningCode)
vtalwCode
= lens _vtalwCode (\ s a -> s{_vtalwCode = a})
vtalwMessage :: Lens' VPNTunnelAggregatedListWarning (Maybe Text)
vtalwMessage
= lens _vtalwMessage (\ s a -> s{_vtalwMessage = a})
instance FromJSON VPNTunnelAggregatedListWarning
where
parseJSON
= withObject "VPNTunnelAggregatedListWarning"
(\ o ->
VPNTunnelAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON VPNTunnelAggregatedListWarning where
toJSON VPNTunnelAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _vtalwData,
("code" .=) <$> _vtalwCode,
("message" .=) <$> _vtalwMessage])
data TargetHTTPProxy =
TargetHTTPProxy'
{ _thttppURLMap :: !(Maybe Text)
, _thttppKind :: !Text
, _thttppSelfLink :: !(Maybe Text)
, _thttppName :: !(Maybe Text)
, _thttppCreationTimestamp :: !(Maybe Text)
, _thttppId :: !(Maybe (Textual Word64))
, _thttppDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPProxy
:: TargetHTTPProxy
targetHTTPProxy =
TargetHTTPProxy'
{ _thttppURLMap = Nothing
, _thttppKind = "compute#targetHttpProxy"
, _thttppSelfLink = Nothing
, _thttppName = Nothing
, _thttppCreationTimestamp = Nothing
, _thttppId = Nothing
, _thttppDescription = Nothing
}
thttppURLMap :: Lens' TargetHTTPProxy (Maybe Text)
thttppURLMap
= lens _thttppURLMap (\ s a -> s{_thttppURLMap = a})
thttppKind :: Lens' TargetHTTPProxy Text
thttppKind
= lens _thttppKind (\ s a -> s{_thttppKind = a})
thttppSelfLink :: Lens' TargetHTTPProxy (Maybe Text)
thttppSelfLink
= lens _thttppSelfLink
(\ s a -> s{_thttppSelfLink = a})
thttppName :: Lens' TargetHTTPProxy (Maybe Text)
thttppName
= lens _thttppName (\ s a -> s{_thttppName = a})
thttppCreationTimestamp :: Lens' TargetHTTPProxy (Maybe Text)
thttppCreationTimestamp
= lens _thttppCreationTimestamp
(\ s a -> s{_thttppCreationTimestamp = a})
thttppId :: Lens' TargetHTTPProxy (Maybe Word64)
thttppId
= lens _thttppId (\ s a -> s{_thttppId = a}) .
mapping _Coerce
thttppDescription :: Lens' TargetHTTPProxy (Maybe Text)
thttppDescription
= lens _thttppDescription
(\ s a -> s{_thttppDescription = a})
instance FromJSON TargetHTTPProxy where
parseJSON
= withObject "TargetHTTPProxy"
(\ o ->
TargetHTTPProxy' <$>
(o .:? "urlMap") <*>
(o .:? "kind" .!= "compute#targetHttpProxy")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "description"))
instance ToJSON TargetHTTPProxy where
toJSON TargetHTTPProxy'{..}
= object
(catMaybes
[("urlMap" .=) <$> _thttppURLMap,
Just ("kind" .= _thttppKind),
("selfLink" .=) <$> _thttppSelfLink,
("name" .=) <$> _thttppName,
("creationTimestamp" .=) <$>
_thttppCreationTimestamp,
("id" .=) <$> _thttppId,
("description" .=) <$> _thttppDescription])
data ShieldedInstanceConfig =
ShieldedInstanceConfig'
{ _sicEnableVtpm :: !(Maybe Bool)
, _sicEnableIntegrityMonitoring :: !(Maybe Bool)
, _sicEnableSecureBoot :: !(Maybe Bool)
}
deriving (Eq, Show, Data, Typeable, Generic)
shieldedInstanceConfig
:: ShieldedInstanceConfig
shieldedInstanceConfig =
ShieldedInstanceConfig'
{ _sicEnableVtpm = Nothing
, _sicEnableIntegrityMonitoring = Nothing
, _sicEnableSecureBoot = Nothing
}
sicEnableVtpm :: Lens' ShieldedInstanceConfig (Maybe Bool)
sicEnableVtpm
= lens _sicEnableVtpm
(\ s a -> s{_sicEnableVtpm = a})
sicEnableIntegrityMonitoring :: Lens' ShieldedInstanceConfig (Maybe Bool)
sicEnableIntegrityMonitoring
= lens _sicEnableIntegrityMonitoring
(\ s a -> s{_sicEnableIntegrityMonitoring = a})
sicEnableSecureBoot :: Lens' ShieldedInstanceConfig (Maybe Bool)
sicEnableSecureBoot
= lens _sicEnableSecureBoot
(\ s a -> s{_sicEnableSecureBoot = a})
instance FromJSON ShieldedInstanceConfig where
parseJSON
= withObject "ShieldedInstanceConfig"
(\ o ->
ShieldedInstanceConfig' <$>
(o .:? "enableVtpm") <*>
(o .:? "enableIntegrityMonitoring")
<*> (o .:? "enableSecureBoot"))
instance ToJSON ShieldedInstanceConfig where
toJSON ShieldedInstanceConfig'{..}
= object
(catMaybes
[("enableVtpm" .=) <$> _sicEnableVtpm,
("enableIntegrityMonitoring" .=) <$>
_sicEnableIntegrityMonitoring,
("enableSecureBoot" .=) <$> _sicEnableSecureBoot])
data MachineType =
MachineType'
{ _mtIsSharedCPU :: !(Maybe Bool)
, _mtKind :: !Text
, _mtImageSpaceGb :: !(Maybe (Textual Int32))
, _mtZone :: !(Maybe Text)
, _mtSelfLink :: !(Maybe Text)
, _mtName :: !(Maybe Text)
, _mtCreationTimestamp :: !(Maybe Text)
, _mtScratchDisks :: !(Maybe [MachineTypeScratchDisksItem])
, _mtId :: !(Maybe (Textual Word64))
, _mtGuestCPUs :: !(Maybe (Textual Int32))
, _mtMaximumPersistentDisksSizeGb :: !(Maybe (Textual Int64))
, _mtMaximumPersistentDisks :: !(Maybe (Textual Int32))
, _mtMemoryMb :: !(Maybe (Textual Int32))
, _mtDescription :: !(Maybe Text)
, _mtDeprecated :: !(Maybe DeprecationStatus)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineType
:: MachineType
machineType =
MachineType'
{ _mtIsSharedCPU = Nothing
, _mtKind = "compute#machineType"
, _mtImageSpaceGb = Nothing
, _mtZone = Nothing
, _mtSelfLink = Nothing
, _mtName = Nothing
, _mtCreationTimestamp = Nothing
, _mtScratchDisks = Nothing
, _mtId = Nothing
, _mtGuestCPUs = Nothing
, _mtMaximumPersistentDisksSizeGb = Nothing
, _mtMaximumPersistentDisks = Nothing
, _mtMemoryMb = Nothing
, _mtDescription = Nothing
, _mtDeprecated = Nothing
}
mtIsSharedCPU :: Lens' MachineType (Maybe Bool)
mtIsSharedCPU
= lens _mtIsSharedCPU
(\ s a -> s{_mtIsSharedCPU = a})
mtKind :: Lens' MachineType Text
mtKind = lens _mtKind (\ s a -> s{_mtKind = a})
mtImageSpaceGb :: Lens' MachineType (Maybe Int32)
mtImageSpaceGb
= lens _mtImageSpaceGb
(\ s a -> s{_mtImageSpaceGb = a})
. mapping _Coerce
mtZone :: Lens' MachineType (Maybe Text)
mtZone = lens _mtZone (\ s a -> s{_mtZone = a})
mtSelfLink :: Lens' MachineType (Maybe Text)
mtSelfLink
= lens _mtSelfLink (\ s a -> s{_mtSelfLink = a})
mtName :: Lens' MachineType (Maybe Text)
mtName = lens _mtName (\ s a -> s{_mtName = a})
mtCreationTimestamp :: Lens' MachineType (Maybe Text)
mtCreationTimestamp
= lens _mtCreationTimestamp
(\ s a -> s{_mtCreationTimestamp = a})
mtScratchDisks :: Lens' MachineType [MachineTypeScratchDisksItem]
mtScratchDisks
= lens _mtScratchDisks
(\ s a -> s{_mtScratchDisks = a})
. _Default
. _Coerce
mtId :: Lens' MachineType (Maybe Word64)
mtId
= lens _mtId (\ s a -> s{_mtId = a}) .
mapping _Coerce
mtGuestCPUs :: Lens' MachineType (Maybe Int32)
mtGuestCPUs
= lens _mtGuestCPUs (\ s a -> s{_mtGuestCPUs = a}) .
mapping _Coerce
mtMaximumPersistentDisksSizeGb :: Lens' MachineType (Maybe Int64)
mtMaximumPersistentDisksSizeGb
= lens _mtMaximumPersistentDisksSizeGb
(\ s a -> s{_mtMaximumPersistentDisksSizeGb = a})
. mapping _Coerce
mtMaximumPersistentDisks :: Lens' MachineType (Maybe Int32)
mtMaximumPersistentDisks
= lens _mtMaximumPersistentDisks
(\ s a -> s{_mtMaximumPersistentDisks = a})
. mapping _Coerce
mtMemoryMb :: Lens' MachineType (Maybe Int32)
mtMemoryMb
= lens _mtMemoryMb (\ s a -> s{_mtMemoryMb = a}) .
mapping _Coerce
mtDescription :: Lens' MachineType (Maybe Text)
mtDescription
= lens _mtDescription
(\ s a -> s{_mtDescription = a})
mtDeprecated :: Lens' MachineType (Maybe DeprecationStatus)
mtDeprecated
= lens _mtDeprecated (\ s a -> s{_mtDeprecated = a})
instance FromJSON MachineType where
parseJSON
= withObject "MachineType"
(\ o ->
MachineType' <$>
(o .:? "isSharedCpu") <*>
(o .:? "kind" .!= "compute#machineType")
<*> (o .:? "imageSpaceGb")
<*> (o .:? "zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "scratchDisks" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "guestCpus")
<*> (o .:? "maximumPersistentDisksSizeGb")
<*> (o .:? "maximumPersistentDisks")
<*> (o .:? "memoryMb")
<*> (o .:? "description")
<*> (o .:? "deprecated"))
instance ToJSON MachineType where
toJSON MachineType'{..}
= object
(catMaybes
[("isSharedCpu" .=) <$> _mtIsSharedCPU,
Just ("kind" .= _mtKind),
("imageSpaceGb" .=) <$> _mtImageSpaceGb,
("zone" .=) <$> _mtZone,
("selfLink" .=) <$> _mtSelfLink,
("name" .=) <$> _mtName,
("creationTimestamp" .=) <$> _mtCreationTimestamp,
("scratchDisks" .=) <$> _mtScratchDisks,
("id" .=) <$> _mtId,
("guestCpus" .=) <$> _mtGuestCPUs,
("maximumPersistentDisksSizeGb" .=) <$>
_mtMaximumPersistentDisksSizeGb,
("maximumPersistentDisks" .=) <$>
_mtMaximumPersistentDisks,
("memoryMb" .=) <$> _mtMemoryMb,
("description" .=) <$> _mtDescription,
("deprecated" .=) <$> _mtDeprecated])
data AcceleratorConfig =
AcceleratorConfig'
{ _acAcceleratorCount :: !(Maybe (Textual Int32))
, _acAcceleratorType :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
acceleratorConfig
:: AcceleratorConfig
acceleratorConfig =
AcceleratorConfig'
{_acAcceleratorCount = Nothing, _acAcceleratorType = Nothing}
acAcceleratorCount :: Lens' AcceleratorConfig (Maybe Int32)
acAcceleratorCount
= lens _acAcceleratorCount
(\ s a -> s{_acAcceleratorCount = a})
. mapping _Coerce
acAcceleratorType :: Lens' AcceleratorConfig (Maybe Text)
acAcceleratorType
= lens _acAcceleratorType
(\ s a -> s{_acAcceleratorType = a})
instance FromJSON AcceleratorConfig where
parseJSON
= withObject "AcceleratorConfig"
(\ o ->
AcceleratorConfig' <$>
(o .:? "acceleratorCount") <*>
(o .:? "acceleratorType"))
instance ToJSON AcceleratorConfig where
toJSON AcceleratorConfig'{..}
= object
(catMaybes
[("acceleratorCount" .=) <$> _acAcceleratorCount,
("acceleratorType" .=) <$> _acAcceleratorType])
data AutoscalerListWarning =
AutoscalerListWarning'
{ _alwData :: !(Maybe [AutoscalerListWarningDataItem])
, _alwCode :: !(Maybe AutoscalerListWarningCode)
, _alwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerListWarning
:: AutoscalerListWarning
autoscalerListWarning =
AutoscalerListWarning'
{_alwData = Nothing, _alwCode = Nothing, _alwMessage = Nothing}
alwData :: Lens' AutoscalerListWarning [AutoscalerListWarningDataItem]
alwData
= lens _alwData (\ s a -> s{_alwData = a}) . _Default
. _Coerce
alwCode :: Lens' AutoscalerListWarning (Maybe AutoscalerListWarningCode)
alwCode = lens _alwCode (\ s a -> s{_alwCode = a})
alwMessage :: Lens' AutoscalerListWarning (Maybe Text)
alwMessage
= lens _alwMessage (\ s a -> s{_alwMessage = a})
instance FromJSON AutoscalerListWarning where
parseJSON
= withObject "AutoscalerListWarning"
(\ o ->
AutoscalerListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AutoscalerListWarning where
toJSON AutoscalerListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _alwData, ("code" .=) <$> _alwCode,
("message" .=) <$> _alwMessage])
data MachineTypeAggregatedListWarningDataItem =
MachineTypeAggregatedListWarningDataItem'
{ _mtalwdiValue :: !(Maybe Text)
, _mtalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeAggregatedListWarningDataItem
:: MachineTypeAggregatedListWarningDataItem
machineTypeAggregatedListWarningDataItem =
MachineTypeAggregatedListWarningDataItem'
{_mtalwdiValue = Nothing, _mtalwdiKey = Nothing}
mtalwdiValue :: Lens' MachineTypeAggregatedListWarningDataItem (Maybe Text)
mtalwdiValue
= lens _mtalwdiValue (\ s a -> s{_mtalwdiValue = a})
mtalwdiKey :: Lens' MachineTypeAggregatedListWarningDataItem (Maybe Text)
mtalwdiKey
= lens _mtalwdiKey (\ s a -> s{_mtalwdiKey = a})
instance FromJSON
MachineTypeAggregatedListWarningDataItem
where
parseJSON
= withObject
"MachineTypeAggregatedListWarningDataItem"
(\ o ->
MachineTypeAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
MachineTypeAggregatedListWarningDataItem
where
toJSON MachineTypeAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _mtalwdiValue,
("key" .=) <$> _mtalwdiKey])
newtype OperationError =
OperationError'
{ _oeErrors :: Maybe [OperationErrorErrorsItem]
}
deriving (Eq, Show, Data, Typeable, Generic)
operationError
:: OperationError
operationError = OperationError' {_oeErrors = Nothing}
oeErrors :: Lens' OperationError [OperationErrorErrorsItem]
oeErrors
= lens _oeErrors (\ s a -> s{_oeErrors = a}) .
_Default
. _Coerce
instance FromJSON OperationError where
parseJSON
= withObject "OperationError"
(\ o ->
OperationError' <$> (o .:? "errors" .!= mempty))
instance ToJSON OperationError where
toJSON OperationError'{..}
= object (catMaybes [("errors" .=) <$> _oeErrors])
data NodeTypeAggregatedListWarning =
NodeTypeAggregatedListWarning'
{ _ntalwtData :: !(Maybe [NodeTypeAggregatedListWarningDataItem])
, _ntalwtCode :: !(Maybe NodeTypeAggregatedListWarningCode)
, _ntalwtMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypeAggregatedListWarning
:: NodeTypeAggregatedListWarning
nodeTypeAggregatedListWarning =
NodeTypeAggregatedListWarning'
{_ntalwtData = Nothing, _ntalwtCode = Nothing, _ntalwtMessage = Nothing}
ntalwtData :: Lens' NodeTypeAggregatedListWarning [NodeTypeAggregatedListWarningDataItem]
ntalwtData
= lens _ntalwtData (\ s a -> s{_ntalwtData = a}) .
_Default
. _Coerce
ntalwtCode :: Lens' NodeTypeAggregatedListWarning (Maybe NodeTypeAggregatedListWarningCode)
ntalwtCode
= lens _ntalwtCode (\ s a -> s{_ntalwtCode = a})
ntalwtMessage :: Lens' NodeTypeAggregatedListWarning (Maybe Text)
ntalwtMessage
= lens _ntalwtMessage
(\ s a -> s{_ntalwtMessage = a})
instance FromJSON NodeTypeAggregatedListWarning where
parseJSON
= withObject "NodeTypeAggregatedListWarning"
(\ o ->
NodeTypeAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NodeTypeAggregatedListWarning where
toJSON NodeTypeAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _ntalwtData,
("code" .=) <$> _ntalwtCode,
("message" .=) <$> _ntalwtMessage])
data TargetInstancesScopedListWarning =
TargetInstancesScopedListWarning'
{ _tislwData :: !(Maybe [TargetInstancesScopedListWarningDataItem])
, _tislwCode :: !(Maybe TargetInstancesScopedListWarningCode)
, _tislwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstancesScopedListWarning
:: TargetInstancesScopedListWarning
targetInstancesScopedListWarning =
TargetInstancesScopedListWarning'
{_tislwData = Nothing, _tislwCode = Nothing, _tislwMessage = Nothing}
tislwData :: Lens' TargetInstancesScopedListWarning [TargetInstancesScopedListWarningDataItem]
tislwData
= lens _tislwData (\ s a -> s{_tislwData = a}) .
_Default
. _Coerce
tislwCode :: Lens' TargetInstancesScopedListWarning (Maybe TargetInstancesScopedListWarningCode)
tislwCode
= lens _tislwCode (\ s a -> s{_tislwCode = a})
tislwMessage :: Lens' TargetInstancesScopedListWarning (Maybe Text)
tislwMessage
= lens _tislwMessage (\ s a -> s{_tislwMessage = a})
instance FromJSON TargetInstancesScopedListWarning
where
parseJSON
= withObject "TargetInstancesScopedListWarning"
(\ o ->
TargetInstancesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetInstancesScopedListWarning
where
toJSON TargetInstancesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tislwData,
("code" .=) <$> _tislwCode,
("message" .=) <$> _tislwMessage])
data NetworkEndpointGroupAggregatedList =
NetworkEndpointGroupAggregatedList'
{ _negalNextPageToken :: !(Maybe Text)
, _negalKind :: !Text
, _negalItems :: !(Maybe NetworkEndpointGroupAggregatedListItems)
, _negalSelfLink :: !(Maybe Text)
, _negalWarning :: !(Maybe NetworkEndpointGroupAggregatedListWarning)
, _negalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupAggregatedList
:: NetworkEndpointGroupAggregatedList
networkEndpointGroupAggregatedList =
NetworkEndpointGroupAggregatedList'
{ _negalNextPageToken = Nothing
, _negalKind = "compute#networkEndpointGroupAggregatedList"
, _negalItems = Nothing
, _negalSelfLink = Nothing
, _negalWarning = Nothing
, _negalId = Nothing
}
negalNextPageToken :: Lens' NetworkEndpointGroupAggregatedList (Maybe Text)
negalNextPageToken
= lens _negalNextPageToken
(\ s a -> s{_negalNextPageToken = a})
negalKind :: Lens' NetworkEndpointGroupAggregatedList Text
negalKind
= lens _negalKind (\ s a -> s{_negalKind = a})
negalItems :: Lens' NetworkEndpointGroupAggregatedList (Maybe NetworkEndpointGroupAggregatedListItems)
negalItems
= lens _negalItems (\ s a -> s{_negalItems = a})
negalSelfLink :: Lens' NetworkEndpointGroupAggregatedList (Maybe Text)
negalSelfLink
= lens _negalSelfLink
(\ s a -> s{_negalSelfLink = a})
negalWarning :: Lens' NetworkEndpointGroupAggregatedList (Maybe NetworkEndpointGroupAggregatedListWarning)
negalWarning
= lens _negalWarning (\ s a -> s{_negalWarning = a})
negalId :: Lens' NetworkEndpointGroupAggregatedList (Maybe Text)
negalId = lens _negalId (\ s a -> s{_negalId = a})
instance FromJSON NetworkEndpointGroupAggregatedList
where
parseJSON
= withObject "NetworkEndpointGroupAggregatedList"
(\ o ->
NetworkEndpointGroupAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#networkEndpointGroupAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NetworkEndpointGroupAggregatedList
where
toJSON NetworkEndpointGroupAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _negalNextPageToken,
Just ("kind" .= _negalKind),
("items" .=) <$> _negalItems,
("selfLink" .=) <$> _negalSelfLink,
("warning" .=) <$> _negalWarning,
("id" .=) <$> _negalId])
data SubnetworkAggregatedList =
SubnetworkAggregatedList'
{ _salNextPageToken :: !(Maybe Text)
, _salKind :: !Text
, _salItems :: !(Maybe SubnetworkAggregatedListItems)
, _salSelfLink :: !(Maybe Text)
, _salWarning :: !(Maybe SubnetworkAggregatedListWarning)
, _salId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkAggregatedList
:: SubnetworkAggregatedList
subnetworkAggregatedList =
SubnetworkAggregatedList'
{ _salNextPageToken = Nothing
, _salKind = "compute#subnetworkAggregatedList"
, _salItems = Nothing
, _salSelfLink = Nothing
, _salWarning = Nothing
, _salId = Nothing
}
salNextPageToken :: Lens' SubnetworkAggregatedList (Maybe Text)
salNextPageToken
= lens _salNextPageToken
(\ s a -> s{_salNextPageToken = a})
salKind :: Lens' SubnetworkAggregatedList Text
salKind = lens _salKind (\ s a -> s{_salKind = a})
salItems :: Lens' SubnetworkAggregatedList (Maybe SubnetworkAggregatedListItems)
salItems = lens _salItems (\ s a -> s{_salItems = a})
salSelfLink :: Lens' SubnetworkAggregatedList (Maybe Text)
salSelfLink
= lens _salSelfLink (\ s a -> s{_salSelfLink = a})
salWarning :: Lens' SubnetworkAggregatedList (Maybe SubnetworkAggregatedListWarning)
salWarning
= lens _salWarning (\ s a -> s{_salWarning = a})
salId :: Lens' SubnetworkAggregatedList (Maybe Text)
salId = lens _salId (\ s a -> s{_salId = a})
instance FromJSON SubnetworkAggregatedList where
parseJSON
= withObject "SubnetworkAggregatedList"
(\ o ->
SubnetworkAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#subnetworkAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON SubnetworkAggregatedList where
toJSON SubnetworkAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _salNextPageToken,
Just ("kind" .= _salKind),
("items" .=) <$> _salItems,
("selfLink" .=) <$> _salSelfLink,
("warning" .=) <$> _salWarning,
("id" .=) <$> _salId])
data VPNTunnelListWarningDataItem =
VPNTunnelListWarningDataItem'
{ _vtlwdiValue :: !(Maybe Text)
, _vtlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelListWarningDataItem
:: VPNTunnelListWarningDataItem
vpnTunnelListWarningDataItem =
VPNTunnelListWarningDataItem' {_vtlwdiValue = Nothing, _vtlwdiKey = Nothing}
vtlwdiValue :: Lens' VPNTunnelListWarningDataItem (Maybe Text)
vtlwdiValue
= lens _vtlwdiValue (\ s a -> s{_vtlwdiValue = a})
vtlwdiKey :: Lens' VPNTunnelListWarningDataItem (Maybe Text)
vtlwdiKey
= lens _vtlwdiKey (\ s a -> s{_vtlwdiKey = a})
instance FromJSON VPNTunnelListWarningDataItem where
parseJSON
= withObject "VPNTunnelListWarningDataItem"
(\ o ->
VPNTunnelListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON VPNTunnelListWarningDataItem where
toJSON VPNTunnelListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _vtlwdiValue,
("key" .=) <$> _vtlwdiKey])
data InterconnectDiagnosticsLinkOpticalPower =
InterconnectDiagnosticsLinkOpticalPower'
{ _idlopState :: !(Maybe InterconnectDiagnosticsLinkOpticalPowerState)
, _idlopValue :: !(Maybe (Textual Double))
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectDiagnosticsLinkOpticalPower
:: InterconnectDiagnosticsLinkOpticalPower
interconnectDiagnosticsLinkOpticalPower =
InterconnectDiagnosticsLinkOpticalPower'
{_idlopState = Nothing, _idlopValue = Nothing}
idlopState :: Lens' InterconnectDiagnosticsLinkOpticalPower (Maybe InterconnectDiagnosticsLinkOpticalPowerState)
idlopState
= lens _idlopState (\ s a -> s{_idlopState = a})
idlopValue :: Lens' InterconnectDiagnosticsLinkOpticalPower (Maybe Double)
idlopValue
= lens _idlopValue (\ s a -> s{_idlopValue = a}) .
mapping _Coerce
instance FromJSON
InterconnectDiagnosticsLinkOpticalPower
where
parseJSON
= withObject
"InterconnectDiagnosticsLinkOpticalPower"
(\ o ->
InterconnectDiagnosticsLinkOpticalPower' <$>
(o .:? "state") <*> (o .:? "value"))
instance ToJSON
InterconnectDiagnosticsLinkOpticalPower
where
toJSON InterconnectDiagnosticsLinkOpticalPower'{..}
= object
(catMaybes
[("state" .=) <$> _idlopState,
("value" .=) <$> _idlopValue])
newtype DisksResizeRequest =
DisksResizeRequest'
{ _drrSizeGb :: Maybe (Textual Int64)
}
deriving (Eq, Show, Data, Typeable, Generic)
disksResizeRequest
:: DisksResizeRequest
disksResizeRequest = DisksResizeRequest' {_drrSizeGb = Nothing}
drrSizeGb :: Lens' DisksResizeRequest (Maybe Int64)
drrSizeGb
= lens _drrSizeGb (\ s a -> s{_drrSizeGb = a}) .
mapping _Coerce
instance FromJSON DisksResizeRequest where
parseJSON
= withObject "DisksResizeRequest"
(\ o -> DisksResizeRequest' <$> (o .:? "sizeGb"))
instance ToJSON DisksResizeRequest where
toJSON DisksResizeRequest'{..}
= object (catMaybes [("sizeGb" .=) <$> _drrSizeGb])
data AutoscalersScopedListWarningDataItem =
AutoscalersScopedListWarningDataItem'
{ _aValue :: !(Maybe Text)
, _aKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalersScopedListWarningDataItem
:: AutoscalersScopedListWarningDataItem
autoscalersScopedListWarningDataItem =
AutoscalersScopedListWarningDataItem' {_aValue = Nothing, _aKey = Nothing}
aValue :: Lens' AutoscalersScopedListWarningDataItem (Maybe Text)
aValue = lens _aValue (\ s a -> s{_aValue = a})
aKey :: Lens' AutoscalersScopedListWarningDataItem (Maybe Text)
aKey = lens _aKey (\ s a -> s{_aKey = a})
instance FromJSON
AutoscalersScopedListWarningDataItem
where
parseJSON
= withObject "AutoscalersScopedListWarningDataItem"
(\ o ->
AutoscalersScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON AutoscalersScopedListWarningDataItem
where
toJSON AutoscalersScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _aValue, ("key" .=) <$> _aKey])
data ZoneSetPolicyRequest =
ZoneSetPolicyRequest'
{ _zsprEtag :: !(Maybe Bytes)
, _zsprBindings :: !(Maybe [Binding])
, _zsprPolicy :: !(Maybe Policy)
}
deriving (Eq, Show, Data, Typeable, Generic)
zoneSetPolicyRequest
:: ZoneSetPolicyRequest
zoneSetPolicyRequest =
ZoneSetPolicyRequest'
{_zsprEtag = Nothing, _zsprBindings = Nothing, _zsprPolicy = Nothing}
zsprEtag :: Lens' ZoneSetPolicyRequest (Maybe ByteString)
zsprEtag
= lens _zsprEtag (\ s a -> s{_zsprEtag = a}) .
mapping _Bytes
zsprBindings :: Lens' ZoneSetPolicyRequest [Binding]
zsprBindings
= lens _zsprBindings (\ s a -> s{_zsprBindings = a})
. _Default
. _Coerce
zsprPolicy :: Lens' ZoneSetPolicyRequest (Maybe Policy)
zsprPolicy
= lens _zsprPolicy (\ s a -> s{_zsprPolicy = a})
instance FromJSON ZoneSetPolicyRequest where
parseJSON
= withObject "ZoneSetPolicyRequest"
(\ o ->
ZoneSetPolicyRequest' <$>
(o .:? "etag") <*> (o .:? "bindings" .!= mempty) <*>
(o .:? "policy"))
instance ToJSON ZoneSetPolicyRequest where
toJSON ZoneSetPolicyRequest'{..}
= object
(catMaybes
[("etag" .=) <$> _zsprEtag,
("bindings" .=) <$> _zsprBindings,
("policy" .=) <$> _zsprPolicy])
data DiskTypeAggregatedListWarningDataItem =
DiskTypeAggregatedListWarningDataItem'
{ _dtalwdiValue :: !(Maybe Text)
, _dtalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskTypeAggregatedListWarningDataItem
:: DiskTypeAggregatedListWarningDataItem
diskTypeAggregatedListWarningDataItem =
DiskTypeAggregatedListWarningDataItem'
{_dtalwdiValue = Nothing, _dtalwdiKey = Nothing}
dtalwdiValue :: Lens' DiskTypeAggregatedListWarningDataItem (Maybe Text)
dtalwdiValue
= lens _dtalwdiValue (\ s a -> s{_dtalwdiValue = a})
dtalwdiKey :: Lens' DiskTypeAggregatedListWarningDataItem (Maybe Text)
dtalwdiKey
= lens _dtalwdiKey (\ s a -> s{_dtalwdiKey = a})
instance FromJSON
DiskTypeAggregatedListWarningDataItem
where
parseJSON
= withObject "DiskTypeAggregatedListWarningDataItem"
(\ o ->
DiskTypeAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON DiskTypeAggregatedListWarningDataItem
where
toJSON DiskTypeAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _dtalwdiValue,
("key" .=) <$> _dtalwdiKey])
data ShieldedInstanceIdentityEntry =
ShieldedInstanceIdentityEntry'
{ _siieEkCert :: !(Maybe Text)
, _siieEkPub :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
shieldedInstanceIdentityEntry
:: ShieldedInstanceIdentityEntry
shieldedInstanceIdentityEntry =
ShieldedInstanceIdentityEntry' {_siieEkCert = Nothing, _siieEkPub = Nothing}
siieEkCert :: Lens' ShieldedInstanceIdentityEntry (Maybe Text)
siieEkCert
= lens _siieEkCert (\ s a -> s{_siieEkCert = a})
siieEkPub :: Lens' ShieldedInstanceIdentityEntry (Maybe Text)
siieEkPub
= lens _siieEkPub (\ s a -> s{_siieEkPub = a})
instance FromJSON ShieldedInstanceIdentityEntry where
parseJSON
= withObject "ShieldedInstanceIdentityEntry"
(\ o ->
ShieldedInstanceIdentityEntry' <$>
(o .:? "ekCert") <*> (o .:? "ekPub"))
instance ToJSON ShieldedInstanceIdentityEntry where
toJSON ShieldedInstanceIdentityEntry'{..}
= object
(catMaybes
[("ekCert" .=) <$> _siieEkCert,
("ekPub" .=) <$> _siieEkPub])
data RegionInstanceGroupManagerListWarning =
RegionInstanceGroupManagerListWarning'
{ _rigmlwData :: !(Maybe [RegionInstanceGroupManagerListWarningDataItem])
, _rigmlwCode :: !(Maybe RegionInstanceGroupManagerListWarningCode)
, _rigmlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagerListWarning
:: RegionInstanceGroupManagerListWarning
regionInstanceGroupManagerListWarning =
RegionInstanceGroupManagerListWarning'
{_rigmlwData = Nothing, _rigmlwCode = Nothing, _rigmlwMessage = Nothing}
rigmlwData :: Lens' RegionInstanceGroupManagerListWarning [RegionInstanceGroupManagerListWarningDataItem]
rigmlwData
= lens _rigmlwData (\ s a -> s{_rigmlwData = a}) .
_Default
. _Coerce
rigmlwCode :: Lens' RegionInstanceGroupManagerListWarning (Maybe RegionInstanceGroupManagerListWarningCode)
rigmlwCode
= lens _rigmlwCode (\ s a -> s{_rigmlwCode = a})
rigmlwMessage :: Lens' RegionInstanceGroupManagerListWarning (Maybe Text)
rigmlwMessage
= lens _rigmlwMessage
(\ s a -> s{_rigmlwMessage = a})
instance FromJSON
RegionInstanceGroupManagerListWarning
where
parseJSON
= withObject "RegionInstanceGroupManagerListWarning"
(\ o ->
RegionInstanceGroupManagerListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RegionInstanceGroupManagerListWarning
where
toJSON RegionInstanceGroupManagerListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _rigmlwData,
("code" .=) <$> _rigmlwCode,
("message" .=) <$> _rigmlwMessage])
newtype RegionInstanceGroupManagersSetTemplateRequest =
RegionInstanceGroupManagersSetTemplateRequest'
{ _rigmstrInstanceTemplate :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupManagersSetTemplateRequest
:: RegionInstanceGroupManagersSetTemplateRequest
regionInstanceGroupManagersSetTemplateRequest =
RegionInstanceGroupManagersSetTemplateRequest'
{_rigmstrInstanceTemplate = Nothing}
rigmstrInstanceTemplate :: Lens' RegionInstanceGroupManagersSetTemplateRequest (Maybe Text)
rigmstrInstanceTemplate
= lens _rigmstrInstanceTemplate
(\ s a -> s{_rigmstrInstanceTemplate = a})
instance FromJSON
RegionInstanceGroupManagersSetTemplateRequest
where
parseJSON
= withObject
"RegionInstanceGroupManagersSetTemplateRequest"
(\ o ->
RegionInstanceGroupManagersSetTemplateRequest' <$>
(o .:? "instanceTemplate"))
instance ToJSON
RegionInstanceGroupManagersSetTemplateRequest
where
toJSON
RegionInstanceGroupManagersSetTemplateRequest'{..}
= object
(catMaybes
[("instanceTemplate" .=) <$>
_rigmstrInstanceTemplate])
data InstanceGroupsListInstances =
InstanceGroupsListInstances'
{ _igliNextPageToken :: !(Maybe Text)
, _igliKind :: !Text
, _igliItems :: !(Maybe [InstanceWithNamedPorts])
, _igliSelfLink :: !(Maybe Text)
, _igliWarning :: !(Maybe InstanceGroupsListInstancesWarning)
, _igliId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsListInstances
:: InstanceGroupsListInstances
instanceGroupsListInstances =
InstanceGroupsListInstances'
{ _igliNextPageToken = Nothing
, _igliKind = "compute#instanceGroupsListInstances"
, _igliItems = Nothing
, _igliSelfLink = Nothing
, _igliWarning = Nothing
, _igliId = Nothing
}
igliNextPageToken :: Lens' InstanceGroupsListInstances (Maybe Text)
igliNextPageToken
= lens _igliNextPageToken
(\ s a -> s{_igliNextPageToken = a})
igliKind :: Lens' InstanceGroupsListInstances Text
igliKind = lens _igliKind (\ s a -> s{_igliKind = a})
igliItems :: Lens' InstanceGroupsListInstances [InstanceWithNamedPorts]
igliItems
= lens _igliItems (\ s a -> s{_igliItems = a}) .
_Default
. _Coerce
igliSelfLink :: Lens' InstanceGroupsListInstances (Maybe Text)
igliSelfLink
= lens _igliSelfLink (\ s a -> s{_igliSelfLink = a})
igliWarning :: Lens' InstanceGroupsListInstances (Maybe InstanceGroupsListInstancesWarning)
igliWarning
= lens _igliWarning (\ s a -> s{_igliWarning = a})
igliId :: Lens' InstanceGroupsListInstances (Maybe Text)
igliId = lens _igliId (\ s a -> s{_igliId = a})
instance FromJSON InstanceGroupsListInstances where
parseJSON
= withObject "InstanceGroupsListInstances"
(\ o ->
InstanceGroupsListInstances' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#instanceGroupsListInstances")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceGroupsListInstances where
toJSON InstanceGroupsListInstances'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _igliNextPageToken,
Just ("kind" .= _igliKind),
("items" .=) <$> _igliItems,
("selfLink" .=) <$> _igliSelfLink,
("warning" .=) <$> _igliWarning,
("id" .=) <$> _igliId])
data Autoscaler =
Autoscaler'
{ _aaStatus :: !(Maybe AutoscalerStatus)
, _aaKind :: !Text
, _aaZone :: !(Maybe Text)
, _aaStatusDetails :: !(Maybe [AutoscalerStatusDetails])
, _aaSelfLink :: !(Maybe Text)
, _aaName :: !(Maybe Text)
, _aaCreationTimestamp :: !(Maybe Text)
, _aaAutoscalingPolicy :: !(Maybe AutoscalingPolicy)
, _aaId :: !(Maybe (Textual Word64))
, _aaRegion :: !(Maybe Text)
, _aaDescription :: !(Maybe Text)
, _aaTarget :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscaler
:: Autoscaler
autoscaler =
Autoscaler'
{ _aaStatus = Nothing
, _aaKind = "compute#autoscaler"
, _aaZone = Nothing
, _aaStatusDetails = Nothing
, _aaSelfLink = Nothing
, _aaName = Nothing
, _aaCreationTimestamp = Nothing
, _aaAutoscalingPolicy = Nothing
, _aaId = Nothing
, _aaRegion = Nothing
, _aaDescription = Nothing
, _aaTarget = Nothing
}
aaStatus :: Lens' Autoscaler (Maybe AutoscalerStatus)
aaStatus = lens _aaStatus (\ s a -> s{_aaStatus = a})
aaKind :: Lens' Autoscaler Text
aaKind = lens _aaKind (\ s a -> s{_aaKind = a})
aaZone :: Lens' Autoscaler (Maybe Text)
aaZone = lens _aaZone (\ s a -> s{_aaZone = a})
aaStatusDetails :: Lens' Autoscaler [AutoscalerStatusDetails]
aaStatusDetails
= lens _aaStatusDetails
(\ s a -> s{_aaStatusDetails = a})
. _Default
. _Coerce
aaSelfLink :: Lens' Autoscaler (Maybe Text)
aaSelfLink
= lens _aaSelfLink (\ s a -> s{_aaSelfLink = a})
aaName :: Lens' Autoscaler (Maybe Text)
aaName = lens _aaName (\ s a -> s{_aaName = a})
aaCreationTimestamp :: Lens' Autoscaler (Maybe Text)
aaCreationTimestamp
= lens _aaCreationTimestamp
(\ s a -> s{_aaCreationTimestamp = a})
aaAutoscalingPolicy :: Lens' Autoscaler (Maybe AutoscalingPolicy)
aaAutoscalingPolicy
= lens _aaAutoscalingPolicy
(\ s a -> s{_aaAutoscalingPolicy = a})
aaId :: Lens' Autoscaler (Maybe Word64)
aaId
= lens _aaId (\ s a -> s{_aaId = a}) .
mapping _Coerce
aaRegion :: Lens' Autoscaler (Maybe Text)
aaRegion = lens _aaRegion (\ s a -> s{_aaRegion = a})
aaDescription :: Lens' Autoscaler (Maybe Text)
aaDescription
= lens _aaDescription
(\ s a -> s{_aaDescription = a})
aaTarget :: Lens' Autoscaler (Maybe Text)
aaTarget = lens _aaTarget (\ s a -> s{_aaTarget = a})
instance FromJSON Autoscaler where
parseJSON
= withObject "Autoscaler"
(\ o ->
Autoscaler' <$>
(o .:? "status") <*>
(o .:? "kind" .!= "compute#autoscaler")
<*> (o .:? "zone")
<*> (o .:? "statusDetails" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "autoscalingPolicy")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "description")
<*> (o .:? "target"))
instance ToJSON Autoscaler where
toJSON Autoscaler'{..}
= object
(catMaybes
[("status" .=) <$> _aaStatus,
Just ("kind" .= _aaKind), ("zone" .=) <$> _aaZone,
("statusDetails" .=) <$> _aaStatusDetails,
("selfLink" .=) <$> _aaSelfLink,
("name" .=) <$> _aaName,
("creationTimestamp" .=) <$> _aaCreationTimestamp,
("autoscalingPolicy" .=) <$> _aaAutoscalingPolicy,
("id" .=) <$> _aaId, ("region" .=) <$> _aaRegion,
("description" .=) <$> _aaDescription,
("target" .=) <$> _aaTarget])
data MachineTypeListWarning =
MachineTypeListWarning'
{ _mtlwData :: !(Maybe [MachineTypeListWarningDataItem])
, _mtlwCode :: !(Maybe MachineTypeListWarningCode)
, _mtlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
machineTypeListWarning
:: MachineTypeListWarning
machineTypeListWarning =
MachineTypeListWarning'
{_mtlwData = Nothing, _mtlwCode = Nothing, _mtlwMessage = Nothing}
mtlwData :: Lens' MachineTypeListWarning [MachineTypeListWarningDataItem]
mtlwData
= lens _mtlwData (\ s a -> s{_mtlwData = a}) .
_Default
. _Coerce
mtlwCode :: Lens' MachineTypeListWarning (Maybe MachineTypeListWarningCode)
mtlwCode = lens _mtlwCode (\ s a -> s{_mtlwCode = a})
mtlwMessage :: Lens' MachineTypeListWarning (Maybe Text)
mtlwMessage
= lens _mtlwMessage (\ s a -> s{_mtlwMessage = a})
instance FromJSON MachineTypeListWarning where
parseJSON
= withObject "MachineTypeListWarning"
(\ o ->
MachineTypeListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON MachineTypeListWarning where
toJSON MachineTypeListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _mtlwData,
("code" .=) <$> _mtlwCode,
("message" .=) <$> _mtlwMessage])
data TargetHTTPProxyListWarning =
TargetHTTPProxyListWarning'
{ _thttpplwData :: !(Maybe [TargetHTTPProxyListWarningDataItem])
, _thttpplwCode :: !(Maybe TargetHTTPProxyListWarningCode)
, _thttpplwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPProxyListWarning
:: TargetHTTPProxyListWarning
targetHTTPProxyListWarning =
TargetHTTPProxyListWarning'
{ _thttpplwData = Nothing
, _thttpplwCode = Nothing
, _thttpplwMessage = Nothing
}
thttpplwData :: Lens' TargetHTTPProxyListWarning [TargetHTTPProxyListWarningDataItem]
thttpplwData
= lens _thttpplwData (\ s a -> s{_thttpplwData = a})
. _Default
. _Coerce
thttpplwCode :: Lens' TargetHTTPProxyListWarning (Maybe TargetHTTPProxyListWarningCode)
thttpplwCode
= lens _thttpplwCode (\ s a -> s{_thttpplwCode = a})
thttpplwMessage :: Lens' TargetHTTPProxyListWarning (Maybe Text)
thttpplwMessage
= lens _thttpplwMessage
(\ s a -> s{_thttpplwMessage = a})
instance FromJSON TargetHTTPProxyListWarning where
parseJSON
= withObject "TargetHTTPProxyListWarning"
(\ o ->
TargetHTTPProxyListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetHTTPProxyListWarning where
toJSON TargetHTTPProxyListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _thttpplwData,
("code" .=) <$> _thttpplwCode,
("message" .=) <$> _thttpplwMessage])
data DiskAggregatedListWarning =
DiskAggregatedListWarning'
{ _dalwData :: !(Maybe [DiskAggregatedListWarningDataItem])
, _dalwCode :: !(Maybe DiskAggregatedListWarningCode)
, _dalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskAggregatedListWarning
:: DiskAggregatedListWarning
diskAggregatedListWarning =
DiskAggregatedListWarning'
{_dalwData = Nothing, _dalwCode = Nothing, _dalwMessage = Nothing}
dalwData :: Lens' DiskAggregatedListWarning [DiskAggregatedListWarningDataItem]
dalwData
= lens _dalwData (\ s a -> s{_dalwData = a}) .
_Default
. _Coerce
dalwCode :: Lens' DiskAggregatedListWarning (Maybe DiskAggregatedListWarningCode)
dalwCode = lens _dalwCode (\ s a -> s{_dalwCode = a})
dalwMessage :: Lens' DiskAggregatedListWarning (Maybe Text)
dalwMessage
= lens _dalwMessage (\ s a -> s{_dalwMessage = a})
instance FromJSON DiskAggregatedListWarning where
parseJSON
= withObject "DiskAggregatedListWarning"
(\ o ->
DiskAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON DiskAggregatedListWarning where
toJSON DiskAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _dalwData,
("code" .=) <$> _dalwCode,
("message" .=) <$> _dalwMessage])
data TargetPoolAggregatedListWarning =
TargetPoolAggregatedListWarning'
{ _tpalwData :: !(Maybe [TargetPoolAggregatedListWarningDataItem])
, _tpalwCode :: !(Maybe TargetPoolAggregatedListWarningCode)
, _tpalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolAggregatedListWarning
:: TargetPoolAggregatedListWarning
targetPoolAggregatedListWarning =
TargetPoolAggregatedListWarning'
{_tpalwData = Nothing, _tpalwCode = Nothing, _tpalwMessage = Nothing}
tpalwData :: Lens' TargetPoolAggregatedListWarning [TargetPoolAggregatedListWarningDataItem]
tpalwData
= lens _tpalwData (\ s a -> s{_tpalwData = a}) .
_Default
. _Coerce
tpalwCode :: Lens' TargetPoolAggregatedListWarning (Maybe TargetPoolAggregatedListWarningCode)
tpalwCode
= lens _tpalwCode (\ s a -> s{_tpalwCode = a})
tpalwMessage :: Lens' TargetPoolAggregatedListWarning (Maybe Text)
tpalwMessage
= lens _tpalwMessage (\ s a -> s{_tpalwMessage = a})
instance FromJSON TargetPoolAggregatedListWarning
where
parseJSON
= withObject "TargetPoolAggregatedListWarning"
(\ o ->
TargetPoolAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetPoolAggregatedListWarning where
toJSON TargetPoolAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tpalwData,
("code" .=) <$> _tpalwCode,
("message" .=) <$> _tpalwMessage])
data UsableSubnetworksAggregatedListWarning =
UsableSubnetworksAggregatedListWarning'
{ _usalwData :: !(Maybe [UsableSubnetworksAggregatedListWarningDataItem])
, _usalwCode :: !(Maybe UsableSubnetworksAggregatedListWarningCode)
, _usalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
usableSubnetworksAggregatedListWarning
:: UsableSubnetworksAggregatedListWarning
usableSubnetworksAggregatedListWarning =
UsableSubnetworksAggregatedListWarning'
{_usalwData = Nothing, _usalwCode = Nothing, _usalwMessage = Nothing}
usalwData :: Lens' UsableSubnetworksAggregatedListWarning [UsableSubnetworksAggregatedListWarningDataItem]
usalwData
= lens _usalwData (\ s a -> s{_usalwData = a}) .
_Default
. _Coerce
usalwCode :: Lens' UsableSubnetworksAggregatedListWarning (Maybe UsableSubnetworksAggregatedListWarningCode)
usalwCode
= lens _usalwCode (\ s a -> s{_usalwCode = a})
usalwMessage :: Lens' UsableSubnetworksAggregatedListWarning (Maybe Text)
usalwMessage
= lens _usalwMessage (\ s a -> s{_usalwMessage = a})
instance FromJSON
UsableSubnetworksAggregatedListWarning
where
parseJSON
= withObject "UsableSubnetworksAggregatedListWarning"
(\ o ->
UsableSubnetworksAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
UsableSubnetworksAggregatedListWarning
where
toJSON UsableSubnetworksAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _usalwData,
("code" .=) <$> _usalwCode,
("message" .=) <$> _usalwMessage])
data DisksScopedListWarning =
DisksScopedListWarning'
{ _dslwData :: !(Maybe [DisksScopedListWarningDataItem])
, _dslwCode :: !(Maybe DisksScopedListWarningCode)
, _dslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
disksScopedListWarning
:: DisksScopedListWarning
disksScopedListWarning =
DisksScopedListWarning'
{_dslwData = Nothing, _dslwCode = Nothing, _dslwMessage = Nothing}
dslwData :: Lens' DisksScopedListWarning [DisksScopedListWarningDataItem]
dslwData
= lens _dslwData (\ s a -> s{_dslwData = a}) .
_Default
. _Coerce
dslwCode :: Lens' DisksScopedListWarning (Maybe DisksScopedListWarningCode)
dslwCode = lens _dslwCode (\ s a -> s{_dslwCode = a})
dslwMessage :: Lens' DisksScopedListWarning (Maybe Text)
dslwMessage
= lens _dslwMessage (\ s a -> s{_dslwMessage = a})
instance FromJSON DisksScopedListWarning where
parseJSON
= withObject "DisksScopedListWarning"
(\ o ->
DisksScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON DisksScopedListWarning where
toJSON DisksScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _dslwData,
("code" .=) <$> _dslwCode,
("message" .=) <$> _dslwMessage])
data NodeTemplatesScopedListWarningDataItem =
NodeTemplatesScopedListWarningDataItem'
{ _ntslwdiValue :: !(Maybe Text)
, _ntslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplatesScopedListWarningDataItem
:: NodeTemplatesScopedListWarningDataItem
nodeTemplatesScopedListWarningDataItem =
NodeTemplatesScopedListWarningDataItem'
{_ntslwdiValue = Nothing, _ntslwdiKey = Nothing}
ntslwdiValue :: Lens' NodeTemplatesScopedListWarningDataItem (Maybe Text)
ntslwdiValue
= lens _ntslwdiValue (\ s a -> s{_ntslwdiValue = a})
ntslwdiKey :: Lens' NodeTemplatesScopedListWarningDataItem (Maybe Text)
ntslwdiKey
= lens _ntslwdiKey (\ s a -> s{_ntslwdiKey = a})
instance FromJSON
NodeTemplatesScopedListWarningDataItem
where
parseJSON
= withObject "NodeTemplatesScopedListWarningDataItem"
(\ o ->
NodeTemplatesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
NodeTemplatesScopedListWarningDataItem
where
toJSON NodeTemplatesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ntslwdiValue,
("key" .=) <$> _ntslwdiKey])
newtype TargetVPNGatewayAggregatedListItems =
TargetVPNGatewayAggregatedListItems'
{ _tvgaliAddtional :: HashMap Text TargetVPNGatewaysScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewayAggregatedListItems
:: HashMap Text TargetVPNGatewaysScopedList
-> TargetVPNGatewayAggregatedListItems
targetVPNGatewayAggregatedListItems pTvgaliAddtional_ =
TargetVPNGatewayAggregatedListItems'
{_tvgaliAddtional = _Coerce # pTvgaliAddtional_}
tvgaliAddtional :: Lens' TargetVPNGatewayAggregatedListItems (HashMap Text TargetVPNGatewaysScopedList)
tvgaliAddtional
= lens _tvgaliAddtional
(\ s a -> s{_tvgaliAddtional = a})
. _Coerce
instance FromJSON TargetVPNGatewayAggregatedListItems
where
parseJSON
= withObject "TargetVPNGatewayAggregatedListItems"
(\ o ->
TargetVPNGatewayAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON TargetVPNGatewayAggregatedListItems
where
toJSON = toJSON . _tvgaliAddtional
newtype DiskLabels =
DiskLabels'
{ _dlAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
diskLabels
:: HashMap Text Text
-> DiskLabels
diskLabels pDlAddtional_ = DiskLabels' {_dlAddtional = _Coerce # pDlAddtional_}
dlAddtional :: Lens' DiskLabels (HashMap Text Text)
dlAddtional
= lens _dlAddtional (\ s a -> s{_dlAddtional = a}) .
_Coerce
instance FromJSON DiskLabels where
parseJSON
= withObject "DiskLabels"
(\ o -> DiskLabels' <$> (parseJSONObject o))
instance ToJSON DiskLabels where
toJSON = toJSON . _dlAddtional
data InstanceGroupManagerListWarningDataItem =
InstanceGroupManagerListWarningDataItem'
{ _igmlwdiValue :: !(Maybe Text)
, _igmlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerListWarningDataItem
:: InstanceGroupManagerListWarningDataItem
instanceGroupManagerListWarningDataItem =
InstanceGroupManagerListWarningDataItem'
{_igmlwdiValue = Nothing, _igmlwdiKey = Nothing}
igmlwdiValue :: Lens' InstanceGroupManagerListWarningDataItem (Maybe Text)
igmlwdiValue
= lens _igmlwdiValue (\ s a -> s{_igmlwdiValue = a})
igmlwdiKey :: Lens' InstanceGroupManagerListWarningDataItem (Maybe Text)
igmlwdiKey
= lens _igmlwdiKey (\ s a -> s{_igmlwdiKey = a})
instance FromJSON
InstanceGroupManagerListWarningDataItem
where
parseJSON
= withObject
"InstanceGroupManagerListWarningDataItem"
(\ o ->
InstanceGroupManagerListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InstanceGroupManagerListWarningDataItem
where
toJSON InstanceGroupManagerListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _igmlwdiValue,
("key" .=) <$> _igmlwdiKey])
data ForwardingRuleAggregatedListWarning =
ForwardingRuleAggregatedListWarning'
{ _fralwData :: !(Maybe [ForwardingRuleAggregatedListWarningDataItem])
, _fralwCode :: !(Maybe ForwardingRuleAggregatedListWarningCode)
, _fralwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleAggregatedListWarning
:: ForwardingRuleAggregatedListWarning
forwardingRuleAggregatedListWarning =
ForwardingRuleAggregatedListWarning'
{_fralwData = Nothing, _fralwCode = Nothing, _fralwMessage = Nothing}
fralwData :: Lens' ForwardingRuleAggregatedListWarning [ForwardingRuleAggregatedListWarningDataItem]
fralwData
= lens _fralwData (\ s a -> s{_fralwData = a}) .
_Default
. _Coerce
fralwCode :: Lens' ForwardingRuleAggregatedListWarning (Maybe ForwardingRuleAggregatedListWarningCode)
fralwCode
= lens _fralwCode (\ s a -> s{_fralwCode = a})
fralwMessage :: Lens' ForwardingRuleAggregatedListWarning (Maybe Text)
fralwMessage
= lens _fralwMessage (\ s a -> s{_fralwMessage = a})
instance FromJSON ForwardingRuleAggregatedListWarning
where
parseJSON
= withObject "ForwardingRuleAggregatedListWarning"
(\ o ->
ForwardingRuleAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON ForwardingRuleAggregatedListWarning
where
toJSON ForwardingRuleAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _fralwData,
("code" .=) <$> _fralwCode,
("message" .=) <$> _fralwMessage])
data SSLPolicyWarningsItem =
SSLPolicyWarningsItem'
{ _spwiData :: !(Maybe [SSLPolicyWarningsItemDataItem])
, _spwiCode :: !(Maybe SSLPolicyWarningsItemCode)
, _spwiMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPolicyWarningsItem
:: SSLPolicyWarningsItem
sslPolicyWarningsItem =
SSLPolicyWarningsItem'
{_spwiData = Nothing, _spwiCode = Nothing, _spwiMessage = Nothing}
spwiData :: Lens' SSLPolicyWarningsItem [SSLPolicyWarningsItemDataItem]
spwiData
= lens _spwiData (\ s a -> s{_spwiData = a}) .
_Default
. _Coerce
spwiCode :: Lens' SSLPolicyWarningsItem (Maybe SSLPolicyWarningsItemCode)
spwiCode = lens _spwiCode (\ s a -> s{_spwiCode = a})
spwiMessage :: Lens' SSLPolicyWarningsItem (Maybe Text)
spwiMessage
= lens _spwiMessage (\ s a -> s{_spwiMessage = a})
instance FromJSON SSLPolicyWarningsItem where
parseJSON
= withObject "SSLPolicyWarningsItem"
(\ o ->
SSLPolicyWarningsItem' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SSLPolicyWarningsItem where
toJSON SSLPolicyWarningsItem'{..}
= object
(catMaybes
[("data" .=) <$> _spwiData,
("code" .=) <$> _spwiCode,
("message" .=) <$> _spwiMessage])
data GlobalSetPolicyRequest =
GlobalSetPolicyRequest'
{ _gsprEtag :: !(Maybe Bytes)
, _gsprBindings :: !(Maybe [Binding])
, _gsprPolicy :: !(Maybe Policy)
}
deriving (Eq, Show, Data, Typeable, Generic)
globalSetPolicyRequest
:: GlobalSetPolicyRequest
globalSetPolicyRequest =
GlobalSetPolicyRequest'
{_gsprEtag = Nothing, _gsprBindings = Nothing, _gsprPolicy = Nothing}
gsprEtag :: Lens' GlobalSetPolicyRequest (Maybe ByteString)
gsprEtag
= lens _gsprEtag (\ s a -> s{_gsprEtag = a}) .
mapping _Bytes
gsprBindings :: Lens' GlobalSetPolicyRequest [Binding]
gsprBindings
= lens _gsprBindings (\ s a -> s{_gsprBindings = a})
. _Default
. _Coerce
gsprPolicy :: Lens' GlobalSetPolicyRequest (Maybe Policy)
gsprPolicy
= lens _gsprPolicy (\ s a -> s{_gsprPolicy = a})
instance FromJSON GlobalSetPolicyRequest where
parseJSON
= withObject "GlobalSetPolicyRequest"
(\ o ->
GlobalSetPolicyRequest' <$>
(o .:? "etag") <*> (o .:? "bindings" .!= mempty) <*>
(o .:? "policy"))
instance ToJSON GlobalSetPolicyRequest where
toJSON GlobalSetPolicyRequest'{..}
= object
(catMaybes
[("etag" .=) <$> _gsprEtag,
("bindings" .=) <$> _gsprBindings,
("policy" .=) <$> _gsprPolicy])
data RegionAutoscalerListWarningDataItem =
RegionAutoscalerListWarningDataItem'
{ _ralwdiaValue :: !(Maybe Text)
, _ralwdiaKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionAutoscalerListWarningDataItem
:: RegionAutoscalerListWarningDataItem
regionAutoscalerListWarningDataItem =
RegionAutoscalerListWarningDataItem'
{_ralwdiaValue = Nothing, _ralwdiaKey = Nothing}
ralwdiaValue :: Lens' RegionAutoscalerListWarningDataItem (Maybe Text)
ralwdiaValue
= lens _ralwdiaValue (\ s a -> s{_ralwdiaValue = a})
ralwdiaKey :: Lens' RegionAutoscalerListWarningDataItem (Maybe Text)
ralwdiaKey
= lens _ralwdiaKey (\ s a -> s{_ralwdiaKey = a})
instance FromJSON RegionAutoscalerListWarningDataItem
where
parseJSON
= withObject "RegionAutoscalerListWarningDataItem"
(\ o ->
RegionAutoscalerListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RegionAutoscalerListWarningDataItem
where
toJSON RegionAutoscalerListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ralwdiaValue,
("key" .=) <$> _ralwdiaKey])
newtype GlobalSetLabelsRequestLabels =
GlobalSetLabelsRequestLabels'
{ _gslrlAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
globalSetLabelsRequestLabels
:: HashMap Text Text
-> GlobalSetLabelsRequestLabels
globalSetLabelsRequestLabels pGslrlAddtional_ =
GlobalSetLabelsRequestLabels' {_gslrlAddtional = _Coerce # pGslrlAddtional_}
gslrlAddtional :: Lens' GlobalSetLabelsRequestLabels (HashMap Text Text)
gslrlAddtional
= lens _gslrlAddtional
(\ s a -> s{_gslrlAddtional = a})
. _Coerce
instance FromJSON GlobalSetLabelsRequestLabels where
parseJSON
= withObject "GlobalSetLabelsRequestLabels"
(\ o ->
GlobalSetLabelsRequestLabels' <$>
(parseJSONObject o))
instance ToJSON GlobalSetLabelsRequestLabels where
toJSON = toJSON . _gslrlAddtional
data TargetPoolsScopedListWarning =
TargetPoolsScopedListWarning'
{ _tpslwData :: !(Maybe [TargetPoolsScopedListWarningDataItem])
, _tpslwCode :: !(Maybe TargetPoolsScopedListWarningCode)
, _tpslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolsScopedListWarning
:: TargetPoolsScopedListWarning
targetPoolsScopedListWarning =
TargetPoolsScopedListWarning'
{_tpslwData = Nothing, _tpslwCode = Nothing, _tpslwMessage = Nothing}
tpslwData :: Lens' TargetPoolsScopedListWarning [TargetPoolsScopedListWarningDataItem]
tpslwData
= lens _tpslwData (\ s a -> s{_tpslwData = a}) .
_Default
. _Coerce
tpslwCode :: Lens' TargetPoolsScopedListWarning (Maybe TargetPoolsScopedListWarningCode)
tpslwCode
= lens _tpslwCode (\ s a -> s{_tpslwCode = a})
tpslwMessage :: Lens' TargetPoolsScopedListWarning (Maybe Text)
tpslwMessage
= lens _tpslwMessage (\ s a -> s{_tpslwMessage = a})
instance FromJSON TargetPoolsScopedListWarning where
parseJSON
= withObject "TargetPoolsScopedListWarning"
(\ o ->
TargetPoolsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetPoolsScopedListWarning where
toJSON TargetPoolsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tpslwData,
("code" .=) <$> _tpslwCode,
("message" .=) <$> _tpslwMessage])
data HealthStatus =
HealthStatus'
{ _hsIPAddress :: !(Maybe Text)
, _hsHealthState :: !(Maybe HealthStatusHealthState)
, _hsPort :: !(Maybe (Textual Int32))
, _hsInstance :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
healthStatus
:: HealthStatus
healthStatus =
HealthStatus'
{ _hsIPAddress = Nothing
, _hsHealthState = Nothing
, _hsPort = Nothing
, _hsInstance = Nothing
}
hsIPAddress :: Lens' HealthStatus (Maybe Text)
hsIPAddress
= lens _hsIPAddress (\ s a -> s{_hsIPAddress = a})
hsHealthState :: Lens' HealthStatus (Maybe HealthStatusHealthState)
hsHealthState
= lens _hsHealthState
(\ s a -> s{_hsHealthState = a})
hsPort :: Lens' HealthStatus (Maybe Int32)
hsPort
= lens _hsPort (\ s a -> s{_hsPort = a}) .
mapping _Coerce
hsInstance :: Lens' HealthStatus (Maybe Text)
hsInstance
= lens _hsInstance (\ s a -> s{_hsInstance = a})
instance FromJSON HealthStatus where
parseJSON
= withObject "HealthStatus"
(\ o ->
HealthStatus' <$>
(o .:? "ipAddress") <*> (o .:? "healthState") <*>
(o .:? "port")
<*> (o .:? "instance"))
instance ToJSON HealthStatus where
toJSON HealthStatus'{..}
= object
(catMaybes
[("ipAddress" .=) <$> _hsIPAddress,
("healthState" .=) <$> _hsHealthState,
("port" .=) <$> _hsPort,
("instance" .=) <$> _hsInstance])
data TargetTCPProxyList =
TargetTCPProxyList'
{ _ttplNextPageToken :: !(Maybe Text)
, _ttplKind :: !Text
, _ttplItems :: !(Maybe [TargetTCPProxy])
, _ttplSelfLink :: !(Maybe Text)
, _ttplWarning :: !(Maybe TargetTCPProxyListWarning)
, _ttplId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetTCPProxyList
:: TargetTCPProxyList
targetTCPProxyList =
TargetTCPProxyList'
{ _ttplNextPageToken = Nothing
, _ttplKind = "compute#targetTcpProxyList"
, _ttplItems = Nothing
, _ttplSelfLink = Nothing
, _ttplWarning = Nothing
, _ttplId = Nothing
}
ttplNextPageToken :: Lens' TargetTCPProxyList (Maybe Text)
ttplNextPageToken
= lens _ttplNextPageToken
(\ s a -> s{_ttplNextPageToken = a})
ttplKind :: Lens' TargetTCPProxyList Text
ttplKind = lens _ttplKind (\ s a -> s{_ttplKind = a})
ttplItems :: Lens' TargetTCPProxyList [TargetTCPProxy]
ttplItems
= lens _ttplItems (\ s a -> s{_ttplItems = a}) .
_Default
. _Coerce
ttplSelfLink :: Lens' TargetTCPProxyList (Maybe Text)
ttplSelfLink
= lens _ttplSelfLink (\ s a -> s{_ttplSelfLink = a})
ttplWarning :: Lens' TargetTCPProxyList (Maybe TargetTCPProxyListWarning)
ttplWarning
= lens _ttplWarning (\ s a -> s{_ttplWarning = a})
ttplId :: Lens' TargetTCPProxyList (Maybe Text)
ttplId = lens _ttplId (\ s a -> s{_ttplId = a})
instance FromJSON TargetTCPProxyList where
parseJSON
= withObject "TargetTCPProxyList"
(\ o ->
TargetTCPProxyList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#targetTcpProxyList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetTCPProxyList where
toJSON TargetTCPProxyList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ttplNextPageToken,
Just ("kind" .= _ttplKind),
("items" .=) <$> _ttplItems,
("selfLink" .=) <$> _ttplSelfLink,
("warning" .=) <$> _ttplWarning,
("id" .=) <$> _ttplId])
data Region =
Region'
{ _regeStatus :: !(Maybe RegionStatus)
, _regeZones :: !(Maybe [Text])
, _regeKind :: !Text
, _regeSelfLink :: !(Maybe Text)
, _regeName :: !(Maybe Text)
, _regeCreationTimestamp :: !(Maybe Text)
, _regeQuotas :: !(Maybe [Quota])
, _regeId :: !(Maybe (Textual Word64))
, _regeDescription :: !(Maybe Text)
, _regeDeprecated :: !(Maybe DeprecationStatus)
}
deriving (Eq, Show, Data, Typeable, Generic)
region
:: Region
region =
Region'
{ _regeStatus = Nothing
, _regeZones = Nothing
, _regeKind = "compute#region"
, _regeSelfLink = Nothing
, _regeName = Nothing
, _regeCreationTimestamp = Nothing
, _regeQuotas = Nothing
, _regeId = Nothing
, _regeDescription = Nothing
, _regeDeprecated = Nothing
}
regeStatus :: Lens' Region (Maybe RegionStatus)
regeStatus
= lens _regeStatus (\ s a -> s{_regeStatus = a})
regeZones :: Lens' Region [Text]
regeZones
= lens _regeZones (\ s a -> s{_regeZones = a}) .
_Default
. _Coerce
regeKind :: Lens' Region Text
regeKind = lens _regeKind (\ s a -> s{_regeKind = a})
regeSelfLink :: Lens' Region (Maybe Text)
regeSelfLink
= lens _regeSelfLink (\ s a -> s{_regeSelfLink = a})
regeName :: Lens' Region (Maybe Text)
regeName = lens _regeName (\ s a -> s{_regeName = a})
regeCreationTimestamp :: Lens' Region (Maybe Text)
regeCreationTimestamp
= lens _regeCreationTimestamp
(\ s a -> s{_regeCreationTimestamp = a})
regeQuotas :: Lens' Region [Quota]
regeQuotas
= lens _regeQuotas (\ s a -> s{_regeQuotas = a}) .
_Default
. _Coerce
regeId :: Lens' Region (Maybe Word64)
regeId
= lens _regeId (\ s a -> s{_regeId = a}) .
mapping _Coerce
regeDescription :: Lens' Region (Maybe Text)
regeDescription
= lens _regeDescription
(\ s a -> s{_regeDescription = a})
regeDeprecated :: Lens' Region (Maybe DeprecationStatus)
regeDeprecated
= lens _regeDeprecated
(\ s a -> s{_regeDeprecated = a})
instance FromJSON Region where
parseJSON
= withObject "Region"
(\ o ->
Region' <$>
(o .:? "status") <*> (o .:? "zones" .!= mempty) <*>
(o .:? "kind" .!= "compute#region")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "quotas" .!= mempty)
<*> (o .:? "id")
<*> (o .:? "description")
<*> (o .:? "deprecated"))
instance ToJSON Region where
toJSON Region'{..}
= object
(catMaybes
[("status" .=) <$> _regeStatus,
("zones" .=) <$> _regeZones,
Just ("kind" .= _regeKind),
("selfLink" .=) <$> _regeSelfLink,
("name" .=) <$> _regeName,
("creationTimestamp" .=) <$> _regeCreationTimestamp,
("quotas" .=) <$> _regeQuotas, ("id" .=) <$> _regeId,
("description" .=) <$> _regeDescription,
("deprecated" .=) <$> _regeDeprecated])
data OperationListWarningDataItem =
OperationListWarningDataItem'
{ _olwdiValue :: !(Maybe Text)
, _olwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationListWarningDataItem
:: OperationListWarningDataItem
operationListWarningDataItem =
OperationListWarningDataItem' {_olwdiValue = Nothing, _olwdiKey = Nothing}
olwdiValue :: Lens' OperationListWarningDataItem (Maybe Text)
olwdiValue
= lens _olwdiValue (\ s a -> s{_olwdiValue = a})
olwdiKey :: Lens' OperationListWarningDataItem (Maybe Text)
olwdiKey = lens _olwdiKey (\ s a -> s{_olwdiKey = a})
instance FromJSON OperationListWarningDataItem where
parseJSON
= withObject "OperationListWarningDataItem"
(\ o ->
OperationListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON OperationListWarningDataItem where
toJSON OperationListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _olwdiValue,
("key" .=) <$> _olwdiKey])
newtype GuestOSFeature =
GuestOSFeature'
{ _gofType :: Maybe GuestOSFeatureType
}
deriving (Eq, Show, Data, Typeable, Generic)
guestOSFeature
:: GuestOSFeature
guestOSFeature = GuestOSFeature' {_gofType = Nothing}
gofType :: Lens' GuestOSFeature (Maybe GuestOSFeatureType)
gofType = lens _gofType (\ s a -> s{_gofType = a})
instance FromJSON GuestOSFeature where
parseJSON
= withObject "GuestOSFeature"
(\ o -> GuestOSFeature' <$> (o .:? "type"))
instance ToJSON GuestOSFeature where
toJSON GuestOSFeature'{..}
= object (catMaybes [("type" .=) <$> _gofType])
data VPNTunnel =
VPNTunnel'
{ _vtDetailedStatus :: !(Maybe Text)
, _vtStatus :: !(Maybe VPNTunnelStatus)
, _vtLocalTrafficSelector :: !(Maybe [Text])
, _vtKind :: !Text
, _vtPeerIP :: !(Maybe Text)
, _vtRouter :: !(Maybe Text)
, _vtTargetVPNGateway :: !(Maybe Text)
, _vtRemoteTrafficSelector :: !(Maybe [Text])
, _vtSelfLink :: !(Maybe Text)
, _vtSharedSecret :: !(Maybe Text)
, _vtName :: !(Maybe Text)
, _vtCreationTimestamp :: !(Maybe Text)
, _vtSharedSecretHash :: !(Maybe Text)
, _vtId :: !(Maybe (Textual Word64))
, _vtIkeVersion :: !(Maybe (Textual Int32))
, _vtRegion :: !(Maybe Text)
, _vtDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnel
:: VPNTunnel
vpnTunnel =
VPNTunnel'
{ _vtDetailedStatus = Nothing
, _vtStatus = Nothing
, _vtLocalTrafficSelector = Nothing
, _vtKind = "compute#vpnTunnel"
, _vtPeerIP = Nothing
, _vtRouter = Nothing
, _vtTargetVPNGateway = Nothing
, _vtRemoteTrafficSelector = Nothing
, _vtSelfLink = Nothing
, _vtSharedSecret = Nothing
, _vtName = Nothing
, _vtCreationTimestamp = Nothing
, _vtSharedSecretHash = Nothing
, _vtId = Nothing
, _vtIkeVersion = Nothing
, _vtRegion = Nothing
, _vtDescription = Nothing
}
vtDetailedStatus :: Lens' VPNTunnel (Maybe Text)
vtDetailedStatus
= lens _vtDetailedStatus
(\ s a -> s{_vtDetailedStatus = a})
vtStatus :: Lens' VPNTunnel (Maybe VPNTunnelStatus)
vtStatus = lens _vtStatus (\ s a -> s{_vtStatus = a})
vtLocalTrafficSelector :: Lens' VPNTunnel [Text]
vtLocalTrafficSelector
= lens _vtLocalTrafficSelector
(\ s a -> s{_vtLocalTrafficSelector = a})
. _Default
. _Coerce
vtKind :: Lens' VPNTunnel Text
vtKind = lens _vtKind (\ s a -> s{_vtKind = a})
vtPeerIP :: Lens' VPNTunnel (Maybe Text)
vtPeerIP = lens _vtPeerIP (\ s a -> s{_vtPeerIP = a})
vtRouter :: Lens' VPNTunnel (Maybe Text)
vtRouter = lens _vtRouter (\ s a -> s{_vtRouter = a})
vtTargetVPNGateway :: Lens' VPNTunnel (Maybe Text)
vtTargetVPNGateway
= lens _vtTargetVPNGateway
(\ s a -> s{_vtTargetVPNGateway = a})
vtRemoteTrafficSelector :: Lens' VPNTunnel [Text]
vtRemoteTrafficSelector
= lens _vtRemoteTrafficSelector
(\ s a -> s{_vtRemoteTrafficSelector = a})
. _Default
. _Coerce
vtSelfLink :: Lens' VPNTunnel (Maybe Text)
vtSelfLink
= lens _vtSelfLink (\ s a -> s{_vtSelfLink = a})
vtSharedSecret :: Lens' VPNTunnel (Maybe Text)
vtSharedSecret
= lens _vtSharedSecret
(\ s a -> s{_vtSharedSecret = a})
vtName :: Lens' VPNTunnel (Maybe Text)
vtName = lens _vtName (\ s a -> s{_vtName = a})
vtCreationTimestamp :: Lens' VPNTunnel (Maybe Text)
vtCreationTimestamp
= lens _vtCreationTimestamp
(\ s a -> s{_vtCreationTimestamp = a})
vtSharedSecretHash :: Lens' VPNTunnel (Maybe Text)
vtSharedSecretHash
= lens _vtSharedSecretHash
(\ s a -> s{_vtSharedSecretHash = a})
vtId :: Lens' VPNTunnel (Maybe Word64)
vtId
= lens _vtId (\ s a -> s{_vtId = a}) .
mapping _Coerce
vtIkeVersion :: Lens' VPNTunnel (Maybe Int32)
vtIkeVersion
= lens _vtIkeVersion (\ s a -> s{_vtIkeVersion = a})
. mapping _Coerce
vtRegion :: Lens' VPNTunnel (Maybe Text)
vtRegion = lens _vtRegion (\ s a -> s{_vtRegion = a})
vtDescription :: Lens' VPNTunnel (Maybe Text)
vtDescription
= lens _vtDescription
(\ s a -> s{_vtDescription = a})
instance FromJSON VPNTunnel where
parseJSON
= withObject "VPNTunnel"
(\ o ->
VPNTunnel' <$>
(o .:? "detailedStatus") <*> (o .:? "status") <*>
(o .:? "localTrafficSelector" .!= mempty)
<*> (o .:? "kind" .!= "compute#vpnTunnel")
<*> (o .:? "peerIp")
<*> (o .:? "router")
<*> (o .:? "targetVpnGateway")
<*> (o .:? "remoteTrafficSelector" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "sharedSecret")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "sharedSecretHash")
<*> (o .:? "id")
<*> (o .:? "ikeVersion")
<*> (o .:? "region")
<*> (o .:? "description"))
instance ToJSON VPNTunnel where
toJSON VPNTunnel'{..}
= object
(catMaybes
[("detailedStatus" .=) <$> _vtDetailedStatus,
("status" .=) <$> _vtStatus,
("localTrafficSelector" .=) <$>
_vtLocalTrafficSelector,
Just ("kind" .= _vtKind),
("peerIp" .=) <$> _vtPeerIP,
("router" .=) <$> _vtRouter,
("targetVpnGateway" .=) <$> _vtTargetVPNGateway,
("remoteTrafficSelector" .=) <$>
_vtRemoteTrafficSelector,
("selfLink" .=) <$> _vtSelfLink,
("sharedSecret" .=) <$> _vtSharedSecret,
("name" .=) <$> _vtName,
("creationTimestamp" .=) <$> _vtCreationTimestamp,
("sharedSecretHash" .=) <$> _vtSharedSecretHash,
("id" .=) <$> _vtId,
("ikeVersion" .=) <$> _vtIkeVersion,
("region" .=) <$> _vtRegion,
("description" .=) <$> _vtDescription])
data InstanceGroupManagerAggregatedListWarning =
InstanceGroupManagerAggregatedListWarning'
{ _igmalwData :: !(Maybe [InstanceGroupManagerAggregatedListWarningDataItem])
, _igmalwCode :: !(Maybe InstanceGroupManagerAggregatedListWarningCode)
, _igmalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagerAggregatedListWarning
:: InstanceGroupManagerAggregatedListWarning
instanceGroupManagerAggregatedListWarning =
InstanceGroupManagerAggregatedListWarning'
{_igmalwData = Nothing, _igmalwCode = Nothing, _igmalwMessage = Nothing}
igmalwData :: Lens' InstanceGroupManagerAggregatedListWarning [InstanceGroupManagerAggregatedListWarningDataItem]
igmalwData
= lens _igmalwData (\ s a -> s{_igmalwData = a}) .
_Default
. _Coerce
igmalwCode :: Lens' InstanceGroupManagerAggregatedListWarning (Maybe InstanceGroupManagerAggregatedListWarningCode)
igmalwCode
= lens _igmalwCode (\ s a -> s{_igmalwCode = a})
igmalwMessage :: Lens' InstanceGroupManagerAggregatedListWarning (Maybe Text)
igmalwMessage
= lens _igmalwMessage
(\ s a -> s{_igmalwMessage = a})
instance FromJSON
InstanceGroupManagerAggregatedListWarning
where
parseJSON
= withObject
"InstanceGroupManagerAggregatedListWarning"
(\ o ->
InstanceGroupManagerAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
InstanceGroupManagerAggregatedListWarning
where
toJSON InstanceGroupManagerAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _igmalwData,
("code" .=) <$> _igmalwCode,
("message" .=) <$> _igmalwMessage])
data DiskListWarningDataItem =
DiskListWarningDataItem'
{ _dlwdiValue :: !(Maybe Text)
, _dlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
diskListWarningDataItem
:: DiskListWarningDataItem
diskListWarningDataItem =
DiskListWarningDataItem' {_dlwdiValue = Nothing, _dlwdiKey = Nothing}
dlwdiValue :: Lens' DiskListWarningDataItem (Maybe Text)
dlwdiValue
= lens _dlwdiValue (\ s a -> s{_dlwdiValue = a})
dlwdiKey :: Lens' DiskListWarningDataItem (Maybe Text)
dlwdiKey = lens _dlwdiKey (\ s a -> s{_dlwdiKey = a})
instance FromJSON DiskListWarningDataItem where
parseJSON
= withObject "DiskListWarningDataItem"
(\ o ->
DiskListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON DiskListWarningDataItem where
toJSON DiskListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _dlwdiValue,
("key" .=) <$> _dlwdiKey])
newtype SourceInstanceParams =
SourceInstanceParams'
{ _sipDiskConfigs :: Maybe [DiskInstantiationConfig]
}
deriving (Eq, Show, Data, Typeable, Generic)
sourceInstanceParams
:: SourceInstanceParams
sourceInstanceParams = SourceInstanceParams' {_sipDiskConfigs = Nothing}
sipDiskConfigs :: Lens' SourceInstanceParams [DiskInstantiationConfig]
sipDiskConfigs
= lens _sipDiskConfigs
(\ s a -> s{_sipDiskConfigs = a})
. _Default
. _Coerce
instance FromJSON SourceInstanceParams where
parseJSON
= withObject "SourceInstanceParams"
(\ o ->
SourceInstanceParams' <$>
(o .:? "diskConfigs" .!= mempty))
instance ToJSON SourceInstanceParams where
toJSON SourceInstanceParams'{..}
= object
(catMaybes [("diskConfigs" .=) <$> _sipDiskConfigs])
data AliasIPRange =
AliasIPRange'
{ _airIPCIdRRange :: !(Maybe Text)
, _airSubnetworkRangeName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
aliasIPRange
:: AliasIPRange
aliasIPRange =
AliasIPRange' {_airIPCIdRRange = Nothing, _airSubnetworkRangeName = Nothing}
airIPCIdRRange :: Lens' AliasIPRange (Maybe Text)
airIPCIdRRange
= lens _airIPCIdRRange
(\ s a -> s{_airIPCIdRRange = a})
airSubnetworkRangeName :: Lens' AliasIPRange (Maybe Text)
airSubnetworkRangeName
= lens _airSubnetworkRangeName
(\ s a -> s{_airSubnetworkRangeName = a})
instance FromJSON AliasIPRange where
parseJSON
= withObject "AliasIPRange"
(\ o ->
AliasIPRange' <$>
(o .:? "ipCidrRange") <*>
(o .:? "subnetworkRangeName"))
instance ToJSON AliasIPRange where
toJSON AliasIPRange'{..}
= object
(catMaybes
[("ipCidrRange" .=) <$> _airIPCIdRRange,
("subnetworkRangeName" .=) <$>
_airSubnetworkRangeName])
data NodeTypesScopedListWarningDataItem =
NodeTypesScopedListWarningDataItem'
{ _ntslwditValue :: !(Maybe Text)
, _ntslwditKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypesScopedListWarningDataItem
:: NodeTypesScopedListWarningDataItem
nodeTypesScopedListWarningDataItem =
NodeTypesScopedListWarningDataItem'
{_ntslwditValue = Nothing, _ntslwditKey = Nothing}
ntslwditValue :: Lens' NodeTypesScopedListWarningDataItem (Maybe Text)
ntslwditValue
= lens _ntslwditValue
(\ s a -> s{_ntslwditValue = a})
ntslwditKey :: Lens' NodeTypesScopedListWarningDataItem (Maybe Text)
ntslwditKey
= lens _ntslwditKey (\ s a -> s{_ntslwditKey = a})
instance FromJSON NodeTypesScopedListWarningDataItem
where
parseJSON
= withObject "NodeTypesScopedListWarningDataItem"
(\ o ->
NodeTypesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NodeTypesScopedListWarningDataItem
where
toJSON NodeTypesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ntslwditValue,
("key" .=) <$> _ntslwditKey])
data TargetInstanceListWarning =
TargetInstanceListWarning'
{ _tilwData :: !(Maybe [TargetInstanceListWarningDataItem])
, _tilwCode :: !(Maybe TargetInstanceListWarningCode)
, _tilwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstanceListWarning
:: TargetInstanceListWarning
targetInstanceListWarning =
TargetInstanceListWarning'
{_tilwData = Nothing, _tilwCode = Nothing, _tilwMessage = Nothing}
tilwData :: Lens' TargetInstanceListWarning [TargetInstanceListWarningDataItem]
tilwData
= lens _tilwData (\ s a -> s{_tilwData = a}) .
_Default
. _Coerce
tilwCode :: Lens' TargetInstanceListWarning (Maybe TargetInstanceListWarningCode)
tilwCode = lens _tilwCode (\ s a -> s{_tilwCode = a})
tilwMessage :: Lens' TargetInstanceListWarning (Maybe Text)
tilwMessage
= lens _tilwMessage (\ s a -> s{_tilwMessage = a})
instance FromJSON TargetInstanceListWarning where
parseJSON
= withObject "TargetInstanceListWarning"
(\ o ->
TargetInstanceListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON TargetInstanceListWarning where
toJSON TargetInstanceListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _tilwData,
("code" .=) <$> _tilwCode,
("message" .=) <$> _tilwMessage])
data NodeType =
NodeType'
{ _ntKind :: !Text
, _ntZone :: !(Maybe Text)
, _ntCPUPlatform :: !(Maybe Text)
, _ntLocalSsdGb :: !(Maybe (Textual Int32))
, _ntSelfLink :: !(Maybe Text)
, _ntName :: !(Maybe Text)
, _ntCreationTimestamp :: !(Maybe Text)
, _ntId :: !(Maybe (Textual Word64))
, _ntGuestCPUs :: !(Maybe (Textual Int32))
, _ntMemoryMb :: !(Maybe (Textual Int32))
, _ntDescription :: !(Maybe Text)
, _ntDeprecated :: !(Maybe DeprecationStatus)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeType
:: NodeType
nodeType =
NodeType'
{ _ntKind = "compute#nodeType"
, _ntZone = Nothing
, _ntCPUPlatform = Nothing
, _ntLocalSsdGb = Nothing
, _ntSelfLink = Nothing
, _ntName = Nothing
, _ntCreationTimestamp = Nothing
, _ntId = Nothing
, _ntGuestCPUs = Nothing
, _ntMemoryMb = Nothing
, _ntDescription = Nothing
, _ntDeprecated = Nothing
}
ntKind :: Lens' NodeType Text
ntKind = lens _ntKind (\ s a -> s{_ntKind = a})
ntZone :: Lens' NodeType (Maybe Text)
ntZone = lens _ntZone (\ s a -> s{_ntZone = a})
ntCPUPlatform :: Lens' NodeType (Maybe Text)
ntCPUPlatform
= lens _ntCPUPlatform
(\ s a -> s{_ntCPUPlatform = a})
ntLocalSsdGb :: Lens' NodeType (Maybe Int32)
ntLocalSsdGb
= lens _ntLocalSsdGb (\ s a -> s{_ntLocalSsdGb = a})
. mapping _Coerce
ntSelfLink :: Lens' NodeType (Maybe Text)
ntSelfLink
= lens _ntSelfLink (\ s a -> s{_ntSelfLink = a})
ntName :: Lens' NodeType (Maybe Text)
ntName = lens _ntName (\ s a -> s{_ntName = a})
ntCreationTimestamp :: Lens' NodeType (Maybe Text)
ntCreationTimestamp
= lens _ntCreationTimestamp
(\ s a -> s{_ntCreationTimestamp = a})
ntId :: Lens' NodeType (Maybe Word64)
ntId
= lens _ntId (\ s a -> s{_ntId = a}) .
mapping _Coerce
ntGuestCPUs :: Lens' NodeType (Maybe Int32)
ntGuestCPUs
= lens _ntGuestCPUs (\ s a -> s{_ntGuestCPUs = a}) .
mapping _Coerce
ntMemoryMb :: Lens' NodeType (Maybe Int32)
ntMemoryMb
= lens _ntMemoryMb (\ s a -> s{_ntMemoryMb = a}) .
mapping _Coerce
ntDescription :: Lens' NodeType (Maybe Text)
ntDescription
= lens _ntDescription
(\ s a -> s{_ntDescription = a})
ntDeprecated :: Lens' NodeType (Maybe DeprecationStatus)
ntDeprecated
= lens _ntDeprecated (\ s a -> s{_ntDeprecated = a})
instance FromJSON NodeType where
parseJSON
= withObject "NodeType"
(\ o ->
NodeType' <$>
(o .:? "kind" .!= "compute#nodeType") <*>
(o .:? "zone")
<*> (o .:? "cpuPlatform")
<*> (o .:? "localSsdGb")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "guestCpus")
<*> (o .:? "memoryMb")
<*> (o .:? "description")
<*> (o .:? "deprecated"))
instance ToJSON NodeType where
toJSON NodeType'{..}
= object
(catMaybes
[Just ("kind" .= _ntKind), ("zone" .=) <$> _ntZone,
("cpuPlatform" .=) <$> _ntCPUPlatform,
("localSsdGb" .=) <$> _ntLocalSsdGb,
("selfLink" .=) <$> _ntSelfLink,
("name" .=) <$> _ntName,
("creationTimestamp" .=) <$> _ntCreationTimestamp,
("id" .=) <$> _ntId,
("guestCpus" .=) <$> _ntGuestCPUs,
("memoryMb" .=) <$> _ntMemoryMb,
("description" .=) <$> _ntDescription,
("deprecated" .=) <$> _ntDeprecated])
newtype AuthorizationLoggingOptions =
AuthorizationLoggingOptions'
{ _aloPermissionType :: Maybe AuthorizationLoggingOptionsPermissionType
}
deriving (Eq, Show, Data, Typeable, Generic)
authorizationLoggingOptions
:: AuthorizationLoggingOptions
authorizationLoggingOptions =
AuthorizationLoggingOptions' {_aloPermissionType = Nothing}
aloPermissionType :: Lens' AuthorizationLoggingOptions (Maybe AuthorizationLoggingOptionsPermissionType)
aloPermissionType
= lens _aloPermissionType
(\ s a -> s{_aloPermissionType = a})
instance FromJSON AuthorizationLoggingOptions where
parseJSON
= withObject "AuthorizationLoggingOptions"
(\ o ->
AuthorizationLoggingOptions' <$>
(o .:? "permissionType"))
instance ToJSON AuthorizationLoggingOptions where
toJSON AuthorizationLoggingOptions'{..}
= object
(catMaybes
[("permissionType" .=) <$> _aloPermissionType])
data Policy =
Policy'
{ _pAuditConfigs :: !(Maybe [AuditConfig])
, _pEtag :: !(Maybe Bytes)
, _pRules :: !(Maybe [Rule])
, _pVersion :: !(Maybe (Textual Int32))
, _pBindings :: !(Maybe [Binding])
, _pIAMOwned :: !(Maybe Bool)
}
deriving (Eq, Show, Data, Typeable, Generic)
policy
:: Policy
policy =
Policy'
{ _pAuditConfigs = Nothing
, _pEtag = Nothing
, _pRules = Nothing
, _pVersion = Nothing
, _pBindings = Nothing
, _pIAMOwned = Nothing
}
pAuditConfigs :: Lens' Policy [AuditConfig]
pAuditConfigs
= lens _pAuditConfigs
(\ s a -> s{_pAuditConfigs = a})
. _Default
. _Coerce
pEtag :: Lens' Policy (Maybe ByteString)
pEtag
= lens _pEtag (\ s a -> s{_pEtag = a}) .
mapping _Bytes
pRules :: Lens' Policy [Rule]
pRules
= lens _pRules (\ s a -> s{_pRules = a}) . _Default .
_Coerce
pVersion :: Lens' Policy (Maybe Int32)
pVersion
= lens _pVersion (\ s a -> s{_pVersion = a}) .
mapping _Coerce
pBindings :: Lens' Policy [Binding]
pBindings
= lens _pBindings (\ s a -> s{_pBindings = a}) .
_Default
. _Coerce
pIAMOwned :: Lens' Policy (Maybe Bool)
pIAMOwned
= lens _pIAMOwned (\ s a -> s{_pIAMOwned = a})
instance FromJSON Policy where
parseJSON
= withObject "Policy"
(\ o ->
Policy' <$>
(o .:? "auditConfigs" .!= mempty) <*> (o .:? "etag")
<*> (o .:? "rules" .!= mempty)
<*> (o .:? "version")
<*> (o .:? "bindings" .!= mempty)
<*> (o .:? "iamOwned"))
instance ToJSON Policy where
toJSON Policy'{..}
= object
(catMaybes
[("auditConfigs" .=) <$> _pAuditConfigs,
("etag" .=) <$> _pEtag, ("rules" .=) <$> _pRules,
("version" .=) <$> _pVersion,
("bindings" .=) <$> _pBindings,
("iamOwned" .=) <$> _pIAMOwned])
data OperationAggregatedListWarning =
OperationAggregatedListWarning'
{ _oalwData :: !(Maybe [OperationAggregatedListWarningDataItem])
, _oalwCode :: !(Maybe OperationAggregatedListWarningCode)
, _oalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationAggregatedListWarning
:: OperationAggregatedListWarning
operationAggregatedListWarning =
OperationAggregatedListWarning'
{_oalwData = Nothing, _oalwCode = Nothing, _oalwMessage = Nothing}
oalwData :: Lens' OperationAggregatedListWarning [OperationAggregatedListWarningDataItem]
oalwData
= lens _oalwData (\ s a -> s{_oalwData = a}) .
_Default
. _Coerce
oalwCode :: Lens' OperationAggregatedListWarning (Maybe OperationAggregatedListWarningCode)
oalwCode = lens _oalwCode (\ s a -> s{_oalwCode = a})
oalwMessage :: Lens' OperationAggregatedListWarning (Maybe Text)
oalwMessage
= lens _oalwMessage (\ s a -> s{_oalwMessage = a})
instance FromJSON OperationAggregatedListWarning
where
parseJSON
= withObject "OperationAggregatedListWarning"
(\ o ->
OperationAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON OperationAggregatedListWarning where
toJSON OperationAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _oalwData,
("code" .=) <$> _oalwCode,
("message" .=) <$> _oalwMessage])
data TargetInstanceAggregatedListWarningDataItem =
TargetInstanceAggregatedListWarningDataItem'
{ _tialwdiValue :: !(Maybe Text)
, _tialwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetInstanceAggregatedListWarningDataItem
:: TargetInstanceAggregatedListWarningDataItem
targetInstanceAggregatedListWarningDataItem =
TargetInstanceAggregatedListWarningDataItem'
{_tialwdiValue = Nothing, _tialwdiKey = Nothing}
tialwdiValue :: Lens' TargetInstanceAggregatedListWarningDataItem (Maybe Text)
tialwdiValue
= lens _tialwdiValue (\ s a -> s{_tialwdiValue = a})
tialwdiKey :: Lens' TargetInstanceAggregatedListWarningDataItem (Maybe Text)
tialwdiKey
= lens _tialwdiKey (\ s a -> s{_tialwdiKey = a})
instance FromJSON
TargetInstanceAggregatedListWarningDataItem
where
parseJSON
= withObject
"TargetInstanceAggregatedListWarningDataItem"
(\ o ->
TargetInstanceAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
TargetInstanceAggregatedListWarningDataItem
where
toJSON
TargetInstanceAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tialwdiValue,
("key" .=) <$> _tialwdiKey])
data OperationsScopedListWarning =
OperationsScopedListWarning'
{ _oslwData :: !(Maybe [OperationsScopedListWarningDataItem])
, _oslwCode :: !(Maybe OperationsScopedListWarningCode)
, _oslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationsScopedListWarning
:: OperationsScopedListWarning
operationsScopedListWarning =
OperationsScopedListWarning'
{_oslwData = Nothing, _oslwCode = Nothing, _oslwMessage = Nothing}
oslwData :: Lens' OperationsScopedListWarning [OperationsScopedListWarningDataItem]
oslwData
= lens _oslwData (\ s a -> s{_oslwData = a}) .
_Default
. _Coerce
oslwCode :: Lens' OperationsScopedListWarning (Maybe OperationsScopedListWarningCode)
oslwCode = lens _oslwCode (\ s a -> s{_oslwCode = a})
oslwMessage :: Lens' OperationsScopedListWarning (Maybe Text)
oslwMessage
= lens _oslwMessage (\ s a -> s{_oslwMessage = a})
instance FromJSON OperationsScopedListWarning where
parseJSON
= withObject "OperationsScopedListWarning"
(\ o ->
OperationsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON OperationsScopedListWarning where
toJSON OperationsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _oslwData,
("code" .=) <$> _oslwCode,
("message" .=) <$> _oslwMessage])
data RegionDiskTypeListWarningDataItem =
RegionDiskTypeListWarningDataItem'
{ _rdtlwdiValue :: !(Maybe Text)
, _rdtlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionDiskTypeListWarningDataItem
:: RegionDiskTypeListWarningDataItem
regionDiskTypeListWarningDataItem =
RegionDiskTypeListWarningDataItem'
{_rdtlwdiValue = Nothing, _rdtlwdiKey = Nothing}
rdtlwdiValue :: Lens' RegionDiskTypeListWarningDataItem (Maybe Text)
rdtlwdiValue
= lens _rdtlwdiValue (\ s a -> s{_rdtlwdiValue = a})
rdtlwdiKey :: Lens' RegionDiskTypeListWarningDataItem (Maybe Text)
rdtlwdiKey
= lens _rdtlwdiKey (\ s a -> s{_rdtlwdiKey = a})
instance FromJSON RegionDiskTypeListWarningDataItem
where
parseJSON
= withObject "RegionDiskTypeListWarningDataItem"
(\ o ->
RegionDiskTypeListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON RegionDiskTypeListWarningDataItem
where
toJSON RegionDiskTypeListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _rdtlwdiValue,
("key" .=) <$> _rdtlwdiKey])
data ForwardingRuleListWarningDataItem =
ForwardingRuleListWarningDataItem'
{ _frlwdiValue :: !(Maybe Text)
, _frlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRuleListWarningDataItem
:: ForwardingRuleListWarningDataItem
forwardingRuleListWarningDataItem =
ForwardingRuleListWarningDataItem'
{_frlwdiValue = Nothing, _frlwdiKey = Nothing}
frlwdiValue :: Lens' ForwardingRuleListWarningDataItem (Maybe Text)
frlwdiValue
= lens _frlwdiValue (\ s a -> s{_frlwdiValue = a})
frlwdiKey :: Lens' ForwardingRuleListWarningDataItem (Maybe Text)
frlwdiKey
= lens _frlwdiKey (\ s a -> s{_frlwdiKey = a})
instance FromJSON ForwardingRuleListWarningDataItem
where
parseJSON
= withObject "ForwardingRuleListWarningDataItem"
(\ o ->
ForwardingRuleListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON ForwardingRuleListWarningDataItem
where
toJSON ForwardingRuleListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _frlwdiValue,
("key" .=) <$> _frlwdiKey])
data Scheduling =
Scheduling'
{ _sAutomaticRestart :: !(Maybe Bool)
, _sNodeAffinities :: !(Maybe [SchedulingNodeAffinity])
, _sOnHostMaintenance :: !(Maybe SchedulingOnHostMaintenance)
, _sPreemptible :: !(Maybe Bool)
}
deriving (Eq, Show, Data, Typeable, Generic)
scheduling
:: Scheduling
scheduling =
Scheduling'
{ _sAutomaticRestart = Nothing
, _sNodeAffinities = Nothing
, _sOnHostMaintenance = Nothing
, _sPreemptible = Nothing
}
sAutomaticRestart :: Lens' Scheduling (Maybe Bool)
sAutomaticRestart
= lens _sAutomaticRestart
(\ s a -> s{_sAutomaticRestart = a})
sNodeAffinities :: Lens' Scheduling [SchedulingNodeAffinity]
sNodeAffinities
= lens _sNodeAffinities
(\ s a -> s{_sNodeAffinities = a})
. _Default
. _Coerce
sOnHostMaintenance :: Lens' Scheduling (Maybe SchedulingOnHostMaintenance)
sOnHostMaintenance
= lens _sOnHostMaintenance
(\ s a -> s{_sOnHostMaintenance = a})
sPreemptible :: Lens' Scheduling (Maybe Bool)
sPreemptible
= lens _sPreemptible (\ s a -> s{_sPreemptible = a})
instance FromJSON Scheduling where
parseJSON
= withObject "Scheduling"
(\ o ->
Scheduling' <$>
(o .:? "automaticRestart") <*>
(o .:? "nodeAffinities" .!= mempty)
<*> (o .:? "onHostMaintenance")
<*> (o .:? "preemptible"))
instance ToJSON Scheduling where
toJSON Scheduling'{..}
= object
(catMaybes
[("automaticRestart" .=) <$> _sAutomaticRestart,
("nodeAffinities" .=) <$> _sNodeAffinities,
("onHostMaintenance" .=) <$> _sOnHostMaintenance,
("preemptible" .=) <$> _sPreemptible])
data VPNTunnelsScopedListWarningDataItem =
VPNTunnelsScopedListWarningDataItem'
{ _vtslwdiValue :: !(Maybe Text)
, _vtslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelsScopedListWarningDataItem
:: VPNTunnelsScopedListWarningDataItem
vpnTunnelsScopedListWarningDataItem =
VPNTunnelsScopedListWarningDataItem'
{_vtslwdiValue = Nothing, _vtslwdiKey = Nothing}
vtslwdiValue :: Lens' VPNTunnelsScopedListWarningDataItem (Maybe Text)
vtslwdiValue
= lens _vtslwdiValue (\ s a -> s{_vtslwdiValue = a})
vtslwdiKey :: Lens' VPNTunnelsScopedListWarningDataItem (Maybe Text)
vtslwdiKey
= lens _vtslwdiKey (\ s a -> s{_vtslwdiKey = a})
instance FromJSON VPNTunnelsScopedListWarningDataItem
where
parseJSON
= withObject "VPNTunnelsScopedListWarningDataItem"
(\ o ->
VPNTunnelsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON VPNTunnelsScopedListWarningDataItem
where
toJSON VPNTunnelsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _vtslwdiValue,
("key" .=) <$> _vtslwdiKey])
data InterconnectList =
InterconnectList'
{ _intnNextPageToken :: !(Maybe Text)
, _intnKind :: !Text
, _intnItems :: !(Maybe [Interconnect])
, _intnSelfLink :: !(Maybe Text)
, _intnWarning :: !(Maybe InterconnectListWarning)
, _intnId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectList
:: InterconnectList
interconnectList =
InterconnectList'
{ _intnNextPageToken = Nothing
, _intnKind = "compute#interconnectList"
, _intnItems = Nothing
, _intnSelfLink = Nothing
, _intnWarning = Nothing
, _intnId = Nothing
}
intnNextPageToken :: Lens' InterconnectList (Maybe Text)
intnNextPageToken
= lens _intnNextPageToken
(\ s a -> s{_intnNextPageToken = a})
intnKind :: Lens' InterconnectList Text
intnKind = lens _intnKind (\ s a -> s{_intnKind = a})
intnItems :: Lens' InterconnectList [Interconnect]
intnItems
= lens _intnItems (\ s a -> s{_intnItems = a}) .
_Default
. _Coerce
intnSelfLink :: Lens' InterconnectList (Maybe Text)
intnSelfLink
= lens _intnSelfLink (\ s a -> s{_intnSelfLink = a})
intnWarning :: Lens' InterconnectList (Maybe InterconnectListWarning)
intnWarning
= lens _intnWarning (\ s a -> s{_intnWarning = a})
intnId :: Lens' InterconnectList (Maybe Text)
intnId = lens _intnId (\ s a -> s{_intnId = a})
instance FromJSON InterconnectList where
parseJSON
= withObject "InterconnectList"
(\ o ->
InterconnectList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#interconnectList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InterconnectList where
toJSON InterconnectList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _intnNextPageToken,
Just ("kind" .= _intnKind),
("items" .=) <$> _intnItems,
("selfLink" .=) <$> _intnSelfLink,
("warning" .=) <$> _intnWarning,
("id" .=) <$> _intnId])
data TargetPoolListWarningDataItem =
TargetPoolListWarningDataItem'
{ _tplwdiValue :: !(Maybe Text)
, _tplwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetPoolListWarningDataItem
:: TargetPoolListWarningDataItem
targetPoolListWarningDataItem =
TargetPoolListWarningDataItem' {_tplwdiValue = Nothing, _tplwdiKey = Nothing}
tplwdiValue :: Lens' TargetPoolListWarningDataItem (Maybe Text)
tplwdiValue
= lens _tplwdiValue (\ s a -> s{_tplwdiValue = a})
tplwdiKey :: Lens' TargetPoolListWarningDataItem (Maybe Text)
tplwdiKey
= lens _tplwdiKey (\ s a -> s{_tplwdiKey = a})
instance FromJSON TargetPoolListWarningDataItem where
parseJSON
= withObject "TargetPoolListWarningDataItem"
(\ o ->
TargetPoolListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON TargetPoolListWarningDataItem where
toJSON TargetPoolListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _tplwdiValue,
("key" .=) <$> _tplwdiKey])
data NodeTemplate =
NodeTemplate'
{ _nttStatus :: !(Maybe NodeTemplateStatus)
, _nttKind :: !Text
, _nttSelfLink :: !(Maybe Text)
, _nttName :: !(Maybe Text)
, _nttStatusMessage :: !(Maybe Text)
, _nttCreationTimestamp :: !(Maybe Text)
, _nttNodeAffinityLabels :: !(Maybe NodeTemplateNodeAffinityLabels)
, _nttId :: !(Maybe (Textual Word64))
, _nttNodeTypeFlexibility :: !(Maybe NodeTemplateNodeTypeFlexibility)
, _nttNodeType :: !(Maybe Text)
, _nttRegion :: !(Maybe Text)
, _nttDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplate
:: NodeTemplate
nodeTemplate =
NodeTemplate'
{ _nttStatus = Nothing
, _nttKind = "compute#nodeTemplate"
, _nttSelfLink = Nothing
, _nttName = Nothing
, _nttStatusMessage = Nothing
, _nttCreationTimestamp = Nothing
, _nttNodeAffinityLabels = Nothing
, _nttId = Nothing
, _nttNodeTypeFlexibility = Nothing
, _nttNodeType = Nothing
, _nttRegion = Nothing
, _nttDescription = Nothing
}
nttStatus :: Lens' NodeTemplate (Maybe NodeTemplateStatus)
nttStatus
= lens _nttStatus (\ s a -> s{_nttStatus = a})
nttKind :: Lens' NodeTemplate Text
nttKind = lens _nttKind (\ s a -> s{_nttKind = a})
nttSelfLink :: Lens' NodeTemplate (Maybe Text)
nttSelfLink
= lens _nttSelfLink (\ s a -> s{_nttSelfLink = a})
nttName :: Lens' NodeTemplate (Maybe Text)
nttName = lens _nttName (\ s a -> s{_nttName = a})
nttStatusMessage :: Lens' NodeTemplate (Maybe Text)
nttStatusMessage
= lens _nttStatusMessage
(\ s a -> s{_nttStatusMessage = a})
nttCreationTimestamp :: Lens' NodeTemplate (Maybe Text)
nttCreationTimestamp
= lens _nttCreationTimestamp
(\ s a -> s{_nttCreationTimestamp = a})
nttNodeAffinityLabels :: Lens' NodeTemplate (Maybe NodeTemplateNodeAffinityLabels)
nttNodeAffinityLabels
= lens _nttNodeAffinityLabels
(\ s a -> s{_nttNodeAffinityLabels = a})
nttId :: Lens' NodeTemplate (Maybe Word64)
nttId
= lens _nttId (\ s a -> s{_nttId = a}) .
mapping _Coerce
nttNodeTypeFlexibility :: Lens' NodeTemplate (Maybe NodeTemplateNodeTypeFlexibility)
nttNodeTypeFlexibility
= lens _nttNodeTypeFlexibility
(\ s a -> s{_nttNodeTypeFlexibility = a})
nttNodeType :: Lens' NodeTemplate (Maybe Text)
nttNodeType
= lens _nttNodeType (\ s a -> s{_nttNodeType = a})
nttRegion :: Lens' NodeTemplate (Maybe Text)
nttRegion
= lens _nttRegion (\ s a -> s{_nttRegion = a})
nttDescription :: Lens' NodeTemplate (Maybe Text)
nttDescription
= lens _nttDescription
(\ s a -> s{_nttDescription = a})
instance FromJSON NodeTemplate where
parseJSON
= withObject "NodeTemplate"
(\ o ->
NodeTemplate' <$>
(o .:? "status") <*>
(o .:? "kind" .!= "compute#nodeTemplate")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "statusMessage")
<*> (o .:? "creationTimestamp")
<*> (o .:? "nodeAffinityLabels")
<*> (o .:? "id")
<*> (o .:? "nodeTypeFlexibility")
<*> (o .:? "nodeType")
<*> (o .:? "region")
<*> (o .:? "description"))
instance ToJSON NodeTemplate where
toJSON NodeTemplate'{..}
= object
(catMaybes
[("status" .=) <$> _nttStatus,
Just ("kind" .= _nttKind),
("selfLink" .=) <$> _nttSelfLink,
("name" .=) <$> _nttName,
("statusMessage" .=) <$> _nttStatusMessage,
("creationTimestamp" .=) <$> _nttCreationTimestamp,
("nodeAffinityLabels" .=) <$> _nttNodeAffinityLabels,
("id" .=) <$> _nttId,
("nodeTypeFlexibility" .=) <$>
_nttNodeTypeFlexibility,
("nodeType" .=) <$> _nttNodeType,
("region" .=) <$> _nttRegion,
("description" .=) <$> _nttDescription])
data NetworkEndpointGroupList =
NetworkEndpointGroupList'
{ _neglNextPageToken :: !(Maybe Text)
, _neglKind :: !Text
, _neglItems :: !(Maybe [NetworkEndpointGroup])
, _neglSelfLink :: !(Maybe Text)
, _neglWarning :: !(Maybe NetworkEndpointGroupListWarning)
, _neglId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupList
:: NetworkEndpointGroupList
networkEndpointGroupList =
NetworkEndpointGroupList'
{ _neglNextPageToken = Nothing
, _neglKind = "compute#networkEndpointGroupList"
, _neglItems = Nothing
, _neglSelfLink = Nothing
, _neglWarning = Nothing
, _neglId = Nothing
}
neglNextPageToken :: Lens' NetworkEndpointGroupList (Maybe Text)
neglNextPageToken
= lens _neglNextPageToken
(\ s a -> s{_neglNextPageToken = a})
neglKind :: Lens' NetworkEndpointGroupList Text
neglKind = lens _neglKind (\ s a -> s{_neglKind = a})
neglItems :: Lens' NetworkEndpointGroupList [NetworkEndpointGroup]
neglItems
= lens _neglItems (\ s a -> s{_neglItems = a}) .
_Default
. _Coerce
neglSelfLink :: Lens' NetworkEndpointGroupList (Maybe Text)
neglSelfLink
= lens _neglSelfLink (\ s a -> s{_neglSelfLink = a})
neglWarning :: Lens' NetworkEndpointGroupList (Maybe NetworkEndpointGroupListWarning)
neglWarning
= lens _neglWarning (\ s a -> s{_neglWarning = a})
neglId :: Lens' NetworkEndpointGroupList (Maybe Text)
neglId = lens _neglId (\ s a -> s{_neglId = a})
instance FromJSON NetworkEndpointGroupList where
parseJSON
= withObject "NetworkEndpointGroupList"
(\ o ->
NetworkEndpointGroupList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#networkEndpointGroupList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON NetworkEndpointGroupList where
toJSON NetworkEndpointGroupList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _neglNextPageToken,
Just ("kind" .= _neglKind),
("items" .=) <$> _neglItems,
("selfLink" .=) <$> _neglSelfLink,
("warning" .=) <$> _neglWarning,
("id" .=) <$> _neglId])
data SubnetworkList =
SubnetworkList'
{ _slNextPageToken :: !(Maybe Text)
, _slKind :: !Text
, _slItems :: !(Maybe [Subnetwork])
, _slSelfLink :: !(Maybe Text)
, _slWarning :: !(Maybe SubnetworkListWarning)
, _slId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkList
:: SubnetworkList
subnetworkList =
SubnetworkList'
{ _slNextPageToken = Nothing
, _slKind = "compute#subnetworkList"
, _slItems = Nothing
, _slSelfLink = Nothing
, _slWarning = Nothing
, _slId = Nothing
}
slNextPageToken :: Lens' SubnetworkList (Maybe Text)
slNextPageToken
= lens _slNextPageToken
(\ s a -> s{_slNextPageToken = a})
slKind :: Lens' SubnetworkList Text
slKind = lens _slKind (\ s a -> s{_slKind = a})
slItems :: Lens' SubnetworkList [Subnetwork]
slItems
= lens _slItems (\ s a -> s{_slItems = a}) . _Default
. _Coerce
slSelfLink :: Lens' SubnetworkList (Maybe Text)
slSelfLink
= lens _slSelfLink (\ s a -> s{_slSelfLink = a})
slWarning :: Lens' SubnetworkList (Maybe SubnetworkListWarning)
slWarning
= lens _slWarning (\ s a -> s{_slWarning = a})
slId :: Lens' SubnetworkList (Maybe Text)
slId = lens _slId (\ s a -> s{_slId = a})
instance FromJSON SubnetworkList where
parseJSON
= withObject "SubnetworkList"
(\ o ->
SubnetworkList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#subnetworkList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON SubnetworkList where
toJSON SubnetworkList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _slNextPageToken,
Just ("kind" .= _slKind), ("items" .=) <$> _slItems,
("selfLink" .=) <$> _slSelfLink,
("warning" .=) <$> _slWarning, ("id" .=) <$> _slId])
data ForwardingRulesScopedListWarning =
ForwardingRulesScopedListWarning'
{ _frslwData :: !(Maybe [ForwardingRulesScopedListWarningDataItem])
, _frslwCode :: !(Maybe ForwardingRulesScopedListWarningCode)
, _frslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
forwardingRulesScopedListWarning
:: ForwardingRulesScopedListWarning
forwardingRulesScopedListWarning =
ForwardingRulesScopedListWarning'
{_frslwData = Nothing, _frslwCode = Nothing, _frslwMessage = Nothing}
frslwData :: Lens' ForwardingRulesScopedListWarning [ForwardingRulesScopedListWarningDataItem]
frslwData
= lens _frslwData (\ s a -> s{_frslwData = a}) .
_Default
. _Coerce
frslwCode :: Lens' ForwardingRulesScopedListWarning (Maybe ForwardingRulesScopedListWarningCode)
frslwCode
= lens _frslwCode (\ s a -> s{_frslwCode = a})
frslwMessage :: Lens' ForwardingRulesScopedListWarning (Maybe Text)
frslwMessage
= lens _frslwMessage (\ s a -> s{_frslwMessage = a})
instance FromJSON ForwardingRulesScopedListWarning
where
parseJSON
= withObject "ForwardingRulesScopedListWarning"
(\ o ->
ForwardingRulesScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON ForwardingRulesScopedListWarning
where
toJSON ForwardingRulesScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _frslwData,
("code" .=) <$> _frslwCode,
("message" .=) <$> _frslwMessage])
data HTTPHealthCheckList =
HTTPHealthCheckList'
{ _httphclNextPageToken :: !(Maybe Text)
, _httphclKind :: !Text
, _httphclItems :: !(Maybe [HTTPHealthCheck])
, _httphclSelfLink :: !(Maybe Text)
, _httphclWarning :: !(Maybe HTTPHealthCheckListWarning)
, _httphclId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
hTTPHealthCheckList
:: HTTPHealthCheckList
hTTPHealthCheckList =
HTTPHealthCheckList'
{ _httphclNextPageToken = Nothing
, _httphclKind = "compute#httpHealthCheckList"
, _httphclItems = Nothing
, _httphclSelfLink = Nothing
, _httphclWarning = Nothing
, _httphclId = Nothing
}
httphclNextPageToken :: Lens' HTTPHealthCheckList (Maybe Text)
httphclNextPageToken
= lens _httphclNextPageToken
(\ s a -> s{_httphclNextPageToken = a})
httphclKind :: Lens' HTTPHealthCheckList Text
httphclKind
= lens _httphclKind (\ s a -> s{_httphclKind = a})
httphclItems :: Lens' HTTPHealthCheckList [HTTPHealthCheck]
httphclItems
= lens _httphclItems (\ s a -> s{_httphclItems = a})
. _Default
. _Coerce
httphclSelfLink :: Lens' HTTPHealthCheckList (Maybe Text)
httphclSelfLink
= lens _httphclSelfLink
(\ s a -> s{_httphclSelfLink = a})
httphclWarning :: Lens' HTTPHealthCheckList (Maybe HTTPHealthCheckListWarning)
httphclWarning
= lens _httphclWarning
(\ s a -> s{_httphclWarning = a})
httphclId :: Lens' HTTPHealthCheckList (Maybe Text)
httphclId
= lens _httphclId (\ s a -> s{_httphclId = a})
instance FromJSON HTTPHealthCheckList where
parseJSON
= withObject "HTTPHealthCheckList"
(\ o ->
HTTPHealthCheckList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#httpHealthCheckList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON HTTPHealthCheckList where
toJSON HTTPHealthCheckList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _httphclNextPageToken,
Just ("kind" .= _httphclKind),
("items" .=) <$> _httphclItems,
("selfLink" .=) <$> _httphclSelfLink,
("warning" .=) <$> _httphclWarning,
("id" .=) <$> _httphclId])
data InstanceGroupManagersScopedListWarning =
InstanceGroupManagersScopedListWarning'
{ _igmslwData :: !(Maybe [InstanceGroupManagersScopedListWarningDataItem])
, _igmslwCode :: !(Maybe InstanceGroupManagersScopedListWarningCode)
, _igmslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersScopedListWarning
:: InstanceGroupManagersScopedListWarning
instanceGroupManagersScopedListWarning =
InstanceGroupManagersScopedListWarning'
{_igmslwData = Nothing, _igmslwCode = Nothing, _igmslwMessage = Nothing}
igmslwData :: Lens' InstanceGroupManagersScopedListWarning [InstanceGroupManagersScopedListWarningDataItem]
igmslwData
= lens _igmslwData (\ s a -> s{_igmslwData = a}) .
_Default
. _Coerce
igmslwCode :: Lens' InstanceGroupManagersScopedListWarning (Maybe InstanceGroupManagersScopedListWarningCode)
igmslwCode
= lens _igmslwCode (\ s a -> s{_igmslwCode = a})
igmslwMessage :: Lens' InstanceGroupManagersScopedListWarning (Maybe Text)
igmslwMessage
= lens _igmslwMessage
(\ s a -> s{_igmslwMessage = a})
instance FromJSON
InstanceGroupManagersScopedListWarning
where
parseJSON
= withObject "InstanceGroupManagersScopedListWarning"
(\ o ->
InstanceGroupManagersScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
InstanceGroupManagersScopedListWarning
where
toJSON InstanceGroupManagersScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _igmslwData,
("code" .=) <$> _igmslwCode,
("message" .=) <$> _igmslwMessage])
data SSLPoliciesList =
SSLPoliciesList'
{ _sslplNextPageToken :: !(Maybe Text)
, _sslplKind :: !Text
, _sslplItems :: !(Maybe [SSLPolicy])
, _sslplSelfLink :: !(Maybe Text)
, _sslplWarning :: !(Maybe SSLPoliciesListWarning)
, _sslplId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
sslPoliciesList
:: SSLPoliciesList
sslPoliciesList =
SSLPoliciesList'
{ _sslplNextPageToken = Nothing
, _sslplKind = "compute#sslPoliciesList"
, _sslplItems = Nothing
, _sslplSelfLink = Nothing
, _sslplWarning = Nothing
, _sslplId = Nothing
}
sslplNextPageToken :: Lens' SSLPoliciesList (Maybe Text)
sslplNextPageToken
= lens _sslplNextPageToken
(\ s a -> s{_sslplNextPageToken = a})
sslplKind :: Lens' SSLPoliciesList Text
sslplKind
= lens _sslplKind (\ s a -> s{_sslplKind = a})
sslplItems :: Lens' SSLPoliciesList [SSLPolicy]
sslplItems
= lens _sslplItems (\ s a -> s{_sslplItems = a}) .
_Default
. _Coerce
sslplSelfLink :: Lens' SSLPoliciesList (Maybe Text)
sslplSelfLink
= lens _sslplSelfLink
(\ s a -> s{_sslplSelfLink = a})
sslplWarning :: Lens' SSLPoliciesList (Maybe SSLPoliciesListWarning)
sslplWarning
= lens _sslplWarning (\ s a -> s{_sslplWarning = a})
sslplId :: Lens' SSLPoliciesList (Maybe Text)
sslplId = lens _sslplId (\ s a -> s{_sslplId = a})
instance FromJSON SSLPoliciesList where
parseJSON
= withObject "SSLPoliciesList"
(\ o ->
SSLPoliciesList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#sslPoliciesList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON SSLPoliciesList where
toJSON SSLPoliciesList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _sslplNextPageToken,
Just ("kind" .= _sslplKind),
("items" .=) <$> _sslplItems,
("selfLink" .=) <$> _sslplSelfLink,
("warning" .=) <$> _sslplWarning,
("id" .=) <$> _sslplId])
newtype URLMapsValidateRequest =
URLMapsValidateRequest'
{ _umvrResource :: Maybe URLMap
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapsValidateRequest
:: URLMapsValidateRequest
urlMapsValidateRequest = URLMapsValidateRequest' {_umvrResource = Nothing}
umvrResource :: Lens' URLMapsValidateRequest (Maybe URLMap)
umvrResource
= lens _umvrResource (\ s a -> s{_umvrResource = a})
instance FromJSON URLMapsValidateRequest where
parseJSON
= withObject "URLMapsValidateRequest"
(\ o ->
URLMapsValidateRequest' <$> (o .:? "resource"))
instance ToJSON URLMapsValidateRequest where
toJSON URLMapsValidateRequest'{..}
= object
(catMaybes [("resource" .=) <$> _umvrResource])
data InstanceGroupManagersSetTargetPoolsRequest =
InstanceGroupManagersSetTargetPoolsRequest'
{ _igmstprFingerprint :: !(Maybe Bytes)
, _igmstprTargetPools :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupManagersSetTargetPoolsRequest
:: InstanceGroupManagersSetTargetPoolsRequest
instanceGroupManagersSetTargetPoolsRequest =
InstanceGroupManagersSetTargetPoolsRequest'
{_igmstprFingerprint = Nothing, _igmstprTargetPools = Nothing}
igmstprFingerprint :: Lens' InstanceGroupManagersSetTargetPoolsRequest (Maybe ByteString)
igmstprFingerprint
= lens _igmstprFingerprint
(\ s a -> s{_igmstprFingerprint = a})
. mapping _Bytes
igmstprTargetPools :: Lens' InstanceGroupManagersSetTargetPoolsRequest [Text]
igmstprTargetPools
= lens _igmstprTargetPools
(\ s a -> s{_igmstprTargetPools = a})
. _Default
. _Coerce
instance FromJSON
InstanceGroupManagersSetTargetPoolsRequest
where
parseJSON
= withObject
"InstanceGroupManagersSetTargetPoolsRequest"
(\ o ->
InstanceGroupManagersSetTargetPoolsRequest' <$>
(o .:? "fingerprint") <*>
(o .:? "targetPools" .!= mempty))
instance ToJSON
InstanceGroupManagersSetTargetPoolsRequest
where
toJSON
InstanceGroupManagersSetTargetPoolsRequest'{..}
= object
(catMaybes
[("fingerprint" .=) <$> _igmstprFingerprint,
("targetPools" .=) <$> _igmstprTargetPools])
data Commitment =
Commitment'
{ _cStatus :: !(Maybe CommitmentStatus)
, _cKind :: !Text
, _cPlan :: !(Maybe CommitmentPlan)
, _cResources :: !(Maybe [ResourceCommitment])
, _cEndTimestamp :: !(Maybe Text)
, _cSelfLink :: !(Maybe Text)
, _cName :: !(Maybe Text)
, _cStatusMessage :: !(Maybe Text)
, _cCreationTimestamp :: !(Maybe Text)
, _cId :: !(Maybe (Textual Word64))
, _cRegion :: !(Maybe Text)
, _cStartTimestamp :: !(Maybe Text)
, _cDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitment
:: Commitment
commitment =
Commitment'
{ _cStatus = Nothing
, _cKind = "compute#commitment"
, _cPlan = Nothing
, _cResources = Nothing
, _cEndTimestamp = Nothing
, _cSelfLink = Nothing
, _cName = Nothing
, _cStatusMessage = Nothing
, _cCreationTimestamp = Nothing
, _cId = Nothing
, _cRegion = Nothing
, _cStartTimestamp = Nothing
, _cDescription = Nothing
}
cStatus :: Lens' Commitment (Maybe CommitmentStatus)
cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
cKind :: Lens' Commitment Text
cKind = lens _cKind (\ s a -> s{_cKind = a})
cPlan :: Lens' Commitment (Maybe CommitmentPlan)
cPlan = lens _cPlan (\ s a -> s{_cPlan = a})
cResources :: Lens' Commitment [ResourceCommitment]
cResources
= lens _cResources (\ s a -> s{_cResources = a}) .
_Default
. _Coerce
cEndTimestamp :: Lens' Commitment (Maybe Text)
cEndTimestamp
= lens _cEndTimestamp
(\ s a -> s{_cEndTimestamp = a})
cSelfLink :: Lens' Commitment (Maybe Text)
cSelfLink
= lens _cSelfLink (\ s a -> s{_cSelfLink = a})
cName :: Lens' Commitment (Maybe Text)
cName = lens _cName (\ s a -> s{_cName = a})
cStatusMessage :: Lens' Commitment (Maybe Text)
cStatusMessage
= lens _cStatusMessage
(\ s a -> s{_cStatusMessage = a})
cCreationTimestamp :: Lens' Commitment (Maybe Text)
cCreationTimestamp
= lens _cCreationTimestamp
(\ s a -> s{_cCreationTimestamp = a})
cId :: Lens' Commitment (Maybe Word64)
cId
= lens _cId (\ s a -> s{_cId = a}) . mapping _Coerce
cRegion :: Lens' Commitment (Maybe Text)
cRegion = lens _cRegion (\ s a -> s{_cRegion = a})
cStartTimestamp :: Lens' Commitment (Maybe Text)
cStartTimestamp
= lens _cStartTimestamp
(\ s a -> s{_cStartTimestamp = a})
cDescription :: Lens' Commitment (Maybe Text)
cDescription
= lens _cDescription (\ s a -> s{_cDescription = a})
instance FromJSON Commitment where
parseJSON
= withObject "Commitment"
(\ o ->
Commitment' <$>
(o .:? "status") <*>
(o .:? "kind" .!= "compute#commitment")
<*> (o .:? "plan")
<*> (o .:? "resources" .!= mempty)
<*> (o .:? "endTimestamp")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "statusMessage")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "startTimestamp")
<*> (o .:? "description"))
instance ToJSON Commitment where
toJSON Commitment'{..}
= object
(catMaybes
[("status" .=) <$> _cStatus, Just ("kind" .= _cKind),
("plan" .=) <$> _cPlan,
("resources" .=) <$> _cResources,
("endTimestamp" .=) <$> _cEndTimestamp,
("selfLink" .=) <$> _cSelfLink,
("name" .=) <$> _cName,
("statusMessage" .=) <$> _cStatusMessage,
("creationTimestamp" .=) <$> _cCreationTimestamp,
("id" .=) <$> _cId, ("region" .=) <$> _cRegion,
("startTimestamp" .=) <$> _cStartTimestamp,
("description" .=) <$> _cDescription])
data HTTPSHealthCheckList =
HTTPSHealthCheckList'
{ _hhclNextPageToken :: !(Maybe Text)
, _hhclKind :: !Text
, _hhclItems :: !(Maybe [HTTPSHealthCheck])
, _hhclSelfLink :: !(Maybe Text)
, _hhclWarning :: !(Maybe HTTPSHealthCheckListWarning)
, _hhclId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
httpsHealthCheckList
:: HTTPSHealthCheckList
httpsHealthCheckList =
HTTPSHealthCheckList'
{ _hhclNextPageToken = Nothing
, _hhclKind = "compute#httpsHealthCheckList"
, _hhclItems = Nothing
, _hhclSelfLink = Nothing
, _hhclWarning = Nothing
, _hhclId = Nothing
}
hhclNextPageToken :: Lens' HTTPSHealthCheckList (Maybe Text)
hhclNextPageToken
= lens _hhclNextPageToken
(\ s a -> s{_hhclNextPageToken = a})
hhclKind :: Lens' HTTPSHealthCheckList Text
hhclKind = lens _hhclKind (\ s a -> s{_hhclKind = a})
hhclItems :: Lens' HTTPSHealthCheckList [HTTPSHealthCheck]
hhclItems
= lens _hhclItems (\ s a -> s{_hhclItems = a}) .
_Default
. _Coerce
hhclSelfLink :: Lens' HTTPSHealthCheckList (Maybe Text)
hhclSelfLink
= lens _hhclSelfLink (\ s a -> s{_hhclSelfLink = a})
hhclWarning :: Lens' HTTPSHealthCheckList (Maybe HTTPSHealthCheckListWarning)
hhclWarning
= lens _hhclWarning (\ s a -> s{_hhclWarning = a})
hhclId :: Lens' HTTPSHealthCheckList (Maybe Text)
hhclId = lens _hhclId (\ s a -> s{_hhclId = a})
instance FromJSON HTTPSHealthCheckList where
parseJSON
= withObject "HTTPSHealthCheckList"
(\ o ->
HTTPSHealthCheckList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#httpsHealthCheckList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON HTTPSHealthCheckList where
toJSON HTTPSHealthCheckList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _hhclNextPageToken,
Just ("kind" .= _hhclKind),
("items" .=) <$> _hhclItems,
("selfLink" .=) <$> _hhclSelfLink,
("warning" .=) <$> _hhclWarning,
("id" .=) <$> _hhclId])
data AddressListWarningDataItem =
AddressListWarningDataItem'
{ _addValue :: !(Maybe Text)
, _addKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressListWarningDataItem
:: AddressListWarningDataItem
addressListWarningDataItem =
AddressListWarningDataItem' {_addValue = Nothing, _addKey = Nothing}
addValue :: Lens' AddressListWarningDataItem (Maybe Text)
addValue = lens _addValue (\ s a -> s{_addValue = a})
addKey :: Lens' AddressListWarningDataItem (Maybe Text)
addKey = lens _addKey (\ s a -> s{_addKey = a})
instance FromJSON AddressListWarningDataItem where
parseJSON
= withObject "AddressListWarningDataItem"
(\ o ->
AddressListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON AddressListWarningDataItem where
toJSON AddressListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _addValue, ("key" .=) <$> _addKey])
data OperationErrorErrorsItem =
OperationErrorErrorsItem'
{ _oeeiLocation :: !(Maybe Text)
, _oeeiCode :: !(Maybe Text)
, _oeeiMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationErrorErrorsItem
:: OperationErrorErrorsItem
operationErrorErrorsItem =
OperationErrorErrorsItem'
{_oeeiLocation = Nothing, _oeeiCode = Nothing, _oeeiMessage = Nothing}
oeeiLocation :: Lens' OperationErrorErrorsItem (Maybe Text)
oeeiLocation
= lens _oeeiLocation (\ s a -> s{_oeeiLocation = a})
oeeiCode :: Lens' OperationErrorErrorsItem (Maybe Text)
oeeiCode = lens _oeeiCode (\ s a -> s{_oeeiCode = a})
oeeiMessage :: Lens' OperationErrorErrorsItem (Maybe Text)
oeeiMessage
= lens _oeeiMessage (\ s a -> s{_oeeiMessage = a})
instance FromJSON OperationErrorErrorsItem where
parseJSON
= withObject "OperationErrorErrorsItem"
(\ o ->
OperationErrorErrorsItem' <$>
(o .:? "location") <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON OperationErrorErrorsItem where
toJSON OperationErrorErrorsItem'{..}
= object
(catMaybes
[("location" .=) <$> _oeeiLocation,
("code" .=) <$> _oeeiCode,
("message" .=) <$> _oeeiMessage])
data CommitmentListWarning =
CommitmentListWarning'
{ _clwData :: !(Maybe [CommitmentListWarningDataItem])
, _clwCode :: !(Maybe CommitmentListWarningCode)
, _clwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentListWarning
:: CommitmentListWarning
commitmentListWarning =
CommitmentListWarning'
{_clwData = Nothing, _clwCode = Nothing, _clwMessage = Nothing}
clwData :: Lens' CommitmentListWarning [CommitmentListWarningDataItem]
clwData
= lens _clwData (\ s a -> s{_clwData = a}) . _Default
. _Coerce
clwCode :: Lens' CommitmentListWarning (Maybe CommitmentListWarningCode)
clwCode = lens _clwCode (\ s a -> s{_clwCode = a})
clwMessage :: Lens' CommitmentListWarning (Maybe Text)
clwMessage
= lens _clwMessage (\ s a -> s{_clwMessage = a})
instance FromJSON CommitmentListWarning where
parseJSON
= withObject "CommitmentListWarning"
(\ o ->
CommitmentListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON CommitmentListWarning where
toJSON CommitmentListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _clwData, ("code" .=) <$> _clwCode,
("message" .=) <$> _clwMessage])
data License =
License'
{ _lChargesUseFee :: !(Maybe Bool)
, _lKind :: !Text
, _lResourceRequirements :: !(Maybe LicenseResourceRequirements)
, _lTransferable :: !(Maybe Bool)
, _lSelfLink :: !(Maybe Text)
, _lName :: !(Maybe Text)
, _lCreationTimestamp :: !(Maybe Text)
, _lId :: !(Maybe (Textual Word64))
, _lDescription :: !(Maybe Text)
, _lLicenseCode :: !(Maybe (Textual Word64))
}
deriving (Eq, Show, Data, Typeable, Generic)
license
:: License
license =
License'
{ _lChargesUseFee = Nothing
, _lKind = "compute#license"
, _lResourceRequirements = Nothing
, _lTransferable = Nothing
, _lSelfLink = Nothing
, _lName = Nothing
, _lCreationTimestamp = Nothing
, _lId = Nothing
, _lDescription = Nothing
, _lLicenseCode = Nothing
}
lChargesUseFee :: Lens' License (Maybe Bool)
lChargesUseFee
= lens _lChargesUseFee
(\ s a -> s{_lChargesUseFee = a})
lKind :: Lens' License Text
lKind = lens _lKind (\ s a -> s{_lKind = a})
lResourceRequirements :: Lens' License (Maybe LicenseResourceRequirements)
lResourceRequirements
= lens _lResourceRequirements
(\ s a -> s{_lResourceRequirements = a})
lTransferable :: Lens' License (Maybe Bool)
lTransferable
= lens _lTransferable
(\ s a -> s{_lTransferable = a})
lSelfLink :: Lens' License (Maybe Text)
lSelfLink
= lens _lSelfLink (\ s a -> s{_lSelfLink = a})
lName :: Lens' License (Maybe Text)
lName = lens _lName (\ s a -> s{_lName = a})
lCreationTimestamp :: Lens' License (Maybe Text)
lCreationTimestamp
= lens _lCreationTimestamp
(\ s a -> s{_lCreationTimestamp = a})
lId :: Lens' License (Maybe Word64)
lId
= lens _lId (\ s a -> s{_lId = a}) . mapping _Coerce
lDescription :: Lens' License (Maybe Text)
lDescription
= lens _lDescription (\ s a -> s{_lDescription = a})
lLicenseCode :: Lens' License (Maybe Word64)
lLicenseCode
= lens _lLicenseCode (\ s a -> s{_lLicenseCode = a})
. mapping _Coerce
instance FromJSON License where
parseJSON
= withObject "License"
(\ o ->
License' <$>
(o .:? "chargesUseFee") <*>
(o .:? "kind" .!= "compute#license")
<*> (o .:? "resourceRequirements")
<*> (o .:? "transferable")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "description")
<*> (o .:? "licenseCode"))
instance ToJSON License where
toJSON License'{..}
= object
(catMaybes
[("chargesUseFee" .=) <$> _lChargesUseFee,
Just ("kind" .= _lKind),
("resourceRequirements" .=) <$>
_lResourceRequirements,
("transferable" .=) <$> _lTransferable,
("selfLink" .=) <$> _lSelfLink,
("name" .=) <$> _lName,
("creationTimestamp" .=) <$> _lCreationTimestamp,
("id" .=) <$> _lId,
("description" .=) <$> _lDescription,
("licenseCode" .=) <$> _lLicenseCode])
data PathRule =
PathRule'
{ _prService :: !(Maybe Text)
, _prPaths :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
pathRule
:: PathRule
pathRule = PathRule' {_prService = Nothing, _prPaths = Nothing}
prService :: Lens' PathRule (Maybe Text)
prService
= lens _prService (\ s a -> s{_prService = a})
prPaths :: Lens' PathRule [Text]
prPaths
= lens _prPaths (\ s a -> s{_prPaths = a}) . _Default
. _Coerce
instance FromJSON PathRule where
parseJSON
= withObject "PathRule"
(\ o ->
PathRule' <$>
(o .:? "service") <*> (o .:? "paths" .!= mempty))
instance ToJSON PathRule where
toJSON PathRule'{..}
= object
(catMaybes
[("service" .=) <$> _prService,
("paths" .=) <$> _prPaths])
data LicenseCodeLicenseAlias =
LicenseCodeLicenseAlias'
{ _lclaSelfLink :: !(Maybe Text)
, _lclaDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
licenseCodeLicenseAlias
:: LicenseCodeLicenseAlias
licenseCodeLicenseAlias =
LicenseCodeLicenseAlias' {_lclaSelfLink = Nothing, _lclaDescription = Nothing}
lclaSelfLink :: Lens' LicenseCodeLicenseAlias (Maybe Text)
lclaSelfLink
= lens _lclaSelfLink (\ s a -> s{_lclaSelfLink = a})
lclaDescription :: Lens' LicenseCodeLicenseAlias (Maybe Text)
lclaDescription
= lens _lclaDescription
(\ s a -> s{_lclaDescription = a})
instance FromJSON LicenseCodeLicenseAlias where
parseJSON
= withObject "LicenseCodeLicenseAlias"
(\ o ->
LicenseCodeLicenseAlias' <$>
(o .:? "selfLink") <*> (o .:? "description"))
instance ToJSON LicenseCodeLicenseAlias where
toJSON LicenseCodeLicenseAlias'{..}
= object
(catMaybes
[("selfLink" .=) <$> _lclaSelfLink,
("description" .=) <$> _lclaDescription])
data InterconnectAttachmentsScopedListWarningDataItem =
InterconnectAttachmentsScopedListWarningDataItem'
{ _iaslwdiValue :: !(Maybe Text)
, _iaslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentsScopedListWarningDataItem
:: InterconnectAttachmentsScopedListWarningDataItem
interconnectAttachmentsScopedListWarningDataItem =
InterconnectAttachmentsScopedListWarningDataItem'
{_iaslwdiValue = Nothing, _iaslwdiKey = Nothing}
iaslwdiValue :: Lens' InterconnectAttachmentsScopedListWarningDataItem (Maybe Text)
iaslwdiValue
= lens _iaslwdiValue (\ s a -> s{_iaslwdiValue = a})
iaslwdiKey :: Lens' InterconnectAttachmentsScopedListWarningDataItem (Maybe Text)
iaslwdiKey
= lens _iaslwdiKey (\ s a -> s{_iaslwdiKey = a})
instance FromJSON
InterconnectAttachmentsScopedListWarningDataItem
where
parseJSON
= withObject
"InterconnectAttachmentsScopedListWarningDataItem"
(\ o ->
InterconnectAttachmentsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InterconnectAttachmentsScopedListWarningDataItem
where
toJSON
InterconnectAttachmentsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _iaslwdiValue,
("key" .=) <$> _iaslwdiKey])
data SecurityPolicyListWarningDataItem =
SecurityPolicyListWarningDataItem'
{ _secValue :: !(Maybe Text)
, _secKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicyListWarningDataItem
:: SecurityPolicyListWarningDataItem
securityPolicyListWarningDataItem =
SecurityPolicyListWarningDataItem' {_secValue = Nothing, _secKey = Nothing}
secValue :: Lens' SecurityPolicyListWarningDataItem (Maybe Text)
secValue = lens _secValue (\ s a -> s{_secValue = a})
secKey :: Lens' SecurityPolicyListWarningDataItem (Maybe Text)
secKey = lens _secKey (\ s a -> s{_secKey = a})
instance FromJSON SecurityPolicyListWarningDataItem
where
parseJSON
= withObject "SecurityPolicyListWarningDataItem"
(\ o ->
SecurityPolicyListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON SecurityPolicyListWarningDataItem
where
toJSON SecurityPolicyListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _secValue, ("key" .=) <$> _secKey])
data AuditLogConfig =
AuditLogConfig'
{ _alcLogType :: !(Maybe AuditLogConfigLogType)
, _alcExemptedMembers :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
auditLogConfig
:: AuditLogConfig
auditLogConfig =
AuditLogConfig' {_alcLogType = Nothing, _alcExemptedMembers = Nothing}
alcLogType :: Lens' AuditLogConfig (Maybe AuditLogConfigLogType)
alcLogType
= lens _alcLogType (\ s a -> s{_alcLogType = a})
alcExemptedMembers :: Lens' AuditLogConfig [Text]
alcExemptedMembers
= lens _alcExemptedMembers
(\ s a -> s{_alcExemptedMembers = a})
. _Default
. _Coerce
instance FromJSON AuditLogConfig where
parseJSON
= withObject "AuditLogConfig"
(\ o ->
AuditLogConfig' <$>
(o .:? "logType") <*>
(o .:? "exemptedMembers" .!= mempty))
instance ToJSON AuditLogConfig where
toJSON AuditLogConfig'{..}
= object
(catMaybes
[("logType" .=) <$> _alcLogType,
("exemptedMembers" .=) <$> _alcExemptedMembers])
data CommitmentsScopedListWarningDataItem =
CommitmentsScopedListWarningDataItem'
{ _cslwdiValue :: !(Maybe Text)
, _cslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentsScopedListWarningDataItem
:: CommitmentsScopedListWarningDataItem
commitmentsScopedListWarningDataItem =
CommitmentsScopedListWarningDataItem'
{_cslwdiValue = Nothing, _cslwdiKey = Nothing}
cslwdiValue :: Lens' CommitmentsScopedListWarningDataItem (Maybe Text)
cslwdiValue
= lens _cslwdiValue (\ s a -> s{_cslwdiValue = a})
cslwdiKey :: Lens' CommitmentsScopedListWarningDataItem (Maybe Text)
cslwdiKey
= lens _cslwdiKey (\ s a -> s{_cslwdiKey = a})
instance FromJSON
CommitmentsScopedListWarningDataItem
where
parseJSON
= withObject "CommitmentsScopedListWarningDataItem"
(\ o ->
CommitmentsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON CommitmentsScopedListWarningDataItem
where
toJSON CommitmentsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _cslwdiValue,
("key" .=) <$> _cslwdiKey])
data InterconnectAttachment =
InterconnectAttachment'
{ _iaState :: !(Maybe InterconnectAttachmentState)
, _iaPartnerASN :: !(Maybe (Textual Int64))
, _iaPairingKey :: !(Maybe Text)
, _iaKind :: !Text
, _iaCustomerRouterIPAddress :: !(Maybe Text)
, _iaPartnerMetadata :: !(Maybe InterconnectAttachmentPartnerMetadata)
, _iaRouter :: !(Maybe Text)
, _iaOperationalStatus :: !(Maybe InterconnectAttachmentOperationalStatus)
, _iaSelfLink :: !(Maybe Text)
, _iaName :: !(Maybe Text)
, _iaBandwidth :: !(Maybe InterconnectAttachmentBandwidth)
, _iaGoogleReferenceId :: !(Maybe Text)
, _iaCreationTimestamp :: !(Maybe Text)
, _iaEdgeAvailabilityDomain :: !(Maybe InterconnectAttachmentEdgeAvailabilityDomain)
, _iaInterconnect :: !(Maybe Text)
, _iaAdminEnabled :: !(Maybe Bool)
, _iaVLANTag8021q :: !(Maybe (Textual Int32))
, _iaCloudRouterIPAddress :: !(Maybe Text)
, _iaId :: !(Maybe (Textual Word64))
, _iaCandidateSubnets :: !(Maybe [Text])
, _iaRegion :: !(Maybe Text)
, _iaType :: !(Maybe InterconnectAttachmentType)
, _iaDescription :: !(Maybe Text)
, _iaPrivateInterconnectInfo :: !(Maybe InterconnectAttachmentPrivateInfo)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachment
:: InterconnectAttachment
interconnectAttachment =
InterconnectAttachment'
{ _iaState = Nothing
, _iaPartnerASN = Nothing
, _iaPairingKey = Nothing
, _iaKind = "compute#interconnectAttachment"
, _iaCustomerRouterIPAddress = Nothing
, _iaPartnerMetadata = Nothing
, _iaRouter = Nothing
, _iaOperationalStatus = Nothing
, _iaSelfLink = Nothing
, _iaName = Nothing
, _iaBandwidth = Nothing
, _iaGoogleReferenceId = Nothing
, _iaCreationTimestamp = Nothing
, _iaEdgeAvailabilityDomain = Nothing
, _iaInterconnect = Nothing
, _iaAdminEnabled = Nothing
, _iaVLANTag8021q = Nothing
, _iaCloudRouterIPAddress = Nothing
, _iaId = Nothing
, _iaCandidateSubnets = Nothing
, _iaRegion = Nothing
, _iaType = Nothing
, _iaDescription = Nothing
, _iaPrivateInterconnectInfo = Nothing
}
iaState :: Lens' InterconnectAttachment (Maybe InterconnectAttachmentState)
iaState = lens _iaState (\ s a -> s{_iaState = a})
iaPartnerASN :: Lens' InterconnectAttachment (Maybe Int64)
iaPartnerASN
= lens _iaPartnerASN (\ s a -> s{_iaPartnerASN = a})
. mapping _Coerce
iaPairingKey :: Lens' InterconnectAttachment (Maybe Text)
iaPairingKey
= lens _iaPairingKey (\ s a -> s{_iaPairingKey = a})
iaKind :: Lens' InterconnectAttachment Text
iaKind = lens _iaKind (\ s a -> s{_iaKind = a})
iaCustomerRouterIPAddress :: Lens' InterconnectAttachment (Maybe Text)
iaCustomerRouterIPAddress
= lens _iaCustomerRouterIPAddress
(\ s a -> s{_iaCustomerRouterIPAddress = a})
iaPartnerMetadata :: Lens' InterconnectAttachment (Maybe InterconnectAttachmentPartnerMetadata)
iaPartnerMetadata
= lens _iaPartnerMetadata
(\ s a -> s{_iaPartnerMetadata = a})
iaRouter :: Lens' InterconnectAttachment (Maybe Text)
iaRouter = lens _iaRouter (\ s a -> s{_iaRouter = a})
iaOperationalStatus :: Lens' InterconnectAttachment (Maybe InterconnectAttachmentOperationalStatus)
iaOperationalStatus
= lens _iaOperationalStatus
(\ s a -> s{_iaOperationalStatus = a})
iaSelfLink :: Lens' InterconnectAttachment (Maybe Text)
iaSelfLink
= lens _iaSelfLink (\ s a -> s{_iaSelfLink = a})
iaName :: Lens' InterconnectAttachment (Maybe Text)
iaName = lens _iaName (\ s a -> s{_iaName = a})
iaBandwidth :: Lens' InterconnectAttachment (Maybe InterconnectAttachmentBandwidth)
iaBandwidth
= lens _iaBandwidth (\ s a -> s{_iaBandwidth = a})
iaGoogleReferenceId :: Lens' InterconnectAttachment (Maybe Text)
iaGoogleReferenceId
= lens _iaGoogleReferenceId
(\ s a -> s{_iaGoogleReferenceId = a})
iaCreationTimestamp :: Lens' InterconnectAttachment (Maybe Text)
iaCreationTimestamp
= lens _iaCreationTimestamp
(\ s a -> s{_iaCreationTimestamp = a})
iaEdgeAvailabilityDomain :: Lens' InterconnectAttachment (Maybe InterconnectAttachmentEdgeAvailabilityDomain)
iaEdgeAvailabilityDomain
= lens _iaEdgeAvailabilityDomain
(\ s a -> s{_iaEdgeAvailabilityDomain = a})
iaInterconnect :: Lens' InterconnectAttachment (Maybe Text)
iaInterconnect
= lens _iaInterconnect
(\ s a -> s{_iaInterconnect = a})
iaAdminEnabled :: Lens' InterconnectAttachment (Maybe Bool)
iaAdminEnabled
= lens _iaAdminEnabled
(\ s a -> s{_iaAdminEnabled = a})
iaVLANTag8021q :: Lens' InterconnectAttachment (Maybe Int32)
iaVLANTag8021q
= lens _iaVLANTag8021q
(\ s a -> s{_iaVLANTag8021q = a})
. mapping _Coerce
iaCloudRouterIPAddress :: Lens' InterconnectAttachment (Maybe Text)
iaCloudRouterIPAddress
= lens _iaCloudRouterIPAddress
(\ s a -> s{_iaCloudRouterIPAddress = a})
iaId :: Lens' InterconnectAttachment (Maybe Word64)
iaId
= lens _iaId (\ s a -> s{_iaId = a}) .
mapping _Coerce
iaCandidateSubnets :: Lens' InterconnectAttachment [Text]
iaCandidateSubnets
= lens _iaCandidateSubnets
(\ s a -> s{_iaCandidateSubnets = a})
. _Default
. _Coerce
iaRegion :: Lens' InterconnectAttachment (Maybe Text)
iaRegion = lens _iaRegion (\ s a -> s{_iaRegion = a})
iaType :: Lens' InterconnectAttachment (Maybe InterconnectAttachmentType)
iaType = lens _iaType (\ s a -> s{_iaType = a})
iaDescription :: Lens' InterconnectAttachment (Maybe Text)
iaDescription
= lens _iaDescription
(\ s a -> s{_iaDescription = a})
iaPrivateInterconnectInfo :: Lens' InterconnectAttachment (Maybe InterconnectAttachmentPrivateInfo)
iaPrivateInterconnectInfo
= lens _iaPrivateInterconnectInfo
(\ s a -> s{_iaPrivateInterconnectInfo = a})
instance FromJSON InterconnectAttachment where
parseJSON
= withObject "InterconnectAttachment"
(\ o ->
InterconnectAttachment' <$>
(o .:? "state") <*> (o .:? "partnerAsn") <*>
(o .:? "pairingKey")
<*>
(o .:? "kind" .!= "compute#interconnectAttachment")
<*> (o .:? "customerRouterIpAddress")
<*> (o .:? "partnerMetadata")
<*> (o .:? "router")
<*> (o .:? "operationalStatus")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "bandwidth")
<*> (o .:? "googleReferenceId")
<*> (o .:? "creationTimestamp")
<*> (o .:? "edgeAvailabilityDomain")
<*> (o .:? "interconnect")
<*> (o .:? "adminEnabled")
<*> (o .:? "vlanTag8021q")
<*> (o .:? "cloudRouterIpAddress")
<*> (o .:? "id")
<*> (o .:? "candidateSubnets" .!= mempty)
<*> (o .:? "region")
<*> (o .:? "type")
<*> (o .:? "description")
<*> (o .:? "privateInterconnectInfo"))
instance ToJSON InterconnectAttachment where
toJSON InterconnectAttachment'{..}
= object
(catMaybes
[("state" .=) <$> _iaState,
("partnerAsn" .=) <$> _iaPartnerASN,
("pairingKey" .=) <$> _iaPairingKey,
Just ("kind" .= _iaKind),
("customerRouterIpAddress" .=) <$>
_iaCustomerRouterIPAddress,
("partnerMetadata" .=) <$> _iaPartnerMetadata,
("router" .=) <$> _iaRouter,
("operationalStatus" .=) <$> _iaOperationalStatus,
("selfLink" .=) <$> _iaSelfLink,
("name" .=) <$> _iaName,
("bandwidth" .=) <$> _iaBandwidth,
("googleReferenceId" .=) <$> _iaGoogleReferenceId,
("creationTimestamp" .=) <$> _iaCreationTimestamp,
("edgeAvailabilityDomain" .=) <$>
_iaEdgeAvailabilityDomain,
("interconnect" .=) <$> _iaInterconnect,
("adminEnabled" .=) <$> _iaAdminEnabled,
("vlanTag8021q" .=) <$> _iaVLANTag8021q,
("cloudRouterIpAddress" .=) <$>
_iaCloudRouterIPAddress,
("id" .=) <$> _iaId,
("candidateSubnets" .=) <$> _iaCandidateSubnets,
("region" .=) <$> _iaRegion, ("type" .=) <$> _iaType,
("description" .=) <$> _iaDescription,
("privateInterconnectInfo" .=) <$>
_iaPrivateInterconnectInfo])
data InstanceList =
InstanceList'
{ _insNextPageToken :: !(Maybe Text)
, _insKind :: !Text
, _insItems :: !(Maybe [Instance])
, _insSelfLink :: !(Maybe Text)
, _insWarning :: !(Maybe InstanceListWarning)
, _insId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceList
:: InstanceList
instanceList =
InstanceList'
{ _insNextPageToken = Nothing
, _insKind = "compute#instanceList"
, _insItems = Nothing
, _insSelfLink = Nothing
, _insWarning = Nothing
, _insId = Nothing
}
insNextPageToken :: Lens' InstanceList (Maybe Text)
insNextPageToken
= lens _insNextPageToken
(\ s a -> s{_insNextPageToken = a})
insKind :: Lens' InstanceList Text
insKind = lens _insKind (\ s a -> s{_insKind = a})
insItems :: Lens' InstanceList [Instance]
insItems
= lens _insItems (\ s a -> s{_insItems = a}) .
_Default
. _Coerce
insSelfLink :: Lens' InstanceList (Maybe Text)
insSelfLink
= lens _insSelfLink (\ s a -> s{_insSelfLink = a})
insWarning :: Lens' InstanceList (Maybe InstanceListWarning)
insWarning
= lens _insWarning (\ s a -> s{_insWarning = a})
insId :: Lens' InstanceList (Maybe Text)
insId = lens _insId (\ s a -> s{_insId = a})
instance FromJSON InstanceList where
parseJSON
= withObject "InstanceList"
(\ o ->
InstanceList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#instanceList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InstanceList where
toJSON InstanceList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _insNextPageToken,
Just ("kind" .= _insKind),
("items" .=) <$> _insItems,
("selfLink" .=) <$> _insSelfLink,
("warning" .=) <$> _insWarning,
("id" .=) <$> _insId])
newtype RegionSetLabelsRequestLabels =
RegionSetLabelsRequestLabels'
{ _rslrlAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
regionSetLabelsRequestLabels
:: HashMap Text Text
-> RegionSetLabelsRequestLabels
regionSetLabelsRequestLabels pRslrlAddtional_ =
RegionSetLabelsRequestLabels' {_rslrlAddtional = _Coerce # pRslrlAddtional_}
rslrlAddtional :: Lens' RegionSetLabelsRequestLabels (HashMap Text Text)
rslrlAddtional
= lens _rslrlAddtional
(\ s a -> s{_rslrlAddtional = a})
. _Coerce
instance FromJSON RegionSetLabelsRequestLabels where
parseJSON
= withObject "RegionSetLabelsRequestLabels"
(\ o ->
RegionSetLabelsRequestLabels' <$>
(parseJSONObject o))
instance ToJSON RegionSetLabelsRequestLabels where
toJSON = toJSON . _rslrlAddtional
data NetworkListWarningDataItem =
NetworkListWarningDataItem'
{ _nlwdiValue :: !(Maybe Text)
, _nlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkListWarningDataItem
:: NetworkListWarningDataItem
networkListWarningDataItem =
NetworkListWarningDataItem' {_nlwdiValue = Nothing, _nlwdiKey = Nothing}
nlwdiValue :: Lens' NetworkListWarningDataItem (Maybe Text)
nlwdiValue
= lens _nlwdiValue (\ s a -> s{_nlwdiValue = a})
nlwdiKey :: Lens' NetworkListWarningDataItem (Maybe Text)
nlwdiKey = lens _nlwdiKey (\ s a -> s{_nlwdiKey = a})
instance FromJSON NetworkListWarningDataItem where
parseJSON
= withObject "NetworkListWarningDataItem"
(\ o ->
NetworkListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON NetworkListWarningDataItem where
toJSON NetworkListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _nlwdiValue,
("key" .=) <$> _nlwdiKey])
data CacheKeyPolicy =
CacheKeyPolicy'
{ _ckpQueryStringWhiteList :: !(Maybe [Text])
, _ckpIncludeHost :: !(Maybe Bool)
, _ckpIncludeProtocol :: !(Maybe Bool)
, _ckpQueryStringBlackList :: !(Maybe [Text])
, _ckpIncludeQueryString :: !(Maybe Bool)
}
deriving (Eq, Show, Data, Typeable, Generic)
cacheKeyPolicy
:: CacheKeyPolicy
cacheKeyPolicy =
CacheKeyPolicy'
{ _ckpQueryStringWhiteList = Nothing
, _ckpIncludeHost = Nothing
, _ckpIncludeProtocol = Nothing
, _ckpQueryStringBlackList = Nothing
, _ckpIncludeQueryString = Nothing
}
ckpQueryStringWhiteList :: Lens' CacheKeyPolicy [Text]
ckpQueryStringWhiteList
= lens _ckpQueryStringWhiteList
(\ s a -> s{_ckpQueryStringWhiteList = a})
. _Default
. _Coerce
ckpIncludeHost :: Lens' CacheKeyPolicy (Maybe Bool)
ckpIncludeHost
= lens _ckpIncludeHost
(\ s a -> s{_ckpIncludeHost = a})
ckpIncludeProtocol :: Lens' CacheKeyPolicy (Maybe Bool)
ckpIncludeProtocol
= lens _ckpIncludeProtocol
(\ s a -> s{_ckpIncludeProtocol = a})
ckpQueryStringBlackList :: Lens' CacheKeyPolicy [Text]
ckpQueryStringBlackList
= lens _ckpQueryStringBlackList
(\ s a -> s{_ckpQueryStringBlackList = a})
. _Default
. _Coerce
ckpIncludeQueryString :: Lens' CacheKeyPolicy (Maybe Bool)
ckpIncludeQueryString
= lens _ckpIncludeQueryString
(\ s a -> s{_ckpIncludeQueryString = a})
instance FromJSON CacheKeyPolicy where
parseJSON
= withObject "CacheKeyPolicy"
(\ o ->
CacheKeyPolicy' <$>
(o .:? "queryStringWhitelist" .!= mempty) <*>
(o .:? "includeHost")
<*> (o .:? "includeProtocol")
<*> (o .:? "queryStringBlacklist" .!= mempty)
<*> (o .:? "includeQueryString"))
instance ToJSON CacheKeyPolicy where
toJSON CacheKeyPolicy'{..}
= object
(catMaybes
[("queryStringWhitelist" .=) <$>
_ckpQueryStringWhiteList,
("includeHost" .=) <$> _ckpIncludeHost,
("includeProtocol" .=) <$> _ckpIncludeProtocol,
("queryStringBlacklist" .=) <$>
_ckpQueryStringBlackList,
("includeQueryString" .=) <$>
_ckpIncludeQueryString])
data CommitmentAggregatedListWarningDataItem =
CommitmentAggregatedListWarningDataItem'
{ _calwdiValue :: !(Maybe Text)
, _calwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentAggregatedListWarningDataItem
:: CommitmentAggregatedListWarningDataItem
commitmentAggregatedListWarningDataItem =
CommitmentAggregatedListWarningDataItem'
{_calwdiValue = Nothing, _calwdiKey = Nothing}
calwdiValue :: Lens' CommitmentAggregatedListWarningDataItem (Maybe Text)
calwdiValue
= lens _calwdiValue (\ s a -> s{_calwdiValue = a})
calwdiKey :: Lens' CommitmentAggregatedListWarningDataItem (Maybe Text)
calwdiKey
= lens _calwdiKey (\ s a -> s{_calwdiKey = a})
instance FromJSON
CommitmentAggregatedListWarningDataItem
where
parseJSON
= withObject
"CommitmentAggregatedListWarningDataItem"
(\ o ->
CommitmentAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
CommitmentAggregatedListWarningDataItem
where
toJSON CommitmentAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _calwdiValue,
("key" .=) <$> _calwdiKey])
data RegionInstanceGroupListWarningDataItem =
RegionInstanceGroupListWarningDataItem'
{ _riglwdiValue :: !(Maybe Text)
, _riglwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupListWarningDataItem
:: RegionInstanceGroupListWarningDataItem
regionInstanceGroupListWarningDataItem =
RegionInstanceGroupListWarningDataItem'
{_riglwdiValue = Nothing, _riglwdiKey = Nothing}
riglwdiValue :: Lens' RegionInstanceGroupListWarningDataItem (Maybe Text)
riglwdiValue
= lens _riglwdiValue (\ s a -> s{_riglwdiValue = a})
riglwdiKey :: Lens' RegionInstanceGroupListWarningDataItem (Maybe Text)
riglwdiKey
= lens _riglwdiKey (\ s a -> s{_riglwdiKey = a})
instance FromJSON
RegionInstanceGroupListWarningDataItem
where
parseJSON
= withObject "RegionInstanceGroupListWarningDataItem"
(\ o ->
RegionInstanceGroupListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
RegionInstanceGroupListWarningDataItem
where
toJSON RegionInstanceGroupListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _riglwdiValue,
("key" .=) <$> _riglwdiKey])
newtype SubnetworkAggregatedListItems =
SubnetworkAggregatedListItems'
{ _saliAddtional :: HashMap Text SubnetworksScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
subnetworkAggregatedListItems
:: HashMap Text SubnetworksScopedList
-> SubnetworkAggregatedListItems
subnetworkAggregatedListItems pSaliAddtional_ =
SubnetworkAggregatedListItems' {_saliAddtional = _Coerce # pSaliAddtional_}
saliAddtional :: Lens' SubnetworkAggregatedListItems (HashMap Text SubnetworksScopedList)
saliAddtional
= lens _saliAddtional
(\ s a -> s{_saliAddtional = a})
. _Coerce
instance FromJSON SubnetworkAggregatedListItems where
parseJSON
= withObject "SubnetworkAggregatedListItems"
(\ o ->
SubnetworkAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON SubnetworkAggregatedListItems where
toJSON = toJSON . _saliAddtional
newtype NetworkEndpointGroupAggregatedListItems =
NetworkEndpointGroupAggregatedListItems'
{ _negaliAddtional :: HashMap Text NetworkEndpointGroupsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
networkEndpointGroupAggregatedListItems
:: HashMap Text NetworkEndpointGroupsScopedList
-> NetworkEndpointGroupAggregatedListItems
networkEndpointGroupAggregatedListItems pNegaliAddtional_ =
NetworkEndpointGroupAggregatedListItems'
{_negaliAddtional = _Coerce # pNegaliAddtional_}
negaliAddtional :: Lens' NetworkEndpointGroupAggregatedListItems (HashMap Text NetworkEndpointGroupsScopedList)
negaliAddtional
= lens _negaliAddtional
(\ s a -> s{_negaliAddtional = a})
. _Coerce
instance FromJSON
NetworkEndpointGroupAggregatedListItems
where
parseJSON
= withObject
"NetworkEndpointGroupAggregatedListItems"
(\ o ->
NetworkEndpointGroupAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON
NetworkEndpointGroupAggregatedListItems
where
toJSON = toJSON . _negaliAddtional
data InterconnectAttachmentAggregatedListWarningDataItem =
InterconnectAttachmentAggregatedListWarningDataItem'
{ _iaalwdiValue :: !(Maybe Text)
, _iaalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentAggregatedListWarningDataItem
:: InterconnectAttachmentAggregatedListWarningDataItem
interconnectAttachmentAggregatedListWarningDataItem =
InterconnectAttachmentAggregatedListWarningDataItem'
{_iaalwdiValue = Nothing, _iaalwdiKey = Nothing}
iaalwdiValue :: Lens' InterconnectAttachmentAggregatedListWarningDataItem (Maybe Text)
iaalwdiValue
= lens _iaalwdiValue (\ s a -> s{_iaalwdiValue = a})
iaalwdiKey :: Lens' InterconnectAttachmentAggregatedListWarningDataItem (Maybe Text)
iaalwdiKey
= lens _iaalwdiKey (\ s a -> s{_iaalwdiKey = a})
instance FromJSON
InterconnectAttachmentAggregatedListWarningDataItem
where
parseJSON
= withObject
"InterconnectAttachmentAggregatedListWarningDataItem"
(\ o ->
InterconnectAttachmentAggregatedListWarningDataItem'
<$> (o .:? "value") <*> (o .:? "key"))
instance ToJSON
InterconnectAttachmentAggregatedListWarningDataItem
where
toJSON
InterconnectAttachmentAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _iaalwdiValue,
("key" .=) <$> _iaalwdiKey])
data InterconnectAttachmentListWarning =
InterconnectAttachmentListWarning'
{ _intData :: !(Maybe [InterconnectAttachmentListWarningDataItem])
, _intCode :: !(Maybe InterconnectAttachmentListWarningCode)
, _intMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentListWarning
:: InterconnectAttachmentListWarning
interconnectAttachmentListWarning =
InterconnectAttachmentListWarning'
{_intData = Nothing, _intCode = Nothing, _intMessage = Nothing}
intData :: Lens' InterconnectAttachmentListWarning [InterconnectAttachmentListWarningDataItem]
intData
= lens _intData (\ s a -> s{_intData = a}) . _Default
. _Coerce
intCode :: Lens' InterconnectAttachmentListWarning (Maybe InterconnectAttachmentListWarningCode)
intCode = lens _intCode (\ s a -> s{_intCode = a})
intMessage :: Lens' InterconnectAttachmentListWarning (Maybe Text)
intMessage
= lens _intMessage (\ s a -> s{_intMessage = a})
instance FromJSON InterconnectAttachmentListWarning
where
parseJSON
= withObject "InterconnectAttachmentListWarning"
(\ o ->
InterconnectAttachmentListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InterconnectAttachmentListWarning
where
toJSON InterconnectAttachmentListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _intData, ("code" .=) <$> _intCode,
("message" .=) <$> _intMessage])
data Condition =
Condition'
{ _cOp :: !(Maybe ConditionOp)
, _cIAM :: !(Maybe ConditionIAM)
, _cValues :: !(Maybe [Text])
, _cSys :: !(Maybe ConditionSys)
, _cSvc :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
condition
:: Condition
condition =
Condition'
{ _cOp = Nothing
, _cIAM = Nothing
, _cValues = Nothing
, _cSys = Nothing
, _cSvc = Nothing
}
cOp :: Lens' Condition (Maybe ConditionOp)
cOp = lens _cOp (\ s a -> s{_cOp = a})
cIAM :: Lens' Condition (Maybe ConditionIAM)
cIAM = lens _cIAM (\ s a -> s{_cIAM = a})
cValues :: Lens' Condition [Text]
cValues
= lens _cValues (\ s a -> s{_cValues = a}) . _Default
. _Coerce
cSys :: Lens' Condition (Maybe ConditionSys)
cSys = lens _cSys (\ s a -> s{_cSys = a})
cSvc :: Lens' Condition (Maybe Text)
cSvc = lens _cSvc (\ s a -> s{_cSvc = a})
instance FromJSON Condition where
parseJSON
= withObject "Condition"
(\ o ->
Condition' <$>
(o .:? "op") <*> (o .:? "iam") <*>
(o .:? "values" .!= mempty)
<*> (o .:? "sys")
<*> (o .:? "svc"))
instance ToJSON Condition where
toJSON Condition'{..}
= object
(catMaybes
[("op" .=) <$> _cOp, ("iam" .=) <$> _cIAM,
("values" .=) <$> _cValues, ("sys" .=) <$> _cSys,
("svc" .=) <$> _cSvc])
data AddressAggregatedListWarning =
AddressAggregatedListWarning'
{ _addData :: !(Maybe [AddressAggregatedListWarningDataItem])
, _addCode :: !(Maybe AddressAggregatedListWarningCode)
, _addMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressAggregatedListWarning
:: AddressAggregatedListWarning
addressAggregatedListWarning =
AddressAggregatedListWarning'
{_addData = Nothing, _addCode = Nothing, _addMessage = Nothing}
addData :: Lens' AddressAggregatedListWarning [AddressAggregatedListWarningDataItem]
addData
= lens _addData (\ s a -> s{_addData = a}) . _Default
. _Coerce
addCode :: Lens' AddressAggregatedListWarning (Maybe AddressAggregatedListWarningCode)
addCode = lens _addCode (\ s a -> s{_addCode = a})
addMessage :: Lens' AddressAggregatedListWarning (Maybe Text)
addMessage
= lens _addMessage (\ s a -> s{_addMessage = a})
instance FromJSON AddressAggregatedListWarning where
parseJSON
= withObject "AddressAggregatedListWarning"
(\ o ->
AddressAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AddressAggregatedListWarning where
toJSON AddressAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _addData, ("code" .=) <$> _addCode,
("message" .=) <$> _addMessage])
newtype ManagedInstanceLastAttempt =
ManagedInstanceLastAttempt'
{ _milaErrors :: Maybe ManagedInstanceLastAttemptErrors
}
deriving (Eq, Show, Data, Typeable, Generic)
managedInstanceLastAttempt
:: ManagedInstanceLastAttempt
managedInstanceLastAttempt = ManagedInstanceLastAttempt' {_milaErrors = Nothing}
milaErrors :: Lens' ManagedInstanceLastAttempt (Maybe ManagedInstanceLastAttemptErrors)
milaErrors
= lens _milaErrors (\ s a -> s{_milaErrors = a})
instance FromJSON ManagedInstanceLastAttempt where
parseJSON
= withObject "ManagedInstanceLastAttempt"
(\ o ->
ManagedInstanceLastAttempt' <$> (o .:? "errors"))
instance ToJSON ManagedInstanceLastAttempt where
toJSON ManagedInstanceLastAttempt'{..}
= object (catMaybes [("errors" .=) <$> _milaErrors])
data LicensesListResponseWarning =
LicensesListResponseWarning'
{ _llrwData :: !(Maybe [LicensesListResponseWarningDataItem])
, _llrwCode :: !(Maybe LicensesListResponseWarningCode)
, _llrwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
licensesListResponseWarning
:: LicensesListResponseWarning
licensesListResponseWarning =
LicensesListResponseWarning'
{_llrwData = Nothing, _llrwCode = Nothing, _llrwMessage = Nothing}
llrwData :: Lens' LicensesListResponseWarning [LicensesListResponseWarningDataItem]
llrwData
= lens _llrwData (\ s a -> s{_llrwData = a}) .
_Default
. _Coerce
llrwCode :: Lens' LicensesListResponseWarning (Maybe LicensesListResponseWarningCode)
llrwCode = lens _llrwCode (\ s a -> s{_llrwCode = a})
llrwMessage :: Lens' LicensesListResponseWarning (Maybe Text)
llrwMessage
= lens _llrwMessage (\ s a -> s{_llrwMessage = a})
instance FromJSON LicensesListResponseWarning where
parseJSON
= withObject "LicensesListResponseWarning"
(\ o ->
LicensesListResponseWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON LicensesListResponseWarning where
toJSON LicensesListResponseWarning'{..}
= object
(catMaybes
[("data" .=) <$> _llrwData,
("code" .=) <$> _llrwCode,
("message" .=) <$> _llrwMessage])
data AutoscalerStatusDetails =
AutoscalerStatusDetails'
{ _asdType :: !(Maybe AutoscalerStatusDetailsType)
, _asdMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalerStatusDetails
:: AutoscalerStatusDetails
autoscalerStatusDetails =
AutoscalerStatusDetails' {_asdType = Nothing, _asdMessage = Nothing}
asdType :: Lens' AutoscalerStatusDetails (Maybe AutoscalerStatusDetailsType)
asdType = lens _asdType (\ s a -> s{_asdType = a})
asdMessage :: Lens' AutoscalerStatusDetails (Maybe Text)
asdMessage
= lens _asdMessage (\ s a -> s{_asdMessage = a})
instance FromJSON AutoscalerStatusDetails where
parseJSON
= withObject "AutoscalerStatusDetails"
(\ o ->
AutoscalerStatusDetails' <$>
(o .:? "type") <*> (o .:? "message"))
instance ToJSON AutoscalerStatusDetails where
toJSON AutoscalerStatusDetails'{..}
= object
(catMaybes
[("type" .=) <$> _asdType,
("message" .=) <$> _asdMessage])
data BackendServiceList =
BackendServiceList'
{ _bslNextPageToken :: !(Maybe Text)
, _bslKind :: !Text
, _bslItems :: !(Maybe [BackendService])
, _bslSelfLink :: !(Maybe Text)
, _bslWarning :: !(Maybe BackendServiceListWarning)
, _bslId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceList
:: BackendServiceList
backendServiceList =
BackendServiceList'
{ _bslNextPageToken = Nothing
, _bslKind = "compute#backendServiceList"
, _bslItems = Nothing
, _bslSelfLink = Nothing
, _bslWarning = Nothing
, _bslId = Nothing
}
bslNextPageToken :: Lens' BackendServiceList (Maybe Text)
bslNextPageToken
= lens _bslNextPageToken
(\ s a -> s{_bslNextPageToken = a})
bslKind :: Lens' BackendServiceList Text
bslKind = lens _bslKind (\ s a -> s{_bslKind = a})
bslItems :: Lens' BackendServiceList [BackendService]
bslItems
= lens _bslItems (\ s a -> s{_bslItems = a}) .
_Default
. _Coerce
bslSelfLink :: Lens' BackendServiceList (Maybe Text)
bslSelfLink
= lens _bslSelfLink (\ s a -> s{_bslSelfLink = a})
bslWarning :: Lens' BackendServiceList (Maybe BackendServiceListWarning)
bslWarning
= lens _bslWarning (\ s a -> s{_bslWarning = a})
bslId :: Lens' BackendServiceList (Maybe Text)
bslId = lens _bslId (\ s a -> s{_bslId = a})
instance FromJSON BackendServiceList where
parseJSON
= withObject "BackendServiceList"
(\ o ->
BackendServiceList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#backendServiceList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON BackendServiceList where
toJSON BackendServiceList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _bslNextPageToken,
Just ("kind" .= _bslKind),
("items" .=) <$> _bslItems,
("selfLink" .=) <$> _bslSelfLink,
("warning" .=) <$> _bslWarning,
("id" .=) <$> _bslId])
data XpnHostListWarningDataItem =
XpnHostListWarningDataItem'
{ _xhlwdiValue :: !(Maybe Text)
, _xhlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
xpnHostListWarningDataItem
:: XpnHostListWarningDataItem
xpnHostListWarningDataItem =
XpnHostListWarningDataItem' {_xhlwdiValue = Nothing, _xhlwdiKey = Nothing}
xhlwdiValue :: Lens' XpnHostListWarningDataItem (Maybe Text)
xhlwdiValue
= lens _xhlwdiValue (\ s a -> s{_xhlwdiValue = a})
xhlwdiKey :: Lens' XpnHostListWarningDataItem (Maybe Text)
xhlwdiKey
= lens _xhlwdiKey (\ s a -> s{_xhlwdiKey = a})
instance FromJSON XpnHostListWarningDataItem where
parseJSON
= withObject "XpnHostListWarningDataItem"
(\ o ->
XpnHostListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON XpnHostListWarningDataItem where
toJSON XpnHostListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _xhlwdiValue,
("key" .=) <$> _xhlwdiKey])
data ZoneListWarningDataItem =
ZoneListWarningDataItem'
{ _zlwdiValue :: !(Maybe Text)
, _zlwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
zoneListWarningDataItem
:: ZoneListWarningDataItem
zoneListWarningDataItem =
ZoneListWarningDataItem' {_zlwdiValue = Nothing, _zlwdiKey = Nothing}
zlwdiValue :: Lens' ZoneListWarningDataItem (Maybe Text)
zlwdiValue
= lens _zlwdiValue (\ s a -> s{_zlwdiValue = a})
zlwdiKey :: Lens' ZoneListWarningDataItem (Maybe Text)
zlwdiKey = lens _zlwdiKey (\ s a -> s{_zlwdiKey = a})
instance FromJSON ZoneListWarningDataItem where
parseJSON
= withObject "ZoneListWarningDataItem"
(\ o ->
ZoneListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON ZoneListWarningDataItem where
toJSON ZoneListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _zlwdiValue,
("key" .=) <$> _zlwdiKey])
data RegionSetPolicyRequest =
RegionSetPolicyRequest'
{ _rsprEtag :: !(Maybe Bytes)
, _rsprBindings :: !(Maybe [Binding])
, _rsprPolicy :: !(Maybe Policy)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionSetPolicyRequest
:: RegionSetPolicyRequest
regionSetPolicyRequest =
RegionSetPolicyRequest'
{_rsprEtag = Nothing, _rsprBindings = Nothing, _rsprPolicy = Nothing}
rsprEtag :: Lens' RegionSetPolicyRequest (Maybe ByteString)
rsprEtag
= lens _rsprEtag (\ s a -> s{_rsprEtag = a}) .
mapping _Bytes
rsprBindings :: Lens' RegionSetPolicyRequest [Binding]
rsprBindings
= lens _rsprBindings (\ s a -> s{_rsprBindings = a})
. _Default
. _Coerce
rsprPolicy :: Lens' RegionSetPolicyRequest (Maybe Policy)
rsprPolicy
= lens _rsprPolicy (\ s a -> s{_rsprPolicy = a})
instance FromJSON RegionSetPolicyRequest where
parseJSON
= withObject "RegionSetPolicyRequest"
(\ o ->
RegionSetPolicyRequest' <$>
(o .:? "etag") <*> (o .:? "bindings" .!= mempty) <*>
(o .:? "policy"))
instance ToJSON RegionSetPolicyRequest where
toJSON RegionSetPolicyRequest'{..}
= object
(catMaybes
[("etag" .=) <$> _rsprEtag,
("bindings" .=) <$> _rsprBindings,
("policy" .=) <$> _rsprPolicy])
data InstanceGroupsScopedListWarning =
InstanceGroupsScopedListWarning'
{ _igslwData :: !(Maybe [InstanceGroupsScopedListWarningDataItem])
, _igslwCode :: !(Maybe InstanceGroupsScopedListWarningCode)
, _igslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsScopedListWarning
:: InstanceGroupsScopedListWarning
instanceGroupsScopedListWarning =
InstanceGroupsScopedListWarning'
{_igslwData = Nothing, _igslwCode = Nothing, _igslwMessage = Nothing}
igslwData :: Lens' InstanceGroupsScopedListWarning [InstanceGroupsScopedListWarningDataItem]
igslwData
= lens _igslwData (\ s a -> s{_igslwData = a}) .
_Default
. _Coerce
igslwCode :: Lens' InstanceGroupsScopedListWarning (Maybe InstanceGroupsScopedListWarningCode)
igslwCode
= lens _igslwCode (\ s a -> s{_igslwCode = a})
igslwMessage :: Lens' InstanceGroupsScopedListWarning (Maybe Text)
igslwMessage
= lens _igslwMessage (\ s a -> s{_igslwMessage = a})
instance FromJSON InstanceGroupsScopedListWarning
where
parseJSON
= withObject "InstanceGroupsScopedListWarning"
(\ o ->
InstanceGroupsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceGroupsScopedListWarning where
toJSON InstanceGroupsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _igslwData,
("code" .=) <$> _igslwCode,
("message" .=) <$> _igslwMessage])
newtype AutoscalingPolicyCPUUtilization =
AutoscalingPolicyCPUUtilization'
{ _apcuUtilizationTarget :: Maybe (Textual Double)
}
deriving (Eq, Show, Data, Typeable, Generic)
autoscalingPolicyCPUUtilization
:: AutoscalingPolicyCPUUtilization
autoscalingPolicyCPUUtilization =
AutoscalingPolicyCPUUtilization' {_apcuUtilizationTarget = Nothing}
apcuUtilizationTarget :: Lens' AutoscalingPolicyCPUUtilization (Maybe Double)
apcuUtilizationTarget
= lens _apcuUtilizationTarget
(\ s a -> s{_apcuUtilizationTarget = a})
. mapping _Coerce
instance FromJSON AutoscalingPolicyCPUUtilization
where
parseJSON
= withObject "AutoscalingPolicyCPUUtilization"
(\ o ->
AutoscalingPolicyCPUUtilization' <$>
(o .:? "utilizationTarget"))
instance ToJSON AutoscalingPolicyCPUUtilization where
toJSON AutoscalingPolicyCPUUtilization'{..}
= object
(catMaybes
[("utilizationTarget" .=) <$>
_apcuUtilizationTarget])
data InstanceGroupsScopedListWarningDataItem =
InstanceGroupsScopedListWarningDataItem'
{ _igslwdiValue :: !(Maybe Text)
, _igslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsScopedListWarningDataItem
:: InstanceGroupsScopedListWarningDataItem
instanceGroupsScopedListWarningDataItem =
InstanceGroupsScopedListWarningDataItem'
{_igslwdiValue = Nothing, _igslwdiKey = Nothing}
igslwdiValue :: Lens' InstanceGroupsScopedListWarningDataItem (Maybe Text)
igslwdiValue
= lens _igslwdiValue (\ s a -> s{_igslwdiValue = a})
igslwdiKey :: Lens' InstanceGroupsScopedListWarningDataItem (Maybe Text)
igslwdiKey
= lens _igslwdiKey (\ s a -> s{_igslwdiKey = a})
instance FromJSON
InstanceGroupsScopedListWarningDataItem
where
parseJSON
= withObject
"InstanceGroupsScopedListWarningDataItem"
(\ o ->
InstanceGroupsScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InstanceGroupsScopedListWarningDataItem
where
toJSON InstanceGroupsScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _igslwdiValue,
("key" .=) <$> _igslwdiKey])
newtype SecurityPolicyRuleMatcherConfig =
SecurityPolicyRuleMatcherConfig'
{ _sprmcSrcIPRanges :: Maybe [Text]
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicyRuleMatcherConfig
:: SecurityPolicyRuleMatcherConfig
securityPolicyRuleMatcherConfig =
SecurityPolicyRuleMatcherConfig' {_sprmcSrcIPRanges = Nothing}
sprmcSrcIPRanges :: Lens' SecurityPolicyRuleMatcherConfig [Text]
sprmcSrcIPRanges
= lens _sprmcSrcIPRanges
(\ s a -> s{_sprmcSrcIPRanges = a})
. _Default
. _Coerce
instance FromJSON SecurityPolicyRuleMatcherConfig
where
parseJSON
= withObject "SecurityPolicyRuleMatcherConfig"
(\ o ->
SecurityPolicyRuleMatcherConfig' <$>
(o .:? "srcIpRanges" .!= mempty))
instance ToJSON SecurityPolicyRuleMatcherConfig where
toJSON SecurityPolicyRuleMatcherConfig'{..}
= object
(catMaybes
[("srcIpRanges" .=) <$> _sprmcSrcIPRanges])
data LicensesListResponseWarningDataItem =
LicensesListResponseWarningDataItem'
{ _llrwdiValue :: !(Maybe Text)
, _llrwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
licensesListResponseWarningDataItem
:: LicensesListResponseWarningDataItem
licensesListResponseWarningDataItem =
LicensesListResponseWarningDataItem'
{_llrwdiValue = Nothing, _llrwdiKey = Nothing}
llrwdiValue :: Lens' LicensesListResponseWarningDataItem (Maybe Text)
llrwdiValue
= lens _llrwdiValue (\ s a -> s{_llrwdiValue = a})
llrwdiKey :: Lens' LicensesListResponseWarningDataItem (Maybe Text)
llrwdiKey
= lens _llrwdiKey (\ s a -> s{_llrwdiKey = a})
instance FromJSON LicensesListResponseWarningDataItem
where
parseJSON
= withObject "LicensesListResponseWarningDataItem"
(\ o ->
LicensesListResponseWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON LicensesListResponseWarningDataItem
where
toJSON LicensesListResponseWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _llrwdiValue,
("key" .=) <$> _llrwdiKey])
data XpnHostListWarning =
XpnHostListWarning'
{ _xhlwData :: !(Maybe [XpnHostListWarningDataItem])
, _xhlwCode :: !(Maybe XpnHostListWarningCode)
, _xhlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
xpnHostListWarning
:: XpnHostListWarning
xpnHostListWarning =
XpnHostListWarning'
{_xhlwData = Nothing, _xhlwCode = Nothing, _xhlwMessage = Nothing}
xhlwData :: Lens' XpnHostListWarning [XpnHostListWarningDataItem]
xhlwData
= lens _xhlwData (\ s a -> s{_xhlwData = a}) .
_Default
. _Coerce
xhlwCode :: Lens' XpnHostListWarning (Maybe XpnHostListWarningCode)
xhlwCode = lens _xhlwCode (\ s a -> s{_xhlwCode = a})
xhlwMessage :: Lens' XpnHostListWarning (Maybe Text)
xhlwMessage
= lens _xhlwMessage (\ s a -> s{_xhlwMessage = a})
instance FromJSON XpnHostListWarning where
parseJSON
= withObject "XpnHostListWarning"
(\ o ->
XpnHostListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON XpnHostListWarning where
toJSON XpnHostListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _xhlwData,
("code" .=) <$> _xhlwCode,
("message" .=) <$> _xhlwMessage])
newtype ResourceGroupReference =
ResourceGroupReference'
{ _rgrGroup :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
resourceGroupReference
:: ResourceGroupReference
resourceGroupReference = ResourceGroupReference' {_rgrGroup = Nothing}
rgrGroup :: Lens' ResourceGroupReference (Maybe Text)
rgrGroup = lens _rgrGroup (\ s a -> s{_rgrGroup = a})
instance FromJSON ResourceGroupReference where
parseJSON
= withObject "ResourceGroupReference"
(\ o -> ResourceGroupReference' <$> (o .:? "group"))
instance ToJSON ResourceGroupReference where
toJSON ResourceGroupReference'{..}
= object (catMaybes [("group" .=) <$> _rgrGroup])
data VMEndpointNATMAppingsList =
VMEndpointNATMAppingsList'
{ _vmenatmalNextPageToken :: !(Maybe Text)
, _vmenatmalKind :: !Text
, _vmenatmalResult :: !(Maybe [VMEndpointNATMAppings])
, _vmenatmalSelfLink :: !(Maybe Text)
, _vmenatmalWarning :: !(Maybe VMEndpointNATMAppingsListWarning)
, _vmenatmalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
vMEndpointNATMAppingsList
:: VMEndpointNATMAppingsList
vMEndpointNATMAppingsList =
VMEndpointNATMAppingsList'
{ _vmenatmalNextPageToken = Nothing
, _vmenatmalKind = "compute#vmEndpointNatMappingsList"
, _vmenatmalResult = Nothing
, _vmenatmalSelfLink = Nothing
, _vmenatmalWarning = Nothing
, _vmenatmalId = Nothing
}
vmenatmalNextPageToken :: Lens' VMEndpointNATMAppingsList (Maybe Text)
vmenatmalNextPageToken
= lens _vmenatmalNextPageToken
(\ s a -> s{_vmenatmalNextPageToken = a})
vmenatmalKind :: Lens' VMEndpointNATMAppingsList Text
vmenatmalKind
= lens _vmenatmalKind
(\ s a -> s{_vmenatmalKind = a})
vmenatmalResult :: Lens' VMEndpointNATMAppingsList [VMEndpointNATMAppings]
vmenatmalResult
= lens _vmenatmalResult
(\ s a -> s{_vmenatmalResult = a})
. _Default
. _Coerce
vmenatmalSelfLink :: Lens' VMEndpointNATMAppingsList (Maybe Text)
vmenatmalSelfLink
= lens _vmenatmalSelfLink
(\ s a -> s{_vmenatmalSelfLink = a})
vmenatmalWarning :: Lens' VMEndpointNATMAppingsList (Maybe VMEndpointNATMAppingsListWarning)
vmenatmalWarning
= lens _vmenatmalWarning
(\ s a -> s{_vmenatmalWarning = a})
vmenatmalId :: Lens' VMEndpointNATMAppingsList (Maybe Text)
vmenatmalId
= lens _vmenatmalId (\ s a -> s{_vmenatmalId = a})
instance FromJSON VMEndpointNATMAppingsList where
parseJSON
= withObject "VMEndpointNATMAppingsList"
(\ o ->
VMEndpointNATMAppingsList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#vmEndpointNatMappingsList")
<*> (o .:? "result" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON VMEndpointNATMAppingsList where
toJSON VMEndpointNATMAppingsList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _vmenatmalNextPageToken,
Just ("kind" .= _vmenatmalKind),
("result" .=) <$> _vmenatmalResult,
("selfLink" .=) <$> _vmenatmalSelfLink,
("warning" .=) <$> _vmenatmalWarning,
("id" .=) <$> _vmenatmalId])
data Firewall =
Firewall'
{ _fSourceTags :: !(Maybe [Text])
, _fSourceServiceAccounts :: !(Maybe [Text])
, _fPriority :: !(Maybe (Textual Int32))
, _fDirection :: !(Maybe FirewallDirection)
, _fKind :: !Text
, _fDisabled :: !(Maybe Bool)
, _fTargetTags :: !(Maybe [Text])
, _fNetwork :: !(Maybe Text)
, _fSourceRanges :: !(Maybe [Text])
, _fSelfLink :: !(Maybe Text)
, _fName :: !(Maybe Text)
, _fDenied :: !(Maybe [FirewallDeniedItem])
, _fCreationTimestamp :: !(Maybe Text)
, _fId :: !(Maybe (Textual Word64))
, _fAllowed :: !(Maybe [FirewallAllowedItem])
, _fDestinationRanges :: !(Maybe [Text])
, _fLogConfig :: !(Maybe FirewallLogConfig)
, _fTargetServiceAccounts :: !(Maybe [Text])
, _fDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
firewall
:: Firewall
firewall =
Firewall'
{ _fSourceTags = Nothing
, _fSourceServiceAccounts = Nothing
, _fPriority = Nothing
, _fDirection = Nothing
, _fKind = "compute#firewall"
, _fDisabled = Nothing
, _fTargetTags = Nothing
, _fNetwork = Nothing
, _fSourceRanges = Nothing
, _fSelfLink = Nothing
, _fName = Nothing
, _fDenied = Nothing
, _fCreationTimestamp = Nothing
, _fId = Nothing
, _fAllowed = Nothing
, _fDestinationRanges = Nothing
, _fLogConfig = Nothing
, _fTargetServiceAccounts = Nothing
, _fDescription = Nothing
}
fSourceTags :: Lens' Firewall [Text]
fSourceTags
= lens _fSourceTags (\ s a -> s{_fSourceTags = a}) .
_Default
. _Coerce
fSourceServiceAccounts :: Lens' Firewall [Text]
fSourceServiceAccounts
= lens _fSourceServiceAccounts
(\ s a -> s{_fSourceServiceAccounts = a})
. _Default
. _Coerce
fPriority :: Lens' Firewall (Maybe Int32)
fPriority
= lens _fPriority (\ s a -> s{_fPriority = a}) .
mapping _Coerce
fDirection :: Lens' Firewall (Maybe FirewallDirection)
fDirection
= lens _fDirection (\ s a -> s{_fDirection = a})
fKind :: Lens' Firewall Text
fKind = lens _fKind (\ s a -> s{_fKind = a})
fDisabled :: Lens' Firewall (Maybe Bool)
fDisabled
= lens _fDisabled (\ s a -> s{_fDisabled = a})
fTargetTags :: Lens' Firewall [Text]
fTargetTags
= lens _fTargetTags (\ s a -> s{_fTargetTags = a}) .
_Default
. _Coerce
fNetwork :: Lens' Firewall (Maybe Text)
fNetwork = lens _fNetwork (\ s a -> s{_fNetwork = a})
fSourceRanges :: Lens' Firewall [Text]
fSourceRanges
= lens _fSourceRanges
(\ s a -> s{_fSourceRanges = a})
. _Default
. _Coerce
fSelfLink :: Lens' Firewall (Maybe Text)
fSelfLink
= lens _fSelfLink (\ s a -> s{_fSelfLink = a})
fName :: Lens' Firewall (Maybe Text)
fName = lens _fName (\ s a -> s{_fName = a})
fDenied :: Lens' Firewall [FirewallDeniedItem]
fDenied
= lens _fDenied (\ s a -> s{_fDenied = a}) . _Default
. _Coerce
fCreationTimestamp :: Lens' Firewall (Maybe Text)
fCreationTimestamp
= lens _fCreationTimestamp
(\ s a -> s{_fCreationTimestamp = a})
fId :: Lens' Firewall (Maybe Word64)
fId
= lens _fId (\ s a -> s{_fId = a}) . mapping _Coerce
fAllowed :: Lens' Firewall [FirewallAllowedItem]
fAllowed
= lens _fAllowed (\ s a -> s{_fAllowed = a}) .
_Default
. _Coerce
fDestinationRanges :: Lens' Firewall [Text]
fDestinationRanges
= lens _fDestinationRanges
(\ s a -> s{_fDestinationRanges = a})
. _Default
. _Coerce
fLogConfig :: Lens' Firewall (Maybe FirewallLogConfig)
fLogConfig
= lens _fLogConfig (\ s a -> s{_fLogConfig = a})
fTargetServiceAccounts :: Lens' Firewall [Text]
fTargetServiceAccounts
= lens _fTargetServiceAccounts
(\ s a -> s{_fTargetServiceAccounts = a})
. _Default
. _Coerce
fDescription :: Lens' Firewall (Maybe Text)
fDescription
= lens _fDescription (\ s a -> s{_fDescription = a})
instance FromJSON Firewall where
parseJSON
= withObject "Firewall"
(\ o ->
Firewall' <$>
(o .:? "sourceTags" .!= mempty) <*>
(o .:? "sourceServiceAccounts" .!= mempty)
<*> (o .:? "priority")
<*> (o .:? "direction")
<*> (o .:? "kind" .!= "compute#firewall")
<*> (o .:? "disabled")
<*> (o .:? "targetTags" .!= mempty)
<*> (o .:? "network")
<*> (o .:? "sourceRanges" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "denied" .!= mempty)
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "allowed" .!= mempty)
<*> (o .:? "destinationRanges" .!= mempty)
<*> (o .:? "logConfig")
<*> (o .:? "targetServiceAccounts" .!= mempty)
<*> (o .:? "description"))
instance ToJSON Firewall where
toJSON Firewall'{..}
= object
(catMaybes
[("sourceTags" .=) <$> _fSourceTags,
("sourceServiceAccounts" .=) <$>
_fSourceServiceAccounts,
("priority" .=) <$> _fPriority,
("direction" .=) <$> _fDirection,
Just ("kind" .= _fKind),
("disabled" .=) <$> _fDisabled,
("targetTags" .=) <$> _fTargetTags,
("network" .=) <$> _fNetwork,
("sourceRanges" .=) <$> _fSourceRanges,
("selfLink" .=) <$> _fSelfLink,
("name" .=) <$> _fName, ("denied" .=) <$> _fDenied,
("creationTimestamp" .=) <$> _fCreationTimestamp,
("id" .=) <$> _fId, ("allowed" .=) <$> _fAllowed,
("destinationRanges" .=) <$> _fDestinationRanges,
("logConfig" .=) <$> _fLogConfig,
("targetServiceAccounts" .=) <$>
_fTargetServiceAccounts,
("description" .=) <$> _fDescription])
data InterconnectAttachmentsScopedListWarning =
InterconnectAttachmentsScopedListWarning'
{ _iaslwData :: !(Maybe [InterconnectAttachmentsScopedListWarningDataItem])
, _iaslwCode :: !(Maybe InterconnectAttachmentsScopedListWarningCode)
, _iaslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentsScopedListWarning
:: InterconnectAttachmentsScopedListWarning
interconnectAttachmentsScopedListWarning =
InterconnectAttachmentsScopedListWarning'
{_iaslwData = Nothing, _iaslwCode = Nothing, _iaslwMessage = Nothing}
iaslwData :: Lens' InterconnectAttachmentsScopedListWarning [InterconnectAttachmentsScopedListWarningDataItem]
iaslwData
= lens _iaslwData (\ s a -> s{_iaslwData = a}) .
_Default
. _Coerce
iaslwCode :: Lens' InterconnectAttachmentsScopedListWarning (Maybe InterconnectAttachmentsScopedListWarningCode)
iaslwCode
= lens _iaslwCode (\ s a -> s{_iaslwCode = a})
iaslwMessage :: Lens' InterconnectAttachmentsScopedListWarning (Maybe Text)
iaslwMessage
= lens _iaslwMessage (\ s a -> s{_iaslwMessage = a})
instance FromJSON
InterconnectAttachmentsScopedListWarning
where
parseJSON
= withObject
"InterconnectAttachmentsScopedListWarning"
(\ o ->
InterconnectAttachmentsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
InterconnectAttachmentsScopedListWarning
where
toJSON InterconnectAttachmentsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _iaslwData,
("code" .=) <$> _iaslwCode,
("message" .=) <$> _iaslwMessage])
data HostRule =
HostRule'
{ _hrHosts :: !(Maybe [Text])
, _hrDescription :: !(Maybe Text)
, _hrPathMatcher :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
hostRule
:: HostRule
hostRule =
HostRule'
{_hrHosts = Nothing, _hrDescription = Nothing, _hrPathMatcher = Nothing}
hrHosts :: Lens' HostRule [Text]
hrHosts
= lens _hrHosts (\ s a -> s{_hrHosts = a}) . _Default
. _Coerce
hrDescription :: Lens' HostRule (Maybe Text)
hrDescription
= lens _hrDescription
(\ s a -> s{_hrDescription = a})
hrPathMatcher :: Lens' HostRule (Maybe Text)
hrPathMatcher
= lens _hrPathMatcher
(\ s a -> s{_hrPathMatcher = a})
instance FromJSON HostRule where
parseJSON
= withObject "HostRule"
(\ o ->
HostRule' <$>
(o .:? "hosts" .!= mempty) <*> (o .:? "description")
<*> (o .:? "pathMatcher"))
instance ToJSON HostRule where
toJSON HostRule'{..}
= object
(catMaybes
[("hosts" .=) <$> _hrHosts,
("description" .=) <$> _hrDescription,
("pathMatcher" .=) <$> _hrPathMatcher])
data SecurityPolicyListWarning =
SecurityPolicyListWarning'
{ _secData :: !(Maybe [SecurityPolicyListWarningDataItem])
, _secCode :: !(Maybe SecurityPolicyListWarningCode)
, _secMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
securityPolicyListWarning
:: SecurityPolicyListWarning
securityPolicyListWarning =
SecurityPolicyListWarning'
{_secData = Nothing, _secCode = Nothing, _secMessage = Nothing}
secData :: Lens' SecurityPolicyListWarning [SecurityPolicyListWarningDataItem]
secData
= lens _secData (\ s a -> s{_secData = a}) . _Default
. _Coerce
secCode :: Lens' SecurityPolicyListWarning (Maybe SecurityPolicyListWarningCode)
secCode = lens _secCode (\ s a -> s{_secCode = a})
secMessage :: Lens' SecurityPolicyListWarning (Maybe Text)
secMessage
= lens _secMessage (\ s a -> s{_secMessage = a})
instance FromJSON SecurityPolicyListWarning where
parseJSON
= withObject "SecurityPolicyListWarning"
(\ o ->
SecurityPolicyListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON SecurityPolicyListWarning where
toJSON SecurityPolicyListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _secData, ("code" .=) <$> _secCode,
("message" .=) <$> _secMessage])
data Quota =
Quota'
{ _qOwner :: !(Maybe Text)
, _qMetric :: !(Maybe QuotaMetric)
, _qLimit :: !(Maybe (Textual Double))
, _qUsage :: !(Maybe (Textual Double))
}
deriving (Eq, Show, Data, Typeable, Generic)
quota
:: Quota
quota =
Quota'
{ _qOwner = Nothing
, _qMetric = Nothing
, _qLimit = Nothing
, _qUsage = Nothing
}
qOwner :: Lens' Quota (Maybe Text)
qOwner = lens _qOwner (\ s a -> s{_qOwner = a})
qMetric :: Lens' Quota (Maybe QuotaMetric)
qMetric = lens _qMetric (\ s a -> s{_qMetric = a})
qLimit :: Lens' Quota (Maybe Double)
qLimit
= lens _qLimit (\ s a -> s{_qLimit = a}) .
mapping _Coerce
qUsage :: Lens' Quota (Maybe Double)
qUsage
= lens _qUsage (\ s a -> s{_qUsage = a}) .
mapping _Coerce
instance FromJSON Quota where
parseJSON
= withObject "Quota"
(\ o ->
Quota' <$>
(o .:? "owner") <*> (o .:? "metric") <*>
(o .:? "limit")
<*> (o .:? "usage"))
instance ToJSON Quota where
toJSON Quota'{..}
= object
(catMaybes
[("owner" .=) <$> _qOwner,
("metric" .=) <$> _qMetric, ("limit" .=) <$> _qLimit,
("usage" .=) <$> _qUsage])
data InstanceGroup =
InstanceGroup'
{ _ig1Size :: !(Maybe (Textual Int32))
, _ig1Kind :: !Text
, _ig1Fingerprint :: !(Maybe Bytes)
, _ig1Network :: !(Maybe Text)
, _ig1Zone :: !(Maybe Text)
, _ig1SelfLink :: !(Maybe Text)
, _ig1Name :: !(Maybe Text)
, _ig1CreationTimestamp :: !(Maybe Text)
, _ig1Subnetwork :: !(Maybe Text)
, _ig1Id :: !(Maybe (Textual Word64))
, _ig1Region :: !(Maybe Text)
, _ig1Description :: !(Maybe Text)
, _ig1NamedPorts :: !(Maybe [NamedPort])
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroup
:: InstanceGroup
instanceGroup =
InstanceGroup'
{ _ig1Size = Nothing
, _ig1Kind = "compute#instanceGroup"
, _ig1Fingerprint = Nothing
, _ig1Network = Nothing
, _ig1Zone = Nothing
, _ig1SelfLink = Nothing
, _ig1Name = Nothing
, _ig1CreationTimestamp = Nothing
, _ig1Subnetwork = Nothing
, _ig1Id = Nothing
, _ig1Region = Nothing
, _ig1Description = Nothing
, _ig1NamedPorts = Nothing
}
ig1Size :: Lens' InstanceGroup (Maybe Int32)
ig1Size
= lens _ig1Size (\ s a -> s{_ig1Size = a}) .
mapping _Coerce
ig1Kind :: Lens' InstanceGroup Text
ig1Kind = lens _ig1Kind (\ s a -> s{_ig1Kind = a})
ig1Fingerprint :: Lens' InstanceGroup (Maybe ByteString)
ig1Fingerprint
= lens _ig1Fingerprint
(\ s a -> s{_ig1Fingerprint = a})
. mapping _Bytes
ig1Network :: Lens' InstanceGroup (Maybe Text)
ig1Network
= lens _ig1Network (\ s a -> s{_ig1Network = a})
ig1Zone :: Lens' InstanceGroup (Maybe Text)
ig1Zone = lens _ig1Zone (\ s a -> s{_ig1Zone = a})
ig1SelfLink :: Lens' InstanceGroup (Maybe Text)
ig1SelfLink
= lens _ig1SelfLink (\ s a -> s{_ig1SelfLink = a})
ig1Name :: Lens' InstanceGroup (Maybe Text)
ig1Name = lens _ig1Name (\ s a -> s{_ig1Name = a})
ig1CreationTimestamp :: Lens' InstanceGroup (Maybe Text)
ig1CreationTimestamp
= lens _ig1CreationTimestamp
(\ s a -> s{_ig1CreationTimestamp = a})
ig1Subnetwork :: Lens' InstanceGroup (Maybe Text)
ig1Subnetwork
= lens _ig1Subnetwork
(\ s a -> s{_ig1Subnetwork = a})
ig1Id :: Lens' InstanceGroup (Maybe Word64)
ig1Id
= lens _ig1Id (\ s a -> s{_ig1Id = a}) .
mapping _Coerce
ig1Region :: Lens' InstanceGroup (Maybe Text)
ig1Region
= lens _ig1Region (\ s a -> s{_ig1Region = a})
ig1Description :: Lens' InstanceGroup (Maybe Text)
ig1Description
= lens _ig1Description
(\ s a -> s{_ig1Description = a})
ig1NamedPorts :: Lens' InstanceGroup [NamedPort]
ig1NamedPorts
= lens _ig1NamedPorts
(\ s a -> s{_ig1NamedPorts = a})
. _Default
. _Coerce
instance FromJSON InstanceGroup where
parseJSON
= withObject "InstanceGroup"
(\ o ->
InstanceGroup' <$>
(o .:? "size") <*>
(o .:? "kind" .!= "compute#instanceGroup")
<*> (o .:? "fingerprint")
<*> (o .:? "network")
<*> (o .:? "zone")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "subnetwork")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "description")
<*> (o .:? "namedPorts" .!= mempty))
instance ToJSON InstanceGroup where
toJSON InstanceGroup'{..}
= object
(catMaybes
[("size" .=) <$> _ig1Size, Just ("kind" .= _ig1Kind),
("fingerprint" .=) <$> _ig1Fingerprint,
("network" .=) <$> _ig1Network,
("zone" .=) <$> _ig1Zone,
("selfLink" .=) <$> _ig1SelfLink,
("name" .=) <$> _ig1Name,
("creationTimestamp" .=) <$> _ig1CreationTimestamp,
("subnetwork" .=) <$> _ig1Subnetwork,
("id" .=) <$> _ig1Id, ("region" .=) <$> _ig1Region,
("description" .=) <$> _ig1Description,
("namedPorts" .=) <$> _ig1NamedPorts])
data AddressListWarning =
AddressListWarning'
{ _alwlData :: !(Maybe [AddressListWarningDataItem])
, _alwlCode :: !(Maybe AddressListWarningCode)
, _alwlMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressListWarning
:: AddressListWarning
addressListWarning =
AddressListWarning'
{_alwlData = Nothing, _alwlCode = Nothing, _alwlMessage = Nothing}
alwlData :: Lens' AddressListWarning [AddressListWarningDataItem]
alwlData
= lens _alwlData (\ s a -> s{_alwlData = a}) .
_Default
. _Coerce
alwlCode :: Lens' AddressListWarning (Maybe AddressListWarningCode)
alwlCode = lens _alwlCode (\ s a -> s{_alwlCode = a})
alwlMessage :: Lens' AddressListWarning (Maybe Text)
alwlMessage
= lens _alwlMessage (\ s a -> s{_alwlMessage = a})
instance FromJSON AddressListWarning where
parseJSON
= withObject "AddressListWarning"
(\ o ->
AddressListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON AddressListWarning where
toJSON AddressListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _alwlData,
("code" .=) <$> _alwlCode,
("message" .=) <$> _alwlMessage])
data RegionSetLabelsRequest =
RegionSetLabelsRequest'
{ _rslrLabels :: !(Maybe RegionSetLabelsRequestLabels)
, _rslrLabelFingerprint :: !(Maybe Bytes)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionSetLabelsRequest
:: RegionSetLabelsRequest
regionSetLabelsRequest =
RegionSetLabelsRequest'
{_rslrLabels = Nothing, _rslrLabelFingerprint = Nothing}
rslrLabels :: Lens' RegionSetLabelsRequest (Maybe RegionSetLabelsRequestLabels)
rslrLabels
= lens _rslrLabels (\ s a -> s{_rslrLabels = a})
rslrLabelFingerprint :: Lens' RegionSetLabelsRequest (Maybe ByteString)
rslrLabelFingerprint
= lens _rslrLabelFingerprint
(\ s a -> s{_rslrLabelFingerprint = a})
. mapping _Bytes
instance FromJSON RegionSetLabelsRequest where
parseJSON
= withObject "RegionSetLabelsRequest"
(\ o ->
RegionSetLabelsRequest' <$>
(o .:? "labels") <*> (o .:? "labelFingerprint"))
instance ToJSON RegionSetLabelsRequest where
toJSON RegionSetLabelsRequest'{..}
= object
(catMaybes
[("labels" .=) <$> _rslrLabels,
("labelFingerprint" .=) <$> _rslrLabelFingerprint])
data RouterInterface =
RouterInterface'
{ _riLinkedInterconnectAttachment :: !(Maybe Text)
, _riName :: !(Maybe Text)
, _riManagementType :: !(Maybe RouterInterfaceManagementType)
, _riIPRange :: !(Maybe Text)
, _riLinkedVPNTunnel :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
routerInterface
:: RouterInterface
routerInterface =
RouterInterface'
{ _riLinkedInterconnectAttachment = Nothing
, _riName = Nothing
, _riManagementType = Nothing
, _riIPRange = Nothing
, _riLinkedVPNTunnel = Nothing
}
riLinkedInterconnectAttachment :: Lens' RouterInterface (Maybe Text)
riLinkedInterconnectAttachment
= lens _riLinkedInterconnectAttachment
(\ s a -> s{_riLinkedInterconnectAttachment = a})
riName :: Lens' RouterInterface (Maybe Text)
riName = lens _riName (\ s a -> s{_riName = a})
riManagementType :: Lens' RouterInterface (Maybe RouterInterfaceManagementType)
riManagementType
= lens _riManagementType
(\ s a -> s{_riManagementType = a})
riIPRange :: Lens' RouterInterface (Maybe Text)
riIPRange
= lens _riIPRange (\ s a -> s{_riIPRange = a})
riLinkedVPNTunnel :: Lens' RouterInterface (Maybe Text)
riLinkedVPNTunnel
= lens _riLinkedVPNTunnel
(\ s a -> s{_riLinkedVPNTunnel = a})
instance FromJSON RouterInterface where
parseJSON
= withObject "RouterInterface"
(\ o ->
RouterInterface' <$>
(o .:? "linkedInterconnectAttachment") <*>
(o .:? "name")
<*> (o .:? "managementType")
<*> (o .:? "ipRange")
<*> (o .:? "linkedVpnTunnel"))
instance ToJSON RouterInterface where
toJSON RouterInterface'{..}
= object
(catMaybes
[("linkedInterconnectAttachment" .=) <$>
_riLinkedInterconnectAttachment,
("name" .=) <$> _riName,
("managementType" .=) <$> _riManagementType,
("ipRange" .=) <$> _riIPRange,
("linkedVpnTunnel" .=) <$> _riLinkedVPNTunnel])
data NetworkListWarning =
NetworkListWarning'
{ _nlwData :: !(Maybe [NetworkListWarningDataItem])
, _nlwCode :: !(Maybe NetworkListWarningCode)
, _nlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
networkListWarning
:: NetworkListWarning
networkListWarning =
NetworkListWarning'
{_nlwData = Nothing, _nlwCode = Nothing, _nlwMessage = Nothing}
nlwData :: Lens' NetworkListWarning [NetworkListWarningDataItem]
nlwData
= lens _nlwData (\ s a -> s{_nlwData = a}) . _Default
. _Coerce
nlwCode :: Lens' NetworkListWarning (Maybe NetworkListWarningCode)
nlwCode = lens _nlwCode (\ s a -> s{_nlwCode = a})
nlwMessage :: Lens' NetworkListWarning (Maybe Text)
nlwMessage
= lens _nlwMessage (\ s a -> s{_nlwMessage = a})
instance FromJSON NetworkListWarning where
parseJSON
= withObject "NetworkListWarning"
(\ o ->
NetworkListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON NetworkListWarning where
toJSON NetworkListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _nlwData, ("code" .=) <$> _nlwCode,
("message" .=) <$> _nlwMessage])
data SnapshotList =
SnapshotList'
{ _snaNextPageToken :: !(Maybe Text)
, _snaKind :: !Text
, _snaItems :: !(Maybe [Snapshot])
, _snaSelfLink :: !(Maybe Text)
, _snaWarning :: !(Maybe SnapshotListWarning)
, _snaId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
snapshotList
:: SnapshotList
snapshotList =
SnapshotList'
{ _snaNextPageToken = Nothing
, _snaKind = "compute#snapshotList"
, _snaItems = Nothing
, _snaSelfLink = Nothing
, _snaWarning = Nothing
, _snaId = Nothing
}
snaNextPageToken :: Lens' SnapshotList (Maybe Text)
snaNextPageToken
= lens _snaNextPageToken
(\ s a -> s{_snaNextPageToken = a})
snaKind :: Lens' SnapshotList Text
snaKind = lens _snaKind (\ s a -> s{_snaKind = a})
snaItems :: Lens' SnapshotList [Snapshot]
snaItems
= lens _snaItems (\ s a -> s{_snaItems = a}) .
_Default
. _Coerce
snaSelfLink :: Lens' SnapshotList (Maybe Text)
snaSelfLink
= lens _snaSelfLink (\ s a -> s{_snaSelfLink = a})
snaWarning :: Lens' SnapshotList (Maybe SnapshotListWarning)
snaWarning
= lens _snaWarning (\ s a -> s{_snaWarning = a})
snaId :: Lens' SnapshotList (Maybe Text)
snaId = lens _snaId (\ s a -> s{_snaId = a})
instance FromJSON SnapshotList where
parseJSON
= withObject "SnapshotList"
(\ o ->
SnapshotList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#snapshotList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON SnapshotList where
toJSON SnapshotList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _snaNextPageToken,
Just ("kind" .= _snaKind),
("items" .=) <$> _snaItems,
("selfLink" .=) <$> _snaSelfLink,
("warning" .=) <$> _snaWarning,
("id" .=) <$> _snaId])
data InterconnectDiagnostics =
InterconnectDiagnostics'
{ _idMACAddress :: !(Maybe Text)
, _idArpCaches :: !(Maybe [InterconnectDiagnosticsARPEntry])
, _idLinks :: !(Maybe [InterconnectDiagnosticsLinkStatus])
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectDiagnostics
:: InterconnectDiagnostics
interconnectDiagnostics =
InterconnectDiagnostics'
{_idMACAddress = Nothing, _idArpCaches = Nothing, _idLinks = Nothing}
idMACAddress :: Lens' InterconnectDiagnostics (Maybe Text)
idMACAddress
= lens _idMACAddress (\ s a -> s{_idMACAddress = a})
idArpCaches :: Lens' InterconnectDiagnostics [InterconnectDiagnosticsARPEntry]
idArpCaches
= lens _idArpCaches (\ s a -> s{_idArpCaches = a}) .
_Default
. _Coerce
idLinks :: Lens' InterconnectDiagnostics [InterconnectDiagnosticsLinkStatus]
idLinks
= lens _idLinks (\ s a -> s{_idLinks = a}) . _Default
. _Coerce
instance FromJSON InterconnectDiagnostics where
parseJSON
= withObject "InterconnectDiagnostics"
(\ o ->
InterconnectDiagnostics' <$>
(o .:? "macAddress") <*>
(o .:? "arpCaches" .!= mempty)
<*> (o .:? "links" .!= mempty))
instance ToJSON InterconnectDiagnostics where
toJSON InterconnectDiagnostics'{..}
= object
(catMaybes
[("macAddress" .=) <$> _idMACAddress,
("arpCaches" .=) <$> _idArpCaches,
("links" .=) <$> _idLinks])
data LicenseCode =
LicenseCode'
{ _lcState :: !(Maybe LicenseCodeState)
, _lcKind :: !Text
, _lcTransferable :: !(Maybe Bool)
, _lcSelfLink :: !(Maybe Text)
, _lcName :: !(Maybe Text)
, _lcCreationTimestamp :: !(Maybe Text)
, _lcId :: !(Maybe (Textual Word64))
, _lcLicenseAlias :: !(Maybe [LicenseCodeLicenseAlias])
, _lcDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
licenseCode
:: LicenseCode
licenseCode =
LicenseCode'
{ _lcState = Nothing
, _lcKind = "compute#licenseCode"
, _lcTransferable = Nothing
, _lcSelfLink = Nothing
, _lcName = Nothing
, _lcCreationTimestamp = Nothing
, _lcId = Nothing
, _lcLicenseAlias = Nothing
, _lcDescription = Nothing
}
lcState :: Lens' LicenseCode (Maybe LicenseCodeState)
lcState = lens _lcState (\ s a -> s{_lcState = a})
lcKind :: Lens' LicenseCode Text
lcKind = lens _lcKind (\ s a -> s{_lcKind = a})
lcTransferable :: Lens' LicenseCode (Maybe Bool)
lcTransferable
= lens _lcTransferable
(\ s a -> s{_lcTransferable = a})
lcSelfLink :: Lens' LicenseCode (Maybe Text)
lcSelfLink
= lens _lcSelfLink (\ s a -> s{_lcSelfLink = a})
lcName :: Lens' LicenseCode (Maybe Text)
lcName = lens _lcName (\ s a -> s{_lcName = a})
lcCreationTimestamp :: Lens' LicenseCode (Maybe Text)
lcCreationTimestamp
= lens _lcCreationTimestamp
(\ s a -> s{_lcCreationTimestamp = a})
lcId :: Lens' LicenseCode (Maybe Word64)
lcId
= lens _lcId (\ s a -> s{_lcId = a}) .
mapping _Coerce
lcLicenseAlias :: Lens' LicenseCode [LicenseCodeLicenseAlias]
lcLicenseAlias
= lens _lcLicenseAlias
(\ s a -> s{_lcLicenseAlias = a})
. _Default
. _Coerce
lcDescription :: Lens' LicenseCode (Maybe Text)
lcDescription
= lens _lcDescription
(\ s a -> s{_lcDescription = a})
instance FromJSON LicenseCode where
parseJSON
= withObject "LicenseCode"
(\ o ->
LicenseCode' <$>
(o .:? "state") <*>
(o .:? "kind" .!= "compute#licenseCode")
<*> (o .:? "transferable")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "licenseAlias" .!= mempty)
<*> (o .:? "description"))
instance ToJSON LicenseCode where
toJSON LicenseCode'{..}
= object
(catMaybes
[("state" .=) <$> _lcState, Just ("kind" .= _lcKind),
("transferable" .=) <$> _lcTransferable,
("selfLink" .=) <$> _lcSelfLink,
("name" .=) <$> _lcName,
("creationTimestamp" .=) <$> _lcCreationTimestamp,
("id" .=) <$> _lcId,
("licenseAlias" .=) <$> _lcLicenseAlias,
("description" .=) <$> _lcDescription])
data TestFailure =
TestFailure'
{ _tfPath :: !(Maybe Text)
, _tfExpectedService :: !(Maybe Text)
, _tfHost :: !(Maybe Text)
, _tfActualService :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
testFailure
:: TestFailure
testFailure =
TestFailure'
{ _tfPath = Nothing
, _tfExpectedService = Nothing
, _tfHost = Nothing
, _tfActualService = Nothing
}
tfPath :: Lens' TestFailure (Maybe Text)
tfPath = lens _tfPath (\ s a -> s{_tfPath = a})
tfExpectedService :: Lens' TestFailure (Maybe Text)
tfExpectedService
= lens _tfExpectedService
(\ s a -> s{_tfExpectedService = a})
tfHost :: Lens' TestFailure (Maybe Text)
tfHost = lens _tfHost (\ s a -> s{_tfHost = a})
tfActualService :: Lens' TestFailure (Maybe Text)
tfActualService
= lens _tfActualService
(\ s a -> s{_tfActualService = a})
instance FromJSON TestFailure where
parseJSON
= withObject "TestFailure"
(\ o ->
TestFailure' <$>
(o .:? "path") <*> (o .:? "expectedService") <*>
(o .:? "host")
<*> (o .:? "actualService"))
instance ToJSON TestFailure where
toJSON TestFailure'{..}
= object
(catMaybes
[("path" .=) <$> _tfPath,
("expectedService" .=) <$> _tfExpectedService,
("host" .=) <$> _tfHost,
("actualService" .=) <$> _tfActualService])
data CommitmentListWarningDataItem =
CommitmentListWarningDataItem'
{ _clwdiValue :: !(Maybe Text)
, _clwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentListWarningDataItem
:: CommitmentListWarningDataItem
commitmentListWarningDataItem =
CommitmentListWarningDataItem' {_clwdiValue = Nothing, _clwdiKey = Nothing}
clwdiValue :: Lens' CommitmentListWarningDataItem (Maybe Text)
clwdiValue
= lens _clwdiValue (\ s a -> s{_clwdiValue = a})
clwdiKey :: Lens' CommitmentListWarningDataItem (Maybe Text)
clwdiKey = lens _clwdiKey (\ s a -> s{_clwdiKey = a})
instance FromJSON CommitmentListWarningDataItem where
parseJSON
= withObject "CommitmentListWarningDataItem"
(\ o ->
CommitmentListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON CommitmentListWarningDataItem where
toJSON CommitmentListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _clwdiValue,
("key" .=) <$> _clwdiKey])
data ManagedInstanceVersion =
ManagedInstanceVersion'
{ _mivInstanceTemplate :: !(Maybe Text)
, _mivName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
managedInstanceVersion
:: ManagedInstanceVersion
managedInstanceVersion =
ManagedInstanceVersion' {_mivInstanceTemplate = Nothing, _mivName = Nothing}
mivInstanceTemplate :: Lens' ManagedInstanceVersion (Maybe Text)
mivInstanceTemplate
= lens _mivInstanceTemplate
(\ s a -> s{_mivInstanceTemplate = a})
mivName :: Lens' ManagedInstanceVersion (Maybe Text)
mivName = lens _mivName (\ s a -> s{_mivName = a})
instance FromJSON ManagedInstanceVersion where
parseJSON
= withObject "ManagedInstanceVersion"
(\ o ->
ManagedInstanceVersion' <$>
(o .:? "instanceTemplate") <*> (o .:? "name"))
instance ToJSON ManagedInstanceVersion where
toJSON ManagedInstanceVersion'{..}
= object
(catMaybes
[("instanceTemplate" .=) <$> _mivInstanceTemplate,
("name" .=) <$> _mivName])
data CommitmentsScopedListWarning =
CommitmentsScopedListWarning'
{ _cslwData :: !(Maybe [CommitmentsScopedListWarningDataItem])
, _cslwCode :: !(Maybe CommitmentsScopedListWarningCode)
, _cslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentsScopedListWarning
:: CommitmentsScopedListWarning
commitmentsScopedListWarning =
CommitmentsScopedListWarning'
{_cslwData = Nothing, _cslwCode = Nothing, _cslwMessage = Nothing}
cslwData :: Lens' CommitmentsScopedListWarning [CommitmentsScopedListWarningDataItem]
cslwData
= lens _cslwData (\ s a -> s{_cslwData = a}) .
_Default
. _Coerce
cslwCode :: Lens' CommitmentsScopedListWarning (Maybe CommitmentsScopedListWarningCode)
cslwCode = lens _cslwCode (\ s a -> s{_cslwCode = a})
cslwMessage :: Lens' CommitmentsScopedListWarning (Maybe Text)
cslwMessage
= lens _cslwMessage (\ s a -> s{_cslwMessage = a})
instance FromJSON CommitmentsScopedListWarning where
parseJSON
= withObject "CommitmentsScopedListWarning"
(\ o ->
CommitmentsScopedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON CommitmentsScopedListWarning where
toJSON CommitmentsScopedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _cslwData,
("code" .=) <$> _cslwCode,
("message" .=) <$> _cslwMessage])
data SerialPortOutput =
SerialPortOutput'
{ _spoNext :: !(Maybe (Textual Int64))
, _spoContents :: !(Maybe Text)
, _spoKind :: !Text
, _spoStart :: !(Maybe (Textual Int64))
, _spoSelfLink :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
serialPortOutput
:: SerialPortOutput
serialPortOutput =
SerialPortOutput'
{ _spoNext = Nothing
, _spoContents = Nothing
, _spoKind = "compute#serialPortOutput"
, _spoStart = Nothing
, _spoSelfLink = Nothing
}
spoNext :: Lens' SerialPortOutput (Maybe Int64)
spoNext
= lens _spoNext (\ s a -> s{_spoNext = a}) .
mapping _Coerce
spoContents :: Lens' SerialPortOutput (Maybe Text)
spoContents
= lens _spoContents (\ s a -> s{_spoContents = a})
spoKind :: Lens' SerialPortOutput Text
spoKind = lens _spoKind (\ s a -> s{_spoKind = a})
spoStart :: Lens' SerialPortOutput (Maybe Int64)
spoStart
= lens _spoStart (\ s a -> s{_spoStart = a}) .
mapping _Coerce
spoSelfLink :: Lens' SerialPortOutput (Maybe Text)
spoSelfLink
= lens _spoSelfLink (\ s a -> s{_spoSelfLink = a})
instance FromJSON SerialPortOutput where
parseJSON
= withObject "SerialPortOutput"
(\ o ->
SerialPortOutput' <$>
(o .:? "next") <*> (o .:? "contents") <*>
(o .:? "kind" .!= "compute#serialPortOutput")
<*> (o .:? "start")
<*> (o .:? "selfLink"))
instance ToJSON SerialPortOutput where
toJSON SerialPortOutput'{..}
= object
(catMaybes
[("next" .=) <$> _spoNext,
("contents" .=) <$> _spoContents,
Just ("kind" .= _spoKind),
("start" .=) <$> _spoStart,
("selfLink" .=) <$> _spoSelfLink])
data TargetVPNGatewayAggregatedList =
TargetVPNGatewayAggregatedList'
{ _tvgalNextPageToken :: !(Maybe Text)
, _tvgalKind :: !Text
, _tvgalItems :: !(Maybe TargetVPNGatewayAggregatedListItems)
, _tvgalSelfLink :: !(Maybe Text)
, _tvgalWarning :: !(Maybe TargetVPNGatewayAggregatedListWarning)
, _tvgalId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewayAggregatedList
:: TargetVPNGatewayAggregatedList
targetVPNGatewayAggregatedList =
TargetVPNGatewayAggregatedList'
{ _tvgalNextPageToken = Nothing
, _tvgalKind = "compute#targetVpnGatewayAggregatedList"
, _tvgalItems = Nothing
, _tvgalSelfLink = Nothing
, _tvgalWarning = Nothing
, _tvgalId = Nothing
}
tvgalNextPageToken :: Lens' TargetVPNGatewayAggregatedList (Maybe Text)
tvgalNextPageToken
= lens _tvgalNextPageToken
(\ s a -> s{_tvgalNextPageToken = a})
tvgalKind :: Lens' TargetVPNGatewayAggregatedList Text
tvgalKind
= lens _tvgalKind (\ s a -> s{_tvgalKind = a})
tvgalItems :: Lens' TargetVPNGatewayAggregatedList (Maybe TargetVPNGatewayAggregatedListItems)
tvgalItems
= lens _tvgalItems (\ s a -> s{_tvgalItems = a})
tvgalSelfLink :: Lens' TargetVPNGatewayAggregatedList (Maybe Text)
tvgalSelfLink
= lens _tvgalSelfLink
(\ s a -> s{_tvgalSelfLink = a})
tvgalWarning :: Lens' TargetVPNGatewayAggregatedList (Maybe TargetVPNGatewayAggregatedListWarning)
tvgalWarning
= lens _tvgalWarning (\ s a -> s{_tvgalWarning = a})
tvgalId :: Lens' TargetVPNGatewayAggregatedList (Maybe Text)
tvgalId = lens _tvgalId (\ s a -> s{_tvgalId = a})
instance FromJSON TargetVPNGatewayAggregatedList
where
parseJSON
= withObject "TargetVPNGatewayAggregatedList"
(\ o ->
TargetVPNGatewayAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#targetVpnGatewayAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON TargetVPNGatewayAggregatedList where
toJSON TargetVPNGatewayAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _tvgalNextPageToken,
Just ("kind" .= _tvgalKind),
("items" .=) <$> _tvgalItems,
("selfLink" .=) <$> _tvgalSelfLink,
("warning" .=) <$> _tvgalWarning,
("id" .=) <$> _tvgalId])
data InterconnectAttachmentAggregatedListWarning =
InterconnectAttachmentAggregatedListWarning'
{ _iaalwData :: !(Maybe [InterconnectAttachmentAggregatedListWarningDataItem])
, _iaalwCode :: !(Maybe InterconnectAttachmentAggregatedListWarningCode)
, _iaalwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentAggregatedListWarning
:: InterconnectAttachmentAggregatedListWarning
interconnectAttachmentAggregatedListWarning =
InterconnectAttachmentAggregatedListWarning'
{_iaalwData = Nothing, _iaalwCode = Nothing, _iaalwMessage = Nothing}
iaalwData :: Lens' InterconnectAttachmentAggregatedListWarning [InterconnectAttachmentAggregatedListWarningDataItem]
iaalwData
= lens _iaalwData (\ s a -> s{_iaalwData = a}) .
_Default
. _Coerce
iaalwCode :: Lens' InterconnectAttachmentAggregatedListWarning (Maybe InterconnectAttachmentAggregatedListWarningCode)
iaalwCode
= lens _iaalwCode (\ s a -> s{_iaalwCode = a})
iaalwMessage :: Lens' InterconnectAttachmentAggregatedListWarning (Maybe Text)
iaalwMessage
= lens _iaalwMessage (\ s a -> s{_iaalwMessage = a})
instance FromJSON
InterconnectAttachmentAggregatedListWarning
where
parseJSON
= withObject
"InterconnectAttachmentAggregatedListWarning"
(\ o ->
InterconnectAttachmentAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
InterconnectAttachmentAggregatedListWarning
where
toJSON
InterconnectAttachmentAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _iaalwData,
("code" .=) <$> _iaalwCode,
("message" .=) <$> _iaalwMessage])
data MetadataItemsItem =
MetadataItemsItem'
{ _miiValue :: !(Maybe Text)
, _miiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
metadataItemsItem
:: MetadataItemsItem
metadataItemsItem = MetadataItemsItem' {_miiValue = Nothing, _miiKey = Nothing}
miiValue :: Lens' MetadataItemsItem (Maybe Text)
miiValue = lens _miiValue (\ s a -> s{_miiValue = a})
miiKey :: Lens' MetadataItemsItem (Maybe Text)
miiKey = lens _miiKey (\ s a -> s{_miiKey = a})
instance FromJSON MetadataItemsItem where
parseJSON
= withObject "MetadataItemsItem"
(\ o ->
MetadataItemsItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON MetadataItemsItem where
toJSON MetadataItemsItem'{..}
= object
(catMaybes
[("value" .=) <$> _miiValue, ("key" .=) <$> _miiKey])
data SignedURLKey =
SignedURLKey'
{ _sukKeyValue :: !(Maybe Text)
, _sukKeyName :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
signedURLKey
:: SignedURLKey
signedURLKey = SignedURLKey' {_sukKeyValue = Nothing, _sukKeyName = Nothing}
sukKeyValue :: Lens' SignedURLKey (Maybe Text)
sukKeyValue
= lens _sukKeyValue (\ s a -> s{_sukKeyValue = a})
sukKeyName :: Lens' SignedURLKey (Maybe Text)
sukKeyName
= lens _sukKeyName (\ s a -> s{_sukKeyName = a})
instance FromJSON SignedURLKey where
parseJSON
= withObject "SignedURLKey"
(\ o ->
SignedURLKey' <$>
(o .:? "keyValue") <*> (o .:? "keyName"))
instance ToJSON SignedURLKey where
toJSON SignedURLKey'{..}
= object
(catMaybes
[("keyValue" .=) <$> _sukKeyValue,
("keyName" .=) <$> _sukKeyName])
data TargetHTTPSProxy =
TargetHTTPSProxy'
{ _thpSSLPolicy :: !(Maybe Text)
, _thpURLMap :: !(Maybe Text)
, _thpSSLCertificates :: !(Maybe [Text])
, _thpQuicOverride :: !(Maybe TargetHTTPSProxyQuicOverride)
, _thpKind :: !Text
, _thpSelfLink :: !(Maybe Text)
, _thpName :: !(Maybe Text)
, _thpCreationTimestamp :: !(Maybe Text)
, _thpId :: !(Maybe (Textual Word64))
, _thpDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetHTTPSProxy
:: TargetHTTPSProxy
targetHTTPSProxy =
TargetHTTPSProxy'
{ _thpSSLPolicy = Nothing
, _thpURLMap = Nothing
, _thpSSLCertificates = Nothing
, _thpQuicOverride = Nothing
, _thpKind = "compute#targetHttpsProxy"
, _thpSelfLink = Nothing
, _thpName = Nothing
, _thpCreationTimestamp = Nothing
, _thpId = Nothing
, _thpDescription = Nothing
}
thpSSLPolicy :: Lens' TargetHTTPSProxy (Maybe Text)
thpSSLPolicy
= lens _thpSSLPolicy (\ s a -> s{_thpSSLPolicy = a})
thpURLMap :: Lens' TargetHTTPSProxy (Maybe Text)
thpURLMap
= lens _thpURLMap (\ s a -> s{_thpURLMap = a})
thpSSLCertificates :: Lens' TargetHTTPSProxy [Text]
thpSSLCertificates
= lens _thpSSLCertificates
(\ s a -> s{_thpSSLCertificates = a})
. _Default
. _Coerce
thpQuicOverride :: Lens' TargetHTTPSProxy (Maybe TargetHTTPSProxyQuicOverride)
thpQuicOverride
= lens _thpQuicOverride
(\ s a -> s{_thpQuicOverride = a})
thpKind :: Lens' TargetHTTPSProxy Text
thpKind = lens _thpKind (\ s a -> s{_thpKind = a})
thpSelfLink :: Lens' TargetHTTPSProxy (Maybe Text)
thpSelfLink
= lens _thpSelfLink (\ s a -> s{_thpSelfLink = a})
thpName :: Lens' TargetHTTPSProxy (Maybe Text)
thpName = lens _thpName (\ s a -> s{_thpName = a})
thpCreationTimestamp :: Lens' TargetHTTPSProxy (Maybe Text)
thpCreationTimestamp
= lens _thpCreationTimestamp
(\ s a -> s{_thpCreationTimestamp = a})
thpId :: Lens' TargetHTTPSProxy (Maybe Word64)
thpId
= lens _thpId (\ s a -> s{_thpId = a}) .
mapping _Coerce
thpDescription :: Lens' TargetHTTPSProxy (Maybe Text)
thpDescription
= lens _thpDescription
(\ s a -> s{_thpDescription = a})
instance FromJSON TargetHTTPSProxy where
parseJSON
= withObject "TargetHTTPSProxy"
(\ o ->
TargetHTTPSProxy' <$>
(o .:? "sslPolicy") <*> (o .:? "urlMap") <*>
(o .:? "sslCertificates" .!= mempty)
<*> (o .:? "quicOverride")
<*> (o .:? "kind" .!= "compute#targetHttpsProxy")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "description"))
instance ToJSON TargetHTTPSProxy where
toJSON TargetHTTPSProxy'{..}
= object
(catMaybes
[("sslPolicy" .=) <$> _thpSSLPolicy,
("urlMap" .=) <$> _thpURLMap,
("sslCertificates" .=) <$> _thpSSLCertificates,
("quicOverride" .=) <$> _thpQuicOverride,
Just ("kind" .= _thpKind),
("selfLink" .=) <$> _thpSelfLink,
("name" .=) <$> _thpName,
("creationTimestamp" .=) <$> _thpCreationTimestamp,
("id" .=) <$> _thpId,
("description" .=) <$> _thpDescription])
newtype ConnectionDraining =
ConnectionDraining'
{ _cdDrainingTimeoutSec :: Maybe (Textual Int32)
}
deriving (Eq, Show, Data, Typeable, Generic)
connectionDraining
:: ConnectionDraining
connectionDraining = ConnectionDraining' {_cdDrainingTimeoutSec = Nothing}
cdDrainingTimeoutSec :: Lens' ConnectionDraining (Maybe Int32)
cdDrainingTimeoutSec
= lens _cdDrainingTimeoutSec
(\ s a -> s{_cdDrainingTimeoutSec = a})
. mapping _Coerce
instance FromJSON ConnectionDraining where
parseJSON
= withObject "ConnectionDraining"
(\ o ->
ConnectionDraining' <$> (o .:? "drainingTimeoutSec"))
instance ToJSON ConnectionDraining where
toJSON ConnectionDraining'{..}
= object
(catMaybes
[("drainingTimeoutSec" .=) <$>
_cdDrainingTimeoutSec])
data InterconnectAttachmentListWarningDataItem =
InterconnectAttachmentListWarningDataItem'
{ _ialwdiValue :: !(Maybe Text)
, _ialwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentListWarningDataItem
:: InterconnectAttachmentListWarningDataItem
interconnectAttachmentListWarningDataItem =
InterconnectAttachmentListWarningDataItem'
{_ialwdiValue = Nothing, _ialwdiKey = Nothing}
ialwdiValue :: Lens' InterconnectAttachmentListWarningDataItem (Maybe Text)
ialwdiValue
= lens _ialwdiValue (\ s a -> s{_ialwdiValue = a})
ialwdiKey :: Lens' InterconnectAttachmentListWarningDataItem (Maybe Text)
ialwdiKey
= lens _ialwdiKey (\ s a -> s{_ialwdiKey = a})
instance FromJSON
InterconnectAttachmentListWarningDataItem
where
parseJSON
= withObject
"InterconnectAttachmentListWarningDataItem"
(\ o ->
InterconnectAttachmentListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
InterconnectAttachmentListWarningDataItem
where
toJSON InterconnectAttachmentListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _ialwdiValue,
("key" .=) <$> _ialwdiKey])
data CacheInvalidationRule =
CacheInvalidationRule'
{ _cirPath :: !(Maybe Text)
, _cirHost :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
cacheInvalidationRule
:: CacheInvalidationRule
cacheInvalidationRule =
CacheInvalidationRule' {_cirPath = Nothing, _cirHost = Nothing}
cirPath :: Lens' CacheInvalidationRule (Maybe Text)
cirPath = lens _cirPath (\ s a -> s{_cirPath = a})
cirHost :: Lens' CacheInvalidationRule (Maybe Text)
cirHost = lens _cirHost (\ s a -> s{_cirHost = a})
instance FromJSON CacheInvalidationRule where
parseJSON
= withObject "CacheInvalidationRule"
(\ o ->
CacheInvalidationRule' <$>
(o .:? "path") <*> (o .:? "host"))
instance ToJSON CacheInvalidationRule where
toJSON CacheInvalidationRule'{..}
= object
(catMaybes
[("path" .=) <$> _cirPath, ("host" .=) <$> _cirHost])
data AddressAggregatedListWarningDataItem =
AddressAggregatedListWarningDataItem'
{ _aalwdiaValue :: !(Maybe Text)
, _aalwdiaKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressAggregatedListWarningDataItem
:: AddressAggregatedListWarningDataItem
addressAggregatedListWarningDataItem =
AddressAggregatedListWarningDataItem'
{_aalwdiaValue = Nothing, _aalwdiaKey = Nothing}
aalwdiaValue :: Lens' AddressAggregatedListWarningDataItem (Maybe Text)
aalwdiaValue
= lens _aalwdiaValue (\ s a -> s{_aalwdiaValue = a})
aalwdiaKey :: Lens' AddressAggregatedListWarningDataItem (Maybe Text)
aalwdiaKey
= lens _aalwdiaKey (\ s a -> s{_aalwdiaKey = a})
instance FromJSON
AddressAggregatedListWarningDataItem
where
parseJSON
= withObject "AddressAggregatedListWarningDataItem"
(\ o ->
AddressAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON AddressAggregatedListWarningDataItem
where
toJSON AddressAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _aalwdiaValue,
("key" .=) <$> _aalwdiaKey])
data TargetVPNGatewaysScopedList =
TargetVPNGatewaysScopedList'
{ _tvgslTargetVPNGateways :: !(Maybe [TargetVPNGateway])
, _tvgslWarning :: !(Maybe TargetVPNGatewaysScopedListWarning)
}
deriving (Eq, Show, Data, Typeable, Generic)
targetVPNGatewaysScopedList
:: TargetVPNGatewaysScopedList
targetVPNGatewaysScopedList =
TargetVPNGatewaysScopedList'
{_tvgslTargetVPNGateways = Nothing, _tvgslWarning = Nothing}
tvgslTargetVPNGateways :: Lens' TargetVPNGatewaysScopedList [TargetVPNGateway]
tvgslTargetVPNGateways
= lens _tvgslTargetVPNGateways
(\ s a -> s{_tvgslTargetVPNGateways = a})
. _Default
. _Coerce
tvgslWarning :: Lens' TargetVPNGatewaysScopedList (Maybe TargetVPNGatewaysScopedListWarning)
tvgslWarning
= lens _tvgslWarning (\ s a -> s{_tvgslWarning = a})
instance FromJSON TargetVPNGatewaysScopedList where
parseJSON
= withObject "TargetVPNGatewaysScopedList"
(\ o ->
TargetVPNGatewaysScopedList' <$>
(o .:? "targetVpnGateways" .!= mempty) <*>
(o .:? "warning"))
instance ToJSON TargetVPNGatewaysScopedList where
toJSON TargetVPNGatewaysScopedList'{..}
= object
(catMaybes
[("targetVpnGateways" .=) <$>
_tvgslTargetVPNGateways,
("warning" .=) <$> _tvgslWarning])
data CommitmentAggregatedListWarning =
CommitmentAggregatedListWarning'
{ _calwData :: !(Maybe [CommitmentAggregatedListWarningDataItem])
, _calwCode :: !(Maybe CommitmentAggregatedListWarningCode)
, _calwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentAggregatedListWarning
:: CommitmentAggregatedListWarning
commitmentAggregatedListWarning =
CommitmentAggregatedListWarning'
{_calwData = Nothing, _calwCode = Nothing, _calwMessage = Nothing}
calwData :: Lens' CommitmentAggregatedListWarning [CommitmentAggregatedListWarningDataItem]
calwData
= lens _calwData (\ s a -> s{_calwData = a}) .
_Default
. _Coerce
calwCode :: Lens' CommitmentAggregatedListWarning (Maybe CommitmentAggregatedListWarningCode)
calwCode = lens _calwCode (\ s a -> s{_calwCode = a})
calwMessage :: Lens' CommitmentAggregatedListWarning (Maybe Text)
calwMessage
= lens _calwMessage (\ s a -> s{_calwMessage = a})
instance FromJSON CommitmentAggregatedListWarning
where
parseJSON
= withObject "CommitmentAggregatedListWarning"
(\ o ->
CommitmentAggregatedListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON CommitmentAggregatedListWarning where
toJSON CommitmentAggregatedListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _calwData,
("code" .=) <$> _calwCode,
("message" .=) <$> _calwMessage])
data RegionInstanceGroupListWarning =
RegionInstanceGroupListWarning'
{ _riglwData :: !(Maybe [RegionInstanceGroupListWarningDataItem])
, _riglwCode :: !(Maybe RegionInstanceGroupListWarningCode)
, _riglwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
regionInstanceGroupListWarning
:: RegionInstanceGroupListWarning
regionInstanceGroupListWarning =
RegionInstanceGroupListWarning'
{_riglwData = Nothing, _riglwCode = Nothing, _riglwMessage = Nothing}
riglwData :: Lens' RegionInstanceGroupListWarning [RegionInstanceGroupListWarningDataItem]
riglwData
= lens _riglwData (\ s a -> s{_riglwData = a}) .
_Default
. _Coerce
riglwCode :: Lens' RegionInstanceGroupListWarning (Maybe RegionInstanceGroupListWarningCode)
riglwCode
= lens _riglwCode (\ s a -> s{_riglwCode = a})
riglwMessage :: Lens' RegionInstanceGroupListWarning (Maybe Text)
riglwMessage
= lens _riglwMessage (\ s a -> s{_riglwMessage = a})
instance FromJSON RegionInstanceGroupListWarning
where
parseJSON
= withObject "RegionInstanceGroupListWarning"
(\ o ->
RegionInstanceGroupListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON RegionInstanceGroupListWarning where
toJSON RegionInstanceGroupListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _riglwData,
("code" .=) <$> _riglwCode,
("message" .=) <$> _riglwMessage])
data AccessConfig =
AccessConfig'
{ _acNetworkTier :: !(Maybe AccessConfigNetworkTier)
, _acSetPublicPtr :: !(Maybe Bool)
, _acKind :: !Text
, _acName :: !(Maybe Text)
, _acNATIP :: !(Maybe Text)
, _acPublicPtrDomainName :: !(Maybe Text)
, _acType :: !AccessConfigType
}
deriving (Eq, Show, Data, Typeable, Generic)
accessConfig
:: AccessConfig
accessConfig =
AccessConfig'
{ _acNetworkTier = Nothing
, _acSetPublicPtr = Nothing
, _acKind = "compute#accessConfig"
, _acName = Nothing
, _acNATIP = Nothing
, _acPublicPtrDomainName = Nothing
, _acType = OneToOneNAT
}
acNetworkTier :: Lens' AccessConfig (Maybe AccessConfigNetworkTier)
acNetworkTier
= lens _acNetworkTier
(\ s a -> s{_acNetworkTier = a})
acSetPublicPtr :: Lens' AccessConfig (Maybe Bool)
acSetPublicPtr
= lens _acSetPublicPtr
(\ s a -> s{_acSetPublicPtr = a})
acKind :: Lens' AccessConfig Text
acKind = lens _acKind (\ s a -> s{_acKind = a})
acName :: Lens' AccessConfig (Maybe Text)
acName = lens _acName (\ s a -> s{_acName = a})
acNATIP :: Lens' AccessConfig (Maybe Text)
acNATIP = lens _acNATIP (\ s a -> s{_acNATIP = a})
acPublicPtrDomainName :: Lens' AccessConfig (Maybe Text)
acPublicPtrDomainName
= lens _acPublicPtrDomainName
(\ s a -> s{_acPublicPtrDomainName = a})
acType :: Lens' AccessConfig AccessConfigType
acType = lens _acType (\ s a -> s{_acType = a})
instance FromJSON AccessConfig where
parseJSON
= withObject "AccessConfig"
(\ o ->
AccessConfig' <$>
(o .:? "networkTier") <*> (o .:? "setPublicPtr") <*>
(o .:? "kind" .!= "compute#accessConfig")
<*> (o .:? "name")
<*> (o .:? "natIP")
<*> (o .:? "publicPtrDomainName")
<*> (o .:? "type" .!= OneToOneNAT))
instance ToJSON AccessConfig where
toJSON AccessConfig'{..}
= object
(catMaybes
[("networkTier" .=) <$> _acNetworkTier,
("setPublicPtr" .=) <$> _acSetPublicPtr,
Just ("kind" .= _acKind), ("name" .=) <$> _acName,
("natIP" .=) <$> _acNATIP,
("publicPtrDomainName" .=) <$>
_acPublicPtrDomainName,
Just ("type" .= _acType)])
data LogConfig =
LogConfig'
{ _lcCloudAudit :: !(Maybe LogConfigCloudAuditOptions)
, _lcDataAccess :: !(Maybe LogConfigDataAccessOptions)
, _lcCounter :: !(Maybe LogConfigCounterOptions)
}
deriving (Eq, Show, Data, Typeable, Generic)
logConfig
:: LogConfig
logConfig =
LogConfig'
{_lcCloudAudit = Nothing, _lcDataAccess = Nothing, _lcCounter = Nothing}
lcCloudAudit :: Lens' LogConfig (Maybe LogConfigCloudAuditOptions)
lcCloudAudit
= lens _lcCloudAudit (\ s a -> s{_lcCloudAudit = a})
lcDataAccess :: Lens' LogConfig (Maybe LogConfigDataAccessOptions)
lcDataAccess
= lens _lcDataAccess (\ s a -> s{_lcDataAccess = a})
lcCounter :: Lens' LogConfig (Maybe LogConfigCounterOptions)
lcCounter
= lens _lcCounter (\ s a -> s{_lcCounter = a})
instance FromJSON LogConfig where
parseJSON
= withObject "LogConfig"
(\ o ->
LogConfig' <$>
(o .:? "cloudAudit") <*> (o .:? "dataAccess") <*>
(o .:? "counter"))
instance ToJSON LogConfig where
toJSON LogConfig'{..}
= object
(catMaybes
[("cloudAudit" .=) <$> _lcCloudAudit,
("dataAccess" .=) <$> _lcDataAccess,
("counter" .=) <$> _lcCounter])
data ZoneListWarning =
ZoneListWarning'
{ _zlwData :: !(Maybe [ZoneListWarningDataItem])
, _zlwCode :: !(Maybe ZoneListWarningCode)
, _zlwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
zoneListWarning
:: ZoneListWarning
zoneListWarning =
ZoneListWarning'
{_zlwData = Nothing, _zlwCode = Nothing, _zlwMessage = Nothing}
zlwData :: Lens' ZoneListWarning [ZoneListWarningDataItem]
zlwData
= lens _zlwData (\ s a -> s{_zlwData = a}) . _Default
. _Coerce
zlwCode :: Lens' ZoneListWarning (Maybe ZoneListWarningCode)
zlwCode = lens _zlwCode (\ s a -> s{_zlwCode = a})
zlwMessage :: Lens' ZoneListWarning (Maybe Text)
zlwMessage
= lens _zlwMessage (\ s a -> s{_zlwMessage = a})
instance FromJSON ZoneListWarning where
parseJSON
= withObject "ZoneListWarning"
(\ o ->
ZoneListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON ZoneListWarning where
toJSON ZoneListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _zlwData, ("code" .=) <$> _zlwCode,
("message" .=) <$> _zlwMessage])
data ManagedInstanceLastAttemptErrorsErrorsItem =
ManagedInstanceLastAttemptErrorsErrorsItem'
{ _milaeeiLocation :: !(Maybe Text)
, _milaeeiCode :: !(Maybe Text)
, _milaeeiMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
managedInstanceLastAttemptErrorsErrorsItem
:: ManagedInstanceLastAttemptErrorsErrorsItem
managedInstanceLastAttemptErrorsErrorsItem =
ManagedInstanceLastAttemptErrorsErrorsItem'
{ _milaeeiLocation = Nothing
, _milaeeiCode = Nothing
, _milaeeiMessage = Nothing
}
milaeeiLocation :: Lens' ManagedInstanceLastAttemptErrorsErrorsItem (Maybe Text)
milaeeiLocation
= lens _milaeeiLocation
(\ s a -> s{_milaeeiLocation = a})
milaeeiCode :: Lens' ManagedInstanceLastAttemptErrorsErrorsItem (Maybe Text)
milaeeiCode
= lens _milaeeiCode (\ s a -> s{_milaeeiCode = a})
milaeeiMessage :: Lens' ManagedInstanceLastAttemptErrorsErrorsItem (Maybe Text)
milaeeiMessage
= lens _milaeeiMessage
(\ s a -> s{_milaeeiMessage = a})
instance FromJSON
ManagedInstanceLastAttemptErrorsErrorsItem
where
parseJSON
= withObject
"ManagedInstanceLastAttemptErrorsErrorsItem"
(\ o ->
ManagedInstanceLastAttemptErrorsErrorsItem' <$>
(o .:? "location") <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON
ManagedInstanceLastAttemptErrorsErrorsItem
where
toJSON
ManagedInstanceLastAttemptErrorsErrorsItem'{..}
= object
(catMaybes
[("location" .=) <$> _milaeeiLocation,
("code" .=) <$> _milaeeiCode,
("message" .=) <$> _milaeeiMessage])
data InstancesScopedListWarningDataItem =
InstancesScopedListWarningDataItem'
{ _islwdiValue :: !(Maybe Text)
, _islwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesScopedListWarningDataItem
:: InstancesScopedListWarningDataItem
instancesScopedListWarningDataItem =
InstancesScopedListWarningDataItem'
{_islwdiValue = Nothing, _islwdiKey = Nothing}
islwdiValue :: Lens' InstancesScopedListWarningDataItem (Maybe Text)
islwdiValue
= lens _islwdiValue (\ s a -> s{_islwdiValue = a})
islwdiKey :: Lens' InstancesScopedListWarningDataItem (Maybe Text)
islwdiKey
= lens _islwdiKey (\ s a -> s{_islwdiKey = a})
instance FromJSON InstancesScopedListWarningDataItem
where
parseJSON
= withObject "InstancesScopedListWarningDataItem"
(\ o ->
InstancesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON InstancesScopedListWarningDataItem
where
toJSON InstancesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _islwdiValue,
("key" .=) <$> _islwdiKey])
newtype SnapshotLabels =
SnapshotLabels'
{ _slAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
snapshotLabels
:: HashMap Text Text
-> SnapshotLabels
snapshotLabels pSlAddtional_ =
SnapshotLabels' {_slAddtional = _Coerce # pSlAddtional_}
slAddtional :: Lens' SnapshotLabels (HashMap Text Text)
slAddtional
= lens _slAddtional (\ s a -> s{_slAddtional = a}) .
_Coerce
instance FromJSON SnapshotLabels where
parseJSON
= withObject "SnapshotLabels"
(\ o -> SnapshotLabels' <$> (parseJSONObject o))
instance ToJSON SnapshotLabels where
toJSON = toJSON . _slAddtional
data BackendServicesScopedListWarningDataItem =
BackendServicesScopedListWarningDataItem'
{ _bsslwdiValue :: !(Maybe Text)
, _bsslwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServicesScopedListWarningDataItem
:: BackendServicesScopedListWarningDataItem
backendServicesScopedListWarningDataItem =
BackendServicesScopedListWarningDataItem'
{_bsslwdiValue = Nothing, _bsslwdiKey = Nothing}
bsslwdiValue :: Lens' BackendServicesScopedListWarningDataItem (Maybe Text)
bsslwdiValue
= lens _bsslwdiValue (\ s a -> s{_bsslwdiValue = a})
bsslwdiKey :: Lens' BackendServicesScopedListWarningDataItem (Maybe Text)
bsslwdiKey
= lens _bsslwdiKey (\ s a -> s{_bsslwdiKey = a})
instance FromJSON
BackendServicesScopedListWarningDataItem
where
parseJSON
= withObject
"BackendServicesScopedListWarningDataItem"
(\ o ->
BackendServicesScopedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
BackendServicesScopedListWarningDataItem
where
toJSON BackendServicesScopedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _bsslwdiValue,
("key" .=) <$> _bsslwdiKey])
newtype NodeTemplateAggregatedListItems =
NodeTemplateAggregatedListItems'
{ _ntaliAddtional :: HashMap Text NodeTemplatesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTemplateAggregatedListItems
:: HashMap Text NodeTemplatesScopedList
-> NodeTemplateAggregatedListItems
nodeTemplateAggregatedListItems pNtaliAddtional_ =
NodeTemplateAggregatedListItems'
{_ntaliAddtional = _Coerce # pNtaliAddtional_}
ntaliAddtional :: Lens' NodeTemplateAggregatedListItems (HashMap Text NodeTemplatesScopedList)
ntaliAddtional
= lens _ntaliAddtional
(\ s a -> s{_ntaliAddtional = a})
. _Coerce
instance FromJSON NodeTemplateAggregatedListItems
where
parseJSON
= withObject "NodeTemplateAggregatedListItems"
(\ o ->
NodeTemplateAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON NodeTemplateAggregatedListItems where
toJSON = toJSON . _ntaliAddtional
data BackendService =
BackendService'
{ _bsSessionAffinity :: !(Maybe BackendServiceSessionAffinity)
, _bsBackends :: !(Maybe [Backend])
, _bsAffinityCookieTtlSec :: !(Maybe (Textual Int32))
, _bsIap :: !(Maybe BackendServiceIAP)
, _bsLoadBalancingScheme :: !(Maybe BackendServiceLoadBalancingScheme)
, _bsKind :: !Text
, _bsEnableCDN :: !(Maybe Bool)
, _bsFingerprint :: !(Maybe Bytes)
, _bsProtocol :: !(Maybe BackendServiceProtocol)
, _bsCustomRequestHeaders :: !(Maybe [Text])
, _bsSecurityPolicy :: !(Maybe Text)
, _bsCdnPolicy :: !(Maybe BackendServiceCdnPolicy)
, _bsSelfLink :: !(Maybe Text)
, _bsName :: !(Maybe Text)
, _bsCreationTimestamp :: !(Maybe Text)
, _bsId :: !(Maybe (Textual Word64))
, _bsRegion :: !(Maybe Text)
, _bsConnectionDraining :: !(Maybe ConnectionDraining)
, _bsTimeoutSec :: !(Maybe (Textual Int32))
, _bsDescription :: !(Maybe Text)
, _bsPortName :: !(Maybe Text)
, _bsHealthChecks :: !(Maybe [Text])
, _bsPort :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
backendService
:: BackendService
backendService =
BackendService'
{ _bsSessionAffinity = Nothing
, _bsBackends = Nothing
, _bsAffinityCookieTtlSec = Nothing
, _bsIap = Nothing
, _bsLoadBalancingScheme = Nothing
, _bsKind = "compute#backendService"
, _bsEnableCDN = Nothing
, _bsFingerprint = Nothing
, _bsProtocol = Nothing
, _bsCustomRequestHeaders = Nothing
, _bsSecurityPolicy = Nothing
, _bsCdnPolicy = Nothing
, _bsSelfLink = Nothing
, _bsName = Nothing
, _bsCreationTimestamp = Nothing
, _bsId = Nothing
, _bsRegion = Nothing
, _bsConnectionDraining = Nothing
, _bsTimeoutSec = Nothing
, _bsDescription = Nothing
, _bsPortName = Nothing
, _bsHealthChecks = Nothing
, _bsPort = Nothing
}
bsSessionAffinity :: Lens' BackendService (Maybe BackendServiceSessionAffinity)
bsSessionAffinity
= lens _bsSessionAffinity
(\ s a -> s{_bsSessionAffinity = a})
bsBackends :: Lens' BackendService [Backend]
bsBackends
= lens _bsBackends (\ s a -> s{_bsBackends = a}) .
_Default
. _Coerce
bsAffinityCookieTtlSec :: Lens' BackendService (Maybe Int32)
bsAffinityCookieTtlSec
= lens _bsAffinityCookieTtlSec
(\ s a -> s{_bsAffinityCookieTtlSec = a})
. mapping _Coerce
bsIap :: Lens' BackendService (Maybe BackendServiceIAP)
bsIap = lens _bsIap (\ s a -> s{_bsIap = a})
bsLoadBalancingScheme :: Lens' BackendService (Maybe BackendServiceLoadBalancingScheme)
bsLoadBalancingScheme
= lens _bsLoadBalancingScheme
(\ s a -> s{_bsLoadBalancingScheme = a})
bsKind :: Lens' BackendService Text
bsKind = lens _bsKind (\ s a -> s{_bsKind = a})
bsEnableCDN :: Lens' BackendService (Maybe Bool)
bsEnableCDN
= lens _bsEnableCDN (\ s a -> s{_bsEnableCDN = a})
bsFingerprint :: Lens' BackendService (Maybe ByteString)
bsFingerprint
= lens _bsFingerprint
(\ s a -> s{_bsFingerprint = a})
. mapping _Bytes
bsProtocol :: Lens' BackendService (Maybe BackendServiceProtocol)
bsProtocol
= lens _bsProtocol (\ s a -> s{_bsProtocol = a})
bsCustomRequestHeaders :: Lens' BackendService [Text]
bsCustomRequestHeaders
= lens _bsCustomRequestHeaders
(\ s a -> s{_bsCustomRequestHeaders = a})
. _Default
. _Coerce
bsSecurityPolicy :: Lens' BackendService (Maybe Text)
bsSecurityPolicy
= lens _bsSecurityPolicy
(\ s a -> s{_bsSecurityPolicy = a})
bsCdnPolicy :: Lens' BackendService (Maybe BackendServiceCdnPolicy)
bsCdnPolicy
= lens _bsCdnPolicy (\ s a -> s{_bsCdnPolicy = a})
bsSelfLink :: Lens' BackendService (Maybe Text)
bsSelfLink
= lens _bsSelfLink (\ s a -> s{_bsSelfLink = a})
bsName :: Lens' BackendService (Maybe Text)
bsName = lens _bsName (\ s a -> s{_bsName = a})
bsCreationTimestamp :: Lens' BackendService (Maybe Text)
bsCreationTimestamp
= lens _bsCreationTimestamp
(\ s a -> s{_bsCreationTimestamp = a})
bsId :: Lens' BackendService (Maybe Word64)
bsId
= lens _bsId (\ s a -> s{_bsId = a}) .
mapping _Coerce
bsRegion :: Lens' BackendService (Maybe Text)
bsRegion = lens _bsRegion (\ s a -> s{_bsRegion = a})
bsConnectionDraining :: Lens' BackendService (Maybe ConnectionDraining)
bsConnectionDraining
= lens _bsConnectionDraining
(\ s a -> s{_bsConnectionDraining = a})
bsTimeoutSec :: Lens' BackendService (Maybe Int32)
bsTimeoutSec
= lens _bsTimeoutSec (\ s a -> s{_bsTimeoutSec = a})
. mapping _Coerce
bsDescription :: Lens' BackendService (Maybe Text)
bsDescription
= lens _bsDescription
(\ s a -> s{_bsDescription = a})
bsPortName :: Lens' BackendService (Maybe Text)
bsPortName
= lens _bsPortName (\ s a -> s{_bsPortName = a})
bsHealthChecks :: Lens' BackendService [Text]
bsHealthChecks
= lens _bsHealthChecks
(\ s a -> s{_bsHealthChecks = a})
. _Default
. _Coerce
bsPort :: Lens' BackendService (Maybe Int32)
bsPort
= lens _bsPort (\ s a -> s{_bsPort = a}) .
mapping _Coerce
instance FromJSON BackendService where
parseJSON
= withObject "BackendService"
(\ o ->
BackendService' <$>
(o .:? "sessionAffinity") <*>
(o .:? "backends" .!= mempty)
<*> (o .:? "affinityCookieTtlSec")
<*> (o .:? "iap")
<*> (o .:? "loadBalancingScheme")
<*> (o .:? "kind" .!= "compute#backendService")
<*> (o .:? "enableCDN")
<*> (o .:? "fingerprint")
<*> (o .:? "protocol")
<*> (o .:? "customRequestHeaders" .!= mempty)
<*> (o .:? "securityPolicy")
<*> (o .:? "cdnPolicy")
<*> (o .:? "selfLink")
<*> (o .:? "name")
<*> (o .:? "creationTimestamp")
<*> (o .:? "id")
<*> (o .:? "region")
<*> (o .:? "connectionDraining")
<*> (o .:? "timeoutSec")
<*> (o .:? "description")
<*> (o .:? "portName")
<*> (o .:? "healthChecks" .!= mempty)
<*> (o .:? "port"))
instance ToJSON BackendService where
toJSON BackendService'{..}
= object
(catMaybes
[("sessionAffinity" .=) <$> _bsSessionAffinity,
("backends" .=) <$> _bsBackends,
("affinityCookieTtlSec" .=) <$>
_bsAffinityCookieTtlSec,
("iap" .=) <$> _bsIap,
("loadBalancingScheme" .=) <$>
_bsLoadBalancingScheme,
Just ("kind" .= _bsKind),
("enableCDN" .=) <$> _bsEnableCDN,
("fingerprint" .=) <$> _bsFingerprint,
("protocol" .=) <$> _bsProtocol,
("customRequestHeaders" .=) <$>
_bsCustomRequestHeaders,
("securityPolicy" .=) <$> _bsSecurityPolicy,
("cdnPolicy" .=) <$> _bsCdnPolicy,
("selfLink" .=) <$> _bsSelfLink,
("name" .=) <$> _bsName,
("creationTimestamp" .=) <$> _bsCreationTimestamp,
("id" .=) <$> _bsId, ("region" .=) <$> _bsRegion,
("connectionDraining" .=) <$> _bsConnectionDraining,
("timeoutSec" .=) <$> _bsTimeoutSec,
("description" .=) <$> _bsDescription,
("portName" .=) <$> _bsPortName,
("healthChecks" .=) <$> _bsHealthChecks,
("port" .=) <$> _bsPort])
data InstanceListWarning =
InstanceListWarning'
{ _insData :: !(Maybe [InstanceListWarningDataItem])
, _insCode :: !(Maybe InstanceListWarningCode)
, _insMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceListWarning
:: InstanceListWarning
instanceListWarning =
InstanceListWarning'
{_insData = Nothing, _insCode = Nothing, _insMessage = Nothing}
insData :: Lens' InstanceListWarning [InstanceListWarningDataItem]
insData
= lens _insData (\ s a -> s{_insData = a}) . _Default
. _Coerce
insCode :: Lens' InstanceListWarning (Maybe InstanceListWarningCode)
insCode = lens _insCode (\ s a -> s{_insCode = a})
insMessage :: Lens' InstanceListWarning (Maybe Text)
insMessage
= lens _insMessage (\ s a -> s{_insMessage = a})
instance FromJSON InstanceListWarning where
parseJSON
= withObject "InstanceListWarning"
(\ o ->
InstanceListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON InstanceListWarning where
toJSON InstanceListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _insData, ("code" .=) <$> _insCode,
("message" .=) <$> _insMessage])
data InstanceMoveRequest =
InstanceMoveRequest'
{ _imrTargetInstance :: !(Maybe Text)
, _imrDestinationZone :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceMoveRequest
:: InstanceMoveRequest
instanceMoveRequest =
InstanceMoveRequest'
{_imrTargetInstance = Nothing, _imrDestinationZone = Nothing}
imrTargetInstance :: Lens' InstanceMoveRequest (Maybe Text)
imrTargetInstance
= lens _imrTargetInstance
(\ s a -> s{_imrTargetInstance = a})
imrDestinationZone :: Lens' InstanceMoveRequest (Maybe Text)
imrDestinationZone
= lens _imrDestinationZone
(\ s a -> s{_imrDestinationZone = a})
instance FromJSON InstanceMoveRequest where
parseJSON
= withObject "InstanceMoveRequest"
(\ o ->
InstanceMoveRequest' <$>
(o .:? "targetInstance") <*>
(o .:? "destinationZone"))
instance ToJSON InstanceMoveRequest where
toJSON InstanceMoveRequest'{..}
= object
(catMaybes
[("targetInstance" .=) <$> _imrTargetInstance,
("destinationZone" .=) <$> _imrDestinationZone])
data InterconnectDiagnosticsARPEntry =
InterconnectDiagnosticsARPEntry'
{ _idarpeIPAddress :: !(Maybe Text)
, _idarpeMACAddress :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectDiagnosticsARPEntry
:: InterconnectDiagnosticsARPEntry
interconnectDiagnosticsARPEntry =
InterconnectDiagnosticsARPEntry'
{_idarpeIPAddress = Nothing, _idarpeMACAddress = Nothing}
idarpeIPAddress :: Lens' InterconnectDiagnosticsARPEntry (Maybe Text)
idarpeIPAddress
= lens _idarpeIPAddress
(\ s a -> s{_idarpeIPAddress = a})
idarpeMACAddress :: Lens' InterconnectDiagnosticsARPEntry (Maybe Text)
idarpeMACAddress
= lens _idarpeMACAddress
(\ s a -> s{_idarpeMACAddress = a})
instance FromJSON InterconnectDiagnosticsARPEntry
where
parseJSON
= withObject "InterconnectDiagnosticsARPEntry"
(\ o ->
InterconnectDiagnosticsARPEntry' <$>
(o .:? "ipAddress") <*> (o .:? "macAddress"))
instance ToJSON InterconnectDiagnosticsARPEntry where
toJSON InterconnectDiagnosticsARPEntry'{..}
= object
(catMaybes
[("ipAddress" .=) <$> _idarpeIPAddress,
("macAddress" .=) <$> _idarpeMACAddress])
data ShieldedInstanceIdentity =
ShieldedInstanceIdentity'
{ _siiSigningKey :: !(Maybe ShieldedInstanceIdentityEntry)
, _siiKind :: !Text
, _siiEncryptionKey :: !(Maybe ShieldedInstanceIdentityEntry)
}
deriving (Eq, Show, Data, Typeable, Generic)
shieldedInstanceIdentity
:: ShieldedInstanceIdentity
shieldedInstanceIdentity =
ShieldedInstanceIdentity'
{ _siiSigningKey = Nothing
, _siiKind = "compute#shieldedInstanceIdentity"
, _siiEncryptionKey = Nothing
}
siiSigningKey :: Lens' ShieldedInstanceIdentity (Maybe ShieldedInstanceIdentityEntry)
siiSigningKey
= lens _siiSigningKey
(\ s a -> s{_siiSigningKey = a})
siiKind :: Lens' ShieldedInstanceIdentity Text
siiKind = lens _siiKind (\ s a -> s{_siiKind = a})
siiEncryptionKey :: Lens' ShieldedInstanceIdentity (Maybe ShieldedInstanceIdentityEntry)
siiEncryptionKey
= lens _siiEncryptionKey
(\ s a -> s{_siiEncryptionKey = a})
instance FromJSON ShieldedInstanceIdentity where
parseJSON
= withObject "ShieldedInstanceIdentity"
(\ o ->
ShieldedInstanceIdentity' <$>
(o .:? "signingKey") <*>
(o .:? "kind" .!= "compute#shieldedInstanceIdentity")
<*> (o .:? "encryptionKey"))
instance ToJSON ShieldedInstanceIdentity where
toJSON ShieldedInstanceIdentity'{..}
= object
(catMaybes
[("signingKey" .=) <$> _siiSigningKey,
Just ("kind" .= _siiKind),
("encryptionKey" .=) <$> _siiEncryptionKey])
data CommitmentList =
CommitmentList'
{ _clNextPageToken :: !(Maybe Text)
, _clKind :: !Text
, _clItems :: !(Maybe [Commitment])
, _clSelfLink :: !(Maybe Text)
, _clWarning :: !(Maybe CommitmentListWarning)
, _clId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
commitmentList
:: CommitmentList
commitmentList =
CommitmentList'
{ _clNextPageToken = Nothing
, _clKind = "compute#commitmentList"
, _clItems = Nothing
, _clSelfLink = Nothing
, _clWarning = Nothing
, _clId = Nothing
}
clNextPageToken :: Lens' CommitmentList (Maybe Text)
clNextPageToken
= lens _clNextPageToken
(\ s a -> s{_clNextPageToken = a})
clKind :: Lens' CommitmentList Text
clKind = lens _clKind (\ s a -> s{_clKind = a})
clItems :: Lens' CommitmentList [Commitment]
clItems
= lens _clItems (\ s a -> s{_clItems = a}) . _Default
. _Coerce
clSelfLink :: Lens' CommitmentList (Maybe Text)
clSelfLink
= lens _clSelfLink (\ s a -> s{_clSelfLink = a})
clWarning :: Lens' CommitmentList (Maybe CommitmentListWarning)
clWarning
= lens _clWarning (\ s a -> s{_clWarning = a})
clId :: Lens' CommitmentList (Maybe Text)
clId = lens _clId (\ s a -> s{_clId = a})
instance FromJSON CommitmentList where
parseJSON
= withObject "CommitmentList"
(\ o ->
CommitmentList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#commitmentList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON CommitmentList where
toJSON CommitmentList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _clNextPageToken,
Just ("kind" .= _clKind), ("items" .=) <$> _clItems,
("selfLink" .=) <$> _clSelfLink,
("warning" .=) <$> _clWarning, ("id" .=) <$> _clId])
newtype InstancesSetLabelsRequestLabels =
InstancesSetLabelsRequestLabels'
{ _islrlAddtional :: HashMap Text Text
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesSetLabelsRequestLabels
:: HashMap Text Text
-> InstancesSetLabelsRequestLabels
instancesSetLabelsRequestLabels pIslrlAddtional_ =
InstancesSetLabelsRequestLabels'
{_islrlAddtional = _Coerce # pIslrlAddtional_}
islrlAddtional :: Lens' InstancesSetLabelsRequestLabels (HashMap Text Text)
islrlAddtional
= lens _islrlAddtional
(\ s a -> s{_islrlAddtional = a})
. _Coerce
instance FromJSON InstancesSetLabelsRequestLabels
where
parseJSON
= withObject "InstancesSetLabelsRequestLabels"
(\ o ->
InstancesSetLabelsRequestLabels' <$>
(parseJSONObject o))
instance ToJSON InstancesSetLabelsRequestLabels where
toJSON = toJSON . _islrlAddtional
data InstanceGroupsScopedList =
InstanceGroupsScopedList'
{ _igslWarning :: !(Maybe InstanceGroupsScopedListWarning)
, _igslInstanceGroups :: !(Maybe [InstanceGroup])
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceGroupsScopedList
:: InstanceGroupsScopedList
instanceGroupsScopedList =
InstanceGroupsScopedList'
{_igslWarning = Nothing, _igslInstanceGroups = Nothing}
igslWarning :: Lens' InstanceGroupsScopedList (Maybe InstanceGroupsScopedListWarning)
igslWarning
= lens _igslWarning (\ s a -> s{_igslWarning = a})
igslInstanceGroups :: Lens' InstanceGroupsScopedList [InstanceGroup]
igslInstanceGroups
= lens _igslInstanceGroups
(\ s a -> s{_igslInstanceGroups = a})
. _Default
. _Coerce
instance FromJSON InstanceGroupsScopedList where
parseJSON
= withObject "InstanceGroupsScopedList"
(\ o ->
InstanceGroupsScopedList' <$>
(o .:? "warning") <*>
(o .:? "instanceGroups" .!= mempty))
instance ToJSON InstanceGroupsScopedList where
toJSON InstanceGroupsScopedList'{..}
= object
(catMaybes
[("warning" .=) <$> _igslWarning,
("instanceGroups" .=) <$> _igslInstanceGroups])
newtype InstancesStartWithEncryptionKeyRequest =
InstancesStartWithEncryptionKeyRequest'
{ _iswekrDisks :: Maybe [CustomerEncryptionKeyProtectedDisk]
}
deriving (Eq, Show, Data, Typeable, Generic)
instancesStartWithEncryptionKeyRequest
:: InstancesStartWithEncryptionKeyRequest
instancesStartWithEncryptionKeyRequest =
InstancesStartWithEncryptionKeyRequest' {_iswekrDisks = Nothing}
iswekrDisks :: Lens' InstancesStartWithEncryptionKeyRequest [CustomerEncryptionKeyProtectedDisk]
iswekrDisks
= lens _iswekrDisks (\ s a -> s{_iswekrDisks = a}) .
_Default
. _Coerce
instance FromJSON
InstancesStartWithEncryptionKeyRequest
where
parseJSON
= withObject "InstancesStartWithEncryptionKeyRequest"
(\ o ->
InstancesStartWithEncryptionKeyRequest' <$>
(o .:? "disks" .!= mempty))
instance ToJSON
InstancesStartWithEncryptionKeyRequest
where
toJSON InstancesStartWithEncryptionKeyRequest'{..}
= object (catMaybes [("disks" .=) <$> _iswekrDisks])
data HTTPSHealthCheck =
HTTPSHealthCheck'
{ _hhcResponse :: !(Maybe Text)
, _hhcPortSpecification :: !(Maybe HTTPSHealthCheckPortSpecification)
, _hhcRequestPath :: !(Maybe Text)
, _hhcHost :: !(Maybe Text)
, _hhcProxyHeader :: !(Maybe HTTPSHealthCheckProxyHeader)
, _hhcPortName :: !(Maybe Text)
, _hhcPort :: !(Maybe (Textual Int32))
}
deriving (Eq, Show, Data, Typeable, Generic)
httpsHealthCheck
:: HTTPSHealthCheck
httpsHealthCheck =
HTTPSHealthCheck'
{ _hhcResponse = Nothing
, _hhcPortSpecification = Nothing
, _hhcRequestPath = Nothing
, _hhcHost = Nothing
, _hhcProxyHeader = Nothing
, _hhcPortName = Nothing
, _hhcPort = Nothing
}
hhcResponse :: Lens' HTTPSHealthCheck (Maybe Text)
hhcResponse
= lens _hhcResponse (\ s a -> s{_hhcResponse = a})
hhcPortSpecification :: Lens' HTTPSHealthCheck (Maybe HTTPSHealthCheckPortSpecification)
hhcPortSpecification
= lens _hhcPortSpecification
(\ s a -> s{_hhcPortSpecification = a})
hhcRequestPath :: Lens' HTTPSHealthCheck (Maybe Text)
hhcRequestPath
= lens _hhcRequestPath
(\ s a -> s{_hhcRequestPath = a})
hhcHost :: Lens' HTTPSHealthCheck (Maybe Text)
hhcHost = lens _hhcHost (\ s a -> s{_hhcHost = a})
hhcProxyHeader :: Lens' HTTPSHealthCheck (Maybe HTTPSHealthCheckProxyHeader)
hhcProxyHeader
= lens _hhcProxyHeader
(\ s a -> s{_hhcProxyHeader = a})
hhcPortName :: Lens' HTTPSHealthCheck (Maybe Text)
hhcPortName
= lens _hhcPortName (\ s a -> s{_hhcPortName = a})
hhcPort :: Lens' HTTPSHealthCheck (Maybe Int32)
hhcPort
= lens _hhcPort (\ s a -> s{_hhcPort = a}) .
mapping _Coerce
instance FromJSON HTTPSHealthCheck where
parseJSON
= withObject "HTTPSHealthCheck"
(\ o ->
HTTPSHealthCheck' <$>
(o .:? "response") <*> (o .:? "portSpecification")
<*> (o .:? "requestPath")
<*> (o .:? "host")
<*> (o .:? "proxyHeader")
<*> (o .:? "portName")
<*> (o .:? "port"))
instance ToJSON HTTPSHealthCheck where
toJSON HTTPSHealthCheck'{..}
= object
(catMaybes
[("response" .=) <$> _hhcResponse,
("portSpecification" .=) <$> _hhcPortSpecification,
("requestPath" .=) <$> _hhcRequestPath,
("host" .=) <$> _hhcHost,
("proxyHeader" .=) <$> _hhcProxyHeader,
("portName" .=) <$> _hhcPortName,
("port" .=) <$> _hhcPort])
newtype VPNTunnelAggregatedListItems =
VPNTunnelAggregatedListItems'
{ _vtaliAddtional :: HashMap Text VPNTunnelsScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
vpnTunnelAggregatedListItems
:: HashMap Text VPNTunnelsScopedList
-> VPNTunnelAggregatedListItems
vpnTunnelAggregatedListItems pVtaliAddtional_ =
VPNTunnelAggregatedListItems' {_vtaliAddtional = _Coerce # pVtaliAddtional_}
vtaliAddtional :: Lens' VPNTunnelAggregatedListItems (HashMap Text VPNTunnelsScopedList)
vtaliAddtional
= lens _vtaliAddtional
(\ s a -> s{_vtaliAddtional = a})
. _Coerce
instance FromJSON VPNTunnelAggregatedListItems where
parseJSON
= withObject "VPNTunnelAggregatedListItems"
(\ o ->
VPNTunnelAggregatedListItems' <$>
(parseJSONObject o))
instance ToJSON VPNTunnelAggregatedListItems where
toJSON = toJSON . _vtaliAddtional
data InstanceAggregatedListWarningDataItem =
InstanceAggregatedListWarningDataItem'
{ _insValue :: !(Maybe Text)
, _insKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
instanceAggregatedListWarningDataItem
:: InstanceAggregatedListWarningDataItem
instanceAggregatedListWarningDataItem =
InstanceAggregatedListWarningDataItem'
{_insValue = Nothing, _insKey = Nothing}
insValue :: Lens' InstanceAggregatedListWarningDataItem (Maybe Text)
insValue = lens _insValue (\ s a -> s{_insValue = a})
insKey :: Lens' InstanceAggregatedListWarningDataItem (Maybe Text)
insKey = lens _insKey (\ s a -> s{_insKey = a})
instance FromJSON
InstanceAggregatedListWarningDataItem
where
parseJSON
= withObject "InstanceAggregatedListWarningDataItem"
(\ o ->
InstanceAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON InstanceAggregatedListWarningDataItem
where
toJSON InstanceAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _insValue, ("key" .=) <$> _insKey])
data Tags =
Tags'
{ _tFingerprint :: !(Maybe Bytes)
, _tItems :: !(Maybe [Text])
}
deriving (Eq, Show, Data, Typeable, Generic)
tags
:: Tags
tags = Tags' {_tFingerprint = Nothing, _tItems = Nothing}
tFingerprint :: Lens' Tags (Maybe ByteString)
tFingerprint
= lens _tFingerprint (\ s a -> s{_tFingerprint = a})
. mapping _Bytes
tItems :: Lens' Tags [Text]
tItems
= lens _tItems (\ s a -> s{_tItems = a}) . _Default .
_Coerce
instance FromJSON Tags where
parseJSON
= withObject "Tags"
(\ o ->
Tags' <$>
(o .:? "fingerprint") <*> (o .:? "items" .!= mempty))
instance ToJSON Tags where
toJSON Tags'{..}
= object
(catMaybes
[("fingerprint" .=) <$> _tFingerprint,
("items" .=) <$> _tItems])
data AddressAggregatedList =
AddressAggregatedList'
{ _addNextPageToken :: !(Maybe Text)
, _addKind :: !Text
, _addItems :: !(Maybe AddressAggregatedListItems)
, _addSelfLink :: !(Maybe Text)
, _addWarning :: !(Maybe AddressAggregatedListWarning)
, _addId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
addressAggregatedList
:: AddressAggregatedList
addressAggregatedList =
AddressAggregatedList'
{ _addNextPageToken = Nothing
, _addKind = "compute#addressAggregatedList"
, _addItems = Nothing
, _addSelfLink = Nothing
, _addWarning = Nothing
, _addId = Nothing
}
addNextPageToken :: Lens' AddressAggregatedList (Maybe Text)
addNextPageToken
= lens _addNextPageToken
(\ s a -> s{_addNextPageToken = a})
addKind :: Lens' AddressAggregatedList Text
addKind = lens _addKind (\ s a -> s{_addKind = a})
addItems :: Lens' AddressAggregatedList (Maybe AddressAggregatedListItems)
addItems = lens _addItems (\ s a -> s{_addItems = a})
addSelfLink :: Lens' AddressAggregatedList (Maybe Text)
addSelfLink
= lens _addSelfLink (\ s a -> s{_addSelfLink = a})
addWarning :: Lens' AddressAggregatedList (Maybe AddressAggregatedListWarning)
addWarning
= lens _addWarning (\ s a -> s{_addWarning = a})
addId :: Lens' AddressAggregatedList (Maybe Text)
addId = lens _addId (\ s a -> s{_addId = a})
instance FromJSON AddressAggregatedList where
parseJSON
= withObject "AddressAggregatedList"
(\ o ->
AddressAggregatedList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!= "compute#addressAggregatedList")
<*> (o .:? "items")
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON AddressAggregatedList where
toJSON AddressAggregatedList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _addNextPageToken,
Just ("kind" .= _addKind),
("items" .=) <$> _addItems,
("selfLink" .=) <$> _addSelfLink,
("warning" .=) <$> _addWarning,
("id" .=) <$> _addId])
data InterconnectAttachmentList =
InterconnectAttachmentList'
{ _ialaNextPageToken :: !(Maybe Text)
, _ialaKind :: !Text
, _ialaItems :: !(Maybe [InterconnectAttachment])
, _ialaSelfLink :: !(Maybe Text)
, _ialaWarning :: !(Maybe InterconnectAttachmentListWarning)
, _ialaId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
interconnectAttachmentList
:: InterconnectAttachmentList
interconnectAttachmentList =
InterconnectAttachmentList'
{ _ialaNextPageToken = Nothing
, _ialaKind = "compute#interconnectAttachmentList"
, _ialaItems = Nothing
, _ialaSelfLink = Nothing
, _ialaWarning = Nothing
, _ialaId = Nothing
}
ialaNextPageToken :: Lens' InterconnectAttachmentList (Maybe Text)
ialaNextPageToken
= lens _ialaNextPageToken
(\ s a -> s{_ialaNextPageToken = a})
ialaKind :: Lens' InterconnectAttachmentList Text
ialaKind = lens _ialaKind (\ s a -> s{_ialaKind = a})
ialaItems :: Lens' InterconnectAttachmentList [InterconnectAttachment]
ialaItems
= lens _ialaItems (\ s a -> s{_ialaItems = a}) .
_Default
. _Coerce
ialaSelfLink :: Lens' InterconnectAttachmentList (Maybe Text)
ialaSelfLink
= lens _ialaSelfLink (\ s a -> s{_ialaSelfLink = a})
ialaWarning :: Lens' InterconnectAttachmentList (Maybe InterconnectAttachmentListWarning)
ialaWarning
= lens _ialaWarning (\ s a -> s{_ialaWarning = a})
ialaId :: Lens' InterconnectAttachmentList (Maybe Text)
ialaId = lens _ialaId (\ s a -> s{_ialaId = a})
instance FromJSON InterconnectAttachmentList where
parseJSON
= withObject "InterconnectAttachmentList"
(\ o ->
InterconnectAttachmentList' <$>
(o .:? "nextPageToken") <*>
(o .:? "kind" .!=
"compute#interconnectAttachmentList")
<*> (o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON InterconnectAttachmentList where
toJSON InterconnectAttachmentList'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _ialaNextPageToken,
Just ("kind" .= _ialaKind),
("items" .=) <$> _ialaItems,
("selfLink" .=) <$> _ialaSelfLink,
("warning" .=) <$> _ialaWarning,
("id" .=) <$> _ialaId])
data OperationWarningsItem =
OperationWarningsItem'
{ _owiData :: !(Maybe [OperationWarningsItemDataItem])
, _owiCode :: !(Maybe OperationWarningsItemCode)
, _owiMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
operationWarningsItem
:: OperationWarningsItem
operationWarningsItem =
OperationWarningsItem'
{_owiData = Nothing, _owiCode = Nothing, _owiMessage = Nothing}
owiData :: Lens' OperationWarningsItem [OperationWarningsItemDataItem]
owiData
= lens _owiData (\ s a -> s{_owiData = a}) . _Default
. _Coerce
owiCode :: Lens' OperationWarningsItem (Maybe OperationWarningsItemCode)
owiCode = lens _owiCode (\ s a -> s{_owiCode = a})
owiMessage :: Lens' OperationWarningsItem (Maybe Text)
owiMessage
= lens _owiMessage (\ s a -> s{_owiMessage = a})
instance FromJSON OperationWarningsItem where
parseJSON
= withObject "OperationWarningsItem"
(\ o ->
OperationWarningsItem' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON OperationWarningsItem where
toJSON OperationWarningsItem'{..}
= object
(catMaybes
[("data" .=) <$> _owiData, ("code" .=) <$> _owiCode,
("message" .=) <$> _owiMessage])
data Binding =
Binding'
{ _bMembers :: !(Maybe [Text])
, _bRole :: !(Maybe Text)
, _bCondition :: !(Maybe Expr)
}
deriving (Eq, Show, Data, Typeable, Generic)
binding
:: Binding
binding =
Binding' {_bMembers = Nothing, _bRole = Nothing, _bCondition = Nothing}
bMembers :: Lens' Binding [Text]
bMembers
= lens _bMembers (\ s a -> s{_bMembers = a}) .
_Default
. _Coerce
bRole :: Lens' Binding (Maybe Text)
bRole = lens _bRole (\ s a -> s{_bRole = a})
bCondition :: Lens' Binding (Maybe Expr)
bCondition
= lens _bCondition (\ s a -> s{_bCondition = a})
instance FromJSON Binding where
parseJSON
= withObject "Binding"
(\ o ->
Binding' <$>
(o .:? "members" .!= mempty) <*> (o .:? "role") <*>
(o .:? "condition"))
instance ToJSON Binding where
toJSON Binding'{..}
= object
(catMaybes
[("members" .=) <$> _bMembers,
("role" .=) <$> _bRole,
("condition" .=) <$> _bCondition])
data URLMapTest =
URLMapTest'
{ _umtPath :: !(Maybe Text)
, _umtService :: !(Maybe Text)
, _umtHost :: !(Maybe Text)
, _umtDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
urlMapTest
:: URLMapTest
urlMapTest =
URLMapTest'
{ _umtPath = Nothing
, _umtService = Nothing
, _umtHost = Nothing
, _umtDescription = Nothing
}
umtPath :: Lens' URLMapTest (Maybe Text)
umtPath = lens _umtPath (\ s a -> s{_umtPath = a})
umtService :: Lens' URLMapTest (Maybe Text)
umtService
= lens _umtService (\ s a -> s{_umtService = a})
umtHost :: Lens' URLMapTest (Maybe Text)
umtHost = lens _umtHost (\ s a -> s{_umtHost = a})
umtDescription :: Lens' URLMapTest (Maybe Text)
umtDescription
= lens _umtDescription
(\ s a -> s{_umtDescription = a})
instance FromJSON URLMapTest where
parseJSON
= withObject "URLMapTest"
(\ o ->
URLMapTest' <$>
(o .:? "path") <*> (o .:? "service") <*>
(o .:? "host")
<*> (o .:? "description"))
instance ToJSON URLMapTest where
toJSON URLMapTest'{..}
= object
(catMaybes
[("path" .=) <$> _umtPath,
("service" .=) <$> _umtService,
("host" .=) <$> _umtHost,
("description" .=) <$> _umtDescription])
data HTTPSHealthCheckListWarning =
HTTPSHealthCheckListWarning'
{ _hhclwData :: !(Maybe [HTTPSHealthCheckListWarningDataItem])
, _hhclwCode :: !(Maybe HTTPSHealthCheckListWarningCode)
, _hhclwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
httpsHealthCheckListWarning
:: HTTPSHealthCheckListWarning
httpsHealthCheckListWarning =
HTTPSHealthCheckListWarning'
{_hhclwData = Nothing, _hhclwCode = Nothing, _hhclwMessage = Nothing}
hhclwData :: Lens' HTTPSHealthCheckListWarning [HTTPSHealthCheckListWarningDataItem]
hhclwData
= lens _hhclwData (\ s a -> s{_hhclwData = a}) .
_Default
. _Coerce
hhclwCode :: Lens' HTTPSHealthCheckListWarning (Maybe HTTPSHealthCheckListWarningCode)
hhclwCode
= lens _hhclwCode (\ s a -> s{_hhclwCode = a})
hhclwMessage :: Lens' HTTPSHealthCheckListWarning (Maybe Text)
hhclwMessage
= lens _hhclwMessage (\ s a -> s{_hhclwMessage = a})
instance FromJSON HTTPSHealthCheckListWarning where
parseJSON
= withObject "HTTPSHealthCheckListWarning"
(\ o ->
HTTPSHealthCheckListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON HTTPSHealthCheckListWarning where
toJSON HTTPSHealthCheckListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _hhclwData,
("code" .=) <$> _hhclwCode,
("message" .=) <$> _hhclwMessage])
newtype NodeTypeAggregatedListItems =
NodeTypeAggregatedListItems'
{ _nAddtional :: HashMap Text NodeTypesScopedList
}
deriving (Eq, Show, Data, Typeable, Generic)
nodeTypeAggregatedListItems
:: HashMap Text NodeTypesScopedList
-> NodeTypeAggregatedListItems
nodeTypeAggregatedListItems pNAddtional_ =
NodeTypeAggregatedListItems' {_nAddtional = _Coerce # pNAddtional_}
nAddtional :: Lens' NodeTypeAggregatedListItems (HashMap Text NodeTypesScopedList)
nAddtional
= lens _nAddtional (\ s a -> s{_nAddtional = a}) .
_Coerce
instance FromJSON NodeTypeAggregatedListItems where
parseJSON
= withObject "NodeTypeAggregatedListItems"
(\ o ->
NodeTypeAggregatedListItems' <$> (parseJSONObject o))
instance ToJSON NodeTypeAggregatedListItems where
toJSON = toJSON . _nAddtional
newtype RoutersPreviewResponse =
RoutersPreviewResponse'
{ _rprResource :: Maybe Router
}
deriving (Eq, Show, Data, Typeable, Generic)
routersPreviewResponse
:: RoutersPreviewResponse
routersPreviewResponse = RoutersPreviewResponse' {_rprResource = Nothing}
rprResource :: Lens' RoutersPreviewResponse (Maybe Router)
rprResource
= lens _rprResource (\ s a -> s{_rprResource = a})
instance FromJSON RoutersPreviewResponse where
parseJSON
= withObject "RoutersPreviewResponse"
(\ o ->
RoutersPreviewResponse' <$> (o .:? "resource"))
instance ToJSON RoutersPreviewResponse where
toJSON RoutersPreviewResponse'{..}
= object
(catMaybes [("resource" .=) <$> _rprResource])
data LicensesListResponse =
LicensesListResponse'
{ _llrNextPageToken :: !(Maybe Text)
, _llrItems :: !(Maybe [License])
, _llrSelfLink :: !(Maybe Text)
, _llrWarning :: !(Maybe LicensesListResponseWarning)
, _llrId :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
licensesListResponse
:: LicensesListResponse
licensesListResponse =
LicensesListResponse'
{ _llrNextPageToken = Nothing
, _llrItems = Nothing
, _llrSelfLink = Nothing
, _llrWarning = Nothing
, _llrId = Nothing
}
llrNextPageToken :: Lens' LicensesListResponse (Maybe Text)
llrNextPageToken
= lens _llrNextPageToken
(\ s a -> s{_llrNextPageToken = a})
llrItems :: Lens' LicensesListResponse [License]
llrItems
= lens _llrItems (\ s a -> s{_llrItems = a}) .
_Default
. _Coerce
llrSelfLink :: Lens' LicensesListResponse (Maybe Text)
llrSelfLink
= lens _llrSelfLink (\ s a -> s{_llrSelfLink = a})
llrWarning :: Lens' LicensesListResponse (Maybe LicensesListResponseWarning)
llrWarning
= lens _llrWarning (\ s a -> s{_llrWarning = a})
llrId :: Lens' LicensesListResponse (Maybe Text)
llrId = lens _llrId (\ s a -> s{_llrId = a})
instance FromJSON LicensesListResponse where
parseJSON
= withObject "LicensesListResponse"
(\ o ->
LicensesListResponse' <$>
(o .:? "nextPageToken") <*>
(o .:? "items" .!= mempty)
<*> (o .:? "selfLink")
<*> (o .:? "warning")
<*> (o .:? "id"))
instance ToJSON LicensesListResponse where
toJSON LicensesListResponse'{..}
= object
(catMaybes
[("nextPageToken" .=) <$> _llrNextPageToken,
("items" .=) <$> _llrItems,
("selfLink" .=) <$> _llrSelfLink,
("warning" .=) <$> _llrWarning,
("id" .=) <$> _llrId])
data BackendServiceAggregatedListWarningDataItem =
BackendServiceAggregatedListWarningDataItem'
{ _bsalwdiValue :: !(Maybe Text)
, _bsalwdiKey :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceAggregatedListWarningDataItem
:: BackendServiceAggregatedListWarningDataItem
backendServiceAggregatedListWarningDataItem =
BackendServiceAggregatedListWarningDataItem'
{_bsalwdiValue = Nothing, _bsalwdiKey = Nothing}
bsalwdiValue :: Lens' BackendServiceAggregatedListWarningDataItem (Maybe Text)
bsalwdiValue
= lens _bsalwdiValue (\ s a -> s{_bsalwdiValue = a})
bsalwdiKey :: Lens' BackendServiceAggregatedListWarningDataItem (Maybe Text)
bsalwdiKey
= lens _bsalwdiKey (\ s a -> s{_bsalwdiKey = a})
instance FromJSON
BackendServiceAggregatedListWarningDataItem
where
parseJSON
= withObject
"BackendServiceAggregatedListWarningDataItem"
(\ o ->
BackendServiceAggregatedListWarningDataItem' <$>
(o .:? "value") <*> (o .:? "key"))
instance ToJSON
BackendServiceAggregatedListWarningDataItem
where
toJSON
BackendServiceAggregatedListWarningDataItem'{..}
= object
(catMaybes
[("value" .=) <$> _bsalwdiValue,
("key" .=) <$> _bsalwdiKey])
data Instance =
Instance'
{ _i1Status :: !(Maybe InstanceStatus)
, _i1ServiceAccounts :: !(Maybe [ServiceAccount])
, _i1DeletionProtection :: !(Maybe Bool)
, _i1Hostname :: !(Maybe Text)
, _i1NetworkInterfaces :: !(Maybe [NetworkInterface])
, _i1ShieldedInstanceIntegrityPolicy :: !(Maybe ShieldedInstanceIntegrityPolicy)
, _i1Kind :: !Text
, _i1Zone :: !(Maybe Text)
, _i1CPUPlatform :: !(Maybe Text)
, _i1SelfLink :: !(Maybe Text)
, _i1GuestAccelerators :: !(Maybe [AcceleratorConfig])
, _i1Name :: !(Maybe Text)
, _i1StatusMessage :: !(Maybe Text)
, _i1CreationTimestamp :: !(Maybe Text)
, _i1MachineType :: !(Maybe Text)
, _i1Metadata :: !(Maybe Metadata)
, _i1ShieldedInstanceConfig :: !(Maybe ShieldedInstanceConfig)
, _i1Id :: !(Maybe (Textual Word64))
, _i1Labels :: !(Maybe InstanceLabels)
, _i1StartRestricted :: !(Maybe Bool)
, _i1Scheduling :: !(Maybe Scheduling)
, _i1MinCPUPlatform :: !(Maybe Text)
, _i1Disks :: !(Maybe [AttachedDisk])
, _i1CanIPForward :: !(Maybe Bool)
, _i1LabelFingerprint :: !(Maybe Bytes)
, _i1Description :: !(Maybe Text)
, _i1Tags :: !(Maybe Tags)
}
deriving (Eq, Show, Data, Typeable, Generic)
instance'
:: Instance
instance' =
Instance'
{ _i1Status = Nothing
, _i1ServiceAccounts = Nothing
, _i1DeletionProtection = Nothing
, _i1Hostname = Nothing
, _i1NetworkInterfaces = Nothing
, _i1ShieldedInstanceIntegrityPolicy = Nothing
, _i1Kind = "compute#instance"
, _i1Zone = Nothing
, _i1CPUPlatform = Nothing
, _i1SelfLink = Nothing
, _i1GuestAccelerators = Nothing
, _i1Name = Nothing
, _i1StatusMessage = Nothing
, _i1CreationTimestamp = Nothing
, _i1MachineType = Nothing
, _i1Metadata = Nothing
, _i1ShieldedInstanceConfig = Nothing
, _i1Id = Nothing
, _i1Labels = Nothing
, _i1StartRestricted = Nothing
, _i1Scheduling = Nothing
, _i1MinCPUPlatform = Nothing
, _i1Disks = Nothing
, _i1CanIPForward = Nothing
, _i1LabelFingerprint = Nothing
, _i1Description = Nothing
, _i1Tags = Nothing
}
i1Status :: Lens' Instance (Maybe InstanceStatus)
i1Status = lens _i1Status (\ s a -> s{_i1Status = a})
i1ServiceAccounts :: Lens' Instance [ServiceAccount]
i1ServiceAccounts
= lens _i1ServiceAccounts
(\ s a -> s{_i1ServiceAccounts = a})
. _Default
. _Coerce
i1DeletionProtection :: Lens' Instance (Maybe Bool)
i1DeletionProtection
= lens _i1DeletionProtection
(\ s a -> s{_i1DeletionProtection = a})
i1Hostname :: Lens' Instance (Maybe Text)
i1Hostname
= lens _i1Hostname (\ s a -> s{_i1Hostname = a})
i1NetworkInterfaces :: Lens' Instance [NetworkInterface]
i1NetworkInterfaces
= lens _i1NetworkInterfaces
(\ s a -> s{_i1NetworkInterfaces = a})
. _Default
. _Coerce
i1ShieldedInstanceIntegrityPolicy :: Lens' Instance (Maybe ShieldedInstanceIntegrityPolicy)
i1ShieldedInstanceIntegrityPolicy
= lens _i1ShieldedInstanceIntegrityPolicy
(\ s a -> s{_i1ShieldedInstanceIntegrityPolicy = a})
i1Kind :: Lens' Instance Text
i1Kind = lens _i1Kind (\ s a -> s{_i1Kind = a})
i1Zone :: Lens' Instance (Maybe Text)
i1Zone = lens _i1Zone (\ s a -> s{_i1Zone = a})
i1CPUPlatform :: Lens' Instance (Maybe Text)
i1CPUPlatform
= lens _i1CPUPlatform
(\ s a -> s{_i1CPUPlatform = a})
i1SelfLink :: Lens' Instance (Maybe Text)
i1SelfLink
= lens _i1SelfLink (\ s a -> s{_i1SelfLink = a})
i1GuestAccelerators :: Lens' Instance [AcceleratorConfig]
i1GuestAccelerators
= lens _i1GuestAccelerators
(\ s a -> s{_i1GuestAccelerators = a})
. _Default
. _Coerce
i1Name :: Lens' Instance (Maybe Text)
i1Name = lens _i1Name (\ s a -> s{_i1Name = a})
i1StatusMessage :: Lens' Instance (Maybe Text)
i1StatusMessage
= lens _i1StatusMessage
(\ s a -> s{_i1StatusMessage = a})
i1CreationTimestamp :: Lens' Instance (Maybe Text)
i1CreationTimestamp
= lens _i1CreationTimestamp
(\ s a -> s{_i1CreationTimestamp = a})
i1MachineType :: Lens' Instance (Maybe Text)
i1MachineType
= lens _i1MachineType
(\ s a -> s{_i1MachineType = a})
i1Metadata :: Lens' Instance (Maybe Metadata)
i1Metadata
= lens _i1Metadata (\ s a -> s{_i1Metadata = a})
i1ShieldedInstanceConfig :: Lens' Instance (Maybe ShieldedInstanceConfig)
i1ShieldedInstanceConfig
= lens _i1ShieldedInstanceConfig
(\ s a -> s{_i1ShieldedInstanceConfig = a})
i1Id :: Lens' Instance (Maybe Word64)
i1Id
= lens _i1Id (\ s a -> s{_i1Id = a}) .
mapping _Coerce
i1Labels :: Lens' Instance (Maybe InstanceLabels)
i1Labels = lens _i1Labels (\ s a -> s{_i1Labels = a})
i1StartRestricted :: Lens' Instance (Maybe Bool)
i1StartRestricted
= lens _i1StartRestricted
(\ s a -> s{_i1StartRestricted = a})
i1Scheduling :: Lens' Instance (Maybe Scheduling)
i1Scheduling
= lens _i1Scheduling (\ s a -> s{_i1Scheduling = a})
i1MinCPUPlatform :: Lens' Instance (Maybe Text)
i1MinCPUPlatform
= lens _i1MinCPUPlatform
(\ s a -> s{_i1MinCPUPlatform = a})
i1Disks :: Lens' Instance [AttachedDisk]
i1Disks
= lens _i1Disks (\ s a -> s{_i1Disks = a}) . _Default
. _Coerce
i1CanIPForward :: Lens' Instance (Maybe Bool)
i1CanIPForward
= lens _i1CanIPForward
(\ s a -> s{_i1CanIPForward = a})
i1LabelFingerprint :: Lens' Instance (Maybe ByteString)
i1LabelFingerprint
= lens _i1LabelFingerprint
(\ s a -> s{_i1LabelFingerprint = a})
. mapping _Bytes
i1Description :: Lens' Instance (Maybe Text)
i1Description
= lens _i1Description
(\ s a -> s{_i1Description = a})
i1Tags :: Lens' Instance (Maybe Tags)
i1Tags = lens _i1Tags (\ s a -> s{_i1Tags = a})
instance FromJSON Instance where
parseJSON
= withObject "Instance"
(\ o ->
Instance' <$>
(o .:? "status") <*>
(o .:? "serviceAccounts" .!= mempty)
<*> (o .:? "deletionProtection")
<*> (o .:? "hostname")
<*> (o .:? "networkInterfaces" .!= mempty)
<*> (o .:? "shieldedInstanceIntegrityPolicy")
<*> (o .:? "kind" .!= "compute#instance")
<*> (o .:? "zone")
<*> (o .:? "cpuPlatform")
<*> (o .:? "selfLink")
<*> (o .:? "guestAccelerators" .!= mempty)
<*> (o .:? "name")
<*> (o .:? "statusMessage")
<*> (o .:? "creationTimestamp")
<*> (o .:? "machineType")
<*> (o .:? "metadata")
<*> (o .:? "shieldedInstanceConfig")
<*> (o .:? "id")
<*> (o .:? "labels")
<*> (o .:? "startRestricted")
<*> (o .:? "scheduling")
<*> (o .:? "minCpuPlatform")
<*> (o .:? "disks" .!= mempty)
<*> (o .:? "canIpForward")
<*> (o .:? "labelFingerprint")
<*> (o .:? "description")
<*> (o .:? "tags"))
instance ToJSON Instance where
toJSON Instance'{..}
= object
(catMaybes
[("status" .=) <$> _i1Status,
("serviceAccounts" .=) <$> _i1ServiceAccounts,
("deletionProtection" .=) <$> _i1DeletionProtection,
("hostname" .=) <$> _i1Hostname,
("networkInterfaces" .=) <$> _i1NetworkInterfaces,
("shieldedInstanceIntegrityPolicy" .=) <$>
_i1ShieldedInstanceIntegrityPolicy,
Just ("kind" .= _i1Kind), ("zone" .=) <$> _i1Zone,
("cpuPlatform" .=) <$> _i1CPUPlatform,
("selfLink" .=) <$> _i1SelfLink,
("guestAccelerators" .=) <$> _i1GuestAccelerators,
("name" .=) <$> _i1Name,
("statusMessage" .=) <$> _i1StatusMessage,
("creationTimestamp" .=) <$> _i1CreationTimestamp,
("machineType" .=) <$> _i1MachineType,
("metadata" .=) <$> _i1Metadata,
("shieldedInstanceConfig" .=) <$>
_i1ShieldedInstanceConfig,
("id" .=) <$> _i1Id, ("labels" .=) <$> _i1Labels,
("startRestricted" .=) <$> _i1StartRestricted,
("scheduling" .=) <$> _i1Scheduling,
("minCpuPlatform" .=) <$> _i1MinCPUPlatform,
("disks" .=) <$> _i1Disks,
("canIpForward" .=) <$> _i1CanIPForward,
("labelFingerprint" .=) <$> _i1LabelFingerprint,
("description" .=) <$> _i1Description,
("tags" .=) <$> _i1Tags])
data PathMatcher =
PathMatcher'
{ _pmDefaultService :: !(Maybe Text)
, _pmName :: !(Maybe Text)
, _pmPathRules :: !(Maybe [PathRule])
, _pmDescription :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
pathMatcher
:: PathMatcher
pathMatcher =
PathMatcher'
{ _pmDefaultService = Nothing
, _pmName = Nothing
, _pmPathRules = Nothing
, _pmDescription = Nothing
}
pmDefaultService :: Lens' PathMatcher (Maybe Text)
pmDefaultService
= lens _pmDefaultService
(\ s a -> s{_pmDefaultService = a})
pmName :: Lens' PathMatcher (Maybe Text)
pmName = lens _pmName (\ s a -> s{_pmName = a})
pmPathRules :: Lens' PathMatcher [PathRule]
pmPathRules
= lens _pmPathRules (\ s a -> s{_pmPathRules = a}) .
_Default
. _Coerce
pmDescription :: Lens' PathMatcher (Maybe Text)
pmDescription
= lens _pmDescription
(\ s a -> s{_pmDescription = a})
instance FromJSON PathMatcher where
parseJSON
= withObject "PathMatcher"
(\ o ->
PathMatcher' <$>
(o .:? "defaultService") <*> (o .:? "name") <*>
(o .:? "pathRules" .!= mempty)
<*> (o .:? "description"))
instance ToJSON PathMatcher where
toJSON PathMatcher'{..}
= object
(catMaybes
[("defaultService" .=) <$> _pmDefaultService,
("name" .=) <$> _pmName,
("pathRules" .=) <$> _pmPathRules,
("description" .=) <$> _pmDescription])
data BackendServiceListWarning =
BackendServiceListWarning'
{ _bslwData :: !(Maybe [BackendServiceListWarningDataItem])
, _bslwCode :: !(Maybe BackendServiceListWarningCode)
, _bslwMessage :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
backendServiceListWarning
:: BackendServiceListWarning
backendServiceListWarning =
BackendServiceListWarning'
{_bslwData = Nothing, _bslwCode = Nothing, _bslwMessage = Nothing}
bslwData :: Lens' BackendServiceListWarning [BackendServiceListWarningDataItem]
bslwData
= lens _bslwData (\ s a -> s{_bslwData = a}) .
_Default
. _Coerce
bslwCode :: Lens' BackendServiceListWarning (Maybe BackendServiceListWarningCode)
bslwCode = lens _bslwCode (\ s a -> s{_bslwCode = a})
bslwMessage :: Lens' BackendServiceListWarning (Maybe Text)
bslwMessage
= lens _bslwMessage (\ s a -> s{_bslwMessage = a})
instance FromJSON BackendServiceListWarning where
parseJSON
= withObject "BackendServiceListWarning"
(\ o ->
BackendServiceListWarning' <$>
(o .:? "data" .!= mempty) <*> (o .:? "code") <*>
(o .:? "message"))
instance ToJSON BackendServiceListWarning where
toJSON BackendServiceListWarning'{..}
= object
(catMaybes
[("data" .=) <$> _bslwData,
("code" .=) <$> _bslwCode,
("message" .=) <$> _bslwMessage])