R/vault_configuration_summary.R

# Engines API
#
# Allow clients to fetch Engines Analytics through APIs.
#
# The version of the OpenAPI document: 2
# Contact: analytics.api.support@factset.com
# Generated by: https://openapi-generator.tech

#' @docType class
#' @title VaultConfigurationSummary
#' @description VaultConfigurationSummary Class
#' @format An \code{R6Class} generator object
#' @field name  character [optional]
#'
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
VaultConfigurationSummary <- R6::R6Class(
  'VaultConfigurationSummary',
  public = list(
    `name` = NULL,
    initialize = function(`name`=NULL, ...){
      local.optional.var <- list(...)
      if (!is.null(`name`)) {
        stopifnot(is.character(`name`), length(`name`) == 1)
        self$`name` <- `name`
      }
    },
    toJSON = function() {
      VaultConfigurationSummaryObject <- list()
      if (!is.null(self$`name`)) {
        VaultConfigurationSummaryObject[['name']] <-
          self$`name`
      }

      VaultConfigurationSummaryObject
    },
    fromJSON = function(VaultConfigurationSummaryJson) {
      VaultConfigurationSummaryObject <- jsonlite::fromJSON(VaultConfigurationSummaryJson)
      if (!is.null(VaultConfigurationSummaryObject$`name`)) {
        self$`name` <- VaultConfigurationSummaryObject$`name`
      }
    },
    toJSONString = function() {
      jsoncontent <- c(
        if (!is.null(self$`name`)) {
        sprintf(
        '"name":
          "%s"
                ',
        self$`name`
        )}
      )
      jsoncontent <- paste(jsoncontent, collapse = ",")
      paste('{', jsoncontent, '}', sep = "")
    },
    fromJSONString = function(VaultConfigurationSummaryJson) {
      VaultConfigurationSummaryObject <- jsonlite::fromJSON(VaultConfigurationSummaryJson)
      self$`name` <- VaultConfigurationSummaryObject$`name`
      self
    }
  )
)

Try the factset.analyticsapi.engines package in your browser

Any scripts or data that you put into this service are public.

factset.analyticsapi.engines documentation built on Feb. 2, 2020, 5:06 p.m.