1 #' users.get is a method defined in Arvados class.
3 #' @usage arv$users.get(uuid)
4 #' @param uuid The UUID of the User in question.
5 #' @return User object.
9 #' users.create is a method defined in Arvados class.
11 #' @usage arv$users.create(user, ensure_unique_name = "false")
12 #' @param user User object.
13 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
14 #' @return User object.
18 #' users.update is a method defined in Arvados class.
20 #' @usage arv$users.update(user, uuid)
21 #' @param user User object.
22 #' @param uuid The UUID of the User in question.
23 #' @return User object.
27 #' users.delete is a method defined in Arvados class.
29 #' @usage arv$users.delete(uuid)
30 #' @param uuid The UUID of the User in question.
31 #' @return User object.
35 #' users.current is a method defined in Arvados class.
37 #' @usage arv$users.current(NULL)
38 #' @return User object.
39 #' @name users.current
42 #' users.system is a method defined in Arvados class.
44 #' @usage arv$users.system(NULL)
45 #' @return User object.
49 #' users.activate is a method defined in Arvados class.
51 #' @usage arv$users.activate(uuid)
53 #' @return User object.
54 #' @name users.activate
57 #' users.setup is a method defined in Arvados class.
59 #' @usage arv$users.setup(user = NULL, openid_prefix = NULL,
60 #' repo_name = NULL, vm_uuid = NULL, send_notification_email = "false")
62 #' @param openid_prefix
65 #' @param send_notification_email
66 #' @return User object.
70 #' users.unsetup is a method defined in Arvados class.
72 #' @usage arv$users.unsetup(uuid)
74 #' @return User object.
75 #' @name users.unsetup
78 #' users.update_uuid is a method defined in Arvados class.
80 #' @usage arv$users.update_uuid(uuid, new_uuid)
83 #' @return User object.
84 #' @name users.update_uuid
87 #' users.list is a method defined in Arvados class.
89 #' @usage arv$users.list(filters = NULL,
90 #' where = NULL, order = NULL, select = NULL,
91 #' distinct = NULL, limit = "100", offset = "0",
101 #' @return UserList object.
105 #' api_client_authorizations.get is a method defined in Arvados class.
107 #' @usage arv$api_client_authorizations.get(uuid)
108 #' @param uuid The UUID of the ApiClientAuthorization in question.
109 #' @return ApiClientAuthorization object.
110 #' @name api_client_authorizations.get
113 #' api_client_authorizations.create is a method defined in Arvados class.
115 #' @usage arv$api_client_authorizations.create(apiclientauthorization,
116 #' ensure_unique_name = "false")
117 #' @param apiClientAuthorization ApiClientAuthorization object.
118 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
119 #' @return ApiClientAuthorization object.
120 #' @name api_client_authorizations.create
123 #' api_client_authorizations.update is a method defined in Arvados class.
125 #' @usage arv$api_client_authorizations.update(apiclientauthorization,
127 #' @param apiClientAuthorization ApiClientAuthorization object.
128 #' @param uuid The UUID of the ApiClientAuthorization in question.
129 #' @return ApiClientAuthorization object.
130 #' @name api_client_authorizations.update
133 #' api_client_authorizations.delete is a method defined in Arvados class.
135 #' @usage arv$api_client_authorizations.delete(uuid)
136 #' @param uuid The UUID of the ApiClientAuthorization in question.
137 #' @return ApiClientAuthorization object.
138 #' @name api_client_authorizations.delete
141 #' api_client_authorizations.create_system_auth is a method defined in Arvados class.
143 #' @usage arv$api_client_authorizations.create_system_auth(api_client_id = NULL,
145 #' @param api_client_id
147 #' @return ApiClientAuthorization object.
148 #' @name api_client_authorizations.create_system_auth
151 #' api_client_authorizations.current is a method defined in Arvados class.
153 #' @usage arv$api_client_authorizations.current(NULL)
154 #' @return ApiClientAuthorization object.
155 #' @name api_client_authorizations.current
158 #' api_client_authorizations.list is a method defined in Arvados class.
160 #' @usage arv$api_client_authorizations.list(filters = NULL,
161 #' where = NULL, order = NULL, select = NULL,
162 #' distinct = NULL, limit = "100", offset = "0",
172 #' @return ApiClientAuthorizationList object.
173 #' @name api_client_authorizations.list
176 #' containers.get is a method defined in Arvados class.
178 #' @usage arv$containers.get(uuid)
179 #' @param uuid The UUID of the Container in question.
180 #' @return Container object.
181 #' @name containers.get
184 #' containers.create is a method defined in Arvados class.
186 #' @usage arv$containers.create(container,
187 #' ensure_unique_name = "false")
188 #' @param container Container object.
189 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
190 #' @return Container object.
191 #' @name containers.create
194 #' containers.update is a method defined in Arvados class.
196 #' @usage arv$containers.update(container,
198 #' @param container Container object.
199 #' @param uuid The UUID of the Container in question.
200 #' @return Container object.
201 #' @name containers.update
204 #' containers.delete is a method defined in Arvados class.
206 #' @usage arv$containers.delete(uuid)
207 #' @param uuid The UUID of the Container in question.
208 #' @return Container object.
209 #' @name containers.delete
212 #' containers.auth is a method defined in Arvados class.
214 #' @usage arv$containers.auth(uuid)
216 #' @return Container object.
217 #' @name containers.auth
220 #' containers.lock is a method defined in Arvados class.
222 #' @usage arv$containers.lock(uuid)
224 #' @return Container object.
225 #' @name containers.lock
228 #' containers.unlock is a method defined in Arvados class.
230 #' @usage arv$containers.unlock(uuid)
232 #' @return Container object.
233 #' @name containers.unlock
236 #' containers.secret_mounts is a method defined in Arvados class.
238 #' @usage arv$containers.secret_mounts(uuid)
240 #' @return Container object.
241 #' @name containers.secret_mounts
244 #' containers.current is a method defined in Arvados class.
246 #' @usage arv$containers.current(NULL)
247 #' @return Container object.
248 #' @name containers.current
251 #' containers.list is a method defined in Arvados class.
253 #' @usage arv$containers.list(filters = NULL,
254 #' where = NULL, order = NULL, select = NULL,
255 #' distinct = NULL, limit = "100", offset = "0",
265 #' @return ContainerList object.
266 #' @name containers.list
269 #' api_clients.get is a method defined in Arvados class.
271 #' @usage arv$api_clients.get(uuid)
272 #' @param uuid The UUID of the ApiClient in question.
273 #' @return ApiClient object.
274 #' @name api_clients.get
277 #' api_clients.create is a method defined in Arvados class.
279 #' @usage arv$api_clients.create(apiclient,
280 #' ensure_unique_name = "false")
281 #' @param apiClient ApiClient object.
282 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
283 #' @return ApiClient object.
284 #' @name api_clients.create
287 #' api_clients.update is a method defined in Arvados class.
289 #' @usage arv$api_clients.update(apiclient,
291 #' @param apiClient ApiClient object.
292 #' @param uuid The UUID of the ApiClient in question.
293 #' @return ApiClient object.
294 #' @name api_clients.update
297 #' api_clients.delete is a method defined in Arvados class.
299 #' @usage arv$api_clients.delete(uuid)
300 #' @param uuid The UUID of the ApiClient in question.
301 #' @return ApiClient object.
302 #' @name api_clients.delete
305 #' api_clients.list is a method defined in Arvados class.
307 #' @usage arv$api_clients.list(filters = NULL,
308 #' where = NULL, order = NULL, select = NULL,
309 #' distinct = NULL, limit = "100", offset = "0",
319 #' @return ApiClientList object.
320 #' @name api_clients.list
323 #' authorized_keys.get is a method defined in Arvados class.
325 #' @usage arv$authorized_keys.get(uuid)
326 #' @param uuid The UUID of the AuthorizedKey in question.
327 #' @return AuthorizedKey object.
328 #' @name authorized_keys.get
331 #' authorized_keys.create is a method defined in Arvados class.
333 #' @usage arv$authorized_keys.create(authorizedkey,
334 #' ensure_unique_name = "false")
335 #' @param authorizedKey AuthorizedKey object.
336 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
337 #' @return AuthorizedKey object.
338 #' @name authorized_keys.create
341 #' authorized_keys.update is a method defined in Arvados class.
343 #' @usage arv$authorized_keys.update(authorizedkey,
345 #' @param authorizedKey AuthorizedKey object.
346 #' @param uuid The UUID of the AuthorizedKey in question.
347 #' @return AuthorizedKey object.
348 #' @name authorized_keys.update
351 #' authorized_keys.delete is a method defined in Arvados class.
353 #' @usage arv$authorized_keys.delete(uuid)
354 #' @param uuid The UUID of the AuthorizedKey in question.
355 #' @return AuthorizedKey object.
356 #' @name authorized_keys.delete
359 #' authorized_keys.list is a method defined in Arvados class.
361 #' @usage arv$authorized_keys.list(filters = NULL,
362 #' where = NULL, order = NULL, select = NULL,
363 #' distinct = NULL, limit = "100", offset = "0",
373 #' @return AuthorizedKeyList object.
374 #' @name authorized_keys.list
377 #' container_requests.get is a method defined in Arvados class.
379 #' @usage arv$container_requests.get(uuid)
380 #' @param uuid The UUID of the ContainerRequest in question.
381 #' @return ContainerRequest object.
382 #' @name container_requests.get
385 #' container_requests.create is a method defined in Arvados class.
387 #' @usage arv$container_requests.create(containerrequest,
388 #' ensure_unique_name = "false")
389 #' @param containerRequest ContainerRequest object.
390 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
391 #' @return ContainerRequest object.
392 #' @name container_requests.create
395 #' container_requests.update is a method defined in Arvados class.
397 #' @usage arv$container_requests.update(containerrequest,
399 #' @param containerRequest ContainerRequest object.
400 #' @param uuid The UUID of the ContainerRequest in question.
401 #' @return ContainerRequest object.
402 #' @name container_requests.update
405 #' container_requests.delete is a method defined in Arvados class.
407 #' @usage arv$container_requests.delete(uuid)
408 #' @param uuid The UUID of the ContainerRequest in question.
409 #' @return ContainerRequest object.
410 #' @name container_requests.delete
413 #' container_requests.list is a method defined in Arvados class.
415 #' @usage arv$container_requests.list(filters = NULL,
416 #' where = NULL, order = NULL, select = NULL,
417 #' distinct = NULL, limit = "100", offset = "0",
427 #' @return ContainerRequestList object.
428 #' @name container_requests.list
431 #' collections.get is a method defined in Arvados class.
433 #' @usage arv$collections.get(uuid)
434 #' @param uuid The UUID of the Collection in question.
435 #' @return Collection object.
436 #' @name collections.get
439 #' collections.create is a method defined in Arvados class.
441 #' @usage arv$collections.create(collection,
442 #' ensure_unique_name = "false")
443 #' @param collection Collection object.
444 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
445 #' @return Collection object.
446 #' @name collections.create
449 #' collections.update is a method defined in Arvados class.
451 #' @usage arv$collections.update(collection,
453 #' @param collection Collection object.
454 #' @param uuid The UUID of the Collection in question.
455 #' @return Collection object.
456 #' @name collections.update
459 #' collections.delete is a method defined in Arvados class.
461 #' @usage arv$collections.delete(uuid)
462 #' @param uuid The UUID of the Collection in question.
463 #' @return Collection object.
464 #' @name collections.delete
467 #' collections.provenance is a method defined in Arvados class.
469 #' @usage arv$collections.provenance(uuid)
471 #' @return Collection object.
472 #' @name collections.provenance
475 #' collections.used_by is a method defined in Arvados class.
477 #' @usage arv$collections.used_by(uuid)
479 #' @return Collection object.
480 #' @name collections.used_by
483 #' collections.trash is a method defined in Arvados class.
485 #' @usage arv$collections.trash(uuid)
487 #' @return Collection object.
488 #' @name collections.trash
491 #' collections.untrash is a method defined in Arvados class.
493 #' @usage arv$collections.untrash(uuid)
495 #' @return Collection object.
496 #' @name collections.untrash
499 #' collections.list is a method defined in Arvados class.
501 #' @usage arv$collections.list(filters = NULL,
502 #' where = NULL, order = NULL, select = NULL,
503 #' distinct = NULL, limit = "100", offset = "0",
504 #' count = "exact", include_trash = NULL)
513 #' @param include_trash Include collections whose is_trashed attribute is true.
514 #' @return CollectionList object.
515 #' @name collections.list
518 #' humans.get is a method defined in Arvados class.
520 #' @usage arv$humans.get(uuid)
521 #' @param uuid The UUID of the Human in question.
522 #' @return Human object.
526 #' humans.create is a method defined in Arvados class.
528 #' @usage arv$humans.create(human, ensure_unique_name = "false")
529 #' @param human Human object.
530 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
531 #' @return Human object.
532 #' @name humans.create
535 #' humans.update is a method defined in Arvados class.
537 #' @usage arv$humans.update(human, uuid)
538 #' @param human Human object.
539 #' @param uuid The UUID of the Human in question.
540 #' @return Human object.
541 #' @name humans.update
544 #' humans.delete is a method defined in Arvados class.
546 #' @usage arv$humans.delete(uuid)
547 #' @param uuid The UUID of the Human in question.
548 #' @return Human object.
549 #' @name humans.delete
552 #' humans.list is a method defined in Arvados class.
554 #' @usage arv$humans.list(filters = NULL,
555 #' where = NULL, order = NULL, select = NULL,
556 #' distinct = NULL, limit = "100", offset = "0",
566 #' @return HumanList object.
570 #' job_tasks.get is a method defined in Arvados class.
572 #' @usage arv$job_tasks.get(uuid)
573 #' @param uuid The UUID of the JobTask in question.
574 #' @return JobTask object.
575 #' @name job_tasks.get
578 #' job_tasks.create is a method defined in Arvados class.
580 #' @usage arv$job_tasks.create(jobtask, ensure_unique_name = "false")
581 #' @param jobTask JobTask object.
582 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
583 #' @return JobTask object.
584 #' @name job_tasks.create
587 #' job_tasks.update is a method defined in Arvados class.
589 #' @usage arv$job_tasks.update(jobtask, uuid)
590 #' @param jobTask JobTask object.
591 #' @param uuid The UUID of the JobTask in question.
592 #' @return JobTask object.
593 #' @name job_tasks.update
596 #' job_tasks.delete is a method defined in Arvados class.
598 #' @usage arv$job_tasks.delete(uuid)
599 #' @param uuid The UUID of the JobTask in question.
600 #' @return JobTask object.
601 #' @name job_tasks.delete
604 #' job_tasks.list is a method defined in Arvados class.
606 #' @usage arv$job_tasks.list(filters = NULL,
607 #' where = NULL, order = NULL, select = NULL,
608 #' distinct = NULL, limit = "100", offset = "0",
618 #' @return JobTaskList object.
619 #' @name job_tasks.list
622 #' links.get is a method defined in Arvados class.
624 #' @usage arv$links.get(uuid)
625 #' @param uuid The UUID of the Link in question.
626 #' @return Link object.
630 #' links.create is a method defined in Arvados class.
632 #' @usage arv$links.create(link, ensure_unique_name = "false")
633 #' @param link Link object.
634 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
635 #' @return Link object.
636 #' @name links.create
639 #' links.update is a method defined in Arvados class.
641 #' @usage arv$links.update(link, uuid)
642 #' @param link Link object.
643 #' @param uuid The UUID of the Link in question.
644 #' @return Link object.
645 #' @name links.update
648 #' links.delete is a method defined in Arvados class.
650 #' @usage arv$links.delete(uuid)
651 #' @param uuid The UUID of the Link in question.
652 #' @return Link object.
653 #' @name links.delete
656 #' links.list is a method defined in Arvados class.
658 #' @usage arv$links.list(filters = NULL,
659 #' where = NULL, order = NULL, select = NULL,
660 #' distinct = NULL, limit = "100", offset = "0",
670 #' @return LinkList object.
674 #' links.get_permissions is a method defined in Arvados class.
676 #' @usage arv$links.get_permissions(uuid)
678 #' @return Link object.
679 #' @name links.get_permissions
682 #' jobs.get is a method defined in Arvados class.
684 #' @usage arv$jobs.get(uuid)
685 #' @param uuid The UUID of the Job in question.
686 #' @return Job object.
690 #' jobs.create is a method defined in Arvados class.
692 #' @usage arv$jobs.create(job, ensure_unique_name = "false",
693 #' find_or_create = "false", filters = NULL,
694 #' minimum_script_version = NULL, exclude_script_versions = NULL)
695 #' @param job Job object.
696 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
697 #' @param find_or_create
699 #' @param minimum_script_version
700 #' @param exclude_script_versions
701 #' @return Job object.
705 #' jobs.update is a method defined in Arvados class.
707 #' @usage arv$jobs.update(job, uuid)
708 #' @param job Job object.
709 #' @param uuid The UUID of the Job in question.
710 #' @return Job object.
714 #' jobs.delete is a method defined in Arvados class.
716 #' @usage arv$jobs.delete(uuid)
717 #' @param uuid The UUID of the Job in question.
718 #' @return Job object.
722 #' jobs.queue is a method defined in Arvados class.
724 #' @usage arv$jobs.queue(filters = NULL,
725 #' where = NULL, order = NULL, select = NULL,
726 #' distinct = NULL, limit = "100", offset = "0",
736 #' @return Job object.
740 #' jobs.queue_size is a method defined in Arvados class.
742 #' @usage arv$jobs.queue_size(NULL)
743 #' @return Job object.
744 #' @name jobs.queue_size
747 #' jobs.cancel is a method defined in Arvados class.
749 #' @usage arv$jobs.cancel(uuid)
751 #' @return Job object.
755 #' jobs.lock is a method defined in Arvados class.
757 #' @usage arv$jobs.lock(uuid)
759 #' @return Job object.
763 #' jobs.list is a method defined in Arvados class.
765 #' @usage arv$jobs.list(filters = NULL, where = NULL,
766 #' order = NULL, select = NULL, distinct = NULL,
767 #' limit = "100", offset = "0", count = "exact")
776 #' @return JobList object.
780 #' keep_disks.get is a method defined in Arvados class.
782 #' @usage arv$keep_disks.get(uuid)
783 #' @param uuid The UUID of the KeepDisk in question.
784 #' @return KeepDisk object.
785 #' @name keep_disks.get
788 #' keep_disks.create is a method defined in Arvados class.
790 #' @usage arv$keep_disks.create(keepdisk,
791 #' ensure_unique_name = "false")
792 #' @param keepDisk KeepDisk object.
793 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
794 #' @return KeepDisk object.
795 #' @name keep_disks.create
798 #' keep_disks.update is a method defined in Arvados class.
800 #' @usage arv$keep_disks.update(keepdisk,
802 #' @param keepDisk KeepDisk object.
803 #' @param uuid The UUID of the KeepDisk in question.
804 #' @return KeepDisk object.
805 #' @name keep_disks.update
808 #' keep_disks.delete is a method defined in Arvados class.
810 #' @usage arv$keep_disks.delete(uuid)
811 #' @param uuid The UUID of the KeepDisk in question.
812 #' @return KeepDisk object.
813 #' @name keep_disks.delete
816 #' keep_disks.ping is a method defined in Arvados class.
818 #' @usage arv$keep_disks.ping(uuid = NULL,
819 #' ping_secret, node_uuid = NULL, filesystem_uuid = NULL,
820 #' service_host = NULL, service_port, service_ssl_flag)
822 #' @param ping_secret
824 #' @param filesystem_uuid
825 #' @param service_host
826 #' @param service_port
827 #' @param service_ssl_flag
828 #' @return KeepDisk object.
829 #' @name keep_disks.ping
832 #' keep_disks.list is a method defined in Arvados class.
834 #' @usage arv$keep_disks.list(filters = NULL,
835 #' where = NULL, order = NULL, select = NULL,
836 #' distinct = NULL, limit = "100", offset = "0",
846 #' @return KeepDiskList object.
847 #' @name keep_disks.list
850 #' keep_services.get is a method defined in Arvados class.
852 #' @usage arv$keep_services.get(uuid)
853 #' @param uuid The UUID of the KeepService in question.
854 #' @return KeepService object.
855 #' @name keep_services.get
858 #' keep_services.create is a method defined in Arvados class.
860 #' @usage arv$keep_services.create(keepservice,
861 #' ensure_unique_name = "false")
862 #' @param keepService KeepService object.
863 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
864 #' @return KeepService object.
865 #' @name keep_services.create
868 #' keep_services.update is a method defined in Arvados class.
870 #' @usage arv$keep_services.update(keepservice,
872 #' @param keepService KeepService object.
873 #' @param uuid The UUID of the KeepService in question.
874 #' @return KeepService object.
875 #' @name keep_services.update
878 #' keep_services.delete is a method defined in Arvados class.
880 #' @usage arv$keep_services.delete(uuid)
881 #' @param uuid The UUID of the KeepService in question.
882 #' @return KeepService object.
883 #' @name keep_services.delete
886 #' keep_services.accessible is a method defined in Arvados class.
888 #' @usage arv$keep_services.accessible(NULL)
889 #' @return KeepService object.
890 #' @name keep_services.accessible
893 #' keep_services.list is a method defined in Arvados class.
895 #' @usage arv$keep_services.list(filters = NULL,
896 #' where = NULL, order = NULL, select = NULL,
897 #' distinct = NULL, limit = "100", offset = "0",
907 #' @return KeepServiceList object.
908 #' @name keep_services.list
911 #' pipeline_templates.get is a method defined in Arvados class.
913 #' @usage arv$pipeline_templates.get(uuid)
914 #' @param uuid The UUID of the PipelineTemplate in question.
915 #' @return PipelineTemplate object.
916 #' @name pipeline_templates.get
919 #' pipeline_templates.create is a method defined in Arvados class.
921 #' @usage arv$pipeline_templates.create(pipelinetemplate,
922 #' ensure_unique_name = "false")
923 #' @param pipelineTemplate PipelineTemplate object.
924 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
925 #' @return PipelineTemplate object.
926 #' @name pipeline_templates.create
929 #' pipeline_templates.update is a method defined in Arvados class.
931 #' @usage arv$pipeline_templates.update(pipelinetemplate,
933 #' @param pipelineTemplate PipelineTemplate object.
934 #' @param uuid The UUID of the PipelineTemplate in question.
935 #' @return PipelineTemplate object.
936 #' @name pipeline_templates.update
939 #' pipeline_templates.delete is a method defined in Arvados class.
941 #' @usage arv$pipeline_templates.delete(uuid)
942 #' @param uuid The UUID of the PipelineTemplate in question.
943 #' @return PipelineTemplate object.
944 #' @name pipeline_templates.delete
947 #' pipeline_templates.list is a method defined in Arvados class.
949 #' @usage arv$pipeline_templates.list(filters = NULL,
950 #' where = NULL, order = NULL, select = NULL,
951 #' distinct = NULL, limit = "100", offset = "0",
961 #' @return PipelineTemplateList object.
962 #' @name pipeline_templates.list
965 #' pipeline_instances.get is a method defined in Arvados class.
967 #' @usage arv$pipeline_instances.get(uuid)
968 #' @param uuid The UUID of the PipelineInstance in question.
969 #' @return PipelineInstance object.
970 #' @name pipeline_instances.get
973 #' pipeline_instances.create is a method defined in Arvados class.
975 #' @usage arv$pipeline_instances.create(pipelineinstance,
976 #' ensure_unique_name = "false")
977 #' @param pipelineInstance PipelineInstance object.
978 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
979 #' @return PipelineInstance object.
980 #' @name pipeline_instances.create
983 #' pipeline_instances.update is a method defined in Arvados class.
985 #' @usage arv$pipeline_instances.update(pipelineinstance,
987 #' @param pipelineInstance PipelineInstance object.
988 #' @param uuid The UUID of the PipelineInstance in question.
989 #' @return PipelineInstance object.
990 #' @name pipeline_instances.update
993 #' pipeline_instances.delete is a method defined in Arvados class.
995 #' @usage arv$pipeline_instances.delete(uuid)
996 #' @param uuid The UUID of the PipelineInstance in question.
997 #' @return PipelineInstance object.
998 #' @name pipeline_instances.delete
1001 #' pipeline_instances.cancel is a method defined in Arvados class.
1003 #' @usage arv$pipeline_instances.cancel(uuid)
1005 #' @return PipelineInstance object.
1006 #' @name pipeline_instances.cancel
1009 #' pipeline_instances.list is a method defined in Arvados class.
1011 #' @usage arv$pipeline_instances.list(filters = NULL,
1012 #' where = NULL, order = NULL, select = NULL,
1013 #' distinct = NULL, limit = "100", offset = "0",
1023 #' @return PipelineInstanceList object.
1024 #' @name pipeline_instances.list
1027 #' nodes.get is a method defined in Arvados class.
1029 #' @usage arv$nodes.get(uuid)
1030 #' @param uuid The UUID of the Node in question.
1031 #' @return Node object.
1035 #' nodes.create is a method defined in Arvados class.
1037 #' @usage arv$nodes.create(node, ensure_unique_name = "false",
1038 #' assign_slot = NULL)
1039 #' @param node Node object.
1040 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1041 #' @param assign_slot assign slot and hostname
1042 #' @return Node object.
1043 #' @name nodes.create
1046 #' nodes.update is a method defined in Arvados class.
1048 #' @usage arv$nodes.update(node, uuid, assign_slot = NULL)
1049 #' @param node Node object.
1050 #' @param uuid The UUID of the Node in question.
1051 #' @param assign_slot assign slot and hostname
1052 #' @return Node object.
1053 #' @name nodes.update
1056 #' nodes.delete is a method defined in Arvados class.
1058 #' @usage arv$nodes.delete(uuid)
1059 #' @param uuid The UUID of the Node in question.
1060 #' @return Node object.
1061 #' @name nodes.delete
1064 #' nodes.ping is a method defined in Arvados class.
1066 #' @usage arv$nodes.ping(uuid, ping_secret)
1068 #' @param ping_secret
1069 #' @return Node object.
1073 #' nodes.list is a method defined in Arvados class.
1075 #' @usage arv$nodes.list(filters = NULL,
1076 #' where = NULL, order = NULL, select = NULL,
1077 #' distinct = NULL, limit = "100", offset = "0",
1087 #' @return NodeList object.
1091 #' repositories.get is a method defined in Arvados class.
1093 #' @usage arv$repositories.get(uuid)
1094 #' @param uuid The UUID of the Repository in question.
1095 #' @return Repository object.
1096 #' @name repositories.get
1099 #' repositories.create is a method defined in Arvados class.
1101 #' @usage arv$repositories.create(repository,
1102 #' ensure_unique_name = "false")
1103 #' @param repository Repository object.
1104 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1105 #' @return Repository object.
1106 #' @name repositories.create
1109 #' repositories.update is a method defined in Arvados class.
1111 #' @usage arv$repositories.update(repository,
1113 #' @param repository Repository object.
1114 #' @param uuid The UUID of the Repository in question.
1115 #' @return Repository object.
1116 #' @name repositories.update
1119 #' repositories.delete is a method defined in Arvados class.
1121 #' @usage arv$repositories.delete(uuid)
1122 #' @param uuid The UUID of the Repository in question.
1123 #' @return Repository object.
1124 #' @name repositories.delete
1127 #' repositories.get_all_permissions is a method defined in Arvados class.
1129 #' @usage arv$repositories.get_all_permissions(NULL)
1130 #' @return Repository object.
1131 #' @name repositories.get_all_permissions
1134 #' repositories.list is a method defined in Arvados class.
1136 #' @usage arv$repositories.list(filters = NULL,
1137 #' where = NULL, order = NULL, select = NULL,
1138 #' distinct = NULL, limit = "100", offset = "0",
1148 #' @return RepositoryList object.
1149 #' @name repositories.list
1152 #' specimens.get is a method defined in Arvados class.
1154 #' @usage arv$specimens.get(uuid)
1155 #' @param uuid The UUID of the Specimen in question.
1156 #' @return Specimen object.
1157 #' @name specimens.get
1160 #' specimens.create is a method defined in Arvados class.
1162 #' @usage arv$specimens.create(specimen,
1163 #' ensure_unique_name = "false")
1164 #' @param specimen Specimen object.
1165 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1166 #' @return Specimen object.
1167 #' @name specimens.create
1170 #' specimens.update is a method defined in Arvados class.
1172 #' @usage arv$specimens.update(specimen,
1174 #' @param specimen Specimen object.
1175 #' @param uuid The UUID of the Specimen in question.
1176 #' @return Specimen object.
1177 #' @name specimens.update
1180 #' specimens.delete is a method defined in Arvados class.
1182 #' @usage arv$specimens.delete(uuid)
1183 #' @param uuid The UUID of the Specimen in question.
1184 #' @return Specimen object.
1185 #' @name specimens.delete
1188 #' specimens.list is a method defined in Arvados class.
1190 #' @usage arv$specimens.list(filters = NULL,
1191 #' where = NULL, order = NULL, select = NULL,
1192 #' distinct = NULL, limit = "100", offset = "0",
1202 #' @return SpecimenList object.
1203 #' @name specimens.list
1206 #' logs.get is a method defined in Arvados class.
1208 #' @usage arv$logs.get(uuid)
1209 #' @param uuid The UUID of the Log in question.
1210 #' @return Log object.
1214 #' logs.create is a method defined in Arvados class.
1216 #' @usage arv$logs.create(log, ensure_unique_name = "false")
1217 #' @param log Log object.
1218 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1219 #' @return Log object.
1220 #' @name logs.create
1223 #' logs.update is a method defined in Arvados class.
1225 #' @usage arv$logs.update(log, uuid)
1226 #' @param log Log object.
1227 #' @param uuid The UUID of the Log in question.
1228 #' @return Log object.
1229 #' @name logs.update
1232 #' logs.delete is a method defined in Arvados class.
1234 #' @usage arv$logs.delete(uuid)
1235 #' @param uuid The UUID of the Log in question.
1236 #' @return Log object.
1237 #' @name logs.delete
1240 #' logs.list is a method defined in Arvados class.
1242 #' @usage arv$logs.list(filters = NULL, where = NULL,
1243 #' order = NULL, select = NULL, distinct = NULL,
1244 #' limit = "100", offset = "0", count = "exact")
1253 #' @return LogList object.
1257 #' traits.get is a method defined in Arvados class.
1259 #' @usage arv$traits.get(uuid)
1260 #' @param uuid The UUID of the Trait in question.
1261 #' @return Trait object.
1265 #' traits.create is a method defined in Arvados class.
1267 #' @usage arv$traits.create(trait, ensure_unique_name = "false")
1268 #' @param trait Trait object.
1269 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1270 #' @return Trait object.
1271 #' @name traits.create
1274 #' traits.update is a method defined in Arvados class.
1276 #' @usage arv$traits.update(trait, uuid)
1277 #' @param trait Trait object.
1278 #' @param uuid The UUID of the Trait in question.
1279 #' @return Trait object.
1280 #' @name traits.update
1283 #' traits.delete is a method defined in Arvados class.
1285 #' @usage arv$traits.delete(uuid)
1286 #' @param uuid The UUID of the Trait in question.
1287 #' @return Trait object.
1288 #' @name traits.delete
1291 #' traits.list is a method defined in Arvados class.
1293 #' @usage arv$traits.list(filters = NULL,
1294 #' where = NULL, order = NULL, select = NULL,
1295 #' distinct = NULL, limit = "100", offset = "0",
1305 #' @return TraitList object.
1306 #' @name traits.list
1309 #' virtual_machines.get is a method defined in Arvados class.
1311 #' @usage arv$virtual_machines.get(uuid)
1312 #' @param uuid The UUID of the VirtualMachine in question.
1313 #' @return VirtualMachine object.
1314 #' @name virtual_machines.get
1317 #' virtual_machines.create is a method defined in Arvados class.
1319 #' @usage arv$virtual_machines.create(virtualmachine,
1320 #' ensure_unique_name = "false")
1321 #' @param virtualMachine VirtualMachine object.
1322 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1323 #' @return VirtualMachine object.
1324 #' @name virtual_machines.create
1327 #' virtual_machines.update is a method defined in Arvados class.
1329 #' @usage arv$virtual_machines.update(virtualmachine,
1331 #' @param virtualMachine VirtualMachine object.
1332 #' @param uuid The UUID of the VirtualMachine in question.
1333 #' @return VirtualMachine object.
1334 #' @name virtual_machines.update
1337 #' virtual_machines.delete is a method defined in Arvados class.
1339 #' @usage arv$virtual_machines.delete(uuid)
1340 #' @param uuid The UUID of the VirtualMachine in question.
1341 #' @return VirtualMachine object.
1342 #' @name virtual_machines.delete
1345 #' virtual_machines.logins is a method defined in Arvados class.
1347 #' @usage arv$virtual_machines.logins(uuid)
1349 #' @return VirtualMachine object.
1350 #' @name virtual_machines.logins
1353 #' virtual_machines.get_all_logins is a method defined in Arvados class.
1355 #' @usage arv$virtual_machines.get_all_logins(NULL)
1356 #' @return VirtualMachine object.
1357 #' @name virtual_machines.get_all_logins
1360 #' virtual_machines.list is a method defined in Arvados class.
1362 #' @usage arv$virtual_machines.list(filters = NULL,
1363 #' where = NULL, order = NULL, select = NULL,
1364 #' distinct = NULL, limit = "100", offset = "0",
1374 #' @return VirtualMachineList object.
1375 #' @name virtual_machines.list
1378 #' workflows.get is a method defined in Arvados class.
1380 #' @usage arv$workflows.get(uuid)
1381 #' @param uuid The UUID of the Workflow in question.
1382 #' @return Workflow object.
1383 #' @name workflows.get
1386 #' workflows.create is a method defined in Arvados class.
1388 #' @usage arv$workflows.create(workflow,
1389 #' ensure_unique_name = "false")
1390 #' @param workflow Workflow object.
1391 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1392 #' @return Workflow object.
1393 #' @name workflows.create
1396 #' workflows.update is a method defined in Arvados class.
1398 #' @usage arv$workflows.update(workflow,
1400 #' @param workflow Workflow object.
1401 #' @param uuid The UUID of the Workflow in question.
1402 #' @return Workflow object.
1403 #' @name workflows.update
1406 #' workflows.delete is a method defined in Arvados class.
1408 #' @usage arv$workflows.delete(uuid)
1409 #' @param uuid The UUID of the Workflow in question.
1410 #' @return Workflow object.
1411 #' @name workflows.delete
1414 #' workflows.list is a method defined in Arvados class.
1416 #' @usage arv$workflows.list(filters = NULL,
1417 #' where = NULL, order = NULL, select = NULL,
1418 #' distinct = NULL, limit = "100", offset = "0",
1428 #' @return WorkflowList object.
1429 #' @name workflows.list
1432 #' groups.get is a method defined in Arvados class.
1434 #' @usage arv$groups.get(uuid)
1435 #' @param uuid The UUID of the Group in question.
1436 #' @return Group object.
1440 #' groups.create is a method defined in Arvados class.
1442 #' @usage arv$groups.create(group, ensure_unique_name = "false")
1443 #' @param group Group object.
1444 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1445 #' @return Group object.
1446 #' @name groups.create
1449 #' groups.update is a method defined in Arvados class.
1451 #' @usage arv$groups.update(group, uuid)
1452 #' @param group Group object.
1453 #' @param uuid The UUID of the Group in question.
1454 #' @return Group object.
1455 #' @name groups.update
1458 #' groups.delete is a method defined in Arvados class.
1460 #' @usage arv$groups.delete(uuid)
1461 #' @param uuid The UUID of the Group in question.
1462 #' @return Group object.
1463 #' @name groups.delete
1466 #' groups.contents is a method defined in Arvados class.
1468 #' @usage arv$groups.contents(filters = NULL,
1469 #' where = NULL, order = NULL, distinct = NULL,
1470 #' limit = "100", offset = "0", count = "exact",
1471 #' include_trash = NULL, uuid = NULL, recursive = NULL)
1479 #' @param include_trash Include items whose is_trashed attribute is true.
1481 #' @param recursive Include contents from child groups recursively.
1482 #' @return Group object.
1483 #' @name groups.contents
1486 #' groups.trash is a method defined in Arvados class.
1488 #' @usage arv$groups.trash(uuid)
1490 #' @return Group object.
1491 #' @name groups.trash
1494 #' groups.untrash is a method defined in Arvados class.
1496 #' @usage arv$groups.untrash(uuid)
1498 #' @return Group object.
1499 #' @name groups.untrash
1502 #' groups.list is a method defined in Arvados class.
1504 #' @usage arv$groups.list(filters = NULL,
1505 #' where = NULL, order = NULL, select = NULL,
1506 #' distinct = NULL, limit = "100", offset = "0",
1507 #' count = "exact", include_trash = NULL)
1516 #' @param include_trash Include items whose is_trashed attribute is true.
1517 #' @return GroupList object.
1518 #' @name groups.list
1521 #' user_agreements.get is a method defined in Arvados class.
1523 #' @usage arv$user_agreements.get(uuid)
1524 #' @param uuid The UUID of the UserAgreement in question.
1525 #' @return UserAgreement object.
1526 #' @name user_agreements.get
1529 #' user_agreements.create is a method defined in Arvados class.
1531 #' @usage arv$user_agreements.create(useragreement,
1532 #' ensure_unique_name = "false")
1533 #' @param userAgreement UserAgreement object.
1534 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1535 #' @return UserAgreement object.
1536 #' @name user_agreements.create
1539 #' user_agreements.update is a method defined in Arvados class.
1541 #' @usage arv$user_agreements.update(useragreement,
1543 #' @param userAgreement UserAgreement object.
1544 #' @param uuid The UUID of the UserAgreement in question.
1545 #' @return UserAgreement object.
1546 #' @name user_agreements.update
1549 #' user_agreements.delete is a method defined in Arvados class.
1551 #' @usage arv$user_agreements.delete(uuid)
1552 #' @param uuid The UUID of the UserAgreement in question.
1553 #' @return UserAgreement object.
1554 #' @name user_agreements.delete
1557 #' user_agreements.signatures is a method defined in Arvados class.
1559 #' @usage arv$user_agreements.signatures(NULL)
1560 #' @return UserAgreement object.
1561 #' @name user_agreements.signatures
1564 #' user_agreements.sign is a method defined in Arvados class.
1566 #' @usage arv$user_agreements.sign(NULL)
1567 #' @return UserAgreement object.
1568 #' @name user_agreements.sign
1571 #' user_agreements.list is a method defined in Arvados class.
1573 #' @usage arv$user_agreements.list(filters = NULL,
1574 #' where = NULL, order = NULL, select = NULL,
1575 #' distinct = NULL, limit = "100", offset = "0",
1585 #' @return UserAgreementList object.
1586 #' @name user_agreements.list
1589 #' user_agreements.new is a method defined in Arvados class.
1591 #' @usage arv$user_agreements.new(NULL)
1592 #' @return UserAgreement object.
1593 #' @name user_agreements.new
1597 Arvados <- R6::R6Class(
1603 initialize = function(authToken = NULL, hostName = NULL, numRetries = 0)
1605 if(!is.null(hostName))
1606 Sys.setenv(ARVADOS_API_HOST = hostName)
1608 if(!is.null(authToken))
1609 Sys.setenv(ARVADOS_API_TOKEN = authToken)
1611 hostName <- Sys.getenv("ARVADOS_API_HOST")
1612 token <- Sys.getenv("ARVADOS_API_TOKEN")
1614 if(hostName == "" | token == "")
1615 stop(paste("Please provide host name and authentification token",
1616 "or set ARVADOS_API_HOST and ARVADOS_API_TOKEN",
1617 "environment variables."))
1619 private$token <- token
1620 private$host <- paste0("https://", hostName, "/arvados/v1/")
1621 private$numRetries <- numRetries
1622 private$REST <- RESTService$new(token, hostName,
1623 HttpRequest$new(), HttpParser$new(),
1628 projects.get = function(uuid)
1630 self$groups.get(uuid)
1633 projects.create = function(group, ensure_unique_name = "false")
1635 group <- c("group_class" = "project", group)
1636 self$groups.create(group, ensure_unique_name)
1639 projects.update = function(group, uuid)
1641 group <- c("group_class" = "project", group)
1642 self$groups.update(group, uuid)
1645 projects.list = function(filters = NULL, where = NULL,
1646 order = NULL, select = NULL, distinct = NULL,
1647 limit = "100", offset = "0", count = "exact",
1648 include_trash = NULL)
1650 filters[[length(filters) + 1]] <- list("group_class", "=", "project")
1651 self$groups.list(filters, where, order, select, distinct,
1652 limit, offset, count, include_trash)
1655 projects.delete = function(uuid)
1657 self$groups.delete(uuid)
1660 users.get = function(uuid)
1662 endPoint <- stringr::str_interp("users/${uuid}")
1663 url <- paste0(private$host, endPoint)
1664 headers <- list(Authorization = paste("OAuth2", private$token),
1665 "Content-Type" = "application/json")
1670 response <- private$REST$http$exec("GET", url, headers, body,
1671 queryArgs, private$numRetries)
1672 resource <- private$REST$httpParser$parseJSONResponse(response)
1674 if(!is.null(resource$errors))
1675 stop(resource$errors)
1680 users.create = function(user, ensure_unique_name = "false")
1682 endPoint <- stringr::str_interp("users")
1683 url <- paste0(private$host, endPoint)
1684 headers <- list(Authorization = paste("OAuth2", private$token),
1685 "Content-Type" = "application/json")
1686 queryArgs <- list(ensure_unique_name = ensure_unique_name)
1688 if(length(user) > 0)
1689 body <- jsonlite::toJSON(list(user = user),
1694 response <- private$REST$http$exec("POST", url, headers, body,
1695 queryArgs, private$numRetries)
1696 resource <- private$REST$httpParser$parseJSONResponse(response)
1698 if(!is.null(resource$errors))
1699 stop(resource$errors)
1704 users.update = function(user, uuid)
1706 endPoint <- stringr::str_interp("users/${uuid}")
1707 url <- paste0(private$host, endPoint)
1708 headers <- list(Authorization = paste("OAuth2", private$token),
1709 "Content-Type" = "application/json")
1712 if(length(user) > 0)
1713 body <- jsonlite::toJSON(list(user = user),
1718 response <- private$REST$http$exec("PUT", url, headers, body,
1719 queryArgs, private$numRetries)
1720 resource <- private$REST$httpParser$parseJSONResponse(response)
1722 if(!is.null(resource$errors))
1723 stop(resource$errors)
1728 users.delete = function(uuid)
1730 endPoint <- stringr::str_interp("users/${uuid}")
1731 url <- paste0(private$host, endPoint)
1732 headers <- list(Authorization = paste("OAuth2", private$token),
1733 "Content-Type" = "application/json")
1738 response <- private$REST$http$exec("DELETE", url, headers, body,
1739 queryArgs, private$numRetries)
1740 resource <- private$REST$httpParser$parseJSONResponse(response)
1742 if(!is.null(resource$errors))
1743 stop(resource$errors)
1748 users.current = function()
1750 endPoint <- stringr::str_interp("users/current")
1751 url <- paste0(private$host, endPoint)
1752 headers <- list(Authorization = paste("OAuth2", private$token),
1753 "Content-Type" = "application/json")
1758 response <- private$REST$http$exec("GET", url, headers, body,
1759 queryArgs, private$numRetries)
1760 resource <- private$REST$httpParser$parseJSONResponse(response)
1762 if(!is.null(resource$errors))
1763 stop(resource$errors)
1768 users.system = function()
1770 endPoint <- stringr::str_interp("users/system")
1771 url <- paste0(private$host, endPoint)
1772 headers <- list(Authorization = paste("OAuth2", private$token),
1773 "Content-Type" = "application/json")
1778 response <- private$REST$http$exec("GET", url, headers, body,
1779 queryArgs, private$numRetries)
1780 resource <- private$REST$httpParser$parseJSONResponse(response)
1782 if(!is.null(resource$errors))
1783 stop(resource$errors)
1788 users.activate = function(uuid)
1790 endPoint <- stringr::str_interp("users/${uuid}/activate")
1791 url <- paste0(private$host, endPoint)
1792 headers <- list(Authorization = paste("OAuth2", private$token),
1793 "Content-Type" = "application/json")
1798 response <- private$REST$http$exec("POST", url, headers, body,
1799 queryArgs, private$numRetries)
1800 resource <- private$REST$httpParser$parseJSONResponse(response)
1802 if(!is.null(resource$errors))
1803 stop(resource$errors)
1808 users.setup = function(user = NULL, openid_prefix = NULL,
1809 repo_name = NULL, vm_uuid = NULL, send_notification_email = "false")
1811 endPoint <- stringr::str_interp("users/setup")
1812 url <- paste0(private$host, endPoint)
1813 headers <- list(Authorization = paste("OAuth2", private$token),
1814 "Content-Type" = "application/json")
1815 queryArgs <- list(user = user, openid_prefix = openid_prefix,
1816 repo_name = repo_name, vm_uuid = vm_uuid,
1817 send_notification_email = send_notification_email)
1821 response <- private$REST$http$exec("POST", url, headers, body,
1822 queryArgs, private$numRetries)
1823 resource <- private$REST$httpParser$parseJSONResponse(response)
1825 if(!is.null(resource$errors))
1826 stop(resource$errors)
1831 users.unsetup = function(uuid)
1833 endPoint <- stringr::str_interp("users/${uuid}/unsetup")
1834 url <- paste0(private$host, endPoint)
1835 headers <- list(Authorization = paste("OAuth2", private$token),
1836 "Content-Type" = "application/json")
1841 response <- private$REST$http$exec("POST", url, headers, body,
1842 queryArgs, private$numRetries)
1843 resource <- private$REST$httpParser$parseJSONResponse(response)
1845 if(!is.null(resource$errors))
1846 stop(resource$errors)
1851 users.update_uuid = function(uuid, new_uuid)
1853 endPoint <- stringr::str_interp("users/${uuid}/update_uuid")
1854 url <- paste0(private$host, endPoint)
1855 headers <- list(Authorization = paste("OAuth2", private$token),
1856 "Content-Type" = "application/json")
1857 queryArgs <- list(new_uuid = new_uuid)
1861 response <- private$REST$http$exec("POST", url, headers, body,
1862 queryArgs, private$numRetries)
1863 resource <- private$REST$httpParser$parseJSONResponse(response)
1865 if(!is.null(resource$errors))
1866 stop(resource$errors)
1871 users.list = function(filters = NULL, where = NULL,
1872 order = NULL, select = NULL, distinct = NULL,
1873 limit = "100", offset = "0", count = "exact")
1875 endPoint <- stringr::str_interp("users")
1876 url <- paste0(private$host, endPoint)
1877 headers <- list(Authorization = paste("OAuth2", private$token),
1878 "Content-Type" = "application/json")
1879 queryArgs <- list(filters = filters, where = where,
1880 order = order, select = select, distinct = distinct,
1881 limit = limit, offset = offset, count = count)
1885 response <- private$REST$http$exec("GET", url, headers, body,
1886 queryArgs, private$numRetries)
1887 resource <- private$REST$httpParser$parseJSONResponse(response)
1889 if(!is.null(resource$errors))
1890 stop(resource$errors)
1895 api_client_authorizations.get = function(uuid)
1897 endPoint <- stringr::str_interp("api_client_authorizations/${uuid}")
1898 url <- paste0(private$host, endPoint)
1899 headers <- list(Authorization = paste("OAuth2", private$token),
1900 "Content-Type" = "application/json")
1905 response <- private$REST$http$exec("GET", url, headers, body,
1906 queryArgs, private$numRetries)
1907 resource <- private$REST$httpParser$parseJSONResponse(response)
1909 if(!is.null(resource$errors))
1910 stop(resource$errors)
1915 api_client_authorizations.create = function(apiclientauthorization,
1916 ensure_unique_name = "false")
1918 endPoint <- stringr::str_interp("api_client_authorizations")
1919 url <- paste0(private$host, endPoint)
1920 headers <- list(Authorization = paste("OAuth2", private$token),
1921 "Content-Type" = "application/json")
1922 queryArgs <- list(ensure_unique_name = ensure_unique_name)
1924 if(length(apiclientauthorization) > 0)
1925 body <- jsonlite::toJSON(list(apiclientauthorization = apiclientauthorization),
1930 response <- private$REST$http$exec("POST", url, headers, body,
1931 queryArgs, private$numRetries)
1932 resource <- private$REST$httpParser$parseJSONResponse(response)
1934 if(!is.null(resource$errors))
1935 stop(resource$errors)
1940 api_client_authorizations.update = function(apiclientauthorization, uuid)
1942 endPoint <- stringr::str_interp("api_client_authorizations/${uuid}")
1943 url <- paste0(private$host, endPoint)
1944 headers <- list(Authorization = paste("OAuth2", private$token),
1945 "Content-Type" = "application/json")
1948 if(length(apiclientauthorization) > 0)
1949 body <- jsonlite::toJSON(list(apiclientauthorization = apiclientauthorization),
1954 response <- private$REST$http$exec("PUT", url, headers, body,
1955 queryArgs, private$numRetries)
1956 resource <- private$REST$httpParser$parseJSONResponse(response)
1958 if(!is.null(resource$errors))
1959 stop(resource$errors)
1964 api_client_authorizations.delete = function(uuid)
1966 endPoint <- stringr::str_interp("api_client_authorizations/${uuid}")
1967 url <- paste0(private$host, endPoint)
1968 headers <- list(Authorization = paste("OAuth2", private$token),
1969 "Content-Type" = "application/json")
1974 response <- private$REST$http$exec("DELETE", url, headers, body,
1975 queryArgs, private$numRetries)
1976 resource <- private$REST$httpParser$parseJSONResponse(response)
1978 if(!is.null(resource$errors))
1979 stop(resource$errors)
1984 api_client_authorizations.create_system_auth = function(api_client_id = NULL, scopes = NULL)
1986 endPoint <- stringr::str_interp("api_client_authorizations/create_system_auth")
1987 url <- paste0(private$host, endPoint)
1988 headers <- list(Authorization = paste("OAuth2", private$token),
1989 "Content-Type" = "application/json")
1990 queryArgs <- list(api_client_id = api_client_id,
1995 response <- private$REST$http$exec("POST", url, headers, body,
1996 queryArgs, private$numRetries)
1997 resource <- private$REST$httpParser$parseJSONResponse(response)
1999 if(!is.null(resource$errors))
2000 stop(resource$errors)
2005 api_client_authorizations.current = function()
2007 endPoint <- stringr::str_interp("api_client_authorizations/current")
2008 url <- paste0(private$host, endPoint)
2009 headers <- list(Authorization = paste("OAuth2", private$token),
2010 "Content-Type" = "application/json")
2015 response <- private$REST$http$exec("GET", url, headers, body,
2016 queryArgs, private$numRetries)
2017 resource <- private$REST$httpParser$parseJSONResponse(response)
2019 if(!is.null(resource$errors))
2020 stop(resource$errors)
2025 api_client_authorizations.list = function(filters = NULL,
2026 where = NULL, order = NULL, select = NULL,
2027 distinct = NULL, limit = "100", offset = "0",
2030 endPoint <- stringr::str_interp("api_client_authorizations")
2031 url <- paste0(private$host, endPoint)
2032 headers <- list(Authorization = paste("OAuth2", private$token),
2033 "Content-Type" = "application/json")
2034 queryArgs <- list(filters = filters, where = where,
2035 order = order, select = select, distinct = distinct,
2036 limit = limit, offset = offset, count = count)
2040 response <- private$REST$http$exec("GET", url, headers, body,
2041 queryArgs, private$numRetries)
2042 resource <- private$REST$httpParser$parseJSONResponse(response)
2044 if(!is.null(resource$errors))
2045 stop(resource$errors)
2050 containers.get = function(uuid)
2052 endPoint <- stringr::str_interp("containers/${uuid}")
2053 url <- paste0(private$host, endPoint)
2054 headers <- list(Authorization = paste("OAuth2", private$token),
2055 "Content-Type" = "application/json")
2060 response <- private$REST$http$exec("GET", url, headers, body,
2061 queryArgs, private$numRetries)
2062 resource <- private$REST$httpParser$parseJSONResponse(response)
2064 if(!is.null(resource$errors))
2065 stop(resource$errors)
2070 containers.create = function(container, ensure_unique_name = "false")
2072 endPoint <- stringr::str_interp("containers")
2073 url <- paste0(private$host, endPoint)
2074 headers <- list(Authorization = paste("OAuth2", private$token),
2075 "Content-Type" = "application/json")
2076 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2078 if(length(container) > 0)
2079 body <- jsonlite::toJSON(list(container = container),
2084 response <- private$REST$http$exec("POST", url, headers, body,
2085 queryArgs, private$numRetries)
2086 resource <- private$REST$httpParser$parseJSONResponse(response)
2088 if(!is.null(resource$errors))
2089 stop(resource$errors)
2094 containers.update = function(container, uuid)
2096 endPoint <- stringr::str_interp("containers/${uuid}")
2097 url <- paste0(private$host, endPoint)
2098 headers <- list(Authorization = paste("OAuth2", private$token),
2099 "Content-Type" = "application/json")
2102 if(length(container) > 0)
2103 body <- jsonlite::toJSON(list(container = container),
2108 response <- private$REST$http$exec("PUT", url, headers, body,
2109 queryArgs, private$numRetries)
2110 resource <- private$REST$httpParser$parseJSONResponse(response)
2112 if(!is.null(resource$errors))
2113 stop(resource$errors)
2118 containers.delete = function(uuid)
2120 endPoint <- stringr::str_interp("containers/${uuid}")
2121 url <- paste0(private$host, endPoint)
2122 headers <- list(Authorization = paste("OAuth2", private$token),
2123 "Content-Type" = "application/json")
2128 response <- private$REST$http$exec("DELETE", url, headers, body,
2129 queryArgs, private$numRetries)
2130 resource <- private$REST$httpParser$parseJSONResponse(response)
2132 if(!is.null(resource$errors))
2133 stop(resource$errors)
2138 containers.auth = function(uuid)
2140 endPoint <- stringr::str_interp("containers/${uuid}/auth")
2141 url <- paste0(private$host, endPoint)
2142 headers <- list(Authorization = paste("OAuth2", private$token),
2143 "Content-Type" = "application/json")
2148 response <- private$REST$http$exec("GET", url, headers, body,
2149 queryArgs, private$numRetries)
2150 resource <- private$REST$httpParser$parseJSONResponse(response)
2152 if(!is.null(resource$errors))
2153 stop(resource$errors)
2158 containers.lock = function(uuid)
2160 endPoint <- stringr::str_interp("containers/${uuid}/lock")
2161 url <- paste0(private$host, endPoint)
2162 headers <- list(Authorization = paste("OAuth2", private$token),
2163 "Content-Type" = "application/json")
2168 response <- private$REST$http$exec("POST", url, headers, body,
2169 queryArgs, private$numRetries)
2170 resource <- private$REST$httpParser$parseJSONResponse(response)
2172 if(!is.null(resource$errors))
2173 stop(resource$errors)
2178 containers.unlock = function(uuid)
2180 endPoint <- stringr::str_interp("containers/${uuid}/unlock")
2181 url <- paste0(private$host, endPoint)
2182 headers <- list(Authorization = paste("OAuth2", private$token),
2183 "Content-Type" = "application/json")
2188 response <- private$REST$http$exec("POST", url, headers, body,
2189 queryArgs, private$numRetries)
2190 resource <- private$REST$httpParser$parseJSONResponse(response)
2192 if(!is.null(resource$errors))
2193 stop(resource$errors)
2198 containers.secret_mounts = function(uuid)
2200 endPoint <- stringr::str_interp("containers/${uuid}/secret_mounts")
2201 url <- paste0(private$host, endPoint)
2202 headers <- list(Authorization = paste("OAuth2", private$token),
2203 "Content-Type" = "application/json")
2208 response <- private$REST$http$exec("GET", url, headers, body,
2209 queryArgs, private$numRetries)
2210 resource <- private$REST$httpParser$parseJSONResponse(response)
2212 if(!is.null(resource$errors))
2213 stop(resource$errors)
2218 containers.current = function()
2220 endPoint <- stringr::str_interp("containers/current")
2221 url <- paste0(private$host, endPoint)
2222 headers <- list(Authorization = paste("OAuth2", private$token),
2223 "Content-Type" = "application/json")
2228 response <- private$REST$http$exec("GET", url, headers, body,
2229 queryArgs, private$numRetries)
2230 resource <- private$REST$httpParser$parseJSONResponse(response)
2232 if(!is.null(resource$errors))
2233 stop(resource$errors)
2238 containers.list = function(filters = NULL,
2239 where = NULL, order = NULL, select = NULL,
2240 distinct = NULL, limit = "100", offset = "0",
2243 endPoint <- stringr::str_interp("containers")
2244 url <- paste0(private$host, endPoint)
2245 headers <- list(Authorization = paste("OAuth2", private$token),
2246 "Content-Type" = "application/json")
2247 queryArgs <- list(filters = filters, where = where,
2248 order = order, select = select, distinct = distinct,
2249 limit = limit, offset = offset, count = count)
2253 response <- private$REST$http$exec("GET", url, headers, body,
2254 queryArgs, private$numRetries)
2255 resource <- private$REST$httpParser$parseJSONResponse(response)
2257 if(!is.null(resource$errors))
2258 stop(resource$errors)
2263 api_clients.get = function(uuid)
2265 endPoint <- stringr::str_interp("api_clients/${uuid}")
2266 url <- paste0(private$host, endPoint)
2267 headers <- list(Authorization = paste("OAuth2", private$token),
2268 "Content-Type" = "application/json")
2273 response <- private$REST$http$exec("GET", url, headers, body,
2274 queryArgs, private$numRetries)
2275 resource <- private$REST$httpParser$parseJSONResponse(response)
2277 if(!is.null(resource$errors))
2278 stop(resource$errors)
2283 api_clients.create = function(apiclient, ensure_unique_name = "false")
2285 endPoint <- stringr::str_interp("api_clients")
2286 url <- paste0(private$host, endPoint)
2287 headers <- list(Authorization = paste("OAuth2", private$token),
2288 "Content-Type" = "application/json")
2289 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2291 if(length(apiclient) > 0)
2292 body <- jsonlite::toJSON(list(apiclient = apiclient),
2297 response <- private$REST$http$exec("POST", url, headers, body,
2298 queryArgs, private$numRetries)
2299 resource <- private$REST$httpParser$parseJSONResponse(response)
2301 if(!is.null(resource$errors))
2302 stop(resource$errors)
2307 api_clients.update = function(apiclient, uuid)
2309 endPoint <- stringr::str_interp("api_clients/${uuid}")
2310 url <- paste0(private$host, endPoint)
2311 headers <- list(Authorization = paste("OAuth2", private$token),
2312 "Content-Type" = "application/json")
2315 if(length(apiclient) > 0)
2316 body <- jsonlite::toJSON(list(apiclient = apiclient),
2321 response <- private$REST$http$exec("PUT", url, headers, body,
2322 queryArgs, private$numRetries)
2323 resource <- private$REST$httpParser$parseJSONResponse(response)
2325 if(!is.null(resource$errors))
2326 stop(resource$errors)
2331 api_clients.delete = function(uuid)
2333 endPoint <- stringr::str_interp("api_clients/${uuid}")
2334 url <- paste0(private$host, endPoint)
2335 headers <- list(Authorization = paste("OAuth2", private$token),
2336 "Content-Type" = "application/json")
2341 response <- private$REST$http$exec("DELETE", url, headers, body,
2342 queryArgs, private$numRetries)
2343 resource <- private$REST$httpParser$parseJSONResponse(response)
2345 if(!is.null(resource$errors))
2346 stop(resource$errors)
2351 api_clients.list = function(filters = NULL,
2352 where = NULL, order = NULL, select = NULL,
2353 distinct = NULL, limit = "100", offset = "0",
2356 endPoint <- stringr::str_interp("api_clients")
2357 url <- paste0(private$host, endPoint)
2358 headers <- list(Authorization = paste("OAuth2", private$token),
2359 "Content-Type" = "application/json")
2360 queryArgs <- list(filters = filters, where = where,
2361 order = order, select = select, distinct = distinct,
2362 limit = limit, offset = offset, count = count)
2366 response <- private$REST$http$exec("GET", url, headers, body,
2367 queryArgs, private$numRetries)
2368 resource <- private$REST$httpParser$parseJSONResponse(response)
2370 if(!is.null(resource$errors))
2371 stop(resource$errors)
2376 authorized_keys.get = function(uuid)
2378 endPoint <- stringr::str_interp("authorized_keys/${uuid}")
2379 url <- paste0(private$host, endPoint)
2380 headers <- list(Authorization = paste("OAuth2", private$token),
2381 "Content-Type" = "application/json")
2386 response <- private$REST$http$exec("GET", url, headers, body,
2387 queryArgs, private$numRetries)
2388 resource <- private$REST$httpParser$parseJSONResponse(response)
2390 if(!is.null(resource$errors))
2391 stop(resource$errors)
2396 authorized_keys.create = function(authorizedkey,
2397 ensure_unique_name = "false")
2399 endPoint <- stringr::str_interp("authorized_keys")
2400 url <- paste0(private$host, endPoint)
2401 headers <- list(Authorization = paste("OAuth2", private$token),
2402 "Content-Type" = "application/json")
2403 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2405 if(length(authorizedkey) > 0)
2406 body <- jsonlite::toJSON(list(authorizedkey = authorizedkey),
2411 response <- private$REST$http$exec("POST", url, headers, body,
2412 queryArgs, private$numRetries)
2413 resource <- private$REST$httpParser$parseJSONResponse(response)
2415 if(!is.null(resource$errors))
2416 stop(resource$errors)
2421 authorized_keys.update = function(authorizedkey, uuid)
2423 endPoint <- stringr::str_interp("authorized_keys/${uuid}")
2424 url <- paste0(private$host, endPoint)
2425 headers <- list(Authorization = paste("OAuth2", private$token),
2426 "Content-Type" = "application/json")
2429 if(length(authorizedkey) > 0)
2430 body <- jsonlite::toJSON(list(authorizedkey = authorizedkey),
2435 response <- private$REST$http$exec("PUT", url, headers, body,
2436 queryArgs, private$numRetries)
2437 resource <- private$REST$httpParser$parseJSONResponse(response)
2439 if(!is.null(resource$errors))
2440 stop(resource$errors)
2445 authorized_keys.delete = function(uuid)
2447 endPoint <- stringr::str_interp("authorized_keys/${uuid}")
2448 url <- paste0(private$host, endPoint)
2449 headers <- list(Authorization = paste("OAuth2", private$token),
2450 "Content-Type" = "application/json")
2455 response <- private$REST$http$exec("DELETE", url, headers, body,
2456 queryArgs, private$numRetries)
2457 resource <- private$REST$httpParser$parseJSONResponse(response)
2459 if(!is.null(resource$errors))
2460 stop(resource$errors)
2465 authorized_keys.list = function(filters = NULL,
2466 where = NULL, order = NULL, select = NULL,
2467 distinct = NULL, limit = "100", offset = "0",
2470 endPoint <- stringr::str_interp("authorized_keys")
2471 url <- paste0(private$host, endPoint)
2472 headers <- list(Authorization = paste("OAuth2", private$token),
2473 "Content-Type" = "application/json")
2474 queryArgs <- list(filters = filters, where = where,
2475 order = order, select = select, distinct = distinct,
2476 limit = limit, offset = offset, count = count)
2480 response <- private$REST$http$exec("GET", url, headers, body,
2481 queryArgs, private$numRetries)
2482 resource <- private$REST$httpParser$parseJSONResponse(response)
2484 if(!is.null(resource$errors))
2485 stop(resource$errors)
2490 container_requests.get = function(uuid)
2492 endPoint <- stringr::str_interp("container_requests/${uuid}")
2493 url <- paste0(private$host, endPoint)
2494 headers <- list(Authorization = paste("OAuth2", private$token),
2495 "Content-Type" = "application/json")
2500 response <- private$REST$http$exec("GET", url, headers, body,
2501 queryArgs, private$numRetries)
2502 resource <- private$REST$httpParser$parseJSONResponse(response)
2504 if(!is.null(resource$errors))
2505 stop(resource$errors)
2510 container_requests.create = function(containerrequest,
2511 ensure_unique_name = "false")
2513 endPoint <- stringr::str_interp("container_requests")
2514 url <- paste0(private$host, endPoint)
2515 headers <- list(Authorization = paste("OAuth2", private$token),
2516 "Content-Type" = "application/json")
2517 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2519 if(length(containerrequest) > 0)
2520 body <- jsonlite::toJSON(list(containerrequest = containerrequest),
2525 response <- private$REST$http$exec("POST", url, headers, body,
2526 queryArgs, private$numRetries)
2527 resource <- private$REST$httpParser$parseJSONResponse(response)
2529 if(!is.null(resource$errors))
2530 stop(resource$errors)
2535 container_requests.update = function(containerrequest, uuid)
2537 endPoint <- stringr::str_interp("container_requests/${uuid}")
2538 url <- paste0(private$host, endPoint)
2539 headers <- list(Authorization = paste("OAuth2", private$token),
2540 "Content-Type" = "application/json")
2543 if(length(containerrequest) > 0)
2544 body <- jsonlite::toJSON(list(containerrequest = containerrequest),
2549 response <- private$REST$http$exec("PUT", url, headers, body,
2550 queryArgs, private$numRetries)
2551 resource <- private$REST$httpParser$parseJSONResponse(response)
2553 if(!is.null(resource$errors))
2554 stop(resource$errors)
2559 container_requests.delete = function(uuid)
2561 endPoint <- stringr::str_interp("container_requests/${uuid}")
2562 url <- paste0(private$host, endPoint)
2563 headers <- list(Authorization = paste("OAuth2", private$token),
2564 "Content-Type" = "application/json")
2569 response <- private$REST$http$exec("DELETE", url, headers, body,
2570 queryArgs, private$numRetries)
2571 resource <- private$REST$httpParser$parseJSONResponse(response)
2573 if(!is.null(resource$errors))
2574 stop(resource$errors)
2579 container_requests.list = function(filters = NULL,
2580 where = NULL, order = NULL, select = NULL,
2581 distinct = NULL, limit = "100", offset = "0",
2584 endPoint <- stringr::str_interp("container_requests")
2585 url <- paste0(private$host, endPoint)
2586 headers <- list(Authorization = paste("OAuth2", private$token),
2587 "Content-Type" = "application/json")
2588 queryArgs <- list(filters = filters, where = where,
2589 order = order, select = select, distinct = distinct,
2590 limit = limit, offset = offset, count = count)
2594 response <- private$REST$http$exec("GET", url, headers, body,
2595 queryArgs, private$numRetries)
2596 resource <- private$REST$httpParser$parseJSONResponse(response)
2598 if(!is.null(resource$errors))
2599 stop(resource$errors)
2604 collections.get = function(uuid)
2606 endPoint <- stringr::str_interp("collections/${uuid}")
2607 url <- paste0(private$host, endPoint)
2608 headers <- list(Authorization = paste("OAuth2", private$token),
2609 "Content-Type" = "application/json")
2614 response <- private$REST$http$exec("GET", url, headers, body,
2615 queryArgs, private$numRetries)
2616 resource <- private$REST$httpParser$parseJSONResponse(response)
2618 if(!is.null(resource$errors))
2619 stop(resource$errors)
2624 collections.create = function(collection, ensure_unique_name = "false")
2626 endPoint <- stringr::str_interp("collections")
2627 url <- paste0(private$host, endPoint)
2628 headers <- list(Authorization = paste("OAuth2", private$token),
2629 "Content-Type" = "application/json")
2630 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2632 if(length(collection) > 0)
2633 body <- jsonlite::toJSON(list(collection = collection),
2638 response <- private$REST$http$exec("POST", url, headers, body,
2639 queryArgs, private$numRetries)
2640 resource <- private$REST$httpParser$parseJSONResponse(response)
2642 if(!is.null(resource$errors))
2643 stop(resource$errors)
2648 collections.update = function(collection, uuid)
2650 endPoint <- stringr::str_interp("collections/${uuid}")
2651 url <- paste0(private$host, endPoint)
2652 headers <- list(Authorization = paste("OAuth2", private$token),
2653 "Content-Type" = "application/json")
2656 if(length(collection) > 0)
2657 body <- jsonlite::toJSON(list(collection = collection),
2662 response <- private$REST$http$exec("PUT", url, headers, body,
2663 queryArgs, private$numRetries)
2664 resource <- private$REST$httpParser$parseJSONResponse(response)
2666 if(!is.null(resource$errors))
2667 stop(resource$errors)
2672 collections.delete = function(uuid)
2674 endPoint <- stringr::str_interp("collections/${uuid}")
2675 url <- paste0(private$host, endPoint)
2676 headers <- list(Authorization = paste("OAuth2", private$token),
2677 "Content-Type" = "application/json")
2682 response <- private$REST$http$exec("DELETE", url, headers, body,
2683 queryArgs, private$numRetries)
2684 resource <- private$REST$httpParser$parseJSONResponse(response)
2686 if(!is.null(resource$errors))
2687 stop(resource$errors)
2692 collections.provenance = function(uuid)
2694 endPoint <- stringr::str_interp("collections/${uuid}/provenance")
2695 url <- paste0(private$host, endPoint)
2696 headers <- list(Authorization = paste("OAuth2", private$token),
2697 "Content-Type" = "application/json")
2702 response <- private$REST$http$exec("GET", url, headers, body,
2703 queryArgs, private$numRetries)
2704 resource <- private$REST$httpParser$parseJSONResponse(response)
2706 if(!is.null(resource$errors))
2707 stop(resource$errors)
2712 collections.used_by = function(uuid)
2714 endPoint <- stringr::str_interp("collections/${uuid}/used_by")
2715 url <- paste0(private$host, endPoint)
2716 headers <- list(Authorization = paste("OAuth2", private$token),
2717 "Content-Type" = "application/json")
2722 response <- private$REST$http$exec("GET", url, headers, body,
2723 queryArgs, private$numRetries)
2724 resource <- private$REST$httpParser$parseJSONResponse(response)
2726 if(!is.null(resource$errors))
2727 stop(resource$errors)
2732 collections.trash = function(uuid)
2734 endPoint <- stringr::str_interp("collections/${uuid}/trash")
2735 url <- paste0(private$host, endPoint)
2736 headers <- list(Authorization = paste("OAuth2", private$token),
2737 "Content-Type" = "application/json")
2742 response <- private$REST$http$exec("POST", url, headers, body,
2743 queryArgs, private$numRetries)
2744 resource <- private$REST$httpParser$parseJSONResponse(response)
2746 if(!is.null(resource$errors))
2747 stop(resource$errors)
2752 collections.untrash = function(uuid)
2754 endPoint <- stringr::str_interp("collections/${uuid}/untrash")
2755 url <- paste0(private$host, endPoint)
2756 headers <- list(Authorization = paste("OAuth2", private$token),
2757 "Content-Type" = "application/json")
2762 response <- private$REST$http$exec("POST", url, headers, body,
2763 queryArgs, private$numRetries)
2764 resource <- private$REST$httpParser$parseJSONResponse(response)
2766 if(!is.null(resource$errors))
2767 stop(resource$errors)
2772 collections.list = function(filters = NULL,
2773 where = NULL, order = NULL, select = NULL,
2774 distinct = NULL, limit = "100", offset = "0",
2775 count = "exact", include_trash = NULL)
2777 endPoint <- stringr::str_interp("collections")
2778 url <- paste0(private$host, endPoint)
2779 headers <- list(Authorization = paste("OAuth2", private$token),
2780 "Content-Type" = "application/json")
2781 queryArgs <- list(filters = filters, where = where,
2782 order = order, select = select, distinct = distinct,
2783 limit = limit, offset = offset, count = count,
2784 include_trash = include_trash)
2788 response <- private$REST$http$exec("GET", url, headers, body,
2789 queryArgs, private$numRetries)
2790 resource <- private$REST$httpParser$parseJSONResponse(response)
2792 if(!is.null(resource$errors))
2793 stop(resource$errors)
2798 humans.get = function(uuid)
2800 endPoint <- stringr::str_interp("humans/${uuid}")
2801 url <- paste0(private$host, endPoint)
2802 headers <- list(Authorization = paste("OAuth2", private$token),
2803 "Content-Type" = "application/json")
2808 response <- private$REST$http$exec("GET", url, headers, body,
2809 queryArgs, private$numRetries)
2810 resource <- private$REST$httpParser$parseJSONResponse(response)
2812 if(!is.null(resource$errors))
2813 stop(resource$errors)
2818 humans.create = function(human, ensure_unique_name = "false")
2820 endPoint <- stringr::str_interp("humans")
2821 url <- paste0(private$host, endPoint)
2822 headers <- list(Authorization = paste("OAuth2", private$token),
2823 "Content-Type" = "application/json")
2824 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2826 if(length(human) > 0)
2827 body <- jsonlite::toJSON(list(human = human),
2832 response <- private$REST$http$exec("POST", url, headers, body,
2833 queryArgs, private$numRetries)
2834 resource <- private$REST$httpParser$parseJSONResponse(response)
2836 if(!is.null(resource$errors))
2837 stop(resource$errors)
2842 humans.update = function(human, uuid)
2844 endPoint <- stringr::str_interp("humans/${uuid}")
2845 url <- paste0(private$host, endPoint)
2846 headers <- list(Authorization = paste("OAuth2", private$token),
2847 "Content-Type" = "application/json")
2850 if(length(human) > 0)
2851 body <- jsonlite::toJSON(list(human = human),
2856 response <- private$REST$http$exec("PUT", url, headers, body,
2857 queryArgs, private$numRetries)
2858 resource <- private$REST$httpParser$parseJSONResponse(response)
2860 if(!is.null(resource$errors))
2861 stop(resource$errors)
2866 humans.delete = function(uuid)
2868 endPoint <- stringr::str_interp("humans/${uuid}")
2869 url <- paste0(private$host, endPoint)
2870 headers <- list(Authorization = paste("OAuth2", private$token),
2871 "Content-Type" = "application/json")
2876 response <- private$REST$http$exec("DELETE", url, headers, body,
2877 queryArgs, private$numRetries)
2878 resource <- private$REST$httpParser$parseJSONResponse(response)
2880 if(!is.null(resource$errors))
2881 stop(resource$errors)
2886 humans.list = function(filters = NULL, where = NULL,
2887 order = NULL, select = NULL, distinct = NULL,
2888 limit = "100", offset = "0", count = "exact")
2890 endPoint <- stringr::str_interp("humans")
2891 url <- paste0(private$host, endPoint)
2892 headers <- list(Authorization = paste("OAuth2", private$token),
2893 "Content-Type" = "application/json")
2894 queryArgs <- list(filters = filters, where = where,
2895 order = order, select = select, distinct = distinct,
2896 limit = limit, offset = offset, count = count)
2900 response <- private$REST$http$exec("GET", url, headers, body,
2901 queryArgs, private$numRetries)
2902 resource <- private$REST$httpParser$parseJSONResponse(response)
2904 if(!is.null(resource$errors))
2905 stop(resource$errors)
2910 job_tasks.get = function(uuid)
2912 endPoint <- stringr::str_interp("job_tasks/${uuid}")
2913 url <- paste0(private$host, endPoint)
2914 headers <- list(Authorization = paste("OAuth2", private$token),
2915 "Content-Type" = "application/json")
2920 response <- private$REST$http$exec("GET", url, headers, body,
2921 queryArgs, private$numRetries)
2922 resource <- private$REST$httpParser$parseJSONResponse(response)
2924 if(!is.null(resource$errors))
2925 stop(resource$errors)
2930 job_tasks.create = function(jobtask, ensure_unique_name = "false")
2932 endPoint <- stringr::str_interp("job_tasks")
2933 url <- paste0(private$host, endPoint)
2934 headers <- list(Authorization = paste("OAuth2", private$token),
2935 "Content-Type" = "application/json")
2936 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2938 if(length(jobtask) > 0)
2939 body <- jsonlite::toJSON(list(jobtask = jobtask),
2944 response <- private$REST$http$exec("POST", url, headers, body,
2945 queryArgs, private$numRetries)
2946 resource <- private$REST$httpParser$parseJSONResponse(response)
2948 if(!is.null(resource$errors))
2949 stop(resource$errors)
2954 job_tasks.update = function(jobtask, uuid)
2956 endPoint <- stringr::str_interp("job_tasks/${uuid}")
2957 url <- paste0(private$host, endPoint)
2958 headers <- list(Authorization = paste("OAuth2", private$token),
2959 "Content-Type" = "application/json")
2962 if(length(jobtask) > 0)
2963 body <- jsonlite::toJSON(list(jobtask = jobtask),
2968 response <- private$REST$http$exec("PUT", url, headers, body,
2969 queryArgs, private$numRetries)
2970 resource <- private$REST$httpParser$parseJSONResponse(response)
2972 if(!is.null(resource$errors))
2973 stop(resource$errors)
2978 job_tasks.delete = function(uuid)
2980 endPoint <- stringr::str_interp("job_tasks/${uuid}")
2981 url <- paste0(private$host, endPoint)
2982 headers <- list(Authorization = paste("OAuth2", private$token),
2983 "Content-Type" = "application/json")
2988 response <- private$REST$http$exec("DELETE", url, headers, body,
2989 queryArgs, private$numRetries)
2990 resource <- private$REST$httpParser$parseJSONResponse(response)
2992 if(!is.null(resource$errors))
2993 stop(resource$errors)
2998 job_tasks.list = function(filters = NULL,
2999 where = NULL, order = NULL, select = NULL,
3000 distinct = NULL, limit = "100", offset = "0",
3003 endPoint <- stringr::str_interp("job_tasks")
3004 url <- paste0(private$host, endPoint)
3005 headers <- list(Authorization = paste("OAuth2", private$token),
3006 "Content-Type" = "application/json")
3007 queryArgs <- list(filters = filters, where = where,
3008 order = order, select = select, distinct = distinct,
3009 limit = limit, offset = offset, count = count)
3013 response <- private$REST$http$exec("GET", url, headers, body,
3014 queryArgs, private$numRetries)
3015 resource <- private$REST$httpParser$parseJSONResponse(response)
3017 if(!is.null(resource$errors))
3018 stop(resource$errors)
3023 links.get = function(uuid)
3025 endPoint <- stringr::str_interp("links/${uuid}")
3026 url <- paste0(private$host, endPoint)
3027 headers <- list(Authorization = paste("OAuth2", private$token),
3028 "Content-Type" = "application/json")
3033 response <- private$REST$http$exec("GET", url, headers, body,
3034 queryArgs, private$numRetries)
3035 resource <- private$REST$httpParser$parseJSONResponse(response)
3037 if(!is.null(resource$errors))
3038 stop(resource$errors)
3043 links.create = function(link, ensure_unique_name = "false")
3045 endPoint <- stringr::str_interp("links")
3046 url <- paste0(private$host, endPoint)
3047 headers <- list(Authorization = paste("OAuth2", private$token),
3048 "Content-Type" = "application/json")
3049 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3051 if(length(link) > 0)
3052 body <- jsonlite::toJSON(list(link = link),
3057 response <- private$REST$http$exec("POST", url, headers, body,
3058 queryArgs, private$numRetries)
3059 resource <- private$REST$httpParser$parseJSONResponse(response)
3061 if(!is.null(resource$errors))
3062 stop(resource$errors)
3067 links.update = function(link, uuid)
3069 endPoint <- stringr::str_interp("links/${uuid}")
3070 url <- paste0(private$host, endPoint)
3071 headers <- list(Authorization = paste("OAuth2", private$token),
3072 "Content-Type" = "application/json")
3075 if(length(link) > 0)
3076 body <- jsonlite::toJSON(list(link = link),
3081 response <- private$REST$http$exec("PUT", url, headers, body,
3082 queryArgs, private$numRetries)
3083 resource <- private$REST$httpParser$parseJSONResponse(response)
3085 if(!is.null(resource$errors))
3086 stop(resource$errors)
3091 links.delete = function(uuid)
3093 endPoint <- stringr::str_interp("links/${uuid}")
3094 url <- paste0(private$host, endPoint)
3095 headers <- list(Authorization = paste("OAuth2", private$token),
3096 "Content-Type" = "application/json")
3101 response <- private$REST$http$exec("DELETE", url, headers, body,
3102 queryArgs, private$numRetries)
3103 resource <- private$REST$httpParser$parseJSONResponse(response)
3105 if(!is.null(resource$errors))
3106 stop(resource$errors)
3111 links.list = function(filters = NULL, where = NULL,
3112 order = NULL, select = NULL, distinct = NULL,
3113 limit = "100", offset = "0", count = "exact")
3115 endPoint <- stringr::str_interp("links")
3116 url <- paste0(private$host, endPoint)
3117 headers <- list(Authorization = paste("OAuth2", private$token),
3118 "Content-Type" = "application/json")
3119 queryArgs <- list(filters = filters, where = where,
3120 order = order, select = select, distinct = distinct,
3121 limit = limit, offset = offset, count = count)
3125 response <- private$REST$http$exec("GET", url, headers, body,
3126 queryArgs, private$numRetries)
3127 resource <- private$REST$httpParser$parseJSONResponse(response)
3129 if(!is.null(resource$errors))
3130 stop(resource$errors)
3135 links.get_permissions = function(uuid)
3137 endPoint <- stringr::str_interp("permissions/${uuid}")
3138 url <- paste0(private$host, endPoint)
3139 headers <- list(Authorization = paste("OAuth2", private$token),
3140 "Content-Type" = "application/json")
3145 response <- private$REST$http$exec("GET", url, headers, body,
3146 queryArgs, private$numRetries)
3147 resource <- private$REST$httpParser$parseJSONResponse(response)
3149 if(!is.null(resource$errors))
3150 stop(resource$errors)
3155 jobs.get = function(uuid)
3157 endPoint <- stringr::str_interp("jobs/${uuid}")
3158 url <- paste0(private$host, endPoint)
3159 headers <- list(Authorization = paste("OAuth2", private$token),
3160 "Content-Type" = "application/json")
3165 response <- private$REST$http$exec("GET", url, headers, body,
3166 queryArgs, private$numRetries)
3167 resource <- private$REST$httpParser$parseJSONResponse(response)
3169 if(!is.null(resource$errors))
3170 stop(resource$errors)
3175 jobs.create = function(job, ensure_unique_name = "false",
3176 find_or_create = "false", filters = NULL,
3177 minimum_script_version = NULL, exclude_script_versions = NULL)
3179 endPoint <- stringr::str_interp("jobs")
3180 url <- paste0(private$host, endPoint)
3181 headers <- list(Authorization = paste("OAuth2", private$token),
3182 "Content-Type" = "application/json")
3183 queryArgs <- list(ensure_unique_name = ensure_unique_name,
3184 find_or_create = find_or_create, filters = filters,
3185 minimum_script_version = minimum_script_version,
3186 exclude_script_versions = exclude_script_versions)
3189 body <- jsonlite::toJSON(list(job = job),
3194 response <- private$REST$http$exec("POST", url, headers, body,
3195 queryArgs, private$numRetries)
3196 resource <- private$REST$httpParser$parseJSONResponse(response)
3198 if(!is.null(resource$errors))
3199 stop(resource$errors)
3204 jobs.update = function(job, uuid)
3206 endPoint <- stringr::str_interp("jobs/${uuid}")
3207 url <- paste0(private$host, endPoint)
3208 headers <- list(Authorization = paste("OAuth2", private$token),
3209 "Content-Type" = "application/json")
3213 body <- jsonlite::toJSON(list(job = job),
3218 response <- private$REST$http$exec("PUT", url, headers, body,
3219 queryArgs, private$numRetries)
3220 resource <- private$REST$httpParser$parseJSONResponse(response)
3222 if(!is.null(resource$errors))
3223 stop(resource$errors)
3228 jobs.delete = function(uuid)
3230 endPoint <- stringr::str_interp("jobs/${uuid}")
3231 url <- paste0(private$host, endPoint)
3232 headers <- list(Authorization = paste("OAuth2", private$token),
3233 "Content-Type" = "application/json")
3238 response <- private$REST$http$exec("DELETE", url, headers, body,
3239 queryArgs, private$numRetries)
3240 resource <- private$REST$httpParser$parseJSONResponse(response)
3242 if(!is.null(resource$errors))
3243 stop(resource$errors)
3248 jobs.queue = function(filters = NULL, where = NULL,
3249 order = NULL, select = NULL, distinct = NULL,
3250 limit = "100", offset = "0", count = "exact")
3252 endPoint <- stringr::str_interp("jobs/queue")
3253 url <- paste0(private$host, endPoint)
3254 headers <- list(Authorization = paste("OAuth2", private$token),
3255 "Content-Type" = "application/json")
3256 queryArgs <- list(filters = filters, where = where,
3257 order = order, select = select, distinct = distinct,
3258 limit = limit, offset = offset, count = count)
3262 response <- private$REST$http$exec("GET", url, headers, body,
3263 queryArgs, private$numRetries)
3264 resource <- private$REST$httpParser$parseJSONResponse(response)
3266 if(!is.null(resource$errors))
3267 stop(resource$errors)
3272 jobs.queue_size = function()
3274 endPoint <- stringr::str_interp("jobs/queue_size")
3275 url <- paste0(private$host, endPoint)
3276 headers <- list(Authorization = paste("OAuth2", private$token),
3277 "Content-Type" = "application/json")
3282 response <- private$REST$http$exec("GET", url, headers, body,
3283 queryArgs, private$numRetries)
3284 resource <- private$REST$httpParser$parseJSONResponse(response)
3286 if(!is.null(resource$errors))
3287 stop(resource$errors)
3292 jobs.cancel = function(uuid)
3294 endPoint <- stringr::str_interp("jobs/${uuid}/cancel")
3295 url <- paste0(private$host, endPoint)
3296 headers <- list(Authorization = paste("OAuth2", private$token),
3297 "Content-Type" = "application/json")
3302 response <- private$REST$http$exec("POST", url, headers, body,
3303 queryArgs, private$numRetries)
3304 resource <- private$REST$httpParser$parseJSONResponse(response)
3306 if(!is.null(resource$errors))
3307 stop(resource$errors)
3312 jobs.lock = function(uuid)
3314 endPoint <- stringr::str_interp("jobs/${uuid}/lock")
3315 url <- paste0(private$host, endPoint)
3316 headers <- list(Authorization = paste("OAuth2", private$token),
3317 "Content-Type" = "application/json")
3322 response <- private$REST$http$exec("POST", url, headers, body,
3323 queryArgs, private$numRetries)
3324 resource <- private$REST$httpParser$parseJSONResponse(response)
3326 if(!is.null(resource$errors))
3327 stop(resource$errors)
3332 jobs.list = function(filters = NULL, where = NULL,
3333 order = NULL, select = NULL, distinct = NULL,
3334 limit = "100", offset = "0", count = "exact")
3336 endPoint <- stringr::str_interp("jobs")
3337 url <- paste0(private$host, endPoint)
3338 headers <- list(Authorization = paste("OAuth2", private$token),
3339 "Content-Type" = "application/json")
3340 queryArgs <- list(filters = filters, where = where,
3341 order = order, select = select, distinct = distinct,
3342 limit = limit, offset = offset, count = count)
3346 response <- private$REST$http$exec("GET", url, headers, body,
3347 queryArgs, private$numRetries)
3348 resource <- private$REST$httpParser$parseJSONResponse(response)
3350 if(!is.null(resource$errors))
3351 stop(resource$errors)
3356 keep_disks.get = function(uuid)
3358 endPoint <- stringr::str_interp("keep_disks/${uuid}")
3359 url <- paste0(private$host, endPoint)
3360 headers <- list(Authorization = paste("OAuth2", private$token),
3361 "Content-Type" = "application/json")
3366 response <- private$REST$http$exec("GET", url, headers, body,
3367 queryArgs, private$numRetries)
3368 resource <- private$REST$httpParser$parseJSONResponse(response)
3370 if(!is.null(resource$errors))
3371 stop(resource$errors)
3376 keep_disks.create = function(keepdisk, ensure_unique_name = "false")
3378 endPoint <- stringr::str_interp("keep_disks")
3379 url <- paste0(private$host, endPoint)
3380 headers <- list(Authorization = paste("OAuth2", private$token),
3381 "Content-Type" = "application/json")
3382 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3384 if(length(keepdisk) > 0)
3385 body <- jsonlite::toJSON(list(keepdisk = keepdisk),
3390 response <- private$REST$http$exec("POST", url, headers, body,
3391 queryArgs, private$numRetries)
3392 resource <- private$REST$httpParser$parseJSONResponse(response)
3394 if(!is.null(resource$errors))
3395 stop(resource$errors)
3400 keep_disks.update = function(keepdisk, uuid)
3402 endPoint <- stringr::str_interp("keep_disks/${uuid}")
3403 url <- paste0(private$host, endPoint)
3404 headers <- list(Authorization = paste("OAuth2", private$token),
3405 "Content-Type" = "application/json")
3408 if(length(keepdisk) > 0)
3409 body <- jsonlite::toJSON(list(keepdisk = keepdisk),
3414 response <- private$REST$http$exec("PUT", url, headers, body,
3415 queryArgs, private$numRetries)
3416 resource <- private$REST$httpParser$parseJSONResponse(response)
3418 if(!is.null(resource$errors))
3419 stop(resource$errors)
3424 keep_disks.delete = function(uuid)
3426 endPoint <- stringr::str_interp("keep_disks/${uuid}")
3427 url <- paste0(private$host, endPoint)
3428 headers <- list(Authorization = paste("OAuth2", private$token),
3429 "Content-Type" = "application/json")
3434 response <- private$REST$http$exec("DELETE", url, headers, body,
3435 queryArgs, private$numRetries)
3436 resource <- private$REST$httpParser$parseJSONResponse(response)
3438 if(!is.null(resource$errors))
3439 stop(resource$errors)
3444 keep_disks.ping = function(uuid = NULL, ping_secret,
3445 node_uuid = NULL, filesystem_uuid = NULL,
3446 service_host = NULL, service_port, service_ssl_flag)
3448 endPoint <- stringr::str_interp("keep_disks/ping")
3449 url <- paste0(private$host, endPoint)
3450 headers <- list(Authorization = paste("OAuth2", private$token),
3451 "Content-Type" = "application/json")
3452 queryArgs <- list(uuid = uuid, ping_secret = ping_secret,
3453 node_uuid = node_uuid, filesystem_uuid = filesystem_uuid,
3454 service_host = service_host, service_port = service_port,
3455 service_ssl_flag = service_ssl_flag)
3459 response <- private$REST$http$exec("POST", url, headers, body,
3460 queryArgs, private$numRetries)
3461 resource <- private$REST$httpParser$parseJSONResponse(response)
3463 if(!is.null(resource$errors))
3464 stop(resource$errors)
3469 keep_disks.list = function(filters = NULL,
3470 where = NULL, order = NULL, select = NULL,
3471 distinct = NULL, limit = "100", offset = "0",
3474 endPoint <- stringr::str_interp("keep_disks")
3475 url <- paste0(private$host, endPoint)
3476 headers <- list(Authorization = paste("OAuth2", private$token),
3477 "Content-Type" = "application/json")
3478 queryArgs <- list(filters = filters, where = where,
3479 order = order, select = select, distinct = distinct,
3480 limit = limit, offset = offset, count = count)
3484 response <- private$REST$http$exec("GET", url, headers, body,
3485 queryArgs, private$numRetries)
3486 resource <- private$REST$httpParser$parseJSONResponse(response)
3488 if(!is.null(resource$errors))
3489 stop(resource$errors)
3494 keep_services.get = function(uuid)
3496 endPoint <- stringr::str_interp("keep_services/${uuid}")
3497 url <- paste0(private$host, endPoint)
3498 headers <- list(Authorization = paste("OAuth2", private$token),
3499 "Content-Type" = "application/json")
3504 response <- private$REST$http$exec("GET", url, headers, body,
3505 queryArgs, private$numRetries)
3506 resource <- private$REST$httpParser$parseJSONResponse(response)
3508 if(!is.null(resource$errors))
3509 stop(resource$errors)
3514 keep_services.create = function(keepservice,
3515 ensure_unique_name = "false")
3517 endPoint <- stringr::str_interp("keep_services")
3518 url <- paste0(private$host, endPoint)
3519 headers <- list(Authorization = paste("OAuth2", private$token),
3520 "Content-Type" = "application/json")
3521 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3523 if(length(keepservice) > 0)
3524 body <- jsonlite::toJSON(list(keepservice = keepservice),
3529 response <- private$REST$http$exec("POST", url, headers, body,
3530 queryArgs, private$numRetries)
3531 resource <- private$REST$httpParser$parseJSONResponse(response)
3533 if(!is.null(resource$errors))
3534 stop(resource$errors)
3539 keep_services.update = function(keepservice, uuid)
3541 endPoint <- stringr::str_interp("keep_services/${uuid}")
3542 url <- paste0(private$host, endPoint)
3543 headers <- list(Authorization = paste("OAuth2", private$token),
3544 "Content-Type" = "application/json")
3547 if(length(keepservice) > 0)
3548 body <- jsonlite::toJSON(list(keepservice = keepservice),
3553 response <- private$REST$http$exec("PUT", url, headers, body,
3554 queryArgs, private$numRetries)
3555 resource <- private$REST$httpParser$parseJSONResponse(response)
3557 if(!is.null(resource$errors))
3558 stop(resource$errors)
3563 keep_services.delete = function(uuid)
3565 endPoint <- stringr::str_interp("keep_services/${uuid}")
3566 url <- paste0(private$host, endPoint)
3567 headers <- list(Authorization = paste("OAuth2", private$token),
3568 "Content-Type" = "application/json")
3573 response <- private$REST$http$exec("DELETE", url, headers, body,
3574 queryArgs, private$numRetries)
3575 resource <- private$REST$httpParser$parseJSONResponse(response)
3577 if(!is.null(resource$errors))
3578 stop(resource$errors)
3583 keep_services.accessible = function()
3585 endPoint <- stringr::str_interp("keep_services/accessible")
3586 url <- paste0(private$host, endPoint)
3587 headers <- list(Authorization = paste("OAuth2", private$token),
3588 "Content-Type" = "application/json")
3593 response <- private$REST$http$exec("GET", url, headers, body,
3594 queryArgs, private$numRetries)
3595 resource <- private$REST$httpParser$parseJSONResponse(response)
3597 if(!is.null(resource$errors))
3598 stop(resource$errors)
3603 keep_services.list = function(filters = NULL,
3604 where = NULL, order = NULL, select = NULL,
3605 distinct = NULL, limit = "100", offset = "0",
3608 endPoint <- stringr::str_interp("keep_services")
3609 url <- paste0(private$host, endPoint)
3610 headers <- list(Authorization = paste("OAuth2", private$token),
3611 "Content-Type" = "application/json")
3612 queryArgs <- list(filters = filters, where = where,
3613 order = order, select = select, distinct = distinct,
3614 limit = limit, offset = offset, count = count)
3618 response <- private$REST$http$exec("GET", url, headers, body,
3619 queryArgs, private$numRetries)
3620 resource <- private$REST$httpParser$parseJSONResponse(response)
3622 if(!is.null(resource$errors))
3623 stop(resource$errors)
3628 pipeline_templates.get = function(uuid)
3630 endPoint <- stringr::str_interp("pipeline_templates/${uuid}")
3631 url <- paste0(private$host, endPoint)
3632 headers <- list(Authorization = paste("OAuth2", private$token),
3633 "Content-Type" = "application/json")
3638 response <- private$REST$http$exec("GET", url, headers, body,
3639 queryArgs, private$numRetries)
3640 resource <- private$REST$httpParser$parseJSONResponse(response)
3642 if(!is.null(resource$errors))
3643 stop(resource$errors)
3648 pipeline_templates.create = function(pipelinetemplate,
3649 ensure_unique_name = "false")
3651 endPoint <- stringr::str_interp("pipeline_templates")
3652 url <- paste0(private$host, endPoint)
3653 headers <- list(Authorization = paste("OAuth2", private$token),
3654 "Content-Type" = "application/json")
3655 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3657 if(length(pipelinetemplate) > 0)
3658 body <- jsonlite::toJSON(list(pipelinetemplate = pipelinetemplate),
3663 response <- private$REST$http$exec("POST", url, headers, body,
3664 queryArgs, private$numRetries)
3665 resource <- private$REST$httpParser$parseJSONResponse(response)
3667 if(!is.null(resource$errors))
3668 stop(resource$errors)
3673 pipeline_templates.update = function(pipelinetemplate, uuid)
3675 endPoint <- stringr::str_interp("pipeline_templates/${uuid}")
3676 url <- paste0(private$host, endPoint)
3677 headers <- list(Authorization = paste("OAuth2", private$token),
3678 "Content-Type" = "application/json")
3681 if(length(pipelinetemplate) > 0)
3682 body <- jsonlite::toJSON(list(pipelinetemplate = pipelinetemplate),
3687 response <- private$REST$http$exec("PUT", url, headers, body,
3688 queryArgs, private$numRetries)
3689 resource <- private$REST$httpParser$parseJSONResponse(response)
3691 if(!is.null(resource$errors))
3692 stop(resource$errors)
3697 pipeline_templates.delete = function(uuid)
3699 endPoint <- stringr::str_interp("pipeline_templates/${uuid}")
3700 url <- paste0(private$host, endPoint)
3701 headers <- list(Authorization = paste("OAuth2", private$token),
3702 "Content-Type" = "application/json")
3707 response <- private$REST$http$exec("DELETE", url, headers, body,
3708 queryArgs, private$numRetries)
3709 resource <- private$REST$httpParser$parseJSONResponse(response)
3711 if(!is.null(resource$errors))
3712 stop(resource$errors)
3717 pipeline_templates.list = function(filters = NULL,
3718 where = NULL, order = NULL, select = NULL,
3719 distinct = NULL, limit = "100", offset = "0",
3722 endPoint <- stringr::str_interp("pipeline_templates")
3723 url <- paste0(private$host, endPoint)
3724 headers <- list(Authorization = paste("OAuth2", private$token),
3725 "Content-Type" = "application/json")
3726 queryArgs <- list(filters = filters, where = where,
3727 order = order, select = select, distinct = distinct,
3728 limit = limit, offset = offset, count = count)
3732 response <- private$REST$http$exec("GET", url, headers, body,
3733 queryArgs, private$numRetries)
3734 resource <- private$REST$httpParser$parseJSONResponse(response)
3736 if(!is.null(resource$errors))
3737 stop(resource$errors)
3742 pipeline_instances.get = function(uuid)
3744 endPoint <- stringr::str_interp("pipeline_instances/${uuid}")
3745 url <- paste0(private$host, endPoint)
3746 headers <- list(Authorization = paste("OAuth2", private$token),
3747 "Content-Type" = "application/json")
3752 response <- private$REST$http$exec("GET", url, headers, body,
3753 queryArgs, private$numRetries)
3754 resource <- private$REST$httpParser$parseJSONResponse(response)
3756 if(!is.null(resource$errors))
3757 stop(resource$errors)
3762 pipeline_instances.create = function(pipelineinstance,
3763 ensure_unique_name = "false")
3765 endPoint <- stringr::str_interp("pipeline_instances")
3766 url <- paste0(private$host, endPoint)
3767 headers <- list(Authorization = paste("OAuth2", private$token),
3768 "Content-Type" = "application/json")
3769 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3771 if(length(pipelineinstance) > 0)
3772 body <- jsonlite::toJSON(list(pipelineinstance = pipelineinstance),
3777 response <- private$REST$http$exec("POST", url, headers, body,
3778 queryArgs, private$numRetries)
3779 resource <- private$REST$httpParser$parseJSONResponse(response)
3781 if(!is.null(resource$errors))
3782 stop(resource$errors)
3787 pipeline_instances.update = function(pipelineinstance, uuid)
3789 endPoint <- stringr::str_interp("pipeline_instances/${uuid}")
3790 url <- paste0(private$host, endPoint)
3791 headers <- list(Authorization = paste("OAuth2", private$token),
3792 "Content-Type" = "application/json")
3795 if(length(pipelineinstance) > 0)
3796 body <- jsonlite::toJSON(list(pipelineinstance = pipelineinstance),
3801 response <- private$REST$http$exec("PUT", url, headers, body,
3802 queryArgs, private$numRetries)
3803 resource <- private$REST$httpParser$parseJSONResponse(response)
3805 if(!is.null(resource$errors))
3806 stop(resource$errors)
3811 pipeline_instances.delete = function(uuid)
3813 endPoint <- stringr::str_interp("pipeline_instances/${uuid}")
3814 url <- paste0(private$host, endPoint)
3815 headers <- list(Authorization = paste("OAuth2", private$token),
3816 "Content-Type" = "application/json")
3821 response <- private$REST$http$exec("DELETE", url, headers, body,
3822 queryArgs, private$numRetries)
3823 resource <- private$REST$httpParser$parseJSONResponse(response)
3825 if(!is.null(resource$errors))
3826 stop(resource$errors)
3831 pipeline_instances.cancel = function(uuid)
3833 endPoint <- stringr::str_interp("pipeline_instances/${uuid}/cancel")
3834 url <- paste0(private$host, endPoint)
3835 headers <- list(Authorization = paste("OAuth2", private$token),
3836 "Content-Type" = "application/json")
3841 response <- private$REST$http$exec("POST", url, headers, body,
3842 queryArgs, private$numRetries)
3843 resource <- private$REST$httpParser$parseJSONResponse(response)
3845 if(!is.null(resource$errors))
3846 stop(resource$errors)
3851 pipeline_instances.list = function(filters = NULL,
3852 where = NULL, order = NULL, select = NULL,
3853 distinct = NULL, limit = "100", offset = "0",
3856 endPoint <- stringr::str_interp("pipeline_instances")
3857 url <- paste0(private$host, endPoint)
3858 headers <- list(Authorization = paste("OAuth2", private$token),
3859 "Content-Type" = "application/json")
3860 queryArgs <- list(filters = filters, where = where,
3861 order = order, select = select, distinct = distinct,
3862 limit = limit, offset = offset, count = count)
3866 response <- private$REST$http$exec("GET", url, headers, body,
3867 queryArgs, private$numRetries)
3868 resource <- private$REST$httpParser$parseJSONResponse(response)
3870 if(!is.null(resource$errors))
3871 stop(resource$errors)
3876 nodes.get = function(uuid)
3878 endPoint <- stringr::str_interp("nodes/${uuid}")
3879 url <- paste0(private$host, endPoint)
3880 headers <- list(Authorization = paste("OAuth2", private$token),
3881 "Content-Type" = "application/json")
3886 response <- private$REST$http$exec("GET", url, headers, body,
3887 queryArgs, private$numRetries)
3888 resource <- private$REST$httpParser$parseJSONResponse(response)
3890 if(!is.null(resource$errors))
3891 stop(resource$errors)
3896 nodes.create = function(node, ensure_unique_name = "false",
3899 endPoint <- stringr::str_interp("nodes")
3900 url <- paste0(private$host, endPoint)
3901 headers <- list(Authorization = paste("OAuth2", private$token),
3902 "Content-Type" = "application/json")
3903 queryArgs <- list(ensure_unique_name = ensure_unique_name,
3904 assign_slot = assign_slot)
3906 if(length(node) > 0)
3907 body <- jsonlite::toJSON(list(node = node),
3912 response <- private$REST$http$exec("POST", url, headers, body,
3913 queryArgs, private$numRetries)
3914 resource <- private$REST$httpParser$parseJSONResponse(response)
3916 if(!is.null(resource$errors))
3917 stop(resource$errors)
3922 nodes.update = function(node, uuid, assign_slot = NULL)
3924 endPoint <- stringr::str_interp("nodes/${uuid}")
3925 url <- paste0(private$host, endPoint)
3926 headers <- list(Authorization = paste("OAuth2", private$token),
3927 "Content-Type" = "application/json")
3928 queryArgs <- list(assign_slot = assign_slot)
3930 if(length(node) > 0)
3931 body <- jsonlite::toJSON(list(node = node),
3936 response <- private$REST$http$exec("PUT", url, headers, body,
3937 queryArgs, private$numRetries)
3938 resource <- private$REST$httpParser$parseJSONResponse(response)
3940 if(!is.null(resource$errors))
3941 stop(resource$errors)
3946 nodes.delete = function(uuid)
3948 endPoint <- stringr::str_interp("nodes/${uuid}")
3949 url <- paste0(private$host, endPoint)
3950 headers <- list(Authorization = paste("OAuth2", private$token),
3951 "Content-Type" = "application/json")
3956 response <- private$REST$http$exec("DELETE", url, headers, body,
3957 queryArgs, private$numRetries)
3958 resource <- private$REST$httpParser$parseJSONResponse(response)
3960 if(!is.null(resource$errors))
3961 stop(resource$errors)
3966 nodes.ping = function(uuid, ping_secret)
3968 endPoint <- stringr::str_interp("nodes/${uuid}/ping")
3969 url <- paste0(private$host, endPoint)
3970 headers <- list(Authorization = paste("OAuth2", private$token),
3971 "Content-Type" = "application/json")
3972 queryArgs <- list(ping_secret = ping_secret)
3976 response <- private$REST$http$exec("POST", url, headers, body,
3977 queryArgs, private$numRetries)
3978 resource <- private$REST$httpParser$parseJSONResponse(response)
3980 if(!is.null(resource$errors))
3981 stop(resource$errors)
3986 nodes.list = function(filters = NULL, where = NULL,
3987 order = NULL, select = NULL, distinct = NULL,
3988 limit = "100", offset = "0", count = "exact")
3990 endPoint <- stringr::str_interp("nodes")
3991 url <- paste0(private$host, endPoint)
3992 headers <- list(Authorization = paste("OAuth2", private$token),
3993 "Content-Type" = "application/json")
3994 queryArgs <- list(filters = filters, where = where,
3995 order = order, select = select, distinct = distinct,
3996 limit = limit, offset = offset, count = count)
4000 response <- private$REST$http$exec("GET", url, headers, body,
4001 queryArgs, private$numRetries)
4002 resource <- private$REST$httpParser$parseJSONResponse(response)
4004 if(!is.null(resource$errors))
4005 stop(resource$errors)
4010 repositories.get = function(uuid)
4012 endPoint <- stringr::str_interp("repositories/${uuid}")
4013 url <- paste0(private$host, endPoint)
4014 headers <- list(Authorization = paste("OAuth2", private$token),
4015 "Content-Type" = "application/json")
4020 response <- private$REST$http$exec("GET", url, headers, body,
4021 queryArgs, private$numRetries)
4022 resource <- private$REST$httpParser$parseJSONResponse(response)
4024 if(!is.null(resource$errors))
4025 stop(resource$errors)
4030 repositories.create = function(repository, ensure_unique_name = "false")
4032 endPoint <- stringr::str_interp("repositories")
4033 url <- paste0(private$host, endPoint)
4034 headers <- list(Authorization = paste("OAuth2", private$token),
4035 "Content-Type" = "application/json")
4036 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4038 if(length(repository) > 0)
4039 body <- jsonlite::toJSON(list(repository = repository),
4044 response <- private$REST$http$exec("POST", url, headers, body,
4045 queryArgs, private$numRetries)
4046 resource <- private$REST$httpParser$parseJSONResponse(response)
4048 if(!is.null(resource$errors))
4049 stop(resource$errors)
4054 repositories.update = function(repository, uuid)
4056 endPoint <- stringr::str_interp("repositories/${uuid}")
4057 url <- paste0(private$host, endPoint)
4058 headers <- list(Authorization = paste("OAuth2", private$token),
4059 "Content-Type" = "application/json")
4062 if(length(repository) > 0)
4063 body <- jsonlite::toJSON(list(repository = repository),
4068 response <- private$REST$http$exec("PUT", url, headers, body,
4069 queryArgs, private$numRetries)
4070 resource <- private$REST$httpParser$parseJSONResponse(response)
4072 if(!is.null(resource$errors))
4073 stop(resource$errors)
4078 repositories.delete = function(uuid)
4080 endPoint <- stringr::str_interp("repositories/${uuid}")
4081 url <- paste0(private$host, endPoint)
4082 headers <- list(Authorization = paste("OAuth2", private$token),
4083 "Content-Type" = "application/json")
4088 response <- private$REST$http$exec("DELETE", url, headers, body,
4089 queryArgs, private$numRetries)
4090 resource <- private$REST$httpParser$parseJSONResponse(response)
4092 if(!is.null(resource$errors))
4093 stop(resource$errors)
4098 repositories.get_all_permissions = function()
4100 endPoint <- stringr::str_interp("repositories/get_all_permissions")
4101 url <- paste0(private$host, endPoint)
4102 headers <- list(Authorization = paste("OAuth2", private$token),
4103 "Content-Type" = "application/json")
4108 response <- private$REST$http$exec("GET", url, headers, body,
4109 queryArgs, private$numRetries)
4110 resource <- private$REST$httpParser$parseJSONResponse(response)
4112 if(!is.null(resource$errors))
4113 stop(resource$errors)
4118 repositories.list = function(filters = NULL,
4119 where = NULL, order = NULL, select = NULL,
4120 distinct = NULL, limit = "100", offset = "0",
4123 endPoint <- stringr::str_interp("repositories")
4124 url <- paste0(private$host, endPoint)
4125 headers <- list(Authorization = paste("OAuth2", private$token),
4126 "Content-Type" = "application/json")
4127 queryArgs <- list(filters = filters, where = where,
4128 order = order, select = select, distinct = distinct,
4129 limit = limit, offset = offset, count = count)
4133 response <- private$REST$http$exec("GET", url, headers, body,
4134 queryArgs, private$numRetries)
4135 resource <- private$REST$httpParser$parseJSONResponse(response)
4137 if(!is.null(resource$errors))
4138 stop(resource$errors)
4143 specimens.get = function(uuid)
4145 endPoint <- stringr::str_interp("specimens/${uuid}")
4146 url <- paste0(private$host, endPoint)
4147 headers <- list(Authorization = paste("OAuth2", private$token),
4148 "Content-Type" = "application/json")
4153 response <- private$REST$http$exec("GET", url, headers, body,
4154 queryArgs, private$numRetries)
4155 resource <- private$REST$httpParser$parseJSONResponse(response)
4157 if(!is.null(resource$errors))
4158 stop(resource$errors)
4163 specimens.create = function(specimen, ensure_unique_name = "false")
4165 endPoint <- stringr::str_interp("specimens")
4166 url <- paste0(private$host, endPoint)
4167 headers <- list(Authorization = paste("OAuth2", private$token),
4168 "Content-Type" = "application/json")
4169 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4171 if(length(specimen) > 0)
4172 body <- jsonlite::toJSON(list(specimen = specimen),
4177 response <- private$REST$http$exec("POST", url, headers, body,
4178 queryArgs, private$numRetries)
4179 resource <- private$REST$httpParser$parseJSONResponse(response)
4181 if(!is.null(resource$errors))
4182 stop(resource$errors)
4187 specimens.update = function(specimen, uuid)
4189 endPoint <- stringr::str_interp("specimens/${uuid}")
4190 url <- paste0(private$host, endPoint)
4191 headers <- list(Authorization = paste("OAuth2", private$token),
4192 "Content-Type" = "application/json")
4195 if(length(specimen) > 0)
4196 body <- jsonlite::toJSON(list(specimen = specimen),
4201 response <- private$REST$http$exec("PUT", url, headers, body,
4202 queryArgs, private$numRetries)
4203 resource <- private$REST$httpParser$parseJSONResponse(response)
4205 if(!is.null(resource$errors))
4206 stop(resource$errors)
4211 specimens.delete = function(uuid)
4213 endPoint <- stringr::str_interp("specimens/${uuid}")
4214 url <- paste0(private$host, endPoint)
4215 headers <- list(Authorization = paste("OAuth2", private$token),
4216 "Content-Type" = "application/json")
4221 response <- private$REST$http$exec("DELETE", url, headers, body,
4222 queryArgs, private$numRetries)
4223 resource <- private$REST$httpParser$parseJSONResponse(response)
4225 if(!is.null(resource$errors))
4226 stop(resource$errors)
4231 specimens.list = function(filters = NULL,
4232 where = NULL, order = NULL, select = NULL,
4233 distinct = NULL, limit = "100", offset = "0",
4236 endPoint <- stringr::str_interp("specimens")
4237 url <- paste0(private$host, endPoint)
4238 headers <- list(Authorization = paste("OAuth2", private$token),
4239 "Content-Type" = "application/json")
4240 queryArgs <- list(filters = filters, where = where,
4241 order = order, select = select, distinct = distinct,
4242 limit = limit, offset = offset, count = count)
4246 response <- private$REST$http$exec("GET", url, headers, body,
4247 queryArgs, private$numRetries)
4248 resource <- private$REST$httpParser$parseJSONResponse(response)
4250 if(!is.null(resource$errors))
4251 stop(resource$errors)
4256 logs.get = function(uuid)
4258 endPoint <- stringr::str_interp("logs/${uuid}")
4259 url <- paste0(private$host, endPoint)
4260 headers <- list(Authorization = paste("OAuth2", private$token),
4261 "Content-Type" = "application/json")
4266 response <- private$REST$http$exec("GET", url, headers, body,
4267 queryArgs, private$numRetries)
4268 resource <- private$REST$httpParser$parseJSONResponse(response)
4270 if(!is.null(resource$errors))
4271 stop(resource$errors)
4276 logs.create = function(log, ensure_unique_name = "false")
4278 endPoint <- stringr::str_interp("logs")
4279 url <- paste0(private$host, endPoint)
4280 headers <- list(Authorization = paste("OAuth2", private$token),
4281 "Content-Type" = "application/json")
4282 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4285 body <- jsonlite::toJSON(list(log = log),
4290 response <- private$REST$http$exec("POST", url, headers, body,
4291 queryArgs, private$numRetries)
4292 resource <- private$REST$httpParser$parseJSONResponse(response)
4294 if(!is.null(resource$errors))
4295 stop(resource$errors)
4300 logs.update = function(log, uuid)
4302 endPoint <- stringr::str_interp("logs/${uuid}")
4303 url <- paste0(private$host, endPoint)
4304 headers <- list(Authorization = paste("OAuth2", private$token),
4305 "Content-Type" = "application/json")
4309 body <- jsonlite::toJSON(list(log = log),
4314 response <- private$REST$http$exec("PUT", url, headers, body,
4315 queryArgs, private$numRetries)
4316 resource <- private$REST$httpParser$parseJSONResponse(response)
4318 if(!is.null(resource$errors))
4319 stop(resource$errors)
4324 logs.delete = function(uuid)
4326 endPoint <- stringr::str_interp("logs/${uuid}")
4327 url <- paste0(private$host, endPoint)
4328 headers <- list(Authorization = paste("OAuth2", private$token),
4329 "Content-Type" = "application/json")
4334 response <- private$REST$http$exec("DELETE", url, headers, body,
4335 queryArgs, private$numRetries)
4336 resource <- private$REST$httpParser$parseJSONResponse(response)
4338 if(!is.null(resource$errors))
4339 stop(resource$errors)
4344 logs.list = function(filters = NULL, where = NULL,
4345 order = NULL, select = NULL, distinct = NULL,
4346 limit = "100", offset = "0", count = "exact")
4348 endPoint <- stringr::str_interp("logs")
4349 url <- paste0(private$host, endPoint)
4350 headers <- list(Authorization = paste("OAuth2", private$token),
4351 "Content-Type" = "application/json")
4352 queryArgs <- list(filters = filters, where = where,
4353 order = order, select = select, distinct = distinct,
4354 limit = limit, offset = offset, count = count)
4358 response <- private$REST$http$exec("GET", url, headers, body,
4359 queryArgs, private$numRetries)
4360 resource <- private$REST$httpParser$parseJSONResponse(response)
4362 if(!is.null(resource$errors))
4363 stop(resource$errors)
4368 traits.get = function(uuid)
4370 endPoint <- stringr::str_interp("traits/${uuid}")
4371 url <- paste0(private$host, endPoint)
4372 headers <- list(Authorization = paste("OAuth2", private$token),
4373 "Content-Type" = "application/json")
4378 response <- private$REST$http$exec("GET", url, headers, body,
4379 queryArgs, private$numRetries)
4380 resource <- private$REST$httpParser$parseJSONResponse(response)
4382 if(!is.null(resource$errors))
4383 stop(resource$errors)
4388 traits.create = function(trait, ensure_unique_name = "false")
4390 endPoint <- stringr::str_interp("traits")
4391 url <- paste0(private$host, endPoint)
4392 headers <- list(Authorization = paste("OAuth2", private$token),
4393 "Content-Type" = "application/json")
4394 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4396 if(length(trait) > 0)
4397 body <- jsonlite::toJSON(list(trait = trait),
4402 response <- private$REST$http$exec("POST", url, headers, body,
4403 queryArgs, private$numRetries)
4404 resource <- private$REST$httpParser$parseJSONResponse(response)
4406 if(!is.null(resource$errors))
4407 stop(resource$errors)
4412 traits.update = function(trait, uuid)
4414 endPoint <- stringr::str_interp("traits/${uuid}")
4415 url <- paste0(private$host, endPoint)
4416 headers <- list(Authorization = paste("OAuth2", private$token),
4417 "Content-Type" = "application/json")
4420 if(length(trait) > 0)
4421 body <- jsonlite::toJSON(list(trait = trait),
4426 response <- private$REST$http$exec("PUT", url, headers, body,
4427 queryArgs, private$numRetries)
4428 resource <- private$REST$httpParser$parseJSONResponse(response)
4430 if(!is.null(resource$errors))
4431 stop(resource$errors)
4436 traits.delete = function(uuid)
4438 endPoint <- stringr::str_interp("traits/${uuid}")
4439 url <- paste0(private$host, endPoint)
4440 headers <- list(Authorization = paste("OAuth2", private$token),
4441 "Content-Type" = "application/json")
4446 response <- private$REST$http$exec("DELETE", url, headers, body,
4447 queryArgs, private$numRetries)
4448 resource <- private$REST$httpParser$parseJSONResponse(response)
4450 if(!is.null(resource$errors))
4451 stop(resource$errors)
4456 traits.list = function(filters = NULL, where = NULL,
4457 order = NULL, select = NULL, distinct = NULL,
4458 limit = "100", offset = "0", count = "exact")
4460 endPoint <- stringr::str_interp("traits")
4461 url <- paste0(private$host, endPoint)
4462 headers <- list(Authorization = paste("OAuth2", private$token),
4463 "Content-Type" = "application/json")
4464 queryArgs <- list(filters = filters, where = where,
4465 order = order, select = select, distinct = distinct,
4466 limit = limit, offset = offset, count = count)
4470 response <- private$REST$http$exec("GET", url, headers, body,
4471 queryArgs, private$numRetries)
4472 resource <- private$REST$httpParser$parseJSONResponse(response)
4474 if(!is.null(resource$errors))
4475 stop(resource$errors)
4480 virtual_machines.get = function(uuid)
4482 endPoint <- stringr::str_interp("virtual_machines/${uuid}")
4483 url <- paste0(private$host, endPoint)
4484 headers <- list(Authorization = paste("OAuth2", private$token),
4485 "Content-Type" = "application/json")
4490 response <- private$REST$http$exec("GET", url, headers, body,
4491 queryArgs, private$numRetries)
4492 resource <- private$REST$httpParser$parseJSONResponse(response)
4494 if(!is.null(resource$errors))
4495 stop(resource$errors)
4500 virtual_machines.create = function(virtualmachine,
4501 ensure_unique_name = "false")
4503 endPoint <- stringr::str_interp("virtual_machines")
4504 url <- paste0(private$host, endPoint)
4505 headers <- list(Authorization = paste("OAuth2", private$token),
4506 "Content-Type" = "application/json")
4507 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4509 if(length(virtualmachine) > 0)
4510 body <- jsonlite::toJSON(list(virtualmachine = virtualmachine),
4515 response <- private$REST$http$exec("POST", url, headers, body,
4516 queryArgs, private$numRetries)
4517 resource <- private$REST$httpParser$parseJSONResponse(response)
4519 if(!is.null(resource$errors))
4520 stop(resource$errors)
4525 virtual_machines.update = function(virtualmachine, uuid)
4527 endPoint <- stringr::str_interp("virtual_machines/${uuid}")
4528 url <- paste0(private$host, endPoint)
4529 headers <- list(Authorization = paste("OAuth2", private$token),
4530 "Content-Type" = "application/json")
4533 if(length(virtualmachine) > 0)
4534 body <- jsonlite::toJSON(list(virtualmachine = virtualmachine),
4539 response <- private$REST$http$exec("PUT", url, headers, body,
4540 queryArgs, private$numRetries)
4541 resource <- private$REST$httpParser$parseJSONResponse(response)
4543 if(!is.null(resource$errors))
4544 stop(resource$errors)
4549 virtual_machines.delete = function(uuid)
4551 endPoint <- stringr::str_interp("virtual_machines/${uuid}")
4552 url <- paste0(private$host, endPoint)
4553 headers <- list(Authorization = paste("OAuth2", private$token),
4554 "Content-Type" = "application/json")
4559 response <- private$REST$http$exec("DELETE", url, headers, body,
4560 queryArgs, private$numRetries)
4561 resource <- private$REST$httpParser$parseJSONResponse(response)
4563 if(!is.null(resource$errors))
4564 stop(resource$errors)
4569 virtual_machines.logins = function(uuid)
4571 endPoint <- stringr::str_interp("virtual_machines/${uuid}/logins")
4572 url <- paste0(private$host, endPoint)
4573 headers <- list(Authorization = paste("OAuth2", private$token),
4574 "Content-Type" = "application/json")
4579 response <- private$REST$http$exec("GET", url, headers, body,
4580 queryArgs, private$numRetries)
4581 resource <- private$REST$httpParser$parseJSONResponse(response)
4583 if(!is.null(resource$errors))
4584 stop(resource$errors)
4589 virtual_machines.get_all_logins = function()
4591 endPoint <- stringr::str_interp("virtual_machines/get_all_logins")
4592 url <- paste0(private$host, endPoint)
4593 headers <- list(Authorization = paste("OAuth2", private$token),
4594 "Content-Type" = "application/json")
4599 response <- private$REST$http$exec("GET", url, headers, body,
4600 queryArgs, private$numRetries)
4601 resource <- private$REST$httpParser$parseJSONResponse(response)
4603 if(!is.null(resource$errors))
4604 stop(resource$errors)
4609 virtual_machines.list = function(filters = NULL,
4610 where = NULL, order = NULL, select = NULL,
4611 distinct = NULL, limit = "100", offset = "0",
4614 endPoint <- stringr::str_interp("virtual_machines")
4615 url <- paste0(private$host, endPoint)
4616 headers <- list(Authorization = paste("OAuth2", private$token),
4617 "Content-Type" = "application/json")
4618 queryArgs <- list(filters = filters, where = where,
4619 order = order, select = select, distinct = distinct,
4620 limit = limit, offset = offset, count = count)
4624 response <- private$REST$http$exec("GET", url, headers, body,
4625 queryArgs, private$numRetries)
4626 resource <- private$REST$httpParser$parseJSONResponse(response)
4628 if(!is.null(resource$errors))
4629 stop(resource$errors)
4634 workflows.get = function(uuid)
4636 endPoint <- stringr::str_interp("workflows/${uuid}")
4637 url <- paste0(private$host, endPoint)
4638 headers <- list(Authorization = paste("OAuth2", private$token),
4639 "Content-Type" = "application/json")
4644 response <- private$REST$http$exec("GET", url, headers, body,
4645 queryArgs, private$numRetries)
4646 resource <- private$REST$httpParser$parseJSONResponse(response)
4648 if(!is.null(resource$errors))
4649 stop(resource$errors)
4654 workflows.create = function(workflow, ensure_unique_name = "false")
4656 endPoint <- stringr::str_interp("workflows")
4657 url <- paste0(private$host, endPoint)
4658 headers <- list(Authorization = paste("OAuth2", private$token),
4659 "Content-Type" = "application/json")
4660 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4662 if(length(workflow) > 0)
4663 body <- jsonlite::toJSON(list(workflow = workflow),
4668 response <- private$REST$http$exec("POST", url, headers, body,
4669 queryArgs, private$numRetries)
4670 resource <- private$REST$httpParser$parseJSONResponse(response)
4672 if(!is.null(resource$errors))
4673 stop(resource$errors)
4678 workflows.update = function(workflow, uuid)
4680 endPoint <- stringr::str_interp("workflows/${uuid}")
4681 url <- paste0(private$host, endPoint)
4682 headers <- list(Authorization = paste("OAuth2", private$token),
4683 "Content-Type" = "application/json")
4686 if(length(workflow) > 0)
4687 body <- jsonlite::toJSON(list(workflow = workflow),
4692 response <- private$REST$http$exec("PUT", url, headers, body,
4693 queryArgs, private$numRetries)
4694 resource <- private$REST$httpParser$parseJSONResponse(response)
4696 if(!is.null(resource$errors))
4697 stop(resource$errors)
4702 workflows.delete = function(uuid)
4704 endPoint <- stringr::str_interp("workflows/${uuid}")
4705 url <- paste0(private$host, endPoint)
4706 headers <- list(Authorization = paste("OAuth2", private$token),
4707 "Content-Type" = "application/json")
4712 response <- private$REST$http$exec("DELETE", url, headers, body,
4713 queryArgs, private$numRetries)
4714 resource <- private$REST$httpParser$parseJSONResponse(response)
4716 if(!is.null(resource$errors))
4717 stop(resource$errors)
4722 workflows.list = function(filters = NULL,
4723 where = NULL, order = NULL, select = NULL,
4724 distinct = NULL, limit = "100", offset = "0",
4727 endPoint <- stringr::str_interp("workflows")
4728 url <- paste0(private$host, endPoint)
4729 headers <- list(Authorization = paste("OAuth2", private$token),
4730 "Content-Type" = "application/json")
4731 queryArgs <- list(filters = filters, where = where,
4732 order = order, select = select, distinct = distinct,
4733 limit = limit, offset = offset, count = count)
4737 response <- private$REST$http$exec("GET", url, headers, body,
4738 queryArgs, private$numRetries)
4739 resource <- private$REST$httpParser$parseJSONResponse(response)
4741 if(!is.null(resource$errors))
4742 stop(resource$errors)
4747 groups.get = function(uuid)
4749 endPoint <- stringr::str_interp("groups/${uuid}")
4750 url <- paste0(private$host, endPoint)
4751 headers <- list(Authorization = paste("OAuth2", private$token),
4752 "Content-Type" = "application/json")
4757 response <- private$REST$http$exec("GET", url, headers, body,
4758 queryArgs, private$numRetries)
4759 resource <- private$REST$httpParser$parseJSONResponse(response)
4761 if(!is.null(resource$errors))
4762 stop(resource$errors)
4767 groups.create = function(group, ensure_unique_name = "false")
4769 endPoint <- stringr::str_interp("groups")
4770 url <- paste0(private$host, endPoint)
4771 headers <- list(Authorization = paste("OAuth2", private$token),
4772 "Content-Type" = "application/json")
4773 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4775 if(length(group) > 0)
4776 body <- jsonlite::toJSON(list(group = group),
4781 response <- private$REST$http$exec("POST", url, headers, body,
4782 queryArgs, private$numRetries)
4783 resource <- private$REST$httpParser$parseJSONResponse(response)
4785 if(!is.null(resource$errors))
4786 stop(resource$errors)
4791 groups.update = function(group, uuid)
4793 endPoint <- stringr::str_interp("groups/${uuid}")
4794 url <- paste0(private$host, endPoint)
4795 headers <- list(Authorization = paste("OAuth2", private$token),
4796 "Content-Type" = "application/json")
4799 if(length(group) > 0)
4800 body <- jsonlite::toJSON(list(group = group),
4805 response <- private$REST$http$exec("PUT", url, headers, body,
4806 queryArgs, private$numRetries)
4807 resource <- private$REST$httpParser$parseJSONResponse(response)
4809 if(!is.null(resource$errors))
4810 stop(resource$errors)
4815 groups.delete = function(uuid)
4817 endPoint <- stringr::str_interp("groups/${uuid}")
4818 url <- paste0(private$host, endPoint)
4819 headers <- list(Authorization = paste("OAuth2", private$token),
4820 "Content-Type" = "application/json")
4825 response <- private$REST$http$exec("DELETE", url, headers, body,
4826 queryArgs, private$numRetries)
4827 resource <- private$REST$httpParser$parseJSONResponse(response)
4829 if(!is.null(resource$errors))
4830 stop(resource$errors)
4835 groups.contents = function(filters = NULL,
4836 where = NULL, order = NULL, distinct = NULL,
4837 limit = "100", offset = "0", count = "exact",
4838 include_trash = NULL, uuid = NULL, recursive = NULL)
4840 endPoint <- stringr::str_interp("groups/contents")
4841 url <- paste0(private$host, endPoint)
4842 headers <- list(Authorization = paste("OAuth2", private$token),
4843 "Content-Type" = "application/json")
4844 queryArgs <- list(filters = filters, where = where,
4845 order = order, distinct = distinct, limit = limit,
4846 offset = offset, count = count, include_trash = include_trash,
4847 uuid = uuid, recursive = recursive)
4851 response <- private$REST$http$exec("GET", url, headers, body,
4852 queryArgs, private$numRetries)
4853 resource <- private$REST$httpParser$parseJSONResponse(response)
4855 if(!is.null(resource$errors))
4856 stop(resource$errors)
4861 groups.trash = function(uuid)
4863 endPoint <- stringr::str_interp("groups/${uuid}/trash")
4864 url <- paste0(private$host, endPoint)
4865 headers <- list(Authorization = paste("OAuth2", private$token),
4866 "Content-Type" = "application/json")
4871 response <- private$REST$http$exec("POST", url, headers, body,
4872 queryArgs, private$numRetries)
4873 resource <- private$REST$httpParser$parseJSONResponse(response)
4875 if(!is.null(resource$errors))
4876 stop(resource$errors)
4881 groups.untrash = function(uuid)
4883 endPoint <- stringr::str_interp("groups/${uuid}/untrash")
4884 url <- paste0(private$host, endPoint)
4885 headers <- list(Authorization = paste("OAuth2", private$token),
4886 "Content-Type" = "application/json")
4891 response <- private$REST$http$exec("POST", url, headers, body,
4892 queryArgs, private$numRetries)
4893 resource <- private$REST$httpParser$parseJSONResponse(response)
4895 if(!is.null(resource$errors))
4896 stop(resource$errors)
4901 groups.list = function(filters = NULL, where = NULL,
4902 order = NULL, select = NULL, distinct = NULL,
4903 limit = "100", offset = "0", count = "exact",
4904 include_trash = NULL)
4906 endPoint <- stringr::str_interp("groups")
4907 url <- paste0(private$host, endPoint)
4908 headers <- list(Authorization = paste("OAuth2", private$token),
4909 "Content-Type" = "application/json")
4910 queryArgs <- list(filters = filters, where = where,
4911 order = order, select = select, distinct = distinct,
4912 limit = limit, offset = offset, count = count,
4913 include_trash = include_trash)
4917 response <- private$REST$http$exec("GET", url, headers, body,
4918 queryArgs, private$numRetries)
4919 resource <- private$REST$httpParser$parseJSONResponse(response)
4921 if(!is.null(resource$errors))
4922 stop(resource$errors)
4927 user_agreements.get = function(uuid)
4929 endPoint <- stringr::str_interp("user_agreements/${uuid}")
4930 url <- paste0(private$host, endPoint)
4931 headers <- list(Authorization = paste("OAuth2", private$token),
4932 "Content-Type" = "application/json")
4937 response <- private$REST$http$exec("GET", url, headers, body,
4938 queryArgs, private$numRetries)
4939 resource <- private$REST$httpParser$parseJSONResponse(response)
4941 if(!is.null(resource$errors))
4942 stop(resource$errors)
4947 user_agreements.create = function(useragreement,
4948 ensure_unique_name = "false")
4950 endPoint <- stringr::str_interp("user_agreements")
4951 url <- paste0(private$host, endPoint)
4952 headers <- list(Authorization = paste("OAuth2", private$token),
4953 "Content-Type" = "application/json")
4954 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4956 if(length(useragreement) > 0)
4957 body <- jsonlite::toJSON(list(useragreement = useragreement),
4962 response <- private$REST$http$exec("POST", url, headers, body,
4963 queryArgs, private$numRetries)
4964 resource <- private$REST$httpParser$parseJSONResponse(response)
4966 if(!is.null(resource$errors))
4967 stop(resource$errors)
4972 user_agreements.update = function(useragreement, uuid)
4974 endPoint <- stringr::str_interp("user_agreements/${uuid}")
4975 url <- paste0(private$host, endPoint)
4976 headers <- list(Authorization = paste("OAuth2", private$token),
4977 "Content-Type" = "application/json")
4980 if(length(useragreement) > 0)
4981 body <- jsonlite::toJSON(list(useragreement = useragreement),
4986 response <- private$REST$http$exec("PUT", url, headers, body,
4987 queryArgs, private$numRetries)
4988 resource <- private$REST$httpParser$parseJSONResponse(response)
4990 if(!is.null(resource$errors))
4991 stop(resource$errors)
4996 user_agreements.delete = function(uuid)
4998 endPoint <- stringr::str_interp("user_agreements/${uuid}")
4999 url <- paste0(private$host, endPoint)
5000 headers <- list(Authorization = paste("OAuth2", private$token),
5001 "Content-Type" = "application/json")
5006 response <- private$REST$http$exec("DELETE", url, headers, body,
5007 queryArgs, private$numRetries)
5008 resource <- private$REST$httpParser$parseJSONResponse(response)
5010 if(!is.null(resource$errors))
5011 stop(resource$errors)
5016 user_agreements.signatures = function()
5018 endPoint <- stringr::str_interp("user_agreements/signatures")
5019 url <- paste0(private$host, endPoint)
5020 headers <- list(Authorization = paste("OAuth2", private$token),
5021 "Content-Type" = "application/json")
5026 response <- private$REST$http$exec("GET", url, headers, body,
5027 queryArgs, private$numRetries)
5028 resource <- private$REST$httpParser$parseJSONResponse(response)
5030 if(!is.null(resource$errors))
5031 stop(resource$errors)
5036 user_agreements.sign = function()
5038 endPoint <- stringr::str_interp("user_agreements/sign")
5039 url <- paste0(private$host, endPoint)
5040 headers <- list(Authorization = paste("OAuth2", private$token),
5041 "Content-Type" = "application/json")
5046 response <- private$REST$http$exec("POST", url, headers, body,
5047 queryArgs, private$numRetries)
5048 resource <- private$REST$httpParser$parseJSONResponse(response)
5050 if(!is.null(resource$errors))
5051 stop(resource$errors)
5056 user_agreements.list = function(filters = NULL,
5057 where = NULL, order = NULL, select = NULL,
5058 distinct = NULL, limit = "100", offset = "0",
5061 endPoint <- stringr::str_interp("user_agreements")
5062 url <- paste0(private$host, endPoint)
5063 headers <- list(Authorization = paste("OAuth2", private$token),
5064 "Content-Type" = "application/json")
5065 queryArgs <- list(filters = filters, where = where,
5066 order = order, select = select, distinct = distinct,
5067 limit = limit, offset = offset, count = count)
5071 response <- private$REST$http$exec("GET", url, headers, body,
5072 queryArgs, private$numRetries)
5073 resource <- private$REST$httpParser$parseJSONResponse(response)
5075 if(!is.null(resource$errors))
5076 stop(resource$errors)
5081 user_agreements.new = function()
5083 endPoint <- stringr::str_interp("user_agreements/new")
5084 url <- paste0(private$host, endPoint)
5085 headers <- list(Authorization = paste("OAuth2", private$token),
5086 "Content-Type" = "application/json")
5091 response <- private$REST$http$exec("GET", url, headers, body,
5092 queryArgs, private$numRetries)
5093 resource <- private$REST$httpParser$parseJSONResponse(response)
5095 if(!is.null(resource$errors))
5096 stop(resource$errors)
5101 getHostName = function() private$host,
5102 getToken = function() private$token,
5103 setRESTService = function(newREST) private$REST <- newREST,
5104 getRESTService = function() private$REST