Google JSON APIs

# GoogleCloud.apiModule.

General framework for representing Google JSON APIs.

source

# GoogleCloud.api.APIMethodType.

APIMethod(verb, path, description)

Maps a method in the API to an HTTP verb and path.

source

# GoogleCloud.api.APIResourceType.

APIResource(path, methods)

Represents a resource in the API, typically rooted at a specific point in the REST hierarchy.

source

# GoogleCloud.api.APIRootType.

APIRoot(...)

Represent a Google JSON API containing resources, accessible via scopes.

source

# GoogleCloud.api.get_sessionMethod.

get_session(api)

Get the default session (if any) for a specific API. Session is nothing if not set.

source

# GoogleCloud.api.iserrorMethod.

Check if response is/contains an error

source

# GoogleCloud.api.set_session!Method.

set_session!(api, session)

Set the default session for a specific API. Set session to nothing to forget session.

source

# GoogleCloud.api.executeMethod.

execute(session::GoogleSession, resource::APIResource, method::APIMethod, path_args::AbstractString...[; ...])

Execute a method against the provided path arguments.

Optionally provide parameters and data (with optional MIME content-type).

source

# GoogleCloud.api.path_replaceMethod.

path_replace(path, values)

Replace path tokens in path with values.

Assumes values are provided in the same order in which tokens appear in the path.

path_replace("/{foo}/{bar}/{baz}", ["this", "is", "it"])
# output
"/this/is/it"

source

# GoogleCloud.api.path_tokensMethod.

path_tokens(path)

Extract tokens from a path, e.g.

path_tokens("/{foo}/{bar}/x/{baz}")
# output
3-element Array{SubString{String},1}:
 "{foo}"
 "{bar}"
 "{baz}"

source

Implemented APIs

# GoogleCloud.api._storageModule.

Google Cloud Storage API

source

# GoogleCloud.api._storage.storageConstant.

Google Cloud Storage API root.

source

# GoogleCloud.api._computeModule.

Google Compute Engine API

source

# GoogleCloud.api._compute.computeConstant.

Google Compute Engine API root.

source