on develop help sign in
Regenerating gogol-deploymentmanager from updated service defintions
commit07ba3771d0def4e175b9ead8d38ec033d87f13d0 authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:36 (10 years ago) parent6ad5789
11 files changed+287−67
gogol-deploymentmanager/gen/Network/Google/DeploymentManager.hs+10 gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types.hs+10 gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Product.hs+83−17 gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs+32−5 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Delete.hs+19−4 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/List.hs+26−8 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Update.hs+1−1 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/List.hs+27−8 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/List.hs+26−8 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/List.hs+27−8 gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Types/List.hs+26−8
gogol-deploymentmanager/gen/Network/Google/DeploymentManager.hs+10
@@ -104,6 +104,7 @@ module Network.Google.DeploymentManager
104104 , AuditConfig
105105 , auditConfig
106106 , acService
107+ , acAuditLogConfigs
107108 , acExemptedMembers
108109
109110 -- ** DeploymentsUpdateCreatePolicy
@@ -121,6 +122,9 @@ module Network.Google.DeploymentManager
121122 , ruwidiValue
122123 , ruwidiKey
123124
125+ -- ** DeploymentsDeleteDeletePolicy
126+ , DeploymentsDeleteDeletePolicy (..)
127+
124128 -- ** TypesListResponse
125129 , TypesListResponse
126130 , typesListResponse
@@ -327,6 +331,12 @@ module Network.Google.DeploymentManager
327331 , rwidiValue
328332 , rwidiKey
329333
334+ -- ** AuditLogConfig
335+ , AuditLogConfig
336+ , auditLogConfig
337+ , alcLogType
338+ , alcExemptedMembers
339+
330340 -- ** ResourceUpdateError
331341 , ResourceUpdateError
332342 , resourceUpdateError
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types.hs+10
@@ -40,6 +40,7 @@ module Network.Google.DeploymentManager.Types
4040 , AuditConfig
4141 , auditConfig
4242 , acService
43+ , acAuditLogConfigs
4344 , acExemptedMembers
4445
4546 -- * DeploymentsUpdateCreatePolicy
@@ -57,6 +58,9 @@ module Network.Google.DeploymentManager.Types
5758 , ruwidiValue
5859 , ruwidiKey
5960
61+ -- * DeploymentsDeleteDeletePolicy
62+ , DeploymentsDeleteDeletePolicy (..)
63+
6064 -- * TypesListResponse
6165 , TypesListResponse
6266 , typesListResponse
@@ -263,6 +267,12 @@ module Network.Google.DeploymentManager.Types
263267 , rwidiValue
264268 , rwidiKey
265269
270+ -- * AuditLogConfig
271+ , AuditLogConfig
272+ , auditLogConfig
273+ , alcLogType
274+ , alcExemptedMembers
275+
266276 -- * ResourceUpdateError
267277 , ResourceUpdateError
268278 , resourceUpdateError
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Product.hs+83−17
@@ -104,12 +104,13 @@ instance ToJSON ConfigFile where
104104 toJSON ConfigFile'{..}
105105 = object (catMaybes [("content" .=) <$> _cfContent])
106106
107−-- | Enables \"data access\" audit logging for a service and specifies a list
108−-- of members that are log-exempted.
107+-- | Provides the configuration for non-admin_activity logging for a service.
108+-- Controls exemptions and specific log sub-types.
109109--
110110-- /See:/ 'auditConfig' smart constructor.
111111data AuditConfig = AuditConfig'
112112 { _acService :: !(Maybe Text)
113+ , _acAuditLogConfigs :: !(Maybe [AuditLogConfig])
113114 , _acExemptedMembers :: !(Maybe [Text])
114115 } deriving (Eq,Show,Data,Typeable,Generic)
115116
@@ -119,22 +120,33 @@ data AuditConfig = AuditConfig'
119120--
120121-- * 'acService'
121122--
123+-- * 'acAuditLogConfigs'
124+--
122125-- * 'acExemptedMembers'
123126auditConfig
124127 :: AuditConfig
125128auditConfig =
126129 AuditConfig'
127130 { _acService = Nothing
131+ , _acAuditLogConfigs = Nothing
128132 , _acExemptedMembers = Nothing
129133 }
130134
131−-- | Specifies a service that will be enabled for \"data access\" audit
132−-- logging. For example, \`resourcemanager\`, \`storage\`, \`compute\`.
133−-- \`allServices\` is a special value that covers all services.
135+-- | Specifies a service that will be enabled for audit logging. For example,
136+-- \`resourcemanager\`, \`storage\`, \`compute\`. \`allServices\` is a
137+-- special value that covers all services.
134138acService :: Lens' AuditConfig (Maybe Text)
135139acService
136140 = lens _acService (\ s a -> s{_acService = a})
137141
142+-- | The configuration for each type of logging
143+acAuditLogConfigs :: Lens' AuditConfig [AuditLogConfig]
144+acAuditLogConfigs
145+ = lens _acAuditLogConfigs
146+ (\ s a -> s{_acAuditLogConfigs = a})
147+ . _Default
148+ . _Coerce
149+
138150-- | Specifies the identities that are exempted from \"data access\" audit
139151-- logging for the \`service\` specified above. Follows the same format of
140152-- Binding.members.
@@ -151,13 +163,15 @@ instance FromJSON AuditConfig where
151163 (\ o ->
152164 AuditConfig' <$>
153165 (o .:? "service") <*>
154− (o .:? "exemptedMembers" .!= mempty))
166+ (o .:? "auditLogConfigs" .!= mempty)
167+ <*> (o .:? "exemptedMembers" .!= mempty))
155168
156169instance ToJSON AuditConfig where
157170 toJSON AuditConfig'{..}
158171 = object
159172 (catMaybes
160173 [("service" .=) <$> _acService,
174+ ("auditLogConfigs" .=) <$> _acAuditLogConfigs,
161175 ("exemptedMembers" .=) <$> _acExemptedMembers])
162176
163177-- | A response containing a partial list of operations and a page token used
@@ -601,9 +615,9 @@ oDescription :: Lens' Operation (Maybe Text)
601615oDescription
602616 = lens _oDescription (\ s a -> s{_oDescription = a})
603617
604−-- | [Output Only] The URL of the resource that the operation modifies. If
605−-- creating a persistent disk snapshot, this points to the persistent disk
606−-- that the snapshot was created from.
618+-- | [Output Only] The URL of the resource that the operation modifies. For
619+-- operations related to creating a snapshot, this points to the persistent
620+-- disk that the snapshot was created from.
607621oTargetLink :: Lens' Operation (Maybe Text)
608622oTargetLink
609623 = lens _oTargetLink (\ s a -> s{_oTargetLink = a})
@@ -1305,7 +1319,7 @@ instance ToJSON ResourceUpdateWarningsItem where
13051319--
13061320-- /See:/ 'deploymentsCancelPreviewRequest' smart constructor.
13071321newtype DeploymentsCancelPreviewRequest = DeploymentsCancelPreviewRequest'
1308− { _dcprFingerprint :: Maybe Base64
1322+ { _dcprFingerprint :: Maybe Bytes
13091323 } deriving (Eq,Show,Data,Typeable,Generic)
13101324
13111325-- | Creates a value of 'DeploymentsCancelPreviewRequest' with the minimum fields required to make a request.
@@ -1333,7 +1347,7 @@ dcprFingerprint :: Lens' DeploymentsCancelPreviewRequest (Maybe ByteString)
13331347dcprFingerprint
13341348 = lens _dcprFingerprint
13351349 (\ s a -> s{_dcprFingerprint = a})
1336− . mapping _Base64
1350+ . mapping _Bytes
13371351
13381352instance FromJSON DeploymentsCancelPreviewRequest
13391353 where
@@ -1720,7 +1734,7 @@ instance ToJSON OperationError where
17201734-- /See:/ 'policy' smart constructor.
17211735data Policy = Policy'
17221736 { _pAuditConfigs :: !(Maybe [AuditConfig])
1723− , _pEtag :: !(Maybe Base64)
1737+ , _pEtag :: !(Maybe Bytes)
17241738 , _pRules :: !(Maybe [Rule])
17251739 , _pVersion :: !(Maybe (Textual Int32))
17261740 , _pBindings :: !(Maybe [Binding])
@@ -1778,7 +1792,7 @@ pAuditConfigs
17781792pEtag :: Lens' Policy (Maybe ByteString)
17791793pEtag
17801794 = lens _pEtag (\ s a -> s{_pEtag = a}) .
1781− mapping _Base64
1795+ mapping _Bytes
17821796
17831797-- | If more than one rule is specified, the rules are applied in the
17841798-- following manner: - All matching LOG rules are always applied. - If any
@@ -2019,7 +2033,7 @@ instance ToJSON OperationErrorErrorsItem where
20192033--
20202034-- /See:/ 'deploymentsStopRequest' smart constructor.
20212035newtype DeploymentsStopRequest = DeploymentsStopRequest'
2022− { _dsrFingerprint :: Maybe Base64
2036+ { _dsrFingerprint :: Maybe Bytes
20232037 } deriving (Eq,Show,Data,Typeable,Generic)
20242038
20252039-- | Creates a value of 'DeploymentsStopRequest' with the minimum fields required to make a request.
@@ -2047,7 +2061,7 @@ dsrFingerprint :: Lens' DeploymentsStopRequest (Maybe ByteString)
20472061dsrFingerprint
20482062 = lens _dsrFingerprint
20492063 (\ s a -> s{_dsrFingerprint = a})
2050− . mapping _Base64
2064+ . mapping _Bytes
20512065
20522066instance FromJSON DeploymentsStopRequest where
20532067 parseJSON
@@ -2111,6 +2125,58 @@ instance ToJSON ResourceWarningsItemDataItem where
21112125 [("value" .=) <$> _rwidiValue,
21122126 ("key" .=) <$> _rwidiKey])
21132127
2128+-- | Provides the configuration for a sub-type of logging.
2129+--
2130+-- /See:/ 'auditLogConfig' smart constructor.
2131+data AuditLogConfig = AuditLogConfig'
2132+ { _alcLogType :: !(Maybe Text)
2133+ , _alcExemptedMembers :: !(Maybe [Text])
2134+ } deriving (Eq,Show,Data,Typeable,Generic)
2135+
2136+-- | Creates a value of 'AuditLogConfig' with the minimum fields required to make a request.
2137+--
2138+-- Use one of the following lenses to modify other fields as desired:
2139+--
2140+-- * 'alcLogType'
2141+--
2142+-- * 'alcExemptedMembers'
2143+auditLogConfig
2144+ :: AuditLogConfig
2145+auditLogConfig =
2146+ AuditLogConfig'
2147+ { _alcLogType = Nothing
2148+ , _alcExemptedMembers = Nothing
2149+ }
2150+
2151+-- | The log type that this config enables.
2152+alcLogType :: Lens' AuditLogConfig (Maybe Text)
2153+alcLogType
2154+ = lens _alcLogType (\ s a -> s{_alcLogType = a})
2155+
2156+-- | Specifies the identities that are exempted from this type of logging
2157+-- Follows the same format of Binding.members.
2158+alcExemptedMembers :: Lens' AuditLogConfig [Text]
2159+alcExemptedMembers
2160+ = lens _alcExemptedMembers
2161+ (\ s a -> s{_alcExemptedMembers = a})
2162+ . _Default
2163+ . _Coerce
2164+
2165+instance FromJSON AuditLogConfig where
2166+ parseJSON
2167+ = withObject "AuditLogConfig"
2168+ (\ o ->
2169+ AuditLogConfig' <$>
2170+ (o .:? "logType") <*>
2171+ (o .:? "exemptedMembers" .!= mempty))
2172+
2173+instance ToJSON AuditLogConfig where
2174+ toJSON AuditLogConfig'{..}
2175+ = object
2176+ (catMaybes
2177+ [("logType" .=) <$> _alcLogType,
2178+ ("exemptedMembers" .=) <$> _alcExemptedMembers])
2179+
21142180-- | [Output Only] If errors are generated during update of the resource,
21152181-- this field will be populated.
21162182--
@@ -2593,7 +2659,7 @@ instance ToJSON Binding where
25932659data Deployment = Deployment'
25942660 { _dInsertTime :: !(Maybe Text)
25952661 , _dOperation :: !(Maybe Operation)
2596− , _dFingerprint :: !(Maybe Base64)
2662+ , _dFingerprint :: !(Maybe Bytes)
25972663 , _dSelfLink :: !(Maybe Text)
25982664 , _dName :: !(Maybe Text)
25992665 , _dManifest :: !(Maybe Text)
@@ -2669,7 +2735,7 @@ dOperation
26692735dFingerprint :: Lens' Deployment (Maybe ByteString)
26702736dFingerprint
26712737 = lens _dFingerprint (\ s a -> s{_dFingerprint = a})
2672− . mapping _Base64
2738+ . mapping _Bytes
26732739
26742740-- | [Output Only] Self link for the deployment.
26752741dSelfLink :: Lens' Deployment (Maybe Text)
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs+32−5
@@ -46,26 +46,53 @@ instance ToJSON DeploymentsUpdateCreatePolicy where
4646 toJSON = toJSONText
4747
4848-- | Sets the policy to use for deleting resources.
49−data DeploymentsUpdateDeletePolicy
49+data DeploymentsDeleteDeletePolicy
5050 = Abandon
5151 -- ^ @ABANDON@
5252 | Delete'
5353 -- ^ @DELETE@
5454 deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5555
56−instance Hashable DeploymentsUpdateDeletePolicy
56+instance Hashable DeploymentsDeleteDeletePolicy
5757
58−instance FromHttpApiData DeploymentsUpdateDeletePolicy where
58+instance FromHttpApiData DeploymentsDeleteDeletePolicy where
5959 parseQueryParam = \case
6060 "ABANDON" -> Right Abandon
6161 "DELETE" -> Right Delete'
62− x -> Left ("Unable to parse DeploymentsUpdateDeletePolicy from: " <> x)
62+ x -> Left ("Unable to parse DeploymentsDeleteDeletePolicy from: " <> x)
6363
64−instance ToHttpApiData DeploymentsUpdateDeletePolicy where
64+instance ToHttpApiData DeploymentsDeleteDeletePolicy where
6565 toQueryParam = \case
6666 Abandon -> "ABANDON"
6767 Delete' -> "DELETE"
6868
69+instance FromJSON DeploymentsDeleteDeletePolicy where
70+ parseJSON = parseJSONText "DeploymentsDeleteDeletePolicy"
71+
72+instance ToJSON DeploymentsDeleteDeletePolicy where
73+ toJSON = toJSONText
74+
75+-- | Sets the policy to use for deleting resources.
76+data DeploymentsUpdateDeletePolicy
77+ = DUDPAbandon
78+ -- ^ @ABANDON@
79+ | DUDPDelete'
80+ -- ^ @DELETE@
81+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
82+
83+instance Hashable DeploymentsUpdateDeletePolicy
84+
85+instance FromHttpApiData DeploymentsUpdateDeletePolicy where
86+ parseQueryParam = \case
87+ "ABANDON" -> Right DUDPAbandon
88+ "DELETE" -> Right DUDPDelete'
89+ x -> Left ("Unable to parse DeploymentsUpdateDeletePolicy from: " <> x)
90+
91+instance ToHttpApiData DeploymentsUpdateDeletePolicy where
92+ toQueryParam = \case
93+ DUDPAbandon -> "ABANDON"
94+ DUDPDelete' -> "DELETE"
95+
6996instance FromJSON DeploymentsUpdateDeletePolicy where
7097 parseJSON = parseJSONText "DeploymentsUpdateDeletePolicy"
7198
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Delete.hs+19−4
@@ -34,6 +34,7 @@ module Network.Google.Resource.DeploymentManager.Deployments.Delete
3434
3535 -- * Request Lenses
3636 , ddProject
37+ , ddDeletePolicy
3738 , ddDeployment
3839 ) where
3940
@@ -50,14 +51,18 @@ type DeploymentsDeleteResource =
5051 "global" :>
5152 "deployments" :>
5253 Capture "deployment" Text :>
53− QueryParam "alt" AltJSON :> Delete '[JSON] Operation
54+ QueryParam "deletePolicy"
55+ DeploymentsDeleteDeletePolicy
56+ :>
57+ QueryParam "alt" AltJSON :> Delete '[JSON] Operation
5458
5559-- | Deletes a deployment and all of the resources in the deployment.
5660--
5761-- /See:/ 'deploymentsDelete' smart constructor.
5862data DeploymentsDelete = DeploymentsDelete'
59− { _ddProject :: !Text
60− , _ddDeployment :: !Text
63+ { _ddProject :: !Text
64+ , _ddDeletePolicy :: !DeploymentsDeleteDeletePolicy
65+ , _ddDeployment :: !Text
6166 } deriving (Eq,Show,Data,Typeable,Generic)
6267
6368-- | Creates a value of 'DeploymentsDelete' with the minimum fields required to make a request.
@@ -66,6 +71,8 @@ data DeploymentsDelete = DeploymentsDelete'
6671--
6772-- * 'ddProject'
6873--
74+-- * 'ddDeletePolicy'
75+--
6976-- * 'ddDeployment'
7077deploymentsDelete
7178 :: Text -- ^ 'ddProject'
@@ -74,6 +81,7 @@ deploymentsDelete
7481deploymentsDelete pDdProject_ pDdDeployment_ =
7582 DeploymentsDelete'
7683 { _ddProject = pDdProject_
84+ , _ddDeletePolicy = Delete'
7785 , _ddDeployment = pDdDeployment_
7886 }
7987
@@ -82,6 +90,12 @@ ddProject :: Lens' DeploymentsDelete Text
8290ddProject
8391 = lens _ddProject (\ s a -> s{_ddProject = a})
8492
93+-- | Sets the policy to use for deleting resources.
94+ddDeletePolicy :: Lens' DeploymentsDelete DeploymentsDeleteDeletePolicy
95+ddDeletePolicy
96+ = lens _ddDeletePolicy
97+ (\ s a -> s{_ddDeletePolicy = a})
98+
8599-- | The name of the deployment for this request.
86100ddDeployment :: Lens' DeploymentsDelete Text
87101ddDeployment
@@ -93,7 +107,8 @@ instance GoogleRequest DeploymentsDelete where
93107 '["https://www.googleapis.com/auth/cloud-platform",
94108 "https://www.googleapis.com/auth/ndev.cloudman"]
95109 requestClient DeploymentsDelete'{..}
96− = go _ddProject _ddDeployment (Just AltJSON)
110+ = go _ddProject _ddDeployment (Just _ddDeletePolicy)
111+ (Just AltJSON)
97112 deploymentManagerService
98113 where go
99114 = buildClient
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/List.hs+26−8
@@ -33,6 +33,7 @@ module Network.Google.Resource.DeploymentManager.Deployments.List
3333 , DeploymentsList
3434
3535 -- * Request Lenses
36+ , dlOrderBy
3637 , dlProject
3738 , dlFilter
3839 , dlPageToken
@@ -51,17 +52,19 @@ type DeploymentsListResource =
5152 Capture "project" Text :>
5253 "global" :>
5354 "deployments" :>
54− QueryParam "filter" Text :>
55− QueryParam "pageToken" Text :>
56− QueryParam "maxResults" (Textual Word32) :>
57− QueryParam "alt" AltJSON :>
58− Get '[JSON] DeploymentsListResponse
55+ QueryParam "orderBy" Text :>
56+ QueryParam "filter" Text :>
57+ QueryParam "pageToken" Text :>
58+ QueryParam "maxResults" (Textual Word32) :>
59+ QueryParam "alt" AltJSON :>
60+ Get '[JSON] DeploymentsListResponse
5961
6062-- | Lists all deployments for a given project.
6163--
6264-- /See:/ 'deploymentsList' smart constructor.
6365data DeploymentsList = DeploymentsList'
64− { _dlProject :: !Text
66+ { _dlOrderBy :: !(Maybe Text)
67+ , _dlProject :: !Text
6568 , _dlFilter :: !(Maybe Text)
6669 , _dlPageToken :: !(Maybe Text)
6770 , _dlMaxResults :: !(Textual Word32)
@@ -71,6 +74,8 @@ data DeploymentsList = DeploymentsList'
7174--
7275-- Use one of the following lenses to modify other fields as desired:
7376--
77+-- * 'dlOrderBy'
78+--
7479-- * 'dlProject'
7580--
7681-- * 'dlFilter'
@@ -83,12 +88,25 @@ deploymentsList
8388 -> DeploymentsList
8489deploymentsList pDlProject_ =
8590 DeploymentsList'
86− { _dlProject = pDlProject_
91+ { _dlOrderBy = Nothing
92+ , _dlProject = pDlProject_
8793 , _dlFilter = Nothing
8894 , _dlPageToken = Nothing
8995 , _dlMaxResults = 500
9096 }
9197
98+-- | Sorts list results by a certain order. By default, results are returned
99+-- in alphanumerical order based on the resource name. You can also sort
100+-- results in descending order based on the creation timestamp using
101+-- orderBy=\"creationTimestamp desc\". This sorts results based on the
102+-- creationTimestamp field in reverse chronological order (newest result
103+-- first). Use this to sort resources like operations so that the newest
104+-- operation is returned first. Currently, only sorting by name or
105+-- creationTimestamp desc is supported.
106+dlOrderBy :: Lens' DeploymentsList (Maybe Text)
107+dlOrderBy
108+ = lens _dlOrderBy (\ s a -> s{_dlOrderBy = a})
109+
92110-- | The project ID for this request.
93111dlProject :: Lens' DeploymentsList Text
94112dlProject
@@ -140,7 +158,7 @@ instance GoogleRequest DeploymentsList where
140158 "https://www.googleapis.com/auth/ndev.cloudman",
141159 "https://www.googleapis.com/auth/ndev.cloudman.readonly"]
142160 requestClient DeploymentsList'{..}
143− = go _dlProject _dlFilter _dlPageToken
161+ = go _dlProject _dlOrderBy _dlFilter _dlPageToken
144162 (Just _dlMaxResults)
145163 (Just AltJSON)
146164 deploymentManagerService
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Update.hs+1−1
@@ -103,7 +103,7 @@ deploymentsUpdate pDuProject_ pDuPayload_ pDuDeployment_ =
103103 { _duCreatePolicy = CreateOrAcquire
104104 , _duProject = pDuProject_
105105 , _duPayload = pDuPayload_
106− , _duDeletePolicy = Delete'
106+ , _duDeletePolicy = DUDPDelete'
107107 , _duPreview = False
108108 , _duDeployment = pDuDeployment_
109109 }
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/List.hs+27−8
@@ -33,6 +33,7 @@ module Network.Google.Resource.DeploymentManager.Manifests.List
3333 , ManifestsList
3434
3535 -- * Request Lenses
36+ , mlOrderBy
3637 , mlProject
3738 , mlFilter
3839 , mlPageToken
@@ -54,17 +55,19 @@ type ManifestsListResource =
5455 "deployments" :>
5556 Capture "deployment" Text :>
5657 "manifests" :>
57− QueryParam "filter" Text :>
58− QueryParam "pageToken" Text :>
59− QueryParam "maxResults" (Textual Word32) :>
60− QueryParam "alt" AltJSON :>
61− Get '[JSON] ManifestsListResponse
58+ QueryParam "orderBy" Text :>
59+ QueryParam "filter" Text :>
60+ QueryParam "pageToken" Text :>
61+ QueryParam "maxResults" (Textual Word32) :>
62+ QueryParam "alt" AltJSON :>
63+ Get '[JSON] ManifestsListResponse
6264
6365-- | Lists all manifests for a given deployment.
6466--
6567-- /See:/ 'manifestsList' smart constructor.
6668data ManifestsList = ManifestsList'
67− { _mlProject :: !Text
69+ { _mlOrderBy :: !(Maybe Text)
70+ , _mlProject :: !Text
6871 , _mlFilter :: !(Maybe Text)
6972 , _mlPageToken :: !(Maybe Text)
7073 , _mlMaxResults :: !(Textual Word32)
@@ -75,6 +78,8 @@ data ManifestsList = ManifestsList'
7578--
7679-- Use one of the following lenses to modify other fields as desired:
7780--
81+-- * 'mlOrderBy'
82+--
7883-- * 'mlProject'
7984--
8085-- * 'mlFilter'
@@ -90,13 +95,26 @@ manifestsList
9095 -> ManifestsList
9196manifestsList pMlProject_ pMlDeployment_ =
9297 ManifestsList'
93− { _mlProject = pMlProject_
98+ { _mlOrderBy = Nothing
99+ , _mlProject = pMlProject_
94100 , _mlFilter = Nothing
95101 , _mlPageToken = Nothing
96102 , _mlMaxResults = 500
97103 , _mlDeployment = pMlDeployment_
98104 }
99105
106+-- | Sorts list results by a certain order. By default, results are returned
107+-- in alphanumerical order based on the resource name. You can also sort
108+-- results in descending order based on the creation timestamp using
109+-- orderBy=\"creationTimestamp desc\". This sorts results based on the
110+-- creationTimestamp field in reverse chronological order (newest result
111+-- first). Use this to sort resources like operations so that the newest
112+-- operation is returned first. Currently, only sorting by name or
113+-- creationTimestamp desc is supported.
114+mlOrderBy :: Lens' ManifestsList (Maybe Text)
115+mlOrderBy
116+ = lens _mlOrderBy (\ s a -> s{_mlOrderBy = a})
117+
100118-- | The project ID for this request.
101119mlProject :: Lens' ManifestsList Text
102120mlProject
@@ -153,7 +171,8 @@ instance GoogleRequest ManifestsList where
153171 "https://www.googleapis.com/auth/ndev.cloudman",
154172 "https://www.googleapis.com/auth/ndev.cloudman.readonly"]
155173 requestClient ManifestsList'{..}
156− = go _mlProject _mlDeployment _mlFilter _mlPageToken
174+ = go _mlProject _mlDeployment _mlOrderBy _mlFilter
175+ _mlPageToken
157176 (Just _mlMaxResults)
158177 (Just AltJSON)
159178 deploymentManagerService
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/List.hs+26−8
@@ -33,6 +33,7 @@ module Network.Google.Resource.DeploymentManager.Operations.List
3333 , OperationsList
3434
3535 -- * Request Lenses
36+ , olOrderBy
3637 , olProject
3738 , olFilter
3839 , olPageToken
@@ -51,17 +52,19 @@ type OperationsListResource =
5152 Capture "project" Text :>
5253 "global" :>
5354 "operations" :>
54− QueryParam "filter" Text :>
55− QueryParam "pageToken" Text :>
56− QueryParam "maxResults" (Textual Word32) :>
57− QueryParam "alt" AltJSON :>
58− Get '[JSON] OperationsListResponse
55+ QueryParam "orderBy" Text :>
56+ QueryParam "filter" Text :>
57+ QueryParam "pageToken" Text :>
58+ QueryParam "maxResults" (Textual Word32) :>
59+ QueryParam "alt" AltJSON :>
60+ Get '[JSON] OperationsListResponse
5961
6062-- | Lists all operations for a project.
6163--
6264-- /See:/ 'operationsList' smart constructor.
6365data OperationsList = OperationsList'
64− { _olProject :: !Text
66+ { _olOrderBy :: !(Maybe Text)
67+ , _olProject :: !Text
6568 , _olFilter :: !(Maybe Text)
6669 , _olPageToken :: !(Maybe Text)
6770 , _olMaxResults :: !(Textual Word32)
@@ -71,6 +74,8 @@ data OperationsList = OperationsList'
7174--
7275-- Use one of the following lenses to modify other fields as desired:
7376--
77+-- * 'olOrderBy'
78+--
7479-- * 'olProject'
7580--
7681-- * 'olFilter'
@@ -83,12 +88,25 @@ operationsList
8388 -> OperationsList
8489operationsList pOlProject_ =
8590 OperationsList'
86− { _olProject = pOlProject_
91+ { _olOrderBy = Nothing
92+ , _olProject = pOlProject_
8793 , _olFilter = Nothing
8894 , _olPageToken = Nothing
8995 , _olMaxResults = 500
9096 }
9197
98+-- | Sorts list results by a certain order. By default, results are returned
99+-- in alphanumerical order based on the resource name. You can also sort
100+-- results in descending order based on the creation timestamp using
101+-- orderBy=\"creationTimestamp desc\". This sorts results based on the
102+-- creationTimestamp field in reverse chronological order (newest result
103+-- first). Use this to sort resources like operations so that the newest
104+-- operation is returned first. Currently, only sorting by name or
105+-- creationTimestamp desc is supported.
106+olOrderBy :: Lens' OperationsList (Maybe Text)
107+olOrderBy
108+ = lens _olOrderBy (\ s a -> s{_olOrderBy = a})
109+
92110-- | The project ID for this request.
93111olProject :: Lens' OperationsList Text
94112olProject
@@ -140,7 +158,7 @@ instance GoogleRequest OperationsList where
140158 "https://www.googleapis.com/auth/ndev.cloudman",
141159 "https://www.googleapis.com/auth/ndev.cloudman.readonly"]
142160 requestClient OperationsList'{..}
143− = go _olProject _olFilter _olPageToken
161+ = go _olProject _olOrderBy _olFilter _olPageToken
144162 (Just _olMaxResults)
145163 (Just AltJSON)
146164 deploymentManagerService
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/List.hs+27−8
@@ -33,6 +33,7 @@ module Network.Google.Resource.DeploymentManager.Resources.List
3333 , ResourcesList
3434
3535 -- * Request Lenses
36+ , rlOrderBy
3637 , rlProject
3738 , rlFilter
3839 , rlPageToken
@@ -54,17 +55,19 @@ type ResourcesListResource =
5455 "deployments" :>
5556 Capture "deployment" Text :>
5657 "resources" :>
57− QueryParam "filter" Text :>
58− QueryParam "pageToken" Text :>
59− QueryParam "maxResults" (Textual Word32) :>
60− QueryParam "alt" AltJSON :>
61− Get '[JSON] ResourcesListResponse
58+ QueryParam "orderBy" Text :>
59+ QueryParam "filter" Text :>
60+ QueryParam "pageToken" Text :>
61+ QueryParam "maxResults" (Textual Word32) :>
62+ QueryParam "alt" AltJSON :>
63+ Get '[JSON] ResourcesListResponse
6264
6365-- | Lists all resources in a given deployment.
6466--
6567-- /See:/ 'resourcesList' smart constructor.
6668data ResourcesList = ResourcesList'
67− { _rlProject :: !Text
69+ { _rlOrderBy :: !(Maybe Text)
70+ , _rlProject :: !Text
6871 , _rlFilter :: !(Maybe Text)
6972 , _rlPageToken :: !(Maybe Text)
7073 , _rlMaxResults :: !(Textual Word32)
@@ -75,6 +78,8 @@ data ResourcesList = ResourcesList'
7578--
7679-- Use one of the following lenses to modify other fields as desired:
7780--
81+-- * 'rlOrderBy'
82+--
7883-- * 'rlProject'
7984--
8085-- * 'rlFilter'
@@ -90,13 +95,26 @@ resourcesList
9095 -> ResourcesList
9196resourcesList pRlProject_ pRlDeployment_ =
9297 ResourcesList'
93− { _rlProject = pRlProject_
98+ { _rlOrderBy = Nothing
99+ , _rlProject = pRlProject_
94100 , _rlFilter = Nothing
95101 , _rlPageToken = Nothing
96102 , _rlMaxResults = 500
97103 , _rlDeployment = pRlDeployment_
98104 }
99105
106+-- | Sorts list results by a certain order. By default, results are returned
107+-- in alphanumerical order based on the resource name. You can also sort
108+-- results in descending order based on the creation timestamp using
109+-- orderBy=\"creationTimestamp desc\". This sorts results based on the
110+-- creationTimestamp field in reverse chronological order (newest result
111+-- first). Use this to sort resources like operations so that the newest
112+-- operation is returned first. Currently, only sorting by name or
113+-- creationTimestamp desc is supported.
114+rlOrderBy :: Lens' ResourcesList (Maybe Text)
115+rlOrderBy
116+ = lens _rlOrderBy (\ s a -> s{_rlOrderBy = a})
117+
100118-- | The project ID for this request.
101119rlProject :: Lens' ResourcesList Text
102120rlProject
@@ -153,7 +171,8 @@ instance GoogleRequest ResourcesList where
153171 "https://www.googleapis.com/auth/ndev.cloudman",
154172 "https://www.googleapis.com/auth/ndev.cloudman.readonly"]
155173 requestClient ResourcesList'{..}
156− = go _rlProject _rlDeployment _rlFilter _rlPageToken
174+ = go _rlProject _rlDeployment _rlOrderBy _rlFilter
175+ _rlPageToken
157176 (Just _rlMaxResults)
158177 (Just AltJSON)
159178 deploymentManagerService
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Types/List.hs+26−8
@@ -33,6 +33,7 @@ module Network.Google.Resource.DeploymentManager.Types.List
3333 , TypesList
3434
3535 -- * Request Lenses
36+ , tlOrderBy
3637 , tlProject
3738 , tlFilter
3839 , tlPageToken
@@ -51,17 +52,19 @@ type TypesListResource =
5152 Capture "project" Text :>
5253 "global" :>
5354 "types" :>
54− QueryParam "filter" Text :>
55− QueryParam "pageToken" Text :>
56− QueryParam "maxResults" (Textual Word32) :>
57− QueryParam "alt" AltJSON :>
58− Get '[JSON] TypesListResponse
55+ QueryParam "orderBy" Text :>
56+ QueryParam "filter" Text :>
57+ QueryParam "pageToken" Text :>
58+ QueryParam "maxResults" (Textual Word32) :>
59+ QueryParam "alt" AltJSON :>
60+ Get '[JSON] TypesListResponse
5961
6062-- | Lists all resource types for Deployment Manager.
6163--
6264-- /See:/ 'typesList' smart constructor.
6365data TypesList = TypesList'
64− { _tlProject :: !Text
66+ { _tlOrderBy :: !(Maybe Text)
67+ , _tlProject :: !Text
6568 , _tlFilter :: !(Maybe Text)
6669 , _tlPageToken :: !(Maybe Text)
6770 , _tlMaxResults :: !(Textual Word32)
@@ -71,6 +74,8 @@ data TypesList = TypesList'
7174--
7275-- Use one of the following lenses to modify other fields as desired:
7376--
77+-- * 'tlOrderBy'
78+--
7479-- * 'tlProject'
7580--
7681-- * 'tlFilter'
@@ -83,12 +88,25 @@ typesList
8388 -> TypesList
8489typesList pTlProject_ =
8590 TypesList'
86− { _tlProject = pTlProject_
91+ { _tlOrderBy = Nothing
92+ , _tlProject = pTlProject_
8793 , _tlFilter = Nothing
8894 , _tlPageToken = Nothing
8995 , _tlMaxResults = 500
9096 }
9197
98+-- | Sorts list results by a certain order. By default, results are returned
99+-- in alphanumerical order based on the resource name. You can also sort
100+-- results in descending order based on the creation timestamp using
101+-- orderBy=\"creationTimestamp desc\". This sorts results based on the
102+-- creationTimestamp field in reverse chronological order (newest result
103+-- first). Use this to sort resources like operations so that the newest
104+-- operation is returned first. Currently, only sorting by name or
105+-- creationTimestamp desc is supported.
106+tlOrderBy :: Lens' TypesList (Maybe Text)
107+tlOrderBy
108+ = lens _tlOrderBy (\ s a -> s{_tlOrderBy = a})
109+
92110-- | The project ID for this request.
93111tlProject :: Lens' TypesList Text
94112tlProject
@@ -140,7 +158,7 @@ instance GoogleRequest TypesList where
140158 "https://www.googleapis.com/auth/ndev.cloudman",
141159 "https://www.googleapis.com/auth/ndev.cloudman.readonly"]
142160 requestClient TypesList'{..}
143− = go _tlProject _tlFilter _tlPageToken
161+ = go _tlProject _tlOrderBy _tlFilter _tlPageToken
144162 (Just _tlMaxResults)
145163 (Just AltJSON)
146164 deploymentManagerService