HDX Configuration
HDX Configuration
HDX Configuration allow to connect to an HDX server and setup project where you can interact with the HDX platform
dataall info in list.
new()Create a new Configuration object.
HDXConfig$new( hdx_site = "prod", hdx_key = NULL, hdx_config = NULL, hdx_config_file = NULL, read_only = TRUE, user_agent = NULL )
hdx_sitecharacter the server instance to use
hdx_keycharacter, the HDX API key
hdx_configconfiguration in a list
hdx_config_filea character value config file. default is the config supplied in the package
read_onlya logical value indicating if you want to just read or be also able to write on the HDX server. You will need a API key to write.
user_agenta character value, User agent
A new Configuration object.
get_credentials()Configuration credentials when using a HDX API key
HDXConfig$get_credentials()
the username and password associated to the HDX API key
set_read_only()Create or revoke read only status
HDXConfig$set_read_only(read_only = TRUE)
read_onlya logical value indicating if you want to just read or be also able to write on the HDX server. You will need a API key to write.
set_hdx_key()Specify a HDX API key
HDXConfig$set_hdx_key(hdx_key)
hdx_keya character with key
get_hdx_key()Specify a HDX API key
HDXConfig$get_hdx_key()
a character, the HDX API key
set_hdx_site()Specify a HDX server to use
HDXConfig$set_hdx_site(hdx_site = "prod")
hdx_sitea character, the server type to use,
prod, test, feature or demo
a character, the HDX API key
get_hdx_site()Get the HDX server in use
HDXConfig$get_hdx_site()
the server type
get_hdx_site_url()Get the HDX server URL in use
HDXConfig$get_hdx_site_url()
the server URL
remoteclient()Get the remoteclient currently used
HDXConfig$remoteclient()
a crul::HttpClient
call_action()Call the client to the HDX API
HDXConfig$call_action(action, ..., verb = "get")
actiona character
...parameters for each verb used
verba character the verb used, post, get, put or patch
list a with status code and results
read()read and show Configuration object
HDXConfig$read()
Configuration object
setup()Setup Configuration object
HDXConfig$setup( hdx_site = "prod", hdx_key = NULL, read_only = TRUE, hdx_config = NULL, configuration = NULL )
hdx_sitea character value, the server
hdx_keya character value, the API key
read_onlya logical value read only
hdx_configa list
configurationa character
delete()Delete a Configuration object Access the global Configuration
HDXConfig$delete()
get_global_config()HDXConfig$get_global_config()
list with HDX configuration information
general_statistics()Get general statistics about the server
HDXConfig$general_statistics()
list with statistics about the server
as_list()Convert configuration to list
HDXConfig$as_list()
configuration in list format
print()Print Configuration object
HDXConfig$print()
clone()The objects of this class are cloneable with this method.
HDXConfig$clone(deep = FALSE)
deepWhether to make a deep clone.