Nothing
#' @export
.Leonardo <- setClass(
"Leonardo",
contains = "Service",
slots = c(api_header = "character")
)
## construct a singleton instance for this service
#' @rdname Services
#'
#' @aliases Leonardo-class operations,Leonardo-method
#'
#' @return `Leonardo()` creates the API of the Leonard container
#' deployment service at
#' https://notebooks.firecloud.org/api-docs.yaml.
#'
#' @format NULL
#'
#' @examples
#' if (gcloud_exists())
#' Leonardo()
#'
#' @export
Leonardo <-
function()
{
access_token <- .gcloud_access_token()
api_header <- c(Authorization = paste("Bearer", access_token))
.Leonardo(
Service(
"leonardo",
host = "notebooks.firecloud.org",
config = httr::config(ssl_verifypeer = 0L, ssl_verifyhost = 0L),
authenticate = FALSE,
api_reference_url = "https://notebooks.firecloud.org/api-docs.yaml",
),
api_header = api_header
)
}
#' @export
setMethod(
"operations", "Leonardo",
function(x, ..., .deprecated = FALSE)
{
callNextMethod(x, .headers = .api_header(x), ..., .deprecated = .deprecated)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.