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

Safe HaskellNone

Network.Google.Storage

Contents

Description

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

Synopsis

Types

type BucketName = StringSource

A bucket name.

type KeyName = StringSource

A key name for an object.

type MIMEType = StringSource

MIME type.

Service Requests

getServiceSource

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.

getServiceUsingManagerSource

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

putBucketSource

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.

putBucketUsingManagerSource

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.

getBucketSource

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.

getBucketUsingManagerSource

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.

deleteBucketSource

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.

deleteBucketUsingManagerSource

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

getObjectSource

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.

getObjectUsingManagerSource

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.

putObjectSource

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.

putObjectUsingManagerSource

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.

headObjectSource

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.

headObjectUsingManagerSource

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.

deleteObjectSource

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.

deleteObjectUsingManagerSource

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.