Constructor
new RemoteRepository(opts)
Creates a new RemoteRepository
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
Object containing properties to set. Properties
|
- Source:
Members
apiToken :string
The API token required to connect to the remote repository's REST service.
- Source:
loginExtra :string
Optional additional information required to connect to the remote REST service. Most services won't use this.
- Source:
name :string
Name is the name of the remote repo. This should be descriptive, like "APTrust Demo Repository", "APTrust Production Repository," etc.
- Source:
pluginId :string
The UUID of the DART plugin that provides access to the REST service. You cannot connect to any remote REST service without a plugin.
- Source:
url :string
The URL that runs the remote repository's REST service.
- Source:
userId :string
The User ID used to connect to the repository's REST services. This is optional, and will often be blank, as most REST services require only an API token to connect.
- Source:
Methods
(static) inflateFrom(data) → {RemoteRepository}
This converts a generic object into an RemoteRepository object. this is useful when loading objects from JSON.
Parameters:
Name | Type | Description |
---|---|---|
data |
object |
An object you want to convert to a RemoteRepository. |
- Source:
validate() → {boolean}
validate returns true or false, indicating whether this object contains complete and valid data. If it returns false, check the errors property for specific errors.
- Source: