HDX Configuration
HDX Configuration
HDX Configuration allow to connect to an HDX server and setup project where you can interact with the HDX platform
data
all 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_site
character the server instance to use
hdx_key
character, the HDX API key
hdx_config
configuration in a list
hdx_config_file
a character value config file. default is the config supplied in the package
read_only
a 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_agent
a 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_only
a 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_key
a 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_site
a 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")
action
a character
...
parameters for each verb used
verb
a 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_site
a character value, the server
hdx_key
a character value, the API key
read_only
a logical value read only
hdx_config
a list
configuration
a 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)
deep
Whether to make a deep clone.