gogol-storage-0.0.1: Google Cloud Storage JSON SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Storage.Types

Contents

Description

 

Synopsis

Service Configuration

storageService :: Service 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 :: OAuthScope Source

View your data across Google Cloud Platform services

cloudPlatformScope :: OAuthScope Source

View and manage your data across Google Cloud Platform services

devstorageReadOnlyScope :: OAuthScope Source

View your data in Google Cloud Storage

devstorageReadWriteScope :: OAuthScope Source

Manage your data in Google Cloud Storage

devstorageFullControlScope :: OAuthScope Source

Manage your data and permissions in Google Cloud Storage

ObjectOwner

data ObjectOwner Source

The owner of the object. This will always be the uploader of the object.

See: objectOwner smart constructor.

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:

ooEntity :: Lens' ObjectOwner (Maybe Text) Source

The entity, in the form user-userId.

ooEntityId :: Lens' ObjectOwner (Maybe Text) Source

The ID for the entity.

ObjectsInsertProjection

BucketVersioning

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.

Constructors

AuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

BucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

BucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

Private

private Object owner gets OWNER access.

ProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

PublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

ObjectsComposeDestinationPredefinedACL

data ObjectsComposeDestinationPredefinedACL Source

Apply a predefined set of access controls to the destination object.

Constructors

OCDPAAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

OCDPABucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

OCDPABucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

OCDPAPrivate

private Object owner gets OWNER access.

OCDPAProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

OCDPAPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

BucketsInsertPredefinedACL

data BucketsInsertPredefinedACL Source

Apply a predefined set of access controls to this bucket.

Constructors

BIPAAuthenticatedRead

authenticatedRead Project team owners get OWNER access, and allAuthenticatedUsers get READER access.

BIPAPrivate

private Project team owners get OWNER access.

BIPAProjectPrivate

projectPrivate Project team members get access according to their roles.

BIPAPublicRead

publicRead Project team owners get OWNER access, and allUsers get READER access.

BIPAPublicReadWrite

publicReadWrite Project team owners get OWNER access, and allUsers get WRITER access.

Buckets

buckets :: Buckets Source

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.

bItems :: Lens' Buckets [Bucket] Source

The list of items.

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.

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

objectMetadata Source

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.

Constructors

OPPAAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

OPPABucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

OPPABucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

OPPAPrivate

private Object owner gets OWNER access.

OPPAProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

OPPAPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

BucketLifecycleRuleItemCondition

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.

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.

Constructors

ORDPAAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

ORDPABucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

ORDPABucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

ORDPAPrivate

private Object owner gets OWNER access.

ORDPAProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

ORDPAPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

BucketLifecycle

data BucketLifecycle Source

The bucket's lifecycle configuration. See lifecycle management for more information.

See: bucketLifecycle smart constructor.

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.

Channel

data Channel Source

An notification channel used to watch for resource changes.

See: channel smart constructor.

channel :: Channel Source

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.

cType :: Lens' Channel (Maybe Text) Source

The type of delivery mechanism used for this channel.

BucketLifecycleRuleItem

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:

blriCondition :: Lens' BucketLifecycleRuleItem (Maybe BucketLifecycleRuleItemCondition) Source

The condition(s) under which the action will be taken.

ObjectsWatchAllProjection

BucketCORSItem

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

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:

oacptTeam :: Lens' ObjectAccessControlProjectTeam (Maybe Text) Source

The team. Can be owners, editors, or viewers.

Bucket

bucEtag :: Lens' Bucket (Maybe Text) Source

HTTP 1.1 Entity tag for the bucket.

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.

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.

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.

bucSelfLink :: Lens' Bucket (Maybe Text) Source

The URI of this bucket.

bucName :: Lens' Bucket (Maybe Text) Source

The name of the bucket.

bucStorageClass :: Lens' Bucket (Maybe Text) Source

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.

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.

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.

bucMetageneration :: Lens' Bucket (Maybe Int64) Source

