#' Synapse REST API
#'
#' No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
#'
#' The version of the OpenAPI document: v1
#' Generated by: https://openapi-generator.tech
#'
#' @docType class
#' @title DockerRegistryEventServices operations
#' @description DockerRegistryEventServicesApi
#' @format An \code{R6Class} generator object
#' @field api_client Handles the client-server communication.
#'
#' @section Methods:
#' \describe{
#' \strong{ PostDockerRegistryListenerV1Events } \emph{ }
#'
#' \itemize{
#' \item \emph{ @param } org_sagebionetworks_repo_model_docker_docker_registry_event_list \link{OrgSagebionetworksRepoModelDockerDockerRegistryEventList}
#'
#'
#' \item status code : 204 | Void
#'
#'
#' \item response headers :
#'
#' \tabular{ll}{
#' }
#' }
#'
#' }
#'
#'
#' @examples
#' \dontrun{
#' #################### PostDockerRegistryListenerV1Events ####################
#'
#' library(synclient)
#' var_org_sagebionetworks_repo_model_docker_docker_registry_event_list <- org.sagebionetworks.repo.model.docker.DockerRegistryEventList$new(c(org.sagebionetworks.repo.model.docker.DockerRegistryEvent$new("id_example", "timestamp_example", "action_example", org.sagebionetworks.repo.model.docker.RegistryEventTarget$new("mediaType_example", 123, "digest_example", 123, "repository_example", "tag_example", "url_example"), org.sagebionetworks.repo.model.docker.RegistryEventRequest$new("id_example", "addr_example", "host_example", "method_example", "useragent_example"), org.sagebionetworks.repo.model.docker.RegistryEventActor$new("name_example"), org.sagebionetworks.repo.model.docker.RegistryEventSource$new("addr_example", "instanceID_example")))) # OrgSagebionetworksRepoModelDockerDockerRegistryEventList |
#'
#' api_instance <- DockerRegistryEventServicesApi$new()
#'
#' api_instance$PostDockerRegistryListenerV1Events(var_org_sagebionetworks_repo_model_docker_docker_registry_event_list)
#'
#'
#' }
#' @importFrom R6 R6Class
#' @importFrom base64enc base64encode
#' @export
DockerRegistryEventServicesApi <- R6::R6Class(
"DockerRegistryEventServicesApi",
public = list(
api_client = NULL,
#' Initialize a new DockerRegistryEventServicesApi.
#'
#' @description
#' Initialize a new DockerRegistryEventServicesApi.
#'
#' @param api_client An instance of API client.
#' @export
initialize = function(api_client) {
if (!missing(api_client)) {
self$api_client <- api_client
} else {
self$api_client <- ApiClient$new()
}
},
#'
#'
#' @description
#'
#'
#' @param org_sagebionetworks_repo_model_docker_docker_registry_event_list
#' @param ... Other optional arguments
#' @return void
#' @export
PostDockerRegistryListenerV1Events = function(org_sagebionetworks_repo_model_docker_docker_registry_event_list, ...) {
local_var_response <- self$PostDockerRegistryListenerV1EventsWithHttpInfo(org_sagebionetworks_repo_model_docker_docker_registry_event_list, ...)
if (local_var_response$status_code >= 200 && local_var_response$status_code <= 299) {
local_var_response$content
} else if (local_var_response$status_code >= 300 && local_var_response$status_code <= 399) {
local_var_response
} else if (local_var_response$status_code >= 400 && local_var_response$status_code <= 499) {
local_var_response
} else if (local_var_response$status_code >= 500 && local_var_response$status_code <= 599) {
local_var_response
}
},
#'
#'
#' @description
#'
#'
#' @param org_sagebionetworks_repo_model_docker_docker_registry_event_list
#' @param ... Other optional arguments
#' @return API response (void) with additional information such as HTTP status code, headers
#' @export
PostDockerRegistryListenerV1EventsWithHttpInfo = function(org_sagebionetworks_repo_model_docker_docker_registry_event_list, ...) {
args <- list(...)
query_params <- list()
header_params <- c()
form_params <- list()
file_params <- list()
local_var_body <- NULL
oauth_scopes <- NULL
is_oauth <- FALSE
if (missing(`org_sagebionetworks_repo_model_docker_docker_registry_event_list`)) {
stop("Missing required parameter `org_sagebionetworks_repo_model_docker_docker_registry_event_list`.")
}
if (!is.null(`org_sagebionetworks_repo_model_docker_docker_registry_event_list`)) {
local_var_body <- `org_sagebionetworks_repo_model_docker_docker_registry_event_list`$toJSONString()
} else {
body <- NULL
}
local_var_url_path <- "/dockerRegistryListener/v1/events"
# The Accept request HTTP header
local_var_accepts <- list()
# The Content-Type representation header
local_var_content_types <- list("application/json")
local_var_resp <- self$api_client$CallApi(url = paste0(self$api_client$base_path, local_var_url_path),
method = "POST",
query_params = query_params,
header_params = header_params,
form_params = form_params,
file_params = file_params,
accepts = local_var_accepts,
content_types = local_var_content_types,
body = local_var_body,
is_oauth = is_oauth,
oauth_scopes = oauth_scopes,
...)
if (local_var_resp$status_code >= 200 && local_var_resp$status_code <= 299) {
local_var_resp$content <- NULL
local_var_resp
} else if (local_var_resp$status_code >= 300 && local_var_resp$status_code <= 399) {
ApiResponse$new(paste("Server returned ", local_var_resp$status_code, " response status code."), local_var_resp)
} else if (local_var_resp$status_code >= 400 && local_var_resp$status_code <= 499) {
ApiResponse$new("API client error", local_var_resp)
} else if (local_var_resp$status_code >= 500 && local_var_resp$status_code <= 599) {
if (is.null(local_var_resp$response) || local_var_resp$response == "") {
local_var_resp$response <- "API server error"
}
local_var_resp
}
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.