| Resource {sevenbridges2} | R Documentation |
R6 Class Representing a Resource
Description
Base class for describing a resource.
Details
This is a base class for describing a resource on the platform: Projects, Tasks, Volumes, Files, Apps etc.
Public fields
authSeven Bridges Authentication object.
URLList of URL endpoints for this resource.
Methods
Public methods
Method new()
Create a new Resource object.
Usage
Resource$new(auth = NA)
Arguments
authSeven Bridges Authentication object.
Method query()
Generic query implementation that is used by the resources.
Usage
Resource$query(...)
Arguments
...Parameters that will be passed to core
api()function.
Method get()
Generic get implementation that fetches single resource from the server.
Usage
Resource$get(cls, id, ...)
Arguments
clsResource class object.
idObject id.
...Other arguments that can be passed to core
api()function like 'fields', etc.
Method delete()
Generic implementation that deletes the resource from the server.
Usage
Resource$delete(id, ...)
Arguments
idObject id.
...Other arguments that can be passed to core
api()function.clsResource class object.
Method clone()
The objects of this class are cloneable with this method.
Usage
Resource$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.