The metadata generation of this bucket.

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.

bucACL :: Lens' Bucket [BucketAccessControl] Source

Access controls on the bucket.

BucketsGetProjection

Objects

objects :: Objects Source

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.

oItems :: Lens' Objects [Object] Source

The list of items.

oPrefixes :: Lens' Objects [Text] Source

The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.

BucketsPatchProjection

BucketAccessControls

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.

BucketsUpdateProjection

ComposeRequest

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.

crKind :: Lens' ComposeRequest Text Source

The kind of item this is.

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.

Constructors

OIPAAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

OIPABucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

OIPABucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

OIPAPrivate

private Object owner gets OWNER access.

OIPAProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

OIPAPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

ObjectsListProjection

BucketsInsertPredefinedDefaultObjectACL

data BucketsInsertPredefinedDefaultObjectACL Source

Apply a predefined set of default object access controls to this bucket.

Constructors

BIPDOAAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

BIPDOABucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

BIPDOABucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

BIPDOAPrivate

private Object owner gets OWNER access.

BIPDOAProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

BIPDOAPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

BucketsUpdatePredefinedACL

data BucketsUpdatePredefinedACL Source

Apply a predefined set of access controls to this bucket.

Constructors

BUPAAuthenticatedRead

authenticatedRead Project team owners get OWNER access, and allAuthenticatedUsers get READER access.

BUPAPrivate

private Project team owners get OWNER access.

BUPAProjectPrivate

projectPrivate Project team members get access according to their roles.

BUPAPublicRead

publicRead Project team owners get OWNER access, and allUsers get READER access.

BUPAPublicReadWrite

publicReadWrite Project team owners get OWNER access, and allUsers get WRITER access.

ObjectsCopyDestinationPredefinedACL

data ObjectsCopyDestinationPredefinedACL Source

Apply a predefined set of access controls to the destination object.

Constructors

OCDPACLAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

OCDPACLBucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

OCDPACLBucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

OCDPACLPrivate

private Object owner gets OWNER access.

OCDPACLProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

OCDPACLPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

ObjectsUpdatePredefinedACL

data ObjectsUpdatePredefinedACL Source

Apply a predefined set of access controls to this object.

Constructors

OUPAAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

OUPABucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

OUPABucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

OUPAPrivate

private Object owner gets OWNER access.

OUPAProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

OUPAPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

BucketOwner

data BucketOwner Source

The owner of the bucket. This is always the project team's owner group.

See: bucketOwner smart constructor.

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:

boEntity :: Lens' BucketOwner (Maybe Text) Source

The entity, in the form project-owner-projectId.

boEntityId :: Lens' BucketOwner (Maybe Text) Source

The ID for the entity.

ComposeRequestSourceObjectsItem

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. The source object's bucket is implicitly the destination bucket.

crsoiGeneration :: Lens' ComposeRequestSourceObjectsItem (Maybe Int64) Source

The generation of this object to use as the source.

BucketsInsertProjection

ChannelParams

data ChannelParams Source

Additional parameters controlling delivery channel behavior. Optional.

See: channelParams smart constructor.

channelParams Source

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.

BucketsListProjection

ObjectsUpdateProjection

Object

objEtag :: Lens' Object (Maybe Text) Source

HTTP 1.1 Entity tag for the object.

objSize :: Lens' Object (Maybe Word64) Source

Content-Length of the data in bytes.

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.

objBucket :: Lens' Object (Maybe Text) Source

The name of the bucket containing this object.

objOwner :: Lens' Object (Maybe ObjectOwner) Source

The owner of the object. This will always be the uploader of the object.

objSelfLink :: Lens' Object (Maybe Text) Source

The link to this object.

objMediaLink :: Lens' Object (Maybe Text) Source

Media download link.

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 this object. Required if not specified by URL parameter.

objStorageClass :: Lens' Object (Maybe Text) Source

Storage class of the object.

objContentEncoding :: Lens' Object (Maybe Text) Source

