Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- OAuth Scopes
- API Declaration
- Resources
- storage.bucketAccessControls.delete
- storage.bucketAccessControls.get
- storage.bucketAccessControls.insert
- storage.bucketAccessControls.list
- storage.bucketAccessControls.patch
- storage.bucketAccessControls.update
- storage.buckets.delete
- storage.buckets.get
- storage.buckets.getIamPolicy
- storage.buckets.insert
- storage.buckets.list
- storage.buckets.lockRetentionPolicy
- storage.buckets.patch
- storage.buckets.setIamPolicy
- storage.buckets.testIamPermissions
- storage.buckets.update
- storage.channels.stop
- storage.defaultObjectAccessControls.delete
- storage.defaultObjectAccessControls.get
- storage.defaultObjectAccessControls.insert
- storage.defaultObjectAccessControls.list
- storage.defaultObjectAccessControls.patch
- storage.defaultObjectAccessControls.update
- storage.notifications.delete
- storage.notifications.get
- storage.notifications.insert
- storage.notifications.list
- storage.objectAccessControls.delete
- storage.objectAccessControls.get
- storage.objectAccessControls.insert
- storage.objectAccessControls.list
- storage.objectAccessControls.patch
- storage.objectAccessControls.update
- storage.objects.compose
- storage.objects.copy
- storage.objects.delete
- storage.objects.get
- storage.objects.getIamPolicy
- storage.objects.insert
- storage.objects.list
- storage.objects.patch
- storage.objects.rewrite
- storage.objects.setIamPolicy
- storage.objects.testIamPermissions
- storage.objects.update
- storage.objects.watchAll
- storage.projects.serviceAccount.get
- Types
- ObjectOwner
- ObjectsInsertProjection
- BucketVersioning
- BucketsUpdatePredefinedDefaultObjectACL
- ObjectsComposeDestinationPredefinedACL
- BucketRetentionPolicy
- BucketsInsertPredefinedACL
- Buckets
- BucketBilling
- Notification
- BucketLogging
- ObjectMetadata
- ObjectsPatchPredefinedACL
- BucketLifecycleRuleItemCondition
- ObjectsRewriteDestinationPredefinedACL
- BucketLifecycle
- BucketLabels
- Channel
- BucketLifecycleRuleItem
- ObjectsWatchAllProjection
- BucketCORSItem
- ObjectAccessControlProjectTeam
- ObjectCustomerEncryption
- Bucket
- BucketsGetProjection
- Objects
- BucketsPatchProjection
- BucketAccessControls
- BucketEncryption
- BucketsUpdateProjection
- ComposeRequest
- ObjectsInsertPredefinedACL
- ObjectsListProjection
- BucketsInsertPredefinedDefaultObjectACL
- BucketsUpdatePredefinedACL
- ServiceAccount
- ObjectsCopyDestinationPredefinedACL
- ObjectsUpdatePredefinedACL
- BucketOwner
- ComposeRequestSourceObjectsItem
- BucketsInsertProjection
- ChannelParams
- PolicyBindingsItem
- BucketsListProjection
- ObjectsUpdateProjection
- Object
- ObjectsPatchProjection
- ComposeRequestSourceObjectsItemObjectPreconditions
- BucketAccessControlProjectTeam
- ObjectAccessControls
- BucketWebsite
- BucketAccessControl
- BucketLifecycleRuleItemAction
- ObjectsGetProjection
- BucketsPatchPredefinedDefaultObjectACL
- TestIAMPermissionsResponse
- Policy
- BucketIAMConfiguration
- BucketsPatchPredefinedACL
- ObjectAccessControl
- Notifications
- NotificationCustom_attributes
- ObjectsCopyProjection
- BucketIAMConfigurationBucketPolicyOnly
- RewriteResponse
- ObjectsRewriteProjection
Stores and retrieves potentially large, immutable data objects.
Synopsis
- storageService :: ServiceConfig
- cloudPlatformReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform.read-only"]
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- storageReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/devstorage.read_only"]
- storageReadWriteScope :: Proxy '["https://www.googleapis.com/auth/devstorage.read_write"]
- storageFullControlScope :: Proxy '["https://www.googleapis.com/auth/devstorage.full_control"]
- type StorageAPI = BucketsInsertResource :<|> (BucketsListResource :<|> (BucketsGetIAMPolicyResource :<|> (BucketsPatchResource :<|> (BucketsGetResource :<|> (BucketsSetIAMPolicyResource :<|> (BucketsLockRetentionPolicyResource :<|> (BucketsTestIAMPermissionsResource :<|> (BucketsDeleteResource :<|> (BucketsUpdateResource :<|> (ChannelsStopResource :<|> (DefaultObjectAccessControlsInsertResource :<|> (DefaultObjectAccessControlsListResource :<|> (DefaultObjectAccessControlsPatchResource :<|> (DefaultObjectAccessControlsGetResource :<|> (DefaultObjectAccessControlsDeleteResource :<|> (DefaultObjectAccessControlsUpdateResource :<|> (ObjectsInsertResource :<|> (ObjectsListResource :<|> (ObjectsCopyResource :<|> (ObjectsWatchAllResource :<|> (ObjectsGetIAMPolicyResource :<|> (ObjectsPatchResource :<|> (ObjectsGetResource :<|> (ObjectsSetIAMPolicyResource :<|> (ObjectsRewriteResource :<|> (ObjectsComposeResource :<|> (ObjectsTestIAMPermissionsResource :<|> (ObjectsDeleteResource :<|> (ObjectsUpdateResource :<|> (BucketAccessControlsInsertResource :<|> (BucketAccessControlsListResource :<|> (BucketAccessControlsPatchResource :<|> (BucketAccessControlsGetResource :<|> (BucketAccessControlsDeleteResource :<|> (BucketAccessControlsUpdateResource :<|> (ObjectAccessControlsInsertResource :<|> (ObjectAccessControlsListResource :<|> (ObjectAccessControlsPatchResource :<|> (ObjectAccessControlsGetResource :<|> (ObjectAccessControlsDeleteResource :<|> (ObjectAccessControlsUpdateResource :<|> (NotificationsInsertResource :<|> (NotificationsListResource :<|> (NotificationsGetResource :<|> (NotificationsDeleteResource :<|> ProjectsServiceAccountGetResource)))))))))))))))))))))))))))))))))))))))))))))
- module Network.Google.Resource.Storage.BucketAccessControls.Delete
- module Network.Google.Resource.Storage.BucketAccessControls.Get
- module Network.Google.Resource.Storage.BucketAccessControls.Insert
- module Network.Google.Resource.Storage.BucketAccessControls.List
- module Network.Google.Resource.Storage.BucketAccessControls.Patch
- module Network.Google.Resource.Storage.BucketAccessControls.Update
- module Network.Google.Resource.Storage.Buckets.Delete
- module Network.Google.Resource.Storage.Buckets.Get
- module Network.Google.Resource.Storage.Buckets.GetIAMPolicy
- module Network.Google.Resource.Storage.Buckets.Insert
- module Network.Google.Resource.Storage.Buckets.List
- module Network.Google.Resource.Storage.Buckets.LockRetentionPolicy
- module Network.Google.Resource.Storage.Buckets.Patch
- module Network.Google.Resource.Storage.Buckets.SetIAMPolicy
- module Network.Google.Resource.Storage.Buckets.TestIAMPermissions
- module Network.Google.Resource.Storage.Buckets.Update
- module Network.Google.Resource.Storage.Channels.Stop
- module Network.Google.Resource.Storage.DefaultObjectAccessControls.Delete
- module Network.Google.Resource.Storage.DefaultObjectAccessControls.Get
- module Network.Google.Resource.Storage.DefaultObjectAccessControls.Insert
- module Network.Google.Resource.Storage.DefaultObjectAccessControls.List
- module Network.Google.Resource.Storage.DefaultObjectAccessControls.Patch
- module Network.Google.Resource.Storage.DefaultObjectAccessControls.Update
- module Network.Google.Resource.Storage.Notifications.Delete
- module Network.Google.Resource.Storage.Notifications.Get
- module Network.Google.Resource.Storage.Notifications.Insert
- module Network.Google.Resource.Storage.Notifications.List
- module Network.Google.Resource.Storage.ObjectAccessControls.Delete
- module Network.Google.Resource.Storage.ObjectAccessControls.Get
- module Network.Google.Resource.Storage.ObjectAccessControls.Insert
- module Network.Google.Resource.Storage.ObjectAccessControls.List
- module Network.Google.Resource.Storage.ObjectAccessControls.Patch
- module Network.Google.Resource.Storage.ObjectAccessControls.Update
- module Network.Google.Resource.Storage.Objects.Compose
- module Network.Google.Resource.Storage.Objects.Copy
- module Network.Google.Resource.Storage.Objects.Delete
- module Network.Google.Resource.Storage.Objects.Get
- module Network.Google.Resource.Storage.Objects.GetIAMPolicy
- module Network.Google.Resource.Storage.Objects.Insert
- module Network.Google.Resource.Storage.Objects.List
- module Network.Google.Resource.Storage.Objects.Patch
- module Network.Google.Resource.Storage.Objects.Rewrite
- module Network.Google.Resource.Storage.Objects.SetIAMPolicy
- module Network.Google.Resource.Storage.Objects.TestIAMPermissions
- module Network.Google.Resource.Storage.Objects.Update
- module Network.Google.Resource.Storage.Objects.WatchAll
- module Network.Google.Resource.Storage.Projects.ServiceAccount.Get
- data ObjectOwner
- objectOwner :: ObjectOwner
- ooEntity :: Lens' ObjectOwner (Maybe Text)
- ooEntityId :: Lens' ObjectOwner (Maybe Text)
- data ObjectsInsertProjection
- data BucketVersioning
- bucketVersioning :: BucketVersioning
- bvEnabled :: Lens' BucketVersioning (Maybe Bool)
- data BucketsUpdatePredefinedDefaultObjectACL
- data ObjectsComposeDestinationPredefinedACL
- data BucketRetentionPolicy
- bucketRetentionPolicy :: BucketRetentionPolicy
- brpRetentionPeriod :: Lens' BucketRetentionPolicy (Maybe Int64)
- brpEffectiveTime :: Lens' BucketRetentionPolicy (Maybe UTCTime)
- brpIsLocked :: Lens' BucketRetentionPolicy (Maybe Bool)
- data BucketsInsertPredefinedACL
- data Buckets
- buckets :: Buckets
- bNextPageToken :: Lens' Buckets (Maybe Text)
- bKind :: Lens' Buckets Text
- bItems :: Lens' Buckets [Bucket]
- data BucketBilling
- bucketBilling :: BucketBilling
- bbRequesterPays :: Lens' BucketBilling (Maybe Bool)
- data Notification
- notification :: Notification
- nEtag :: Lens' Notification (Maybe Text)
- nObjectNamePrefix :: Lens' Notification (Maybe Text)
- nPayloadFormat :: Lens' Notification Text
- nEventTypes :: Lens' Notification [Text]
- nKind :: Lens' Notification Text
- nTopic :: Lens' Notification (Maybe Text)
- nSelfLink :: Lens' Notification (Maybe Text)
- nId :: Lens' Notification (Maybe Text)
- nCustomAttributes :: Lens' Notification (Maybe NotificationCustom_attributes)
- data BucketLogging
- bucketLogging :: BucketLogging
- blLogBucket :: Lens' BucketLogging (Maybe Text)
- blLogObjectPrefix :: Lens' BucketLogging (Maybe Text)
- data ObjectMetadata
- objectMetadata :: HashMap Text Text -> ObjectMetadata
- omAddtional :: Lens' ObjectMetadata (HashMap Text Text)
- data ObjectsPatchPredefinedACL
- data BucketLifecycleRuleItemCondition
- bucketLifecycleRuleItemCondition :: BucketLifecycleRuleItemCondition
- blricAge :: Lens' BucketLifecycleRuleItemCondition (Maybe Int32)
- blricIsLive :: Lens' BucketLifecycleRuleItemCondition (Maybe Bool)
- blricNumNewerVersions :: Lens' BucketLifecycleRuleItemCondition (Maybe Int32)
- blricMatchesStorageClass :: Lens' BucketLifecycleRuleItemCondition [Text]
- blricMatchesPattern :: Lens' BucketLifecycleRuleItemCondition (Maybe Text)
- blricCreatedBefore :: Lens' BucketLifecycleRuleItemCondition (Maybe Day)
- data ObjectsRewriteDestinationPredefinedACL
- data BucketLifecycle
- bucketLifecycle :: BucketLifecycle
- blRule :: Lens' BucketLifecycle [BucketLifecycleRuleItem]
- data BucketLabels
- bucketLabels :: HashMap Text Text -> BucketLabels
- blAddtional :: Lens' BucketLabels (HashMap Text Text)
- data Channel
- channel :: Channel
- cResourceURI :: Lens' Channel (Maybe Text)
- cResourceId :: Lens' Channel (Maybe Text)
- cKind :: Lens' Channel Text
- cExpiration :: Lens' Channel (Maybe Int64)
- cToken :: Lens' Channel (Maybe Text)
- cAddress :: Lens' Channel (Maybe Text)
- cPayload :: Lens' Channel (Maybe Bool)
- cParams :: Lens' Channel (Maybe ChannelParams)
- cId :: Lens' Channel (Maybe Text)
- cType :: Lens' Channel (Maybe Text)
- data BucketLifecycleRuleItem
- bucketLifecycleRuleItem :: BucketLifecycleRuleItem
- blriAction :: Lens' BucketLifecycleRuleItem (Maybe BucketLifecycleRuleItemAction)
- blriCondition :: Lens' BucketLifecycleRuleItem (Maybe BucketLifecycleRuleItemCondition)
- data ObjectsWatchAllProjection
- data BucketCORSItem
- bucketCORSItem :: BucketCORSItem
- bciMaxAgeSeconds :: Lens' BucketCORSItem (Maybe Int32)
- bciOrigin :: Lens' BucketCORSItem [Text]
- bciResponseHeader :: Lens' BucketCORSItem [Text]
- bciMethod :: Lens' BucketCORSItem [Text]
- data ObjectAccessControlProjectTeam
- objectAccessControlProjectTeam :: ObjectAccessControlProjectTeam
- oacptProjectNumber :: Lens' ObjectAccessControlProjectTeam (Maybe Text)
- oacptTeam :: Lens' ObjectAccessControlProjectTeam (Maybe Text)
- data ObjectCustomerEncryption
- objectCustomerEncryption :: ObjectCustomerEncryption
- oceKeySha256 :: Lens' ObjectCustomerEncryption (Maybe Text)
- oceEncryptionAlgorithm :: Lens' ObjectCustomerEncryption (Maybe Text)
- data Bucket
- bucket :: Bucket
- bucEtag :: Lens' Bucket (Maybe Text)
- bucLocation :: Lens' Bucket (Maybe Text)
- bucIAMConfiguration :: Lens' Bucket (Maybe BucketIAMConfiguration)
- bucKind :: Lens' Bucket Text
- bucWebsite :: Lens' Bucket (Maybe BucketWebsite)
- bucProjectNumber :: Lens' Bucket (Maybe Word64)
- bucLifecycle :: Lens' Bucket (Maybe BucketLifecycle)
- bucOwner :: Lens' Bucket (Maybe BucketOwner)
- bucRetentionPolicy :: Lens' Bucket (Maybe BucketRetentionPolicy)
- bucSelfLink :: Lens' Bucket (Maybe Text)
- bucName :: Lens' Bucket (Maybe Text)
- bucEncryption :: Lens' Bucket (Maybe BucketEncryption)
- bucStorageClass :: Lens' Bucket (Maybe Text)
- bucVersioning :: Lens' Bucket (Maybe BucketVersioning)
- bucCORS :: Lens' Bucket [BucketCORSItem]
- bucTimeCreated :: Lens' Bucket (Maybe UTCTime)
- bucId :: Lens' Bucket (Maybe Text)
- bucLabels :: Lens' Bucket (Maybe BucketLabels)
- bucUpdated :: Lens' Bucket (Maybe UTCTime)
- bucDefaultObjectACL :: Lens' Bucket [ObjectAccessControl]
- bucBilling :: Lens' Bucket (Maybe BucketBilling)
- bucMetageneration :: Lens' Bucket (Maybe Int64)
- bucLogging :: Lens' Bucket (Maybe BucketLogging)
- bucACL :: Lens' Bucket [BucketAccessControl]
- bucDefaultEventBasedHold :: Lens' Bucket (Maybe Bool)
- data BucketsGetProjection
- data Objects
- objects :: Objects
- oNextPageToken :: Lens' Objects (Maybe Text)
- oKind :: Lens' Objects Text
- oItems :: Lens' Objects [Object]
- oPrefixes :: Lens' Objects [Text]
- data BucketsPatchProjection
- data BucketAccessControls
- bucketAccessControls :: BucketAccessControls
- bacKind :: Lens' BucketAccessControls Text
- bacItems :: Lens' BucketAccessControls [BucketAccessControl]
- data BucketEncryption
- bucketEncryption :: BucketEncryption
- beDefaultKmsKeyName :: Lens' BucketEncryption (Maybe Text)
- data BucketsUpdateProjection
- data ComposeRequest
- composeRequest :: ComposeRequest
- crDestination :: Lens' ComposeRequest (Maybe Object)
- crKind :: Lens' ComposeRequest Text
- crSourceObjects :: Lens' ComposeRequest [ComposeRequestSourceObjectsItem]
- data ObjectsInsertPredefinedACL
- data ObjectsListProjection
- data BucketsInsertPredefinedDefaultObjectACL
- data BucketsUpdatePredefinedACL
- data ServiceAccount
- serviceAccount :: ServiceAccount
- saKind :: Lens' ServiceAccount Text
- saEmailAddress :: Lens' ServiceAccount (Maybe Text)
- data ObjectsCopyDestinationPredefinedACL
- data ObjectsUpdatePredefinedACL
- data BucketOwner
- bucketOwner :: BucketOwner
- boEntity :: Lens' BucketOwner (Maybe Text)
- boEntityId :: Lens' BucketOwner (Maybe Text)
- data ComposeRequestSourceObjectsItem
- composeRequestSourceObjectsItem :: ComposeRequestSourceObjectsItem
- crsoiName :: Lens' ComposeRequestSourceObjectsItem (Maybe Text)
- crsoiObjectPreconditions :: Lens' ComposeRequestSourceObjectsItem (Maybe ComposeRequestSourceObjectsItemObjectPreconditions)
- crsoiGeneration :: Lens' ComposeRequestSourceObjectsItem (Maybe Int64)
- data BucketsInsertProjection
- data ChannelParams
- channelParams :: HashMap Text Text -> ChannelParams
- cpAddtional :: Lens' ChannelParams (HashMap Text Text)
- data PolicyBindingsItem
- policyBindingsItem :: PolicyBindingsItem
- pbiMembers :: Lens' PolicyBindingsItem [Text]
- pbiRole :: Lens' PolicyBindingsItem (Maybe Text)
- pbiCondition :: Lens' PolicyBindingsItem (Maybe JSONValue)
- data BucketsListProjection
- data ObjectsUpdateProjection
- data Object
- object' :: Object
- objTemporaryHold :: Lens' Object (Maybe Bool)
- objEtag :: Lens' Object (Maybe Text)
- objTimeStorageClassUpdated :: Lens' Object (Maybe UTCTime)
- objRetentionExpirationTime :: Lens' Object (Maybe UTCTime)
- objSize :: Lens' Object (Maybe Word64)
- objKind :: Lens' Object Text
- objTimeDeleted :: Lens' Object (Maybe UTCTime)
- objCrc32c :: Lens' Object (Maybe Text)
- objCustomerEncryption :: Lens' Object (Maybe ObjectCustomerEncryption)
- objBucket :: Lens' Object (Maybe Text)
- objOwner :: Lens' Object (Maybe ObjectOwner)
- objSelfLink :: Lens' Object (Maybe Text)
- objMediaLink :: Lens' Object (Maybe Text)
- objComponentCount :: Lens' Object (Maybe Int32)
- objName :: Lens' Object (Maybe Text)
- objStorageClass :: Lens' Object (Maybe Text)
- objContentEncoding :: Lens' Object (Maybe Text)
- objEventBasedHold :: Lens' Object (Maybe Bool)
- objMetadata :: Lens' Object (Maybe ObjectMetadata)
- objTimeCreated :: Lens' Object (Maybe UTCTime)
- objId :: Lens' Object (Maybe Text)
- objKmsKeyName :: Lens' Object (Maybe Text)
- objUpdated :: Lens' Object (Maybe UTCTime)
- objContentLanguage :: Lens' Object (Maybe Text)
- objCacheControl :: Lens' Object (Maybe Text)
- objMetageneration :: Lens' Object (Maybe Int64)
- objGeneration :: Lens' Object (Maybe Int64)
- objACL :: Lens' Object [ObjectAccessControl]
- objContentDisPosition :: Lens' Object (Maybe Text)
- objMD5Hash :: Lens' Object (Maybe Text)
- objContentType :: Lens' Object (Maybe Text)
- data ObjectsPatchProjection
- data ComposeRequestSourceObjectsItemObjectPreconditions
- composeRequestSourceObjectsItemObjectPreconditions :: ComposeRequestSourceObjectsItemObjectPreconditions
- crsoiopIfGenerationMatch :: Lens' ComposeRequestSourceObjectsItemObjectPreconditions (Maybe Int64)
- data BucketAccessControlProjectTeam
- bucketAccessControlProjectTeam :: BucketAccessControlProjectTeam
- bacptProjectNumber :: Lens' BucketAccessControlProjectTeam (Maybe Text)
- bacptTeam :: Lens' BucketAccessControlProjectTeam (Maybe Text)
- data ObjectAccessControls
- objectAccessControls :: ObjectAccessControls
- oacKind :: Lens' ObjectAccessControls Text
- oacItems :: Lens' ObjectAccessControls [ObjectAccessControl]
- data BucketWebsite
- bucketWebsite :: BucketWebsite
- bwMainPageSuffix :: Lens' BucketWebsite (Maybe Text)
- bwNotFoundPage :: Lens' BucketWebsite (Maybe Text)
- data BucketAccessControl
- bucketAccessControl :: BucketAccessControl
- bacaEmail :: Lens' BucketAccessControl (Maybe Text)
- bacaEtag :: Lens' BucketAccessControl (Maybe Text)
- bacaKind :: Lens' BucketAccessControl Text
- bacaDomain :: Lens' BucketAccessControl (Maybe Text)
- bacaBucket :: Lens' BucketAccessControl (Maybe Text)
- bacaRole :: Lens' BucketAccessControl (Maybe Text)
- bacaSelfLink :: Lens' BucketAccessControl (Maybe Text)
- bacaId :: Lens' BucketAccessControl (Maybe Text)
- bacaProjectTeam :: Lens' BucketAccessControl (Maybe BucketAccessControlProjectTeam)
- bacaEntity :: Lens' BucketAccessControl (Maybe Text)
- bacaEntityId :: Lens' BucketAccessControl (Maybe Text)
- data BucketLifecycleRuleItemAction
- bucketLifecycleRuleItemAction :: BucketLifecycleRuleItemAction
- blriaStorageClass :: Lens' BucketLifecycleRuleItemAction (Maybe Text)
- blriaType :: Lens' BucketLifecycleRuleItemAction (Maybe Text)
- data ObjectsGetProjection
- data BucketsPatchPredefinedDefaultObjectACL
- data TestIAMPermissionsResponse
- testIAMPermissionsResponse :: TestIAMPermissionsResponse
- tiprKind :: Lens' TestIAMPermissionsResponse Text
- tiprPermissions :: Lens' TestIAMPermissionsResponse [Text]
- data Policy
- policy :: Policy
- pEtag :: Lens' Policy (Maybe ByteString)
- pResourceId :: Lens' Policy (Maybe Text)
- pKind :: Lens' Policy Text
- pBindings :: Lens' Policy [PolicyBindingsItem]
- data BucketIAMConfiguration
- bucketIAMConfiguration :: BucketIAMConfiguration
- bicBucketPolicyOnly :: Lens' BucketIAMConfiguration (Maybe BucketIAMConfigurationBucketPolicyOnly)
- data BucketsPatchPredefinedACL
- data ObjectAccessControl
- objectAccessControl :: ObjectAccessControl
- oacaEmail :: Lens' ObjectAccessControl (Maybe Text)
- oacaEtag :: Lens' ObjectAccessControl (Maybe Text)
- oacaKind :: Lens' ObjectAccessControl Text
- oacaDomain :: Lens' ObjectAccessControl (Maybe Text)
- oacaBucket :: Lens' ObjectAccessControl (Maybe Text)
- oacaRole :: Lens' ObjectAccessControl (Maybe Text)
- oacaSelfLink :: Lens' ObjectAccessControl (Maybe Text)
- oacaObject :: Lens' ObjectAccessControl (Maybe Text)
- oacaId :: Lens' ObjectAccessControl (Maybe Text)
- oacaProjectTeam :: Lens' ObjectAccessControl (Maybe ObjectAccessControlProjectTeam)
- oacaEntity :: Lens' ObjectAccessControl (Maybe Text)
- oacaGeneration :: Lens' ObjectAccessControl (Maybe Int64)
- oacaEntityId :: Lens' ObjectAccessControl (Maybe Text)
- data Notifications
- notifications :: Notifications
- notKind :: Lens' Notifications Text
- notItems :: Lens' Notifications [Notification]
- data NotificationCustom_attributes
- notificationCustom_attributes :: HashMap Text Text -> NotificationCustom_attributes
- ncAddtional :: Lens' NotificationCustom_attributes (HashMap Text Text)
- data ObjectsCopyProjection
- data BucketIAMConfigurationBucketPolicyOnly
- bucketIAMConfigurationBucketPolicyOnly :: BucketIAMConfigurationBucketPolicyOnly
- bicbpoLockedTime :: Lens' BucketIAMConfigurationBucketPolicyOnly (Maybe UTCTime)
- bicbpoEnabled :: Lens' BucketIAMConfigurationBucketPolicyOnly (Maybe Bool)
- data RewriteResponse
- rewriteResponse :: RewriteResponse
- rrKind :: Lens' RewriteResponse Text
- rrDone :: Lens' RewriteResponse (Maybe Bool)
- rrResource :: Lens' RewriteResponse (Maybe Object)
- rrObjectSize :: Lens' RewriteResponse (Maybe Int64)
- rrTotalBytesRewritten :: Lens' RewriteResponse (Maybe Int64)
- rrRewriteToken :: Lens' RewriteResponse (Maybe Text)
- data ObjectsRewriteProjection
Service Configuration
storageService :: ServiceConfig Source #
Default request referring to version v1
of the Cloud Storage JSON API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
cloudPlatformReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform.read-only"] Source #
View your data across Google Cloud Platform services
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
storageReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/devstorage.read_only"] Source #
View your data in Google Cloud Storage
storageReadWriteScope :: Proxy '["https://www.googleapis.com/auth/devstorage.read_write"] Source #
Manage your data in Google Cloud Storage
storageFullControlScope :: Proxy '["https://www.googleapis.com/auth/devstorage.full_control"] Source #
Manage your data and permissions in Google Cloud Storage
API Declaration
type StorageAPI = BucketsInsertResource :<|> (BucketsListResource :<|> (BucketsGetIAMPolicyResource :<|> (BucketsPatchResource :<|> (BucketsGetResource :<|> (BucketsSetIAMPolicyResource :<|> (BucketsLockRetentionPolicyResource :<|> (BucketsTestIAMPermissionsResource :<|> (BucketsDeleteResource :<|> (BucketsUpdateResource :<|> (ChannelsStopResource :<|> (DefaultObjectAccessControlsInsertResource :<|> (DefaultObjectAccessControlsListResource :<|> (DefaultObjectAccessControlsPatchResource :<|> (DefaultObjectAccessControlsGetResource :<|> (DefaultObjectAccessControlsDeleteResource :<|> (DefaultObjectAccessControlsUpdateResource :<|> (ObjectsInsertResource :<|> (ObjectsListResource :<|> (ObjectsCopyResource :<|> (ObjectsWatchAllResource :<|> (ObjectsGetIAMPolicyResource :<|> (ObjectsPatchResource :<|> (ObjectsGetResource :<|> (ObjectsSetIAMPolicyResource :<|> (ObjectsRewriteResource :<|> (ObjectsComposeResource :<|> (ObjectsTestIAMPermissionsResource :<|> (ObjectsDeleteResource :<|> (ObjectsUpdateResource :<|> (BucketAccessControlsInsertResource :<|> (BucketAccessControlsListResource :<|> (BucketAccessControlsPatchResource :<|> (BucketAccessControlsGetResource :<|> (BucketAccessControlsDeleteResource :<|> (BucketAccessControlsUpdateResource :<|> (ObjectAccessControlsInsertResource :<|> (ObjectAccessControlsListResource :<|> (ObjectAccessControlsPatchResource :<|> (ObjectAccessControlsGetResource :<|> (ObjectAccessControlsDeleteResource :<|> (ObjectAccessControlsUpdateResource :<|> (NotificationsInsertResource :<|> (NotificationsListResource :<|> (NotificationsGetResource :<|> (NotificationsDeleteResource :<|> ProjectsServiceAccountGetResource))))))))))))))))))))))))))))))))))))))))))))) Source #
Represents the entirety of the methods and resources available for the Cloud Storage JSON API service.
Resources
storage.bucketAccessControls.delete
storage.bucketAccessControls.get
storage.bucketAccessControls.insert
storage.bucketAccessControls.list
storage.bucketAccessControls.patch
storage.bucketAccessControls.update
storage.buckets.delete
storage.buckets.get
storage.buckets.getIamPolicy
storage.buckets.insert
storage.buckets.list
storage.buckets.lockRetentionPolicy
storage.buckets.patch
storage.buckets.setIamPolicy
storage.buckets.testIamPermissions
storage.buckets.update
storage.channels.stop
storage.defaultObjectAccessControls.delete
storage.defaultObjectAccessControls.get
storage.defaultObjectAccessControls.insert
storage.defaultObjectAccessControls.list
storage.defaultObjectAccessControls.patch
storage.defaultObjectAccessControls.update
storage.notifications.delete
storage.notifications.get
storage.notifications.insert
storage.notifications.list
storage.objectAccessControls.delete
storage.objectAccessControls.get
storage.objectAccessControls.insert
storage.objectAccessControls.list
storage.objectAccessControls.patch
storage.objectAccessControls.update
storage.objects.compose
storage.objects.copy
storage.objects.delete
storage.objects.get
storage.objects.getIamPolicy
storage.objects.insert
storage.objects.list
storage.objects.patch
storage.objects.rewrite
storage.objects.setIamPolicy
storage.objects.testIamPermissions
storage.objects.update
storage.objects.watchAll
storage.projects.serviceAccount.get
Types
ObjectOwner
data ObjectOwner Source #
The owner of the object. This will always be the uploader of the object.
See: objectOwner
smart constructor.
Instances
objectOwner :: ObjectOwner Source #
Creates a value of ObjectOwner
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ooEntityId :: Lens' ObjectOwner (Maybe Text) Source #
The ID for the entity.
ObjectsInsertProjection
data ObjectsInsertProjection Source #
Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
Instances
BucketVersioning
data BucketVersioning Source #
The bucket's versioning configuration.
See: bucketVersioning
smart constructor.
Instances
bucketVersioning :: BucketVersioning Source #
Creates a value of BucketVersioning
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bvEnabled :: Lens' BucketVersioning (Maybe Bool) Source #
While set to true, versioning is fully enabled for this bucket.
BucketsUpdatePredefinedDefaultObjectACL
data BucketsUpdatePredefinedDefaultObjectACL Source #
Apply a predefined set of default object access controls to this bucket.
AuthenticatedRead |
|
BucketOwnerFullControl |
|
BucketOwnerRead |
|
Private |
|
ProjectPrivate |
|
PublicRead |
|
Instances
ObjectsComposeDestinationPredefinedACL
data ObjectsComposeDestinationPredefinedACL Source #
Apply a predefined set of access controls to the destination object.
OCDPAAuthenticatedRead |
|
OCDPABucketOwnerFullControl |
|
OCDPABucketOwnerRead |
|
OCDPAPrivate |
|
OCDPAProjectPrivate |
|
OCDPAPublicRead |
|
Instances
BucketRetentionPolicy
data BucketRetentionPolicy Source #
The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
See: bucketRetentionPolicy
smart constructor.
Instances
bucketRetentionPolicy :: BucketRetentionPolicy Source #
Creates a value of BucketRetentionPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
brpRetentionPeriod :: Lens' BucketRetentionPolicy (Maybe Int64) Source #
The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
brpEffectiveTime :: Lens' BucketRetentionPolicy (Maybe UTCTime) Source #
Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
brpIsLocked :: Lens' BucketRetentionPolicy (Maybe Bool) Source #
Once locked, an object retention policy cannot be modified.
BucketsInsertPredefinedACL
data BucketsInsertPredefinedACL Source #
Apply a predefined set of access controls to this bucket.
BIPAAuthenticatedRead |
|
BIPAPrivate |
|
BIPAProjectPrivate |
|
BIPAPublicRead |
|
BIPAPublicReadWrite |
|
Instances
Buckets
A list of buckets.
See: buckets
smart constructor.
Instances
Eq Buckets Source # | |
Data Buckets Source # | |
Defined in Network.Google.Storage.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Buckets -> c Buckets # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Buckets # toConstr :: Buckets -> Constr # dataTypeOf :: Buckets -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Buckets) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Buckets) # gmapT :: (forall b. Data b => b -> b) -> Buckets -> Buckets # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Buckets -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Buckets -> r # gmapQ :: (forall d. Data d => d -> u) -> Buckets -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Buckets -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Buckets -> m Buckets # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Buckets -> m Buckets # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Buckets -> m Buckets # | |
Show Buckets Source # | |
Generic Buckets Source # | |
ToJSON Buckets Source # | |
Defined in Network.Google.Storage.Types.Product | |
FromJSON Buckets Source # | |
type Rep Buckets Source # | |
Defined in Network.Google.Storage.Types.Product type Rep Buckets = D1 (MetaData "Buckets" "Network.Google.Storage.Types.Product" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "Buckets'" PrefixI True) (S1 (MetaSel (Just "_bNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_bKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_bItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Bucket]))))) |
Creates a value of Buckets
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bNextPageToken :: Lens' Buckets (Maybe Text) Source #
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
bKind :: Lens' Buckets Text Source #
The kind of item this is. For lists of buckets, this is always storage#buckets.
BucketBilling
data BucketBilling Source #
The bucket's billing configuration.
See: bucketBilling
smart constructor.
Instances
bucketBilling :: BucketBilling Source #
Creates a value of BucketBilling
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bbRequesterPays :: Lens' BucketBilling (Maybe Bool) Source #
When set to true, Requester Pays is enabled for this bucket.
Notification
data Notification Source #
A subscription to receive Google PubSub notifications.
See: notification
smart constructor.
Instances
notification :: Notification Source #
Creates a value of Notification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
nEtag :: Lens' Notification (Maybe Text) Source #
HTTP 1.1 Entity tag for this subscription notification.
nObjectNamePrefix :: Lens' Notification (Maybe Text) Source #
If present, only apply this notification configuration to object names that begin with this prefix.
nPayloadFormat :: Lens' Notification Text Source #
The desired content of the Payload.
nEventTypes :: Lens' Notification [Text] Source #
If present, only send notifications about listed event types. If empty, sent notifications for all event types.
nKind :: Lens' Notification Text Source #
The kind of item this is. For notifications, this is always storage#notification.
nTopic :: Lens' Notification (Maybe Text) Source #
The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'
nCustomAttributes :: Lens' Notification (Maybe NotificationCustom_attributes) Source #
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
BucketLogging
data BucketLogging Source #
The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
See: bucketLogging
smart constructor.
Instances
bucketLogging :: BucketLogging Source #
Creates a value of BucketLogging
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
blLogBucket :: Lens' BucketLogging (Maybe Text) Source #
The destination bucket where the current bucket's logs should be placed.
blLogObjectPrefix :: Lens' BucketLogging (Maybe Text) Source #
A prefix for log object names.
ObjectMetadata
data ObjectMetadata Source #
User-provided metadata, in key/value pairs.
See: objectMetadata
smart constructor.
Instances
Creates a value of ObjectMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
omAddtional :: Lens' ObjectMetadata (HashMap Text Text) Source #
An individual metadata entry.
ObjectsPatchPredefinedACL
data ObjectsPatchPredefinedACL Source #
Apply a predefined set of access controls to this object.
OPPAAuthenticatedRead |
|
OPPABucketOwnerFullControl |
|
OPPABucketOwnerRead |
|
OPPAPrivate |
|
OPPAProjectPrivate |
|
OPPAPublicRead |
|
Instances
BucketLifecycleRuleItemCondition
data BucketLifecycleRuleItemCondition Source #
The condition(s) under which the action will be taken.
See: bucketLifecycleRuleItemCondition
smart constructor.
Instances
bucketLifecycleRuleItemCondition :: BucketLifecycleRuleItemCondition Source #
Creates a value of BucketLifecycleRuleItemCondition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
blricAge :: Lens' BucketLifecycleRuleItemCondition (Maybe Int32) Source #
Age of an object (in days). This condition is satisfied when an object reaches the specified age.
blricIsLive :: Lens' BucketLifecycleRuleItemCondition (Maybe Bool) Source #
Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
blricNumNewerVersions :: Lens' BucketLifecycleRuleItemCondition (Maybe Int32) Source #
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.
blricMatchesStorageClass :: Lens' BucketLifecycleRuleItemCondition [Text] Source #
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.
blricMatchesPattern :: Lens' BucketLifecycleRuleItemCondition (Maybe Text) Source #
A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the "Early Access" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
blricCreatedBefore :: Lens' BucketLifecycleRuleItemCondition (Maybe Day) Source #
A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC.
ObjectsRewriteDestinationPredefinedACL
data ObjectsRewriteDestinationPredefinedACL Source #
Apply a predefined set of access controls to the destination object.
ORDPAAuthenticatedRead |
|
ORDPABucketOwnerFullControl |
|
ORDPABucketOwnerRead |
|
ORDPAPrivate |
|
ORDPAProjectPrivate |
|
ORDPAPublicRead |
|
Instances
BucketLifecycle
data BucketLifecycle Source #
The bucket's lifecycle configuration. See lifecycle management for more information.
See: bucketLifecycle
smart constructor.
Instances
bucketLifecycle :: BucketLifecycle Source #
Creates a value of BucketLifecycle
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
blRule :: Lens' BucketLifecycle [BucketLifecycleRuleItem] Source #
A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
BucketLabels
data BucketLabels Source #
User-provided labels, in key/value pairs.
See: bucketLabels
smart constructor.
Instances
Creates a value of BucketLabels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
blAddtional :: Lens' BucketLabels (HashMap Text Text) Source #
An individual label entry.
Channel
An notification channel used to watch for resource changes.
See: channel
smart constructor.
Instances
Creates a value of Channel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cResourceURI :: Lens' Channel (Maybe Text) Source #
A version-specific identifier for the watched resource.
cResourceId :: Lens' Channel (Maybe Text) Source #
An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
cKind :: Lens' Channel Text Source #
Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
cExpiration :: Lens' Channel (Maybe Int64) Source #
Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
cToken :: Lens' Channel (Maybe Text) Source #
An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
cAddress :: Lens' Channel (Maybe Text) Source #
The address where notifications are delivered for this channel.
cPayload :: Lens' Channel (Maybe Bool) Source #
A Boolean value to indicate whether payload is wanted. Optional.
cParams :: Lens' Channel (Maybe ChannelParams) Source #
Additional parameters controlling delivery channel behavior. Optional.
cId :: Lens' Channel (Maybe Text) Source #
A UUID or similar unique string that identifies this channel.
BucketLifecycleRuleItem
data BucketLifecycleRuleItem Source #
Instances
bucketLifecycleRuleItem :: BucketLifecycleRuleItem Source #
Creates a value of BucketLifecycleRuleItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
blriAction :: Lens' BucketLifecycleRuleItem (Maybe BucketLifecycleRuleItemAction) Source #
The action to take.
blriCondition :: Lens' BucketLifecycleRuleItem (Maybe BucketLifecycleRuleItemCondition) Source #
The condition(s) under which the action will be taken.
ObjectsWatchAllProjection
data ObjectsWatchAllProjection Source #
Set of properties to return. Defaults to noAcl.
Instances
BucketCORSItem
data BucketCORSItem Source #
Instances
bucketCORSItem :: BucketCORSItem Source #
Creates a value of BucketCORSItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bciMaxAgeSeconds :: Lens' BucketCORSItem (Maybe Int32) Source #
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
bciOrigin :: Lens' BucketCORSItem [Text] Source #
The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
bciResponseHeader :: Lens' BucketCORSItem [Text] Source #
The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
bciMethod :: Lens' BucketCORSItem [Text] Source #
The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
ObjectAccessControlProjectTeam
data ObjectAccessControlProjectTeam Source #
The project team associated with the entity, if any.
See: objectAccessControlProjectTeam
smart constructor.
Instances
objectAccessControlProjectTeam :: ObjectAccessControlProjectTeam Source #
Creates a value of ObjectAccessControlProjectTeam
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oacptProjectNumber :: Lens' ObjectAccessControlProjectTeam (Maybe Text) Source #
The project number.
ObjectCustomerEncryption
data ObjectCustomerEncryption Source #
Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
See: objectCustomerEncryption
smart constructor.
Instances
objectCustomerEncryption :: ObjectCustomerEncryption Source #
Creates a value of ObjectCustomerEncryption
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oceKeySha256 :: Lens' ObjectCustomerEncryption (Maybe Text) Source #
SHA256 hash value of the encryption key.
oceEncryptionAlgorithm :: Lens' ObjectCustomerEncryption (Maybe Text) Source #
The encryption algorithm.
Bucket
A bucket.
See: bucket
smart constructor.
Instances
Creates a value of Bucket
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bucLocation :: Lens' Bucket (Maybe Text) Source #
The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the developer's guide for the authoritative list.
bucIAMConfiguration :: Lens' Bucket (Maybe BucketIAMConfiguration) Source #
The bucket's IAM configuration.
bucKind :: Lens' Bucket Text Source #
The kind of item this is. For buckets, this is always storage#bucket.
bucWebsite :: Lens' Bucket (Maybe BucketWebsite) Source #
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.
bucProjectNumber :: Lens' Bucket (Maybe Word64) Source #
The project number of the project the bucket belongs to.
bucLifecycle :: Lens' Bucket (Maybe BucketLifecycle) Source #
The bucket's lifecycle configuration. See lifecycle management for more information.
bucOwner :: Lens' Bucket (Maybe BucketOwner) Source #
The owner of the bucket. This is always the project team's owner group.
bucRetentionPolicy :: Lens' Bucket (Maybe BucketRetentionPolicy) Source #
The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
bucEncryption :: Lens' Bucket (Maybe BucketEncryption) Source #
Encryption configuration for a bucket.
bucStorageClass :: Lens' Bucket (Maybe Text) Source #
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.
bucVersioning :: Lens' Bucket (Maybe BucketVersioning) Source #
The bucket's versioning configuration.
bucCORS :: Lens' Bucket [BucketCORSItem] Source #
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
bucTimeCreated :: Lens' Bucket (Maybe UTCTime) Source #
The creation time of the bucket in RFC 3339 format.
bucId :: Lens' Bucket (Maybe Text) Source #
The ID of the bucket. For buckets, the id and name properties are the same.
bucUpdated :: Lens' Bucket (Maybe UTCTime) Source #
The modification time of the bucket in RFC 3339 format.
bucDefaultObjectACL :: Lens' Bucket [ObjectAccessControl] Source #
Default access controls to apply to new objects when no ACL is provided.
bucBilling :: Lens' Bucket (Maybe BucketBilling) Source #
The bucket's billing configuration.
bucLogging :: Lens' Bucket (Maybe BucketLogging) Source #
The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
bucDefaultEventBasedHold :: Lens' Bucket (Maybe Bool) Source #
The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold's release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
BucketsGetProjection
data BucketsGetProjection Source #
Set of properties to return. Defaults to noAcl.
Instances
Objects
A list of objects.
See: objects
smart constructor.
Instances
Eq Objects Source # | |
Data Objects Source # | |
Defined in Network.Google.Storage.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Objects -> c Objects # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Objects # toConstr :: Objects -> Constr # dataTypeOf :: Objects -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Objects) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Objects) # gmapT :: (forall b. Data b => b -> b) -> Objects -> Objects # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Objects -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Objects -> r # gmapQ :: (forall d. Data d => d -> u) -> Objects -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Objects -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Objects -> m Objects # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Objects -> m Objects # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Objects -> m Objects # | |
Show Objects Source # | |
Generic Objects Source # | |
ToJSON Objects Source # | |
Defined in Network.Google.Storage.Types.Product | |
FromJSON Objects Source # | |
type Rep Objects Source # | |
Defined in Network.Google.Storage.Types.Product type Rep Objects = D1 (MetaData "Objects" "Network.Google.Storage.Types.Product" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "Objects'" PrefixI True) ((S1 (MetaSel (Just "_oNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_oKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_oItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Object])) :*: S1 (MetaSel (Just "_oPrefixes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))) |
Creates a value of Objects
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oNextPageToken :: Lens' Objects (Maybe Text) Source #
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
oKind :: Lens' Objects Text Source #
The kind of item this is. For lists of objects, this is always storage#objects.
oPrefixes :: Lens' Objects [Text] Source #
The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.
BucketsPatchProjection
data BucketsPatchProjection Source #
Set of properties to return. Defaults to full.
Instances
BucketAccessControls
data BucketAccessControls Source #
An access-control list.
See: bucketAccessControls
smart constructor.
Instances
bucketAccessControls :: BucketAccessControls Source #
Creates a value of BucketAccessControls
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bacKind :: Lens' BucketAccessControls Text Source #
The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.
bacItems :: Lens' BucketAccessControls [BucketAccessControl] Source #
The list of items.
BucketEncryption
data BucketEncryption Source #
Encryption configuration for a bucket.
See: bucketEncryption
smart constructor.
Instances
bucketEncryption :: BucketEncryption Source #
Creates a value of BucketEncryption
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
beDefaultKmsKeyName :: Lens' BucketEncryption (Maybe Text) Source #
A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
BucketsUpdateProjection
data BucketsUpdateProjection Source #
Set of properties to return. Defaults to full.
Instances
ComposeRequest
data ComposeRequest Source #
A Compose request.
See: composeRequest
smart constructor.
Instances
composeRequest :: ComposeRequest Source #
Creates a value of ComposeRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crDestination :: Lens' ComposeRequest (Maybe Object) Source #
Properties of the resulting object.
crSourceObjects :: Lens' ComposeRequest [ComposeRequestSourceObjectsItem] Source #
The list of source objects that will be concatenated into a single object.
ObjectsInsertPredefinedACL
data ObjectsInsertPredefinedACL Source #
Apply a predefined set of access controls to this object.
OIPAAuthenticatedRead |
|
OIPABucketOwnerFullControl |
|
OIPABucketOwnerRead |
|
OIPAPrivate |
|
OIPAProjectPrivate |
|
OIPAPublicRead |
|
Instances
ObjectsListProjection
data ObjectsListProjection Source #
Set of properties to return. Defaults to noAcl.
Instances
BucketsInsertPredefinedDefaultObjectACL
data BucketsInsertPredefinedDefaultObjectACL Source #
Apply a predefined set of default object access controls to this bucket.
BIPDOAAuthenticatedRead |
|
BIPDOABucketOwnerFullControl |
|
BIPDOABucketOwnerRead |
|
BIPDOAPrivate |
|
BIPDOAProjectPrivate |
|
BIPDOAPublicRead |
|
Instances
BucketsUpdatePredefinedACL
data BucketsUpdatePredefinedACL Source #
Apply a predefined set of access controls to this bucket.
BUPAAuthenticatedRead |
|
BUPAPrivate |
|
BUPAProjectPrivate |
|
BUPAPublicRead |
|
BUPAPublicReadWrite |
|
Instances
ServiceAccount
data ServiceAccount Source #
A subscription to receive Google PubSub notifications.
See: serviceAccount
smart constructor.
Instances
serviceAccount :: ServiceAccount Source #
Creates a value of ServiceAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
saKind :: Lens' ServiceAccount Text Source #
The kind of item this is. For notifications, this is always storage#notification.
saEmailAddress :: Lens' ServiceAccount (Maybe Text) Source #
The ID of the notification.
ObjectsCopyDestinationPredefinedACL
data ObjectsCopyDestinationPredefinedACL Source #
Apply a predefined set of access controls to the destination object.
OCDPACLAuthenticatedRead |
|
OCDPACLBucketOwnerFullControl |
|
OCDPACLBucketOwnerRead |
|
OCDPACLPrivate |
|
OCDPACLProjectPrivate |
|
OCDPACLPublicRead |
|
Instances
ObjectsUpdatePredefinedACL
data ObjectsUpdatePredefinedACL Source #
Apply a predefined set of access controls to this object.
OUPAAuthenticatedRead |
|
OUPABucketOwnerFullControl |
|
OUPABucketOwnerRead |
|
OUPAPrivate |
|
OUPAProjectPrivate |
|
OUPAPublicRead |
|
Instances
BucketOwner
data BucketOwner Source #
The owner of the bucket. This is always the project team's owner group.
See: bucketOwner
smart constructor.
Instances
bucketOwner :: BucketOwner Source #
Creates a value of BucketOwner
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
boEntityId :: Lens' BucketOwner (Maybe Text) Source #
The ID for the entity.
ComposeRequestSourceObjectsItem
data ComposeRequestSourceObjectsItem Source #
Instances
composeRequestSourceObjectsItem :: ComposeRequestSourceObjectsItem Source #
Creates a value of ComposeRequestSourceObjectsItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsoiName :: Lens' ComposeRequestSourceObjectsItem (Maybe Text) Source #
The source object's name. All source objects must reside in the same bucket.
crsoiObjectPreconditions :: Lens' ComposeRequestSourceObjectsItem (Maybe ComposeRequestSourceObjectsItemObjectPreconditions) Source #
Conditions that must be met for this operation to execute.
crsoiGeneration :: Lens' ComposeRequestSourceObjectsItem (Maybe Int64) Source #
The generation of this object to use as the source.
BucketsInsertProjection
data BucketsInsertProjection Source #
Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
Instances
ChannelParams
data ChannelParams Source #
Additional parameters controlling delivery channel behavior. Optional.
See: channelParams
smart constructor.
Instances
Creates a value of ChannelParams
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpAddtional :: Lens' ChannelParams (HashMap Text Text) Source #
Declares a new parameter by name.
PolicyBindingsItem
data PolicyBindingsItem Source #
Instances
policyBindingsItem :: PolicyBindingsItem Source #
Creates a value of PolicyBindingsItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pbiMembers :: Lens' PolicyBindingsItem [Text] Source #
A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows: - allUsers — A special identifier that represents anyone on the internet; with or without a Google account. - allAuthenticatedUsers — A special identifier that represents anyone who is authenticated with a Google account or a service account. - user:emailid — An email address that represents a specific account. For example, user:alice'gmail.com or user:joe'example.com. - serviceAccount:emailid — An email address that represents a service account. For example, serviceAccount:my-other-app'appspot.gserviceaccount.com . - group:emailid — An email address that represents a Google group. For example, group:admins'example.com. - domain:domain — A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com. - projectOwner:projectid — Owners of the given project. For example, projectOwner:my-example-project - projectEditor:projectid — Editors of the given project. For example, projectEditor:my-example-project - projectViewer:projectid — Viewers of the given project. For example, projectViewer:my-example-project
pbiRole :: Lens' PolicyBindingsItem (Maybe Text) Source #
The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole. The new IAM roles are: - roles/storage.admin — Full control of Google Cloud Storage resources. - roles/storage.objectViewer — Read-Only access to Google Cloud Storage objects. - roles/storage.objectCreator — Access to create objects in Google Cloud Storage. - roles/storage.objectAdmin — Full control of Google Cloud Storage objects. The legacy IAM roles are: - roles/storage.legacyObjectReader — Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role. - roles/storage.legacyObjectOwner — Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role. - roles/storage.legacyBucketReader — Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role. - roles/storage.legacyBucketWriter — Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role. - roles/storage.legacyBucketOwner — Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
BucketsListProjection
data BucketsListProjection Source #
Set of properties to return. Defaults to noAcl.
Instances
ObjectsUpdateProjection
data ObjectsUpdateProjection Source #
Set of properties to return. Defaults to full.
Instances
Object
An object.
See: object'
smart constructor.
Instances
Creates a value of Object
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
objTemporaryHold
objEtag
objTimeStorageClassUpdated
objRetentionExpirationTime
objSize
objKind
objTimeDeleted
objCrc32c
objCustomerEncryption
objBucket
objOwner
objSelfLink
objMediaLink
objComponentCount
objName
objStorageClass
objContentEncoding
objEventBasedHold
objMetadata
objTimeCreated
objId
objKmsKeyName
objUpdated
objContentLanguage
objCacheControl
objMetageneration
objGeneration
objACL
objContentDisPosition
objMD5Hash
objContentType
objTemporaryHold :: Lens' Object (Maybe Bool) Source #
Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.
objTimeStorageClassUpdated :: Lens' Object (Maybe UTCTime) Source #
The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.
objRetentionExpirationTime :: Lens' Object (Maybe UTCTime) Source #
A server-determined value that specifies the earliest time that the object's retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
objKind :: Lens' Object Text Source #
The kind of item this is. For objects, this is always storage#object.
objTimeDeleted :: Lens' Object (Maybe UTCTime) Source #
The deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
objCrc32c :: Lens' Object (Maybe Text) Source #
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices.
objCustomerEncryption :: Lens' Object (Maybe ObjectCustomerEncryption) Source #
Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
objOwner :: Lens' Object (Maybe ObjectOwner) Source #
The owner of the object. This will always be the uploader of the object.
objComponentCount :: Lens' Object (Maybe Int32) Source #
Number of underlying components that make up this object. Components are accumulated by compose operations.
objName :: Lens' Object (Maybe Text) Source #
The name of the object. Required if not specified by URL parameter.
objEventBasedHold :: Lens' Object (Maybe Bool) Source #
Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false.
objMetadata :: Lens' Object (Maybe ObjectMetadata) Source #
User-provided metadata, in key/value pairs.
objTimeCreated :: Lens' Object (Maybe UTCTime) Source #
The creation time of the object in RFC 3339 format.
objId :: Lens' Object (Maybe Text) Source #
The ID of the object, including the bucket name, object name, and generation number.
objKmsKeyName :: Lens' Object (Maybe Text) Source #
Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
objUpdated :: Lens' Object (Maybe UTCTime) Source #
The modification time of the object metadata in RFC 3339 format.
objCacheControl :: Lens' Object (Maybe Text) Source #
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.
objMetageneration :: Lens' Object (Maybe Int64) Source #
The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.
objGeneration :: Lens' Object (Maybe Int64) Source #
The content generation of this object. Used for object versioning.
objMD5Hash :: Lens' Object (Maybe Text) Source #
MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices.
objContentType :: Lens' Object (Maybe Text) Source #
Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.
ObjectsPatchProjection
data ObjectsPatchProjection Source #
Set of properties to return. Defaults to full.
Instances
ComposeRequestSourceObjectsItemObjectPreconditions
data ComposeRequestSourceObjectsItemObjectPreconditions Source #
Conditions that must be met for this operation to execute.
See: composeRequestSourceObjectsItemObjectPreconditions
smart constructor.
Instances
composeRequestSourceObjectsItemObjectPreconditions :: ComposeRequestSourceObjectsItemObjectPreconditions Source #
Creates a value of ComposeRequestSourceObjectsItemObjectPreconditions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsoiopIfGenerationMatch :: Lens' ComposeRequestSourceObjectsItemObjectPreconditions (Maybe Int64) Source #
Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be the same value or the call will fail.
BucketAccessControlProjectTeam
data BucketAccessControlProjectTeam Source #
The project team associated with the entity, if any.
See: bucketAccessControlProjectTeam
smart constructor.
Instances
bucketAccessControlProjectTeam :: BucketAccessControlProjectTeam Source #
Creates a value of BucketAccessControlProjectTeam
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bacptProjectNumber :: Lens' BucketAccessControlProjectTeam (Maybe Text) Source #
The project number.
ObjectAccessControls
data ObjectAccessControls Source #
An access-control list.
See: objectAccessControls
smart constructor.
Instances
objectAccessControls :: ObjectAccessControls Source #
Creates a value of ObjectAccessControls
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oacKind :: Lens' ObjectAccessControls Text Source #
The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
oacItems :: Lens' ObjectAccessControls [ObjectAccessControl] Source #
The list of items.
BucketWebsite
data BucketWebsite Source #
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.
See: bucketWebsite
smart constructor.
Instances
bucketWebsite :: BucketWebsite Source #
Creates a value of BucketWebsite
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bwMainPageSuffix :: Lens' BucketWebsite (Maybe Text) Source #
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.
bwNotFoundPage :: Lens' BucketWebsite (Maybe Text) Source #
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.
BucketAccessControl
data BucketAccessControl Source #
An access-control entry.
See: bucketAccessControl
smart constructor.
Instances
bucketAccessControl :: BucketAccessControl Source #
Creates a value of BucketAccessControl
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bacaEmail :: Lens' BucketAccessControl (Maybe Text) Source #
The email address associated with the entity, if any.
bacaEtag :: Lens' BucketAccessControl (Maybe Text) Source #
HTTP 1.1 Entity tag for the access-control entry.
bacaKind :: Lens' BucketAccessControl Text Source #
The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
bacaDomain :: Lens' BucketAccessControl (Maybe Text) Source #
The domain associated with the entity, if any.
bacaBucket :: Lens' BucketAccessControl (Maybe Text) Source #
The name of the bucket.
bacaSelfLink :: Lens' BucketAccessControl (Maybe Text) Source #
The link to this access-control entry.
bacaProjectTeam :: Lens' BucketAccessControl (Maybe BucketAccessControlProjectTeam) Source #
The project team associated with the entity, if any.
bacaEntity :: Lens' BucketAccessControl (Maybe Text) Source #
The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz'example.com would be user-liz'example.com. - The group example'googlegroups.com would be group-example'googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
bacaEntityId :: Lens' BucketAccessControl (Maybe Text) Source #
The ID for the entity, if any.
BucketLifecycleRuleItemAction
data BucketLifecycleRuleItemAction Source #
The action to take.
See: bucketLifecycleRuleItemAction
smart constructor.
Instances
bucketLifecycleRuleItemAction :: BucketLifecycleRuleItemAction Source #
Creates a value of BucketLifecycleRuleItemAction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
blriaStorageClass :: Lens' BucketLifecycleRuleItemAction (Maybe Text) Source #
Target storage class. Required iff the type of the action is SetStorageClass.
blriaType :: Lens' BucketLifecycleRuleItemAction (Maybe Text) Source #
Type of the action. Currently, only Delete and SetStorageClass are supported.
ObjectsGetProjection
data ObjectsGetProjection Source #
Set of properties to return. Defaults to noAcl.
Instances
BucketsPatchPredefinedDefaultObjectACL
data BucketsPatchPredefinedDefaultObjectACL Source #
Apply a predefined set of default object access controls to this bucket.
BPPDOAAuthenticatedRead |
|
BPPDOABucketOwnerFullControl |
|
BPPDOABucketOwnerRead |
|
BPPDOAPrivate |
|
BPPDOAProjectPrivate |
|
BPPDOAPublicRead |
|
Instances
TestIAMPermissionsResponse
data TestIAMPermissionsResponse Source #
A storage.(buckets|objects).testIamPermissions response.
See: testIAMPermissionsResponse
smart constructor.
Instances
testIAMPermissionsResponse :: TestIAMPermissionsResponse Source #
Creates a value of TestIAMPermissionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tiprPermissions :: Lens' TestIAMPermissionsResponse [Text] Source #
The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or objects. The supported permissions are as follows: - storage.buckets.delete — Delete bucket. - storage.buckets.get — Read bucket metadata. - storage.buckets.getIamPolicy — Read bucket IAM policy. - storage.buckets.create — Create bucket. - storage.buckets.list — List buckets. - storage.buckets.setIamPolicy — Update bucket IAM policy. - storage.buckets.update — Update bucket metadata. - storage.objects.delete — Delete object. - storage.objects.get — Read object data and metadata. - storage.objects.getIamPolicy — Read object IAM policy. - storage.objects.create — Create object. - storage.objects.list — List objects. - storage.objects.setIamPolicy — Update object IAM policy. - storage.objects.update — Update object metadata.
Policy
A bucket/object IAM policy.
See: policy
smart constructor.
Instances
Eq Policy Source # | |
Data Policy Source # | |
Defined in Network.Google.Storage.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Policy -> c Policy # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Policy # toConstr :: Policy -> Constr # dataTypeOf :: Policy -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Policy) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Policy) # gmapT :: (forall b. Data b => b -> b) -> Policy -> Policy # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Policy -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Policy -> r # gmapQ :: (forall d. Data d => d -> u) -> Policy -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Policy -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Policy -> m Policy # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Policy -> m Policy # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Policy -> m Policy # | |
Show Policy Source # | |
Generic Policy Source # | |
ToJSON Policy Source # | |
Defined in Network.Google.Storage.Types.Product | |
FromJSON Policy Source # | |
type Rep Policy Source # | |
Defined in Network.Google.Storage.Types.Product type Rep Policy = D1 (MetaData "Policy" "Network.Google.Storage.Types.Product" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "Policy'" PrefixI True) ((S1 (MetaSel (Just "_pEtag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: S1 (MetaSel (Just "_pResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pBindings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PolicyBindingsItem]))))) |
Creates a value of Policy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pResourceId :: Lens' Policy (Maybe Text) Source #
The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, and projects/_/buckets/bucket/objects/object for objects. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
pKind :: Lens' Policy Text Source #
The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
pBindings :: Lens' Policy [PolicyBindingsItem] Source #
An association between a role, which comes with a set of permissions, and members who may assume that role.
BucketIAMConfiguration
data BucketIAMConfiguration Source #
The bucket's IAM configuration.
See: bucketIAMConfiguration
smart constructor.
Instances
bucketIAMConfiguration :: BucketIAMConfiguration Source #
Creates a value of BucketIAMConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bicBucketPolicyOnly :: Lens' BucketIAMConfiguration (Maybe BucketIAMConfigurationBucketPolicyOnly) Source #
BucketsPatchPredefinedACL
data BucketsPatchPredefinedACL Source #
Apply a predefined set of access controls to this bucket.
BPPAAuthenticatedRead |
|
BPPAPrivate |
|
BPPAProjectPrivate |
|
BPPAPublicRead |
|
BPPAPublicReadWrite |
|
Instances
ObjectAccessControl
data ObjectAccessControl Source #
An access-control entry.
See: objectAccessControl
smart constructor.
Instances
objectAccessControl :: ObjectAccessControl Source #
Creates a value of ObjectAccessControl
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oacaEmail :: Lens' ObjectAccessControl (Maybe Text) Source #
The email address associated with the entity, if any.
oacaEtag :: Lens' ObjectAccessControl (Maybe Text) Source #
HTTP 1.1 Entity tag for the access-control entry.
oacaKind :: Lens' ObjectAccessControl Text Source #
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
oacaDomain :: Lens' ObjectAccessControl (Maybe Text) Source #
The domain associated with the entity, if any.
oacaBucket :: Lens' ObjectAccessControl (Maybe Text) Source #
The name of the bucket.
oacaSelfLink :: Lens' ObjectAccessControl (Maybe Text) Source #
The link to this access-control entry.
oacaObject :: Lens' ObjectAccessControl (Maybe Text) Source #
The name of the object, if applied to an object.
oacaProjectTeam :: Lens' ObjectAccessControl (Maybe ObjectAccessControlProjectTeam) Source #
The project team associated with the entity, if any.
oacaEntity :: Lens' ObjectAccessControl (Maybe Text) Source #
The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz'example.com would be user-liz'example.com. - The group example'googlegroups.com would be group-example'googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
oacaGeneration :: Lens' ObjectAccessControl (Maybe Int64) Source #
The content generation of the object, if applied to an object.
oacaEntityId :: Lens' ObjectAccessControl (Maybe Text) Source #
The ID for the entity, if any.
Notifications
data Notifications Source #
A list of notification subscriptions.
See: notifications
smart constructor.
Instances
notifications :: Notifications Source #
Creates a value of Notifications
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
notKind :: Lens' Notifications Text Source #
The kind of item this is. For lists of notifications, this is always storage#notifications.
notItems :: Lens' Notifications [Notification] Source #
The list of items.
NotificationCustom_attributes
data NotificationCustom_attributes Source #
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
See: notificationCustom_attributes
smart constructor.
Instances
notificationCustom_attributes Source #
Creates a value of NotificationCustom_attributes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ObjectsCopyProjection
data ObjectsCopyProjection Source #
Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
Instances
BucketIAMConfigurationBucketPolicyOnly
data BucketIAMConfigurationBucketPolicyOnly Source #
Instances
bucketIAMConfigurationBucketPolicyOnly :: BucketIAMConfigurationBucketPolicyOnly Source #
Creates a value of BucketIAMConfigurationBucketPolicyOnly
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bicbpoLockedTime :: Lens' BucketIAMConfigurationBucketPolicyOnly (Maybe UTCTime) Source #
The deadline time for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
bicbpoEnabled :: Lens' BucketIAMConfigurationBucketPolicyOnly (Maybe Bool) Source #
If set, access checks only use bucket-level IAM policies or above.
RewriteResponse
data RewriteResponse Source #
A rewrite response.
See: rewriteResponse
smart constructor.
Instances
rewriteResponse :: RewriteResponse Source #
Creates a value of RewriteResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rrDone :: Lens' RewriteResponse (Maybe Bool) Source #
true if the copy is finished; otherwise, false if the copy is in progress. This property is always present in the response.
rrResource :: Lens' RewriteResponse (Maybe Object) Source #
A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
rrObjectSize :: Lens' RewriteResponse (Maybe Int64) Source #
The total size of the object being copied in bytes. This property is always present in the response.
rrTotalBytesRewritten :: Lens' RewriteResponse (Maybe Int64) Source #
The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response.
rrRewriteToken :: Lens' RewriteResponse (Maybe Text) Source #
A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
ObjectsRewriteProjection
data ObjectsRewriteProjection Source #
Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.