Organization
class Organization
Organizations own datasets and workflows, and have members. Various methods allow you to construct and list the datasets, workflows, members, and secrets of an organization.
Constructors
redivis.organization(name)
Return an Organization, given its username.
Examples
const organization = redivis.organization('demo');
await organization.exists(); // -> true
const dataset = organization.dataset('iris_species'); // -> Returns a Dataset
const workflow = organization.workflow('some_workflow'); // -> Returns a Workflow
for (const dataset of await organization.listDatasets({ labels: ['climate'] })) {
console.log(dataset.properties.name);
}
const members = await organization.listMembers();Attributes
name
The organization's username.
properties
An object containing the API resource representation of the organization.
Methods
Organization.dataset(name[, options])
Return a Dataset owned by the organization.
Check whether the organization exists.
Organization.listDatasets([maxResults, options])
List the organization's Datasets.
Organization.listMembers([maxResults, options])
List the organization's Members.
Organization.listWorkflows([maxResults])
List the organization's Workflows.
Organization.member(name)
Return a Member of the organization.
Organization.secret(name)
Return a Secret of the organization.
Organization.workflow(name)
Return a Workflow owned by the organization.
Was this helpful?