Content-Encoding of the object data.

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.

objUpdated :: Lens' Object (Maybe UTCTime) Source

The modification time of the object metadata in RFC 3339 format.

objContentLanguage :: Lens' Object (Maybe Text) Source

Content-Language of the object data.

objCacheControl :: Lens' Object (Maybe Text) Source

Cache-Control directive for the object data.

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.

objACL :: Lens' Object [ObjectAccessControl] Source

Access controls on the object.

objContentDisPosition :: Lens' Object (Maybe Text) Source

Content-Disposition of the object data.

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.

ObjectsPatchProjection

ComposeRequestSourceObjectsItemObjectPreconditions

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

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:

bacptTeam :: Lens' BucketAccessControlProjectTeam (Maybe Text) Source

The team. Can be owners, editors, or viewers.

ObjectAccessControls

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.

BucketWebsite

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

Behaves as the bucket's directory index where missing objects are treated as potential directories.

bwNotFoundPage :: Lens' BucketWebsite (Maybe Text) Source

The custom object to return when a requested resource is not found.

BucketAccessControl

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.

bacaRole :: Lens' BucketAccessControl (Maybe Text) Source

The access permission for the entity. Can be READER, WRITER, or OWNER.

bacaSelfLink :: Lens' BucketAccessControl (Maybe Text) Source

The link to this access-control entry.

bacaId :: Lens' BucketAccessControl (Maybe Text) Source

The ID of the 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

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:

blriaType :: Lens' BucketLifecycleRuleItemAction (Maybe Text) Source

Type of the action. Currently, only Delete is supported.

ObjectsGetProjection

BucketsPatchPredefinedDefaultObjectACL

data BucketsPatchPredefinedDefaultObjectACL Source

Apply a predefined set of default object access controls to this bucket.

Constructors

BPPDOAAuthenticatedRead

authenticatedRead Object owner gets OWNER access, and allAuthenticatedUsers get READER access.

BPPDOABucketOwnerFullControl

bucketOwnerFullControl Object owner gets OWNER access, and project team owners get OWNER access.

BPPDOABucketOwnerRead

bucketOwnerRead Object owner gets OWNER access, and project team owners get READER access.

BPPDOAPrivate

private Object owner gets OWNER access.

BPPDOAProjectPrivate

projectPrivate Object owner gets OWNER access, and project team members get access according to their roles.

BPPDOAPublicRead

publicRead Object owner gets OWNER access, and allUsers get READER access.

BucketsPatchPredefinedACL

data BucketsPatchPredefinedACL Source

Apply a predefined set of access controls to this bucket.

Constructors

BPPAAuthenticatedRead

authenticatedRead Project team owners get OWNER access, and allAuthenticatedUsers get READER access.

BPPAPrivate

private Project team owners get OWNER access.

BPPAProjectPrivate

projectPrivate Project team members get access according to their roles.

BPPAPublicRead

publicRead Project team owners get OWNER access, and allUsers get READER access.

BPPAPublicReadWrite

publicReadWrite Project team owners get OWNER access, and allUsers get WRITER access.

ObjectAccessControl

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.

oacaRole :: Lens' ObjectAccessControl (Maybe Text) Source

The access permission for the entity. Can be READER or OWNER.

oacaSelfLink :: Lens' ObjectAccessControl (Maybe Text) Source

The link to this access-control entry.

oacaObject :: Lens' ObjectAccessControl (Maybe Text) Source

The name of the object.

oacaId :: Lens' ObjectAccessControl (Maybe Text) Source

The ID of the access-control entry.

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.

oacaEntityId :: Lens' ObjectAccessControl (Maybe Text) Source

The ID for the entity, if any.

ObjectsCopyProjection

RewriteResponse

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:

rrKind :: Lens' RewriteResponse Text Source

The kind of item this is.

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 Word64) Source

The total size of the object being copied in bytes. This property is always present in the response.

rrTotalBytesRewritten :: Lens' RewriteResponse (Maybe Word64) 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