on develop help sign in
Regenerating gogol-storage from latest service definition
commitcbab812503b1ae8356ec3d3d7ad8d0d3a56d1b78 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parent589a8f9
6 files changed+129−50
gen/model/storage/v1/storage-api.json+41−18 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Patch.hs+6−2 gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Update.hs+4−2 gogol-storage/gen/Network/Google/Storage.hs+2 gogol-storage/gen/Network/Google/Storage/Types.hs+2 gogol-storage/gen/Network/Google/Storage/Types/Product.hs+74−28
gen/model/storage/v1/storage-api.json+41−18
@@ -1,11 +1,11 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/HunW8kZz70Rw8UgbEglfvbYNW8k\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/G3kZz5Dv92Y-2NZwaNrcr5jwm4A\"",
44 "discoveryVersion": "v1",
55 "id": "storage:v1",
66 "name": "storage",
77 "version": "v1",
8− "revision": "20160504",
8+ "revision": "20161019",
99 "title": "Cloud Storage JSON API",
1010 "description": "Stores and retrieves potentially large, immutable data objects.",
1111 "ownerDomain": "google.com",
@@ -177,9 +177,13 @@
177177 "type": "object",
178178 "description": "The action to take.",
179179 "properties": {
180+ "storageClass": {
181+ "type": "string",
182+ "description": "Target storage class. Required iff the type of the action is SetStorageClass."
183+ },
180184 "type": {
181185 "type": "string",
182− "description": "Type of the action. Currently, only Delete is supported."
186+ "description": "Type of the action. Currently, only Delete and SetStorageClass are supported."
183187 }
184188 }
185189 },
@@ -201,6 +205,13 @@
201205 "type": "boolean",
202206 "description": "Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects."
203207 },
208+ "matchesStorageClass": {
209+ "type": "array",
210+ "description": "Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.",
211+ "items": {
212+ "type": "string"
213+ }
214+ },
204215 "numNewerVersions": {
205216 "type": "integer",
206217 "description": "Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.",
@@ -270,7 +281,7 @@
270281 },
271282 "storageClass": {
272283 "type": "string",
273− "description": "The bucket's storage class. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. For more information, see storage classes."
284+ "description": "The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes."
274285 },
275286 "timeCreated": {
276287 "type": "string",
@@ -294,15 +305,15 @@
294305 },
295306 "website": {
296307 "type": "object",
297− "description": "The bucket's website configuration.",
308+ "description": "The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.",
298309 "properties": {
299310 "mainPageSuffix": {
300311 "type": "string",
301− "description": "Behaves as the bucket's directory index where missing objects are treated as potential directories."
312+ "description": "If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages."
302313 },
303314 "notFoundPage": {
304315 "type": "string",
305− "description": "The custom object to return when a requested resource is not found."
316+ "description": "If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result."
306317 }
307318 }
308319 }
@@ -361,13 +372,13 @@
361372 },
362373 "team": {
363374 "type": "string",
364− "description": "The team. Can be owners, editors, or viewers."
375+ "description": "The team."
365376 }
366377 }
367378 },
368379 "role": {
369380 "type": "string",
370− "description": "The access permission for the entity. Can be READER, WRITER, or OWNER.",
381+ "description": "The access permission for the entity.",
371382 "annotations": {
372383 "required": [
373384 "storage.bucketAccessControls.insert"
@@ -553,7 +564,7 @@
553564 },
554565 "cacheControl": {
555566 "type": "string",
556− "description": "Cache-Control directive for the object data."
567+ "description": "Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600."
557568 },
558569 "componentCount": {
559570 "type": "integer",
@@ -700,7 +711,13 @@
700711 },
701712 "entity": {
702713 "type": "string",
703− "description": "The entity holding the permission, in one of the following forms: \n- user-userId \n- user-email \n- group-groupId \n- group-email \n- domain-domain \n- project-team-projectId \n- allUsers \n- allAuthenticatedUsers Examples: \n- The user liz@example.com would be user-liz@example.com. \n- The group example@googlegroups.com would be group-example@googlegroups.com. \n- To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com."
714+ "description": "The entity holding the permission, in one of the following forms: \n- user-userId \n- user-email \n- group-groupId \n- group-email \n- domain-domain \n- project-team-projectId \n- allUsers \n- allAuthenticatedUsers Examples: \n- The user liz@example.com would be user-liz@example.com. \n- The group example@googlegroups.com would be group-example@googlegroups.com. \n- To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.",
715+ "annotations": {
716+ "required": [
717+ "storage.defaultObjectAccessControls.insert",
718+ "storage.objectAccessControls.insert"
719+ ]
720+ }
704721 },
705722 "entityId": {
706723 "type": "string",
@@ -712,7 +729,7 @@
712729 },
713730 "generation": {
714731 "type": "string",
715− "description": "The content generation of the object.",
732+ "description": "The content generation of the object, if applied to an object.",
716733 "format": "int64"
717734 },
718735 "id": {
@@ -726,7 +743,7 @@
726743 },
727744 "object": {
728745 "type": "string",
729− "description": "The name of the object."
746+ "description": "The name of the object, if applied to an object."
730747 },
731748 "projectTeam": {
732749 "type": "object",
@@ -738,13 +755,19 @@
738755 },
739756 "team": {
740757 "type": "string",
741− "description": "The team. Can be owners, editors, or viewers."
758+ "description": "The team."
742759 }
743760 }
744761 },
745762 "role": {
746763 "type": "string",
747− "description": "The access permission for the entity. Can be READER or OWNER."
764+ "description": "The access permission for the entity.",
765+ "annotations": {
766+ "required": [
767+ "storage.defaultObjectAccessControls.insert",
768+ "storage.objectAccessControls.insert"
769+ ]
770+ }
748771 },
749772 "selfLink": {
750773 "type": "string",
@@ -761,7 +784,7 @@
761784 "type": "array",
762785 "description": "The list of items.",
763786 "items": {
764− "type": "any"
787+ "$ref": "ObjectAccessControl"
765788 }
766789 },
767790 "kind": {
@@ -1249,7 +1272,7 @@
12491272 "id": "storage.buckets.patch",
12501273 "path": "b/{bucket}",
12511274 "httpMethod": "PATCH",
1252− "description": "Updates a bucket. This method supports patch semantics.",
1275+ "description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. This method supports patch semantics.",
12531276 "parameters": {
12541277 "bucket": {
12551278 "type": "string",
@@ -1341,7 +1364,7 @@
13411364 "id": "storage.buckets.update",
13421365 "path": "b/{bucket}",
13431366 "httpMethod": "PUT",
1344− "description": "Updates a bucket.",
1367+ "description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.",
13451368 "parameters": {
13461369 "bucket": {
13471370 "type": "string",
gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Patch.hs+6−2
@@ -20,7 +20,9 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Updates a bucket. This method supports patch semantics.
23+-- Updates a bucket. Changes to the bucket will be readable immediately
24+-- after writing, but configuration changes may take time to propagate.
25+-- This method supports patch semantics.
2426--
2527-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.patch@.
2628module Network.Google.Resource.Storage.Buckets.Patch
@@ -64,7 +66,9 @@ type BucketsPatchResource =
6466 QueryParam "alt" AltJSON :>
6567 ReqBody '[JSON] Bucket :> Patch '[JSON] Bucket
6668
67−-- | Updates a bucket. This method supports patch semantics.
69+-- | Updates a bucket. Changes to the bucket will be readable immediately
70+-- after writing, but configuration changes may take time to propagate.
71+-- This method supports patch semantics.
6872--
6973-- /See:/ 'bucketsPatch' smart constructor.
7074data BucketsPatch = BucketsPatch'
gogol-storage/gen/Network/Google/Resource/Storage/Buckets/Update.hs+4−2
@@ -20,7 +20,8 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Updates a bucket.
23+-- Updates a bucket. Changes to the bucket will be readable immediately
24+-- after writing, but configuration changes may take time to propagate.
2425--
2526-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.update@.
2627module Network.Google.Resource.Storage.Buckets.Update
@@ -64,7 +65,8 @@ type BucketsUpdateResource =
6465 QueryParam "alt" AltJSON :>
6566 ReqBody '[JSON] Bucket :> Put '[JSON] Bucket
6667
67−-- | Updates a bucket.
68+-- | Updates a bucket. Changes to the bucket will be readable immediately
69+-- after writing, but configuration changes may take time to propagate.
6870--
6971-- /See:/ 'bucketsUpdate' smart constructor.
7072data BucketsUpdate = BucketsUpdate'
gogol-storage/gen/Network/Google/Storage.hs+2
@@ -190,6 +190,7 @@ module Network.Google.Storage
190190 , blricAge
191191 , blricIsLive
192192 , blricNumNewerVersions
193+ , blricMatchesStorageClass
193194 , blricCreatedBefore
194195
195196 -- ** ObjectsRewriteDestinationPredefinedACL
@@ -415,6 +416,7 @@ module Network.Google.Storage
415416 -- ** BucketLifecycleRuleItemAction
416417 , BucketLifecycleRuleItemAction
417418 , bucketLifecycleRuleItemAction
419+ , blriaStorageClass
418420 , blriaType
419421
420422 -- ** ObjectsGetProjection
gogol-storage/gen/Network/Google/Storage/Types.hs+2
@@ -76,6 +76,7 @@ module Network.Google.Storage.Types
7676 , blricAge
7777 , blricIsLive
7878 , blricNumNewerVersions
79+ , blricMatchesStorageClass
7980 , blricCreatedBefore
8081
8182 -- * ObjectsRewriteDestinationPredefinedACL
@@ -301,6 +302,7 @@ module Network.Google.Storage.Types
301302 -- * BucketLifecycleRuleItemAction
302303 , BucketLifecycleRuleItemAction
303304 , bucketLifecycleRuleItemAction
305+ , blriaStorageClass
304306 , blriaType
305307
306308 -- * ObjectsGetProjection
gogol-storage/gen/Network/Google/Storage/Types/Product.hs+74−28
@@ -248,10 +248,11 @@ instance ToJSON ObjectMetadata where
248248--
249249-- /See:/ 'bucketLifecycleRuleItemCondition' smart constructor.
250250data BucketLifecycleRuleItemCondition = BucketLifecycleRuleItemCondition'
251− { _blricAge :: !(Maybe (Textual Int32))
252− , _blricIsLive :: !(Maybe Bool)
253− , _blricNumNewerVersions :: !(Maybe (Textual Int32))
254− , _blricCreatedBefore :: !(Maybe Date')
251+ { _blricAge :: !(Maybe (Textual Int32))
252+ , _blricIsLive :: !(Maybe Bool)
253+ , _blricNumNewerVersions :: !(Maybe (Textual Int32))
254+ , _blricMatchesStorageClass :: !(Maybe [Text])
255+ , _blricCreatedBefore :: !(Maybe Date')
255256 } deriving (Eq,Show,Data,Typeable,Generic)
256257
257258-- | Creates a value of 'BucketLifecycleRuleItemCondition' with the minimum fields required to make a request.
@@ -264,6 +265,8 @@ data BucketLifecycleRuleItemCondition = BucketLifecycleRuleItemCondition'
264265--
265266-- * 'blricNumNewerVersions'
266267--
268+-- * 'blricMatchesStorageClass'
269+--
267270-- * 'blricCreatedBefore'
268271bucketLifecycleRuleItemCondition
269272 :: BucketLifecycleRuleItemCondition
@@ -272,6 +275,7 @@ bucketLifecycleRuleItemCondition =
272275 { _blricAge = Nothing
273276 , _blricIsLive = Nothing
274277 , _blricNumNewerVersions = Nothing
278+ , _blricMatchesStorageClass = Nothing
275279 , _blricCreatedBefore = Nothing
276280 }
277281
@@ -298,6 +302,16 @@ blricNumNewerVersions
298302 (\ s a -> s{_blricNumNewerVersions = a})
299303 . mapping _Coerce
300304
305+-- | Objects having any of the storage classes specified by this condition
306+-- will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE,
307+-- COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
308+blricMatchesStorageClass :: Lens' BucketLifecycleRuleItemCondition [Text]
309+blricMatchesStorageClass
310+ = lens _blricMatchesStorageClass
311+ (\ s a -> s{_blricMatchesStorageClass = a})
312+ . _Default
313+ . _Coerce
314+
301315-- | A date in RFC 3339 format with only the date part (for instance,
302316-- \"2013-01-15\"). This condition is satisfied when an object is created
303317-- before midnight of the specified date in UTC.
@@ -315,6 +329,7 @@ instance FromJSON BucketLifecycleRuleItemCondition
315329 BucketLifecycleRuleItemCondition' <$>
316330 (o .:? "age") <*> (o .:? "isLive") <*>
317331 (o .:? "numNewerVersions")
332+ <*> (o .:? "matchesStorageClass" .!= mempty)
318333 <*> (o .:? "createdBefore"))
319334
320335instance ToJSON BucketLifecycleRuleItemCondition
@@ -325,6 +340,8 @@ instance ToJSON BucketLifecycleRuleItemCondition
325340 [("age" .=) <$> _blricAge,
326341 ("isLive" .=) <$> _blricIsLive,
327342 ("numNewerVersions" .=) <$> _blricNumNewerVersions,
343+ ("matchesStorageClass" .=) <$>
344+ _blricMatchesStorageClass,
328345 ("createdBefore" .=) <$> _blricCreatedBefore])
329346
330347-- | The bucket\'s lifecycle configuration. See lifecycle management for more
@@ -655,7 +672,7 @@ oacptProjectNumber
655672 = lens _oacptProjectNumber
656673 (\ s a -> s{_oacptProjectNumber = a})
657674
658−-- | The team. Can be owners, editors, or viewers.
675+-- | The team.
659676oacptTeam :: Lens' ObjectAccessControlProjectTeam (Maybe Text)
660677oacptTeam
661678 = lens _oacptTeam (\ s a -> s{_oacptTeam = a})
@@ -832,7 +849,9 @@ bucLocation
832849bucKind :: Lens' Bucket Text
833850bucKind = lens _bucKind (\ s a -> s{_bucKind = a})
834851
835−-- | The bucket\'s website configuration.
852+-- | The bucket\'s website configuration, controlling how the service behaves
853+-- when accessing bucket contents as a web site. See the Static Website
854+-- Examples for more information.
836855bucWebsite :: Lens' Bucket (Maybe BucketWebsite)
837856bucWebsite
838857 = lens _bucWebsite (\ s a -> s{_bucWebsite = a})
@@ -863,10 +882,13 @@ bucSelfLink
863882bucName :: Lens' Bucket (Maybe Text)
864883bucName = lens _bucName (\ s a -> s{_bucName = a})
865884
866−-- | The bucket\'s storage class. This defines how objects in the bucket are
867−-- stored and determines the SLA and the cost of storage. Values include
868−-- STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to
869−-- STANDARD. For more information, see storage classes.
885+-- | The bucket\'s default storage class, used whenever no storageClass is
886+-- specified for a newly-created object. This defines how objects in the
887+-- bucket are stored and determines the SLA and the cost of storage. Values
888+-- include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and
889+-- DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the
890+-- bucket is created, it will default to STANDARD. For more information,
891+-- see storage classes.
870892bucStorageClass :: Lens' Bucket (Maybe Text)
871893bucStorageClass
872894 = lens _bucStorageClass
@@ -1532,7 +1554,9 @@ objContentLanguage
15321554 = lens _objContentLanguage
15331555 (\ s a -> s{_objContentLanguage = a})
15341556
1535−-- | Cache-Control directive for the object data.
1557+-- | Cache-Control directive for the object data. If omitted, and the object
1558+-- is accessible to all anonymous users, the default will be public,
1559+-- max-age=3600.
15361560objCacheControl :: Lens' Object (Maybe Text)
15371561objCacheControl
15381562 = lens _objCacheControl
@@ -1717,7 +1741,7 @@ bacptProjectNumber
17171741 = lens _bacptProjectNumber
17181742 (\ s a -> s{_bacptProjectNumber = a})
17191743
1720−-- | The team. Can be owners, editors, or viewers.
1744+-- | The team.
17211745bacptTeam :: Lens' BucketAccessControlProjectTeam (Maybe Text)
17221746bacptTeam
17231747 = lens _bacptTeam (\ s a -> s{_bacptTeam = a})
@@ -1742,7 +1766,7 @@ instance ToJSON BucketAccessControlProjectTeam where
17421766-- /See:/ 'objectAccessControls' smart constructor.
17431767data ObjectAccessControls = ObjectAccessControls'
17441768 { _oacKind :: !Text
1745− , _oacItems :: !(Maybe [JSONValue])
1769+ , _oacItems :: !(Maybe [ObjectAccessControl])
17461770 } deriving (Eq,Show,Data,Typeable,Generic)
17471771
17481772-- | Creates a value of 'ObjectAccessControls' with the minimum fields required to make a request.
@@ -1766,7 +1790,7 @@ oacKind :: Lens' ObjectAccessControls Text
17661790oacKind = lens _oacKind (\ s a -> s{_oacKind = a})
17671791
17681792-- | The list of items.
1769−oacItems :: Lens' ObjectAccessControls [JSONValue]
1793+oacItems :: Lens' ObjectAccessControls [ObjectAccessControl]
17701794oacItems
17711795 = lens _oacItems (\ s a -> s{_oacItems = a}) .
17721796 _Default
@@ -1787,7 +1811,9 @@ instance ToJSON ObjectAccessControls where
17871811 [Just ("kind" .= _oacKind),
17881812 ("items" .=) <$> _oacItems])
17891813
1790−-- | The bucket\'s website configuration.
1814+-- | The bucket\'s website configuration, controlling how the service behaves
1815+-- when accessing bucket contents as a web site. See the Static Website
1816+-- Examples for more information.
17911817--
17921818-- /See:/ 'bucketWebsite' smart constructor.
17931819data BucketWebsite = BucketWebsite'
@@ -1810,14 +1836,18 @@ bucketWebsite =
18101836 , _bwNotFoundPage = Nothing
18111837 }
18121838
1813−-- | Behaves as the bucket\'s directory index where missing objects are
1814−-- treated as potential directories.
1839+-- | If the requested object path is missing, the service will ensure the
1840+-- path has a trailing \'\/\', append this suffix, and attempt to retrieve
1841+-- the resulting object. This allows the creation of index.html objects to
1842+-- represent directory pages.
18151843bwMainPageSuffix :: Lens' BucketWebsite (Maybe Text)
18161844bwMainPageSuffix
18171845 = lens _bwMainPageSuffix
18181846 (\ s a -> s{_bwMainPageSuffix = a})
18191847
1820−-- | The custom object to return when a requested resource is not found.
1848+-- | If the requested object path is missing, and any mainPageSuffix object
1849+-- is missing, if applicable, the service will return the named object from
1850+-- this bucket as the content for a 404 Not Found result.
18211851bwNotFoundPage :: Lens' BucketWebsite (Maybe Text)
18221852bwNotFoundPage
18231853 = lens _bwNotFoundPage
@@ -1920,7 +1950,7 @@ bacaBucket :: Lens' BucketAccessControl (Maybe Text)
19201950bacaBucket
19211951 = lens _bacaBucket (\ s a -> s{_bacaBucket = a})
19221952
1923−-- | The access permission for the entity. Can be READER, WRITER, or OWNER.
1953+-- | The access permission for the entity.
19241954bacaRole :: Lens' BucketAccessControl (Maybe Text)
19251955bacaRole = lens _bacaRole (\ s a -> s{_bacaRole = a})
19261956
@@ -1990,23 +2020,35 @@ instance ToJSON BucketAccessControl where
19902020-- | The action to take.
19912021--
19922022-- /See:/ 'bucketLifecycleRuleItemAction' smart constructor.
1993−newtype BucketLifecycleRuleItemAction = BucketLifecycleRuleItemAction'
1994− { _blriaType :: Maybe Text
2023+data BucketLifecycleRuleItemAction = BucketLifecycleRuleItemAction'
2024+ { _blriaStorageClass :: !(Maybe Text)
2025+ , _blriaType :: !(Maybe Text)
19952026 } deriving (Eq,Show,Data,Typeable,Generic)
19962027
19972028-- | Creates a value of 'BucketLifecycleRuleItemAction' with the minimum fields required to make a request.
19982029--
19992030-- Use one of the following lenses to modify other fields as desired:
20002031--
2032+-- * 'blriaStorageClass'
2033+--
20012034-- * 'blriaType'
20022035bucketLifecycleRuleItemAction
20032036 :: BucketLifecycleRuleItemAction
20042037bucketLifecycleRuleItemAction =
20052038 BucketLifecycleRuleItemAction'
2006− { _blriaType = Nothing
2039+ { _blriaStorageClass = Nothing
2040+ , _blriaType = Nothing
20072041 }
20082042
2009−-- | Type of the action. Currently, only Delete is supported.
2043+-- | Target storage class. Required iff the type of the action is
2044+-- SetStorageClass.
2045+blriaStorageClass :: Lens' BucketLifecycleRuleItemAction (Maybe Text)
2046+blriaStorageClass
2047+ = lens _blriaStorageClass
2048+ (\ s a -> s{_blriaStorageClass = a})
2049+
2050+-- | Type of the action. Currently, only Delete and SetStorageClass are
2051+-- supported.
20102052blriaType :: Lens' BucketLifecycleRuleItemAction (Maybe Text)
20112053blriaType
20122054 = lens _blriaType (\ s a -> s{_blriaType = a})
@@ -2015,11 +2057,15 @@ instance FromJSON BucketLifecycleRuleItemAction where
20152057 parseJSON
20162058 = withObject "BucketLifecycleRuleItemAction"
20172059 (\ o ->
2018− BucketLifecycleRuleItemAction' <$> (o .:? "type"))
2060+ BucketLifecycleRuleItemAction' <$>
2061+ (o .:? "storageClass") <*> (o .:? "type"))
20192062
20202063instance ToJSON BucketLifecycleRuleItemAction where
20212064 toJSON BucketLifecycleRuleItemAction'{..}
2022− = object (catMaybes [("type" .=) <$> _blriaType])
2065+ = object
2066+ (catMaybes
2067+ [("storageClass" .=) <$> _blriaStorageClass,
2068+ ("type" .=) <$> _blriaType])
20232069
20242070-- | An access-control entry.
20252071--
@@ -2112,7 +2158,7 @@ oacaBucket :: Lens' ObjectAccessControl (Maybe Text)
21122158oacaBucket
21132159 = lens _oacaBucket (\ s a -> s{_oacaBucket = a})
21142160
2115−-- | The access permission for the entity. Can be READER or OWNER.
2161+-- | The access permission for the entity.
21162162oacaRole :: Lens' ObjectAccessControl (Maybe Text)
21172163oacaRole = lens _oacaRole (\ s a -> s{_oacaRole = a})
21182164
@@ -2121,7 +2167,7 @@ oacaSelfLink :: Lens' ObjectAccessControl (Maybe Text)
21212167oacaSelfLink
21222168 = lens _oacaSelfLink (\ s a -> s{_oacaSelfLink = a})
21232169
2124−-- | The name of the object.
2170+-- | The name of the object, if applied to an object.
21252171oacaObject :: Lens' ObjectAccessControl (Maybe Text)
21262172oacaObject
21272173 = lens _oacaObject (\ s a -> s{_oacaObject = a})
@@ -2147,7 +2193,7 @@ oacaEntity :: Lens' ObjectAccessControl (Maybe Text)
21472193oacaEntity
21482194 = lens _oacaEntity (\ s a -> s{_oacaEntity = a})
21492195
2150−-- | The content generation of the object.
2196+-- | The content generation of the object, if applied to an object.
21512197oacaGeneration :: Lens' ObjectAccessControl (Maybe Int64)
21522198oacaGeneration
21532199 = lens _oacaGeneration