handa-gdata-0.7.0.3: Library and command-line utility for accessing Google services and APIs.

Safe HaskellNone
LanguageHaskell98

Network.Google.Storage

Contents

Description

Functions for the Google Storage API, see https://developers.google.com/storage/docs/reference-methods.

Synopsis

Types

type BucketName = String Source

A bucket name.

type KeyName = String Source

A key name for an object.

type MIMEType = String Source

MIME type.

Service Requests

getService Source

Arguments

:: ProjectId

The project ID.

-> AccessToken

The OAuth 2.0 access token.

-> IO Element

The action returning the XML with the metadata for the buckets.

List all of the buckets in a specified project. This performs the "GET Service" request, see https://developers.google.com/storage/docs/reference-methods#getservice.

getServiceUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> AccessToken

The OAuth 2.0 access token.

-> IO Element

The action returning the XML with the metadata for the buckets.

List all of the buckets in a specified project. This performs the "GET Service" request, see https://developers.google.com/storage/docs/reference-methods#getservice.

Bucket Requests

putBucket Source

Arguments

:: ProjectId

The project ID.

-> StorageAcl

The pre-defined access control.

-> BucketName

The bucket.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to put the object and return the response header.

Creates a bucket in a specified project. This performs the "PUT Bucket" request, see https://developers.google.com/storage/docs/reference-methods#putbucket.

putBucketUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> StorageAcl

The pre-defined access control.

-> BucketName

The bucket.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to put the object and return the response header.

Creates a bucket in a specified project. This performs the "PUT Bucket" request, see https://developers.google.com/storage/docs/reference-methods#putbucket.

getBucket Source

Arguments

:: ProjectId

The project ID.

-> BucketName

The bucket.

-> AccessToken

The OAuth 2.0 access token.

-> IO Element

The action returning the XML with the metadata for the objects.

Lists the objects that are in a bucket. This performs the "GET Bucket" request, see https://developers.google.com/storage/docs/reference-methods#getbucket.

getBucketUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> BucketName

The bucket.

-> AccessToken

The OAuth 2.0 access token.

-> IO Element

The action returning the XML with the metadata for the objects.

Lists the objects that are in a bucket. This performs the "GET Bucket" request, see https://developers.google.com/storage/docs/reference-methods#getbucket.

deleteBucket Source

Arguments

:: ProjectId

The project ID.

-> BucketName

The bucket.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to delete the bucket and return the response header.

Deletes an empty bucket. This performs the "DELETE Bucket" request, see https://developers.google.com/storage/docs/reference-methods#deletebucket.

deleteBucketUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> BucketName

The bucket.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to delete the bucket and return the response header.

Deletes an empty bucket. This performs the "DELETE Bucket" request, see https://developers.google.com/storage/docs/reference-methods#deletebucket.

Object Requests

getObject Source

Arguments

:: ProjectId

The project ID.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> AccessToken

The OAuth 2.0 access token.

-> IO ByteString

The action returning the object.

Downloads an object. This performs the "GET Object" request, see https://developers.google.com/storage/docs/reference-methods#getobject.

getObjectUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> AccessToken

The OAuth 2.0 access token.

-> IO ByteString

The action returning the object.

Downloads an object. This performs the "GET Object" request, see https://developers.google.com/storage/docs/reference-methods#getobject.

putObject Source

Arguments

:: ProjectId

The project ID.

-> StorageAcl

The pre-defined access control.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> Maybe MIMEType

The object's MIME type.

-> ByteString

The object's data.

-> Maybe MD5Info

The MD5 checksum.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to put the object and return the response header.

Uploads an object. This performs the "PUT Object" request, see https://developers.google.com/storage/docs/reference-methods#putobject.

putObjectUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> StorageAcl

The pre-defined access control.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> Maybe MIMEType

The object's MIME type.

-> ByteString

The object's data.

-> Maybe MD5Info

The MD5 checksum.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to put the object and return the response header.

Uploads an object. This performs the "PUT Object" request, see https://developers.google.com/storage/docs/reference-methods#putobject.

headObject Source

Arguments

:: ProjectId

The project ID.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action returning the object's metadata.

Lists metadata for an object. This performs the "HEAD Object" request, see https://developers.google.com/storage/docs/reference-methods#headobject.

headObjectUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action returning the object's metadata.

Lists metadata for an object. This performs the "HEAD Object" request, see https://developers.google.com/storage/docs/reference-methods#headobject.

deleteObject Source

Arguments

:: ProjectId

The project ID.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to delete the object and return the response header.

Deletes an object. This performs the "DELETE Object" request, see https://developers.google.com/storage/docs/reference-methods#deleteobject.

deleteObjectUsingManager Source

Arguments

:: Manager

The conduit HTTP manager to use.

-> ProjectId

The project ID.

-> BucketName

The bucket.

-> KeyName

The object's key.

-> AccessToken

The OAuth 2.0 access token.

-> IO [(String, String)]

The action to delete the object and return the response header.

Deletes an object. This performs the "DELETE Object" request, see https://developers.google.com/storage/docs/reference-methods#deleteobject.