RepositoryService
RepositoryService.Rd
Provides access to PetroVisor item related functionalities.
Super class
Myrconn.PetroVisor.Client::ApiRequests
-> RepositoryService
Methods
Method new()
Create a new RepositoryService instance. This is done by the ServiceProvider automatically.
Usage
RepositoryService$new(url, token_type, token)
Method load()
Get an item by name.
Method save()
Examples
if (FALSE) { # \dontrun{
# create a new instance of the service provider
sp <- ServiceProvider$new("Host", 8095, "WorkspaceA", "UserX", "Password")
# get the names of all available entities
entityNames <- sp$items$load_names("Entity")
# delete an item (delete the hierarchy with the name "test")
sp$items$delete("Hierarchy", "test")
# get an item by name
well01 <- sp$items$load("Well", "Well01")
# add or edit an item
entity <- Entity$new(
name = "TestWell01",
entityTypeName = "Well",
alias = "TestAlias01"
)
sp$items$save("Entity", entity)
} # }