FileService
FileService.Rd
Provides access to file related functionality provided through the web API.
Value
A character vector containing the names of the file in the workspace's blob storage.
The content of the file as string.
Super class
Myrconn.PetroVisor.Client::ApiRequests
-> FileService
Methods
Method new()
Create a new FileService instance. This is done by the ServiceProvider automatically.
Usage
FileService$new(url, token_type, token)
Method load()
Download the file with the specified name from the workspace's blob storage.
Method save()
Upload a file to the workspace's blob storage.
Examples
if (FALSE) { # \dontrun{
# create a new instance of the service provider
sp <- ServiceProvider$new(
url = discovery_url,
workspace = workspace,
user = user,
password = password
)
# load file
file <- sp$files$load("Test_File.csv")
# save file
result <- sp$files$save("Test_File.csv")
} # }