3 #' users.get is a method defined in Arvados class.
5 #' @usage arv$users.get(uuid)
6 #' @param uuid The UUID of the User in question.
7 #' @return User object.
13 #' users.create is a method defined in Arvados class.
15 #' @usage arv$users.create(user, ensure_unique_name = "false")
16 #' @param user User object.
17 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
18 #' @return User object.
24 #' users.update is a method defined in Arvados class.
26 #' @usage arv$users.update(user, uuid)
27 #' @param user User object.
28 #' @param uuid The UUID of the User in question.
29 #' @return User object.
35 #' users.delete is a method defined in Arvados class.
37 #' @usage arv$users.delete(uuid)
38 #' @param uuid The UUID of the User in question.
39 #' @return User object.
45 #' users.current is a method defined in Arvados class.
47 #' @usage arv$users.current(NULL)
48 #' @return User object.
49 #' @name users.current
54 #' users.system is a method defined in Arvados class.
56 #' @usage arv$users.system(NULL)
57 #' @return User object.
63 #' users.activate is a method defined in Arvados class.
65 #' @usage arv$users.activate(uuid)
67 #' @return User object.
68 #' @name users.activate
73 #' users.setup is a method defined in Arvados class.
75 #' @usage arv$users.setup(user = NULL, openid_prefix = NULL,
76 #' repo_name = NULL, vm_uuid = NULL, send_notification_email = "false")
78 #' @param openid_prefix
81 #' @param send_notification_email
82 #' @return User object.
88 #' users.unsetup is a method defined in Arvados class.
90 #' @usage arv$users.unsetup(uuid)
92 #' @return User object.
93 #' @name users.unsetup
98 #' users.update_uuid is a method defined in Arvados class.
100 #' @usage arv$users.update_uuid(uuid, new_uuid)
103 #' @return User object.
104 #' @name users.update_uuid
109 #' users.list is a method defined in Arvados class.
111 #' @usage arv$users.list(filters = NULL,
112 #' where = NULL, order = NULL, select = NULL,
113 #' distinct = NULL, limit = "100", offset = "0",
123 #' @return UserList object.
127 #' api_client_authorizations.get
129 #' api_client_authorizations.get is a method defined in Arvados class.
131 #' @usage arv$api_client_authorizations.get(uuid)
132 #' @param uuid The UUID of the ApiClientAuthorization in question.
133 #' @return ApiClientAuthorization object.
134 #' @name api_client_authorizations.get
137 #' api_client_authorizations.create
139 #' api_client_authorizations.create is a method defined in Arvados class.
141 #' @usage arv$api_client_authorizations.create(apiclientauthorization,
142 #' ensure_unique_name = "false")
143 #' @param apiClientAuthorization ApiClientAuthorization object.
144 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
145 #' @return ApiClientAuthorization object.
146 #' @name api_client_authorizations.create
149 #' api_client_authorizations.update
151 #' api_client_authorizations.update is a method defined in Arvados class.
153 #' @usage arv$api_client_authorizations.update(apiclientauthorization,
155 #' @param apiClientAuthorization ApiClientAuthorization object.
156 #' @param uuid The UUID of the ApiClientAuthorization in question.
157 #' @return ApiClientAuthorization object.
158 #' @name api_client_authorizations.update
161 #' api_client_authorizations.delete
163 #' api_client_authorizations.delete is a method defined in Arvados class.
165 #' @usage arv$api_client_authorizations.delete(uuid)
166 #' @param uuid The UUID of the ApiClientAuthorization in question.
167 #' @return ApiClientAuthorization object.
168 #' @name api_client_authorizations.delete
171 #' api_client_authorizations.create_system_auth
173 #' api_client_authorizations.create_system_auth is a method defined in Arvados class.
175 #' @usage arv$api_client_authorizations.create_system_auth(api_client_id = NULL,
177 #' @param api_client_id
179 #' @return ApiClientAuthorization object.
180 #' @name api_client_authorizations.create_system_auth
183 #' api_client_authorizations.current
185 #' api_client_authorizations.current is a method defined in Arvados class.
187 #' @usage arv$api_client_authorizations.current(NULL)
188 #' @return ApiClientAuthorization object.
189 #' @name api_client_authorizations.current
192 #' api_client_authorizations.list
194 #' api_client_authorizations.list is a method defined in Arvados class.
196 #' @usage arv$api_client_authorizations.list(filters = NULL,
197 #' where = NULL, order = NULL, select = NULL,
198 #' distinct = NULL, limit = "100", offset = "0",
208 #' @return ApiClientAuthorizationList object.
209 #' @name api_client_authorizations.list
214 #' containers.get is a method defined in Arvados class.
216 #' @usage arv$containers.get(uuid)
217 #' @param uuid The UUID of the Container in question.
218 #' @return Container object.
219 #' @name containers.get
224 #' containers.create is a method defined in Arvados class.
226 #' @usage arv$containers.create(container,
227 #' ensure_unique_name = "false")
228 #' @param container Container object.
229 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
230 #' @return Container object.
231 #' @name containers.create
236 #' containers.update is a method defined in Arvados class.
238 #' @usage arv$containers.update(container,
240 #' @param container Container object.
241 #' @param uuid The UUID of the Container in question.
242 #' @return Container object.
243 #' @name containers.update
248 #' containers.delete is a method defined in Arvados class.
250 #' @usage arv$containers.delete(uuid)
251 #' @param uuid The UUID of the Container in question.
252 #' @return Container object.
253 #' @name containers.delete
258 #' containers.auth is a method defined in Arvados class.
260 #' @usage arv$containers.auth(uuid)
262 #' @return Container object.
263 #' @name containers.auth
268 #' containers.lock is a method defined in Arvados class.
270 #' @usage arv$containers.lock(uuid)
272 #' @return Container object.
273 #' @name containers.lock
278 #' containers.unlock is a method defined in Arvados class.
280 #' @usage arv$containers.unlock(uuid)
282 #' @return Container object.
283 #' @name containers.unlock
286 #' containers.secret_mounts
288 #' containers.secret_mounts is a method defined in Arvados class.
290 #' @usage arv$containers.secret_mounts(uuid)
292 #' @return Container object.
293 #' @name containers.secret_mounts
296 #' containers.current
298 #' containers.current is a method defined in Arvados class.
300 #' @usage arv$containers.current(NULL)
301 #' @return Container object.
302 #' @name containers.current
307 #' containers.list is a method defined in Arvados class.
309 #' @usage arv$containers.list(filters = NULL,
310 #' where = NULL, order = NULL, select = NULL,
311 #' distinct = NULL, limit = "100", offset = "0",
321 #' @return ContainerList object.
322 #' @name containers.list
327 #' api_clients.get is a method defined in Arvados class.
329 #' @usage arv$api_clients.get(uuid)
330 #' @param uuid The UUID of the ApiClient in question.
331 #' @return ApiClient object.
332 #' @name api_clients.get
335 #' api_clients.create
337 #' api_clients.create is a method defined in Arvados class.
339 #' @usage arv$api_clients.create(apiclient,
340 #' ensure_unique_name = "false")
341 #' @param apiClient ApiClient object.
342 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
343 #' @return ApiClient object.
344 #' @name api_clients.create
347 #' api_clients.update
349 #' api_clients.update is a method defined in Arvados class.
351 #' @usage arv$api_clients.update(apiclient,
353 #' @param apiClient ApiClient object.
354 #' @param uuid The UUID of the ApiClient in question.
355 #' @return ApiClient object.
356 #' @name api_clients.update
359 #' api_clients.delete
361 #' api_clients.delete is a method defined in Arvados class.
363 #' @usage arv$api_clients.delete(uuid)
364 #' @param uuid The UUID of the ApiClient in question.
365 #' @return ApiClient object.
366 #' @name api_clients.delete
371 #' api_clients.list is a method defined in Arvados class.
373 #' @usage arv$api_clients.list(filters = NULL,
374 #' where = NULL, order = NULL, select = NULL,
375 #' distinct = NULL, limit = "100", offset = "0",
385 #' @return ApiClientList object.
386 #' @name api_clients.list
389 #' authorized_keys.get
391 #' authorized_keys.get is a method defined in Arvados class.
393 #' @usage arv$authorized_keys.get(uuid)
394 #' @param uuid The UUID of the AuthorizedKey in question.
395 #' @return AuthorizedKey object.
396 #' @name authorized_keys.get
399 #' authorized_keys.create
401 #' authorized_keys.create is a method defined in Arvados class.
403 #' @usage arv$authorized_keys.create(authorizedkey,
404 #' ensure_unique_name = "false")
405 #' @param authorizedKey AuthorizedKey object.
406 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
407 #' @return AuthorizedKey object.
408 #' @name authorized_keys.create
411 #' authorized_keys.update
413 #' authorized_keys.update is a method defined in Arvados class.
415 #' @usage arv$authorized_keys.update(authorizedkey,
417 #' @param authorizedKey AuthorizedKey object.
418 #' @param uuid The UUID of the AuthorizedKey in question.
419 #' @return AuthorizedKey object.
420 #' @name authorized_keys.update
423 #' authorized_keys.delete
425 #' authorized_keys.delete is a method defined in Arvados class.
427 #' @usage arv$authorized_keys.delete(uuid)
428 #' @param uuid The UUID of the AuthorizedKey in question.
429 #' @return AuthorizedKey object.
430 #' @name authorized_keys.delete
433 #' authorized_keys.list
435 #' authorized_keys.list is a method defined in Arvados class.
437 #' @usage arv$authorized_keys.list(filters = NULL,
438 #' where = NULL, order = NULL, select = NULL,
439 #' distinct = NULL, limit = "100", offset = "0",
449 #' @return AuthorizedKeyList object.
450 #' @name authorized_keys.list
453 #' container_requests.get
455 #' container_requests.get is a method defined in Arvados class.
457 #' @usage arv$container_requests.get(uuid)
458 #' @param uuid The UUID of the ContainerRequest in question.
459 #' @return ContainerRequest object.
460 #' @name container_requests.get
463 #' container_requests.create
465 #' container_requests.create is a method defined in Arvados class.
467 #' @usage arv$container_requests.create(containerrequest,
468 #' ensure_unique_name = "false")
469 #' @param containerRequest ContainerRequest object.
470 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
471 #' @return ContainerRequest object.
472 #' @name container_requests.create
475 #' container_requests.update
477 #' container_requests.update is a method defined in Arvados class.
479 #' @usage arv$container_requests.update(containerrequest,
481 #' @param containerRequest ContainerRequest object.
482 #' @param uuid The UUID of the ContainerRequest in question.
483 #' @return ContainerRequest object.
484 #' @name container_requests.update
487 #' container_requests.delete
489 #' container_requests.delete is a method defined in Arvados class.
491 #' @usage arv$container_requests.delete(uuid)
492 #' @param uuid The UUID of the ContainerRequest in question.
493 #' @return ContainerRequest object.
494 #' @name container_requests.delete
497 #' container_requests.list
499 #' container_requests.list is a method defined in Arvados class.
501 #' @usage arv$container_requests.list(filters = NULL,
502 #' where = NULL, order = NULL, select = NULL,
503 #' distinct = NULL, limit = "100", offset = "0",
513 #' @return ContainerRequestList object.
514 #' @name container_requests.list
519 #' collections.get is a method defined in Arvados class.
521 #' @usage arv$collections.get(uuid)
522 #' @param uuid The UUID of the Collection in question.
523 #' @return Collection object.
524 #' @name collections.get
527 #' collections.create
529 #' collections.create is a method defined in Arvados class.
531 #' @usage arv$collections.create(collection,
532 #' ensure_unique_name = "false")
533 #' @param collection Collection object.
534 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
535 #' @return Collection object.
536 #' @name collections.create
539 #' collections.update
541 #' collections.update is a method defined in Arvados class.
543 #' @usage arv$collections.update(collection,
545 #' @param collection Collection object.
546 #' @param uuid The UUID of the Collection in question.
547 #' @return Collection object.
548 #' @name collections.update
551 #' collections.delete
553 #' collections.delete is a method defined in Arvados class.
555 #' @usage arv$collections.delete(uuid)
556 #' @param uuid The UUID of the Collection in question.
557 #' @return Collection object.
558 #' @name collections.delete
561 #' collections.provenance
563 #' collections.provenance is a method defined in Arvados class.
565 #' @usage arv$collections.provenance(uuid)
567 #' @return Collection object.
568 #' @name collections.provenance
571 #' collections.used_by
573 #' collections.used_by is a method defined in Arvados class.
575 #' @usage arv$collections.used_by(uuid)
577 #' @return Collection object.
578 #' @name collections.used_by
583 #' collections.trash is a method defined in Arvados class.
585 #' @usage arv$collections.trash(uuid)
587 #' @return Collection object.
588 #' @name collections.trash
591 #' collections.untrash
593 #' collections.untrash is a method defined in Arvados class.
595 #' @usage arv$collections.untrash(uuid)
597 #' @return Collection object.
598 #' @name collections.untrash
603 #' collections.list is a method defined in Arvados class.
605 #' @usage arv$collections.list(filters = NULL,
606 #' where = NULL, order = NULL, select = NULL,
607 #' distinct = NULL, limit = "100", offset = "0",
608 #' count = "exact", include_trash = NULL)
617 #' @param include_trash Include collections whose is_trashed attribute is true.
618 #' @return CollectionList object.
619 #' @name collections.list
624 #' humans.get is a method defined in Arvados class.
626 #' @usage arv$humans.get(uuid)
627 #' @param uuid The UUID of the Human in question.
628 #' @return Human object.
634 #' humans.create is a method defined in Arvados class.
636 #' @usage arv$humans.create(human, ensure_unique_name = "false")
637 #' @param human Human object.
638 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
639 #' @return Human object.
640 #' @name humans.create
645 #' humans.update is a method defined in Arvados class.
647 #' @usage arv$humans.update(human, uuid)
648 #' @param human Human object.
649 #' @param uuid The UUID of the Human in question.
650 #' @return Human object.
651 #' @name humans.update
656 #' humans.delete is a method defined in Arvados class.
658 #' @usage arv$humans.delete(uuid)
659 #' @param uuid The UUID of the Human in question.
660 #' @return Human object.
661 #' @name humans.delete
666 #' humans.list is a method defined in Arvados class.
668 #' @usage arv$humans.list(filters = NULL,
669 #' where = NULL, order = NULL, select = NULL,
670 #' distinct = NULL, limit = "100", offset = "0",
680 #' @return HumanList object.
686 #' job_tasks.get is a method defined in Arvados class.
688 #' @usage arv$job_tasks.get(uuid)
689 #' @param uuid The UUID of the JobTask in question.
690 #' @return JobTask object.
691 #' @name job_tasks.get
696 #' job_tasks.create is a method defined in Arvados class.
698 #' @usage arv$job_tasks.create(jobtask, ensure_unique_name = "false")
699 #' @param jobTask JobTask object.
700 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
701 #' @return JobTask object.
702 #' @name job_tasks.create
707 #' job_tasks.update is a method defined in Arvados class.
709 #' @usage arv$job_tasks.update(jobtask, uuid)
710 #' @param jobTask JobTask object.
711 #' @param uuid The UUID of the JobTask in question.
712 #' @return JobTask object.
713 #' @name job_tasks.update
718 #' job_tasks.delete is a method defined in Arvados class.
720 #' @usage arv$job_tasks.delete(uuid)
721 #' @param uuid The UUID of the JobTask in question.
722 #' @return JobTask object.
723 #' @name job_tasks.delete
728 #' job_tasks.list is a method defined in Arvados class.
730 #' @usage arv$job_tasks.list(filters = NULL,
731 #' where = NULL, order = NULL, select = NULL,
732 #' distinct = NULL, limit = "100", offset = "0",
742 #' @return JobTaskList object.
743 #' @name job_tasks.list
748 #' links.get is a method defined in Arvados class.
750 #' @usage arv$links.get(uuid)
751 #' @param uuid The UUID of the Link in question.
752 #' @return Link object.
758 #' links.create is a method defined in Arvados class.
760 #' @usage arv$links.create(link, ensure_unique_name = "false")
761 #' @param link Link object.
762 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
763 #' @return Link object.
764 #' @name links.create
769 #' links.update is a method defined in Arvados class.
771 #' @usage arv$links.update(link, uuid)
772 #' @param link Link object.
773 #' @param uuid The UUID of the Link in question.
774 #' @return Link object.
775 #' @name links.update
780 #' links.delete is a method defined in Arvados class.
782 #' @usage arv$links.delete(uuid)
783 #' @param uuid The UUID of the Link in question.
784 #' @return Link object.
785 #' @name links.delete
790 #' links.list is a method defined in Arvados class.
792 #' @usage arv$links.list(filters = NULL,
793 #' where = NULL, order = NULL, select = NULL,
794 #' distinct = NULL, limit = "100", offset = "0",
804 #' @return LinkList object.
808 #' links.get_permissions
810 #' links.get_permissions is a method defined in Arvados class.
812 #' @usage arv$links.get_permissions(uuid)
814 #' @return Link object.
815 #' @name links.get_permissions
820 #' jobs.get is a method defined in Arvados class.
822 #' @usage arv$jobs.get(uuid)
823 #' @param uuid The UUID of the Job in question.
824 #' @return Job object.
830 #' jobs.create is a method defined in Arvados class.
832 #' @usage arv$jobs.create(job, ensure_unique_name = "false",
833 #' find_or_create = "false", filters = NULL,
834 #' minimum_script_version = NULL, exclude_script_versions = NULL)
835 #' @param job Job object.
836 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
837 #' @param find_or_create
839 #' @param minimum_script_version
840 #' @param exclude_script_versions
841 #' @return Job object.
847 #' jobs.update is a method defined in Arvados class.
849 #' @usage arv$jobs.update(job, uuid)
850 #' @param job Job object.
851 #' @param uuid The UUID of the Job in question.
852 #' @return Job object.
858 #' jobs.delete is a method defined in Arvados class.
860 #' @usage arv$jobs.delete(uuid)
861 #' @param uuid The UUID of the Job in question.
862 #' @return Job object.
868 #' jobs.queue is a method defined in Arvados class.
870 #' @usage arv$jobs.queue(filters = NULL,
871 #' where = NULL, order = NULL, select = NULL,
872 #' distinct = NULL, limit = "100", offset = "0",
882 #' @return Job object.
888 #' jobs.queue_size is a method defined in Arvados class.
890 #' @usage arv$jobs.queue_size(NULL)
891 #' @return Job object.
892 #' @name jobs.queue_size
897 #' jobs.cancel is a method defined in Arvados class.
899 #' @usage arv$jobs.cancel(uuid)
901 #' @return Job object.
907 #' jobs.lock is a method defined in Arvados class.
909 #' @usage arv$jobs.lock(uuid)
911 #' @return Job object.
917 #' jobs.list is a method defined in Arvados class.
919 #' @usage arv$jobs.list(filters = NULL, where = NULL,
920 #' order = NULL, select = NULL, distinct = NULL,
921 #' limit = "100", offset = "0", count = "exact")
930 #' @return JobList object.
936 #' keep_disks.get is a method defined in Arvados class.
938 #' @usage arv$keep_disks.get(uuid)
939 #' @param uuid The UUID of the KeepDisk in question.
940 #' @return KeepDisk object.
941 #' @name keep_disks.get
946 #' keep_disks.create is a method defined in Arvados class.
948 #' @usage arv$keep_disks.create(keepdisk,
949 #' ensure_unique_name = "false")
950 #' @param keepDisk KeepDisk object.
951 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
952 #' @return KeepDisk object.
953 #' @name keep_disks.create
958 #' keep_disks.update is a method defined in Arvados class.
960 #' @usage arv$keep_disks.update(keepdisk,
962 #' @param keepDisk KeepDisk object.
963 #' @param uuid The UUID of the KeepDisk in question.
964 #' @return KeepDisk object.
965 #' @name keep_disks.update
970 #' keep_disks.delete is a method defined in Arvados class.
972 #' @usage arv$keep_disks.delete(uuid)
973 #' @param uuid The UUID of the KeepDisk in question.
974 #' @return KeepDisk object.
975 #' @name keep_disks.delete
980 #' keep_disks.ping is a method defined in Arvados class.
982 #' @usage arv$keep_disks.ping(uuid = NULL,
983 #' ping_secret, node_uuid = NULL, filesystem_uuid = NULL,
984 #' service_host = NULL, service_port, service_ssl_flag)
986 #' @param ping_secret
988 #' @param filesystem_uuid
989 #' @param service_host
990 #' @param service_port
991 #' @param service_ssl_flag
992 #' @return KeepDisk object.
993 #' @name keep_disks.ping
998 #' keep_disks.list is a method defined in Arvados class.
1000 #' @usage arv$keep_disks.list(filters = NULL,
1001 #' where = NULL, order = NULL, select = NULL,
1002 #' distinct = NULL, limit = "100", offset = "0",
1012 #' @return KeepDiskList object.
1013 #' @name keep_disks.list
1016 #' keep_services.get
1018 #' keep_services.get is a method defined in Arvados class.
1020 #' @usage arv$keep_services.get(uuid)
1021 #' @param uuid The UUID of the KeepService in question.
1022 #' @return KeepService object.
1023 #' @name keep_services.get
1026 #' keep_services.create
1028 #' keep_services.create is a method defined in Arvados class.
1030 #' @usage arv$keep_services.create(keepservice,
1031 #' ensure_unique_name = "false")
1032 #' @param keepService KeepService object.
1033 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1034 #' @return KeepService object.
1035 #' @name keep_services.create
1038 #' keep_services.update
1040 #' keep_services.update is a method defined in Arvados class.
1042 #' @usage arv$keep_services.update(keepservice,
1044 #' @param keepService KeepService object.
1045 #' @param uuid The UUID of the KeepService in question.
1046 #' @return KeepService object.
1047 #' @name keep_services.update
1050 #' keep_services.delete
1052 #' keep_services.delete is a method defined in Arvados class.
1054 #' @usage arv$keep_services.delete(uuid)
1055 #' @param uuid The UUID of the KeepService in question.
1056 #' @return KeepService object.
1057 #' @name keep_services.delete
1060 #' keep_services.accessible
1062 #' keep_services.accessible is a method defined in Arvados class.
1064 #' @usage arv$keep_services.accessible(NULL)
1065 #' @return KeepService object.
1066 #' @name keep_services.accessible
1069 #' keep_services.list
1071 #' keep_services.list is a method defined in Arvados class.
1073 #' @usage arv$keep_services.list(filters = NULL,
1074 #' where = NULL, order = NULL, select = NULL,
1075 #' distinct = NULL, limit = "100", offset = "0",
1085 #' @return KeepServiceList object.
1086 #' @name keep_services.list
1089 #' pipeline_templates.get
1091 #' pipeline_templates.get is a method defined in Arvados class.
1093 #' @usage arv$pipeline_templates.get(uuid)
1094 #' @param uuid The UUID of the PipelineTemplate in question.
1095 #' @return PipelineTemplate object.
1096 #' @name pipeline_templates.get
1099 #' pipeline_templates.create
1101 #' pipeline_templates.create is a method defined in Arvados class.
1103 #' @usage arv$pipeline_templates.create(pipelinetemplate,
1104 #' ensure_unique_name = "false")
1105 #' @param pipelineTemplate PipelineTemplate object.
1106 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1107 #' @return PipelineTemplate object.
1108 #' @name pipeline_templates.create
1111 #' pipeline_templates.update
1113 #' pipeline_templates.update is a method defined in Arvados class.
1115 #' @usage arv$pipeline_templates.update(pipelinetemplate,
1117 #' @param pipelineTemplate PipelineTemplate object.
1118 #' @param uuid The UUID of the PipelineTemplate in question.
1119 #' @return PipelineTemplate object.
1120 #' @name pipeline_templates.update
1123 #' pipeline_templates.delete
1125 #' pipeline_templates.delete is a method defined in Arvados class.
1127 #' @usage arv$pipeline_templates.delete(uuid)
1128 #' @param uuid The UUID of the PipelineTemplate in question.
1129 #' @return PipelineTemplate object.
1130 #' @name pipeline_templates.delete
1133 #' pipeline_templates.list
1135 #' pipeline_templates.list is a method defined in Arvados class.
1137 #' @usage arv$pipeline_templates.list(filters = NULL,
1138 #' where = NULL, order = NULL, select = NULL,
1139 #' distinct = NULL, limit = "100", offset = "0",
1149 #' @return PipelineTemplateList object.
1150 #' @name pipeline_templates.list
1153 #' pipeline_instances.get
1155 #' pipeline_instances.get is a method defined in Arvados class.
1157 #' @usage arv$pipeline_instances.get(uuid)
1158 #' @param uuid The UUID of the PipelineInstance in question.
1159 #' @return PipelineInstance object.
1160 #' @name pipeline_instances.get
1163 #' pipeline_instances.create
1165 #' pipeline_instances.create is a method defined in Arvados class.
1167 #' @usage arv$pipeline_instances.create(pipelineinstance,
1168 #' ensure_unique_name = "false")
1169 #' @param pipelineInstance PipelineInstance object.
1170 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1171 #' @return PipelineInstance object.
1172 #' @name pipeline_instances.create
1175 #' pipeline_instances.update
1177 #' pipeline_instances.update is a method defined in Arvados class.
1179 #' @usage arv$pipeline_instances.update(pipelineinstance,
1181 #' @param pipelineInstance PipelineInstance object.
1182 #' @param uuid The UUID of the PipelineInstance in question.
1183 #' @return PipelineInstance object.
1184 #' @name pipeline_instances.update
1187 #' pipeline_instances.delete
1189 #' pipeline_instances.delete is a method defined in Arvados class.
1191 #' @usage arv$pipeline_instances.delete(uuid)
1192 #' @param uuid The UUID of the PipelineInstance in question.
1193 #' @return PipelineInstance object.
1194 #' @name pipeline_instances.delete
1197 #' pipeline_instances.cancel
1199 #' pipeline_instances.cancel is a method defined in Arvados class.
1201 #' @usage arv$pipeline_instances.cancel(uuid)
1203 #' @return PipelineInstance object.
1204 #' @name pipeline_instances.cancel
1207 #' pipeline_instances.list
1209 #' pipeline_instances.list is a method defined in Arvados class.
1211 #' @usage arv$pipeline_instances.list(filters = NULL,
1212 #' where = NULL, order = NULL, select = NULL,
1213 #' distinct = NULL, limit = "100", offset = "0",
1223 #' @return PipelineInstanceList object.
1224 #' @name pipeline_instances.list
1229 #' nodes.get is a method defined in Arvados class.
1231 #' @usage arv$nodes.get(uuid)
1232 #' @param uuid The UUID of the Node in question.
1233 #' @return Node object.
1239 #' nodes.create is a method defined in Arvados class.
1241 #' @usage arv$nodes.create(node, ensure_unique_name = "false",
1242 #' assign_slot = NULL)
1243 #' @param node Node object.
1244 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1245 #' @param assign_slot assign slot and hostname
1246 #' @return Node object.
1247 #' @name nodes.create
1252 #' nodes.update is a method defined in Arvados class.
1254 #' @usage arv$nodes.update(node, uuid, assign_slot = NULL)
1255 #' @param node Node object.
1256 #' @param uuid The UUID of the Node in question.
1257 #' @param assign_slot assign slot and hostname
1258 #' @return Node object.
1259 #' @name nodes.update
1264 #' nodes.delete is a method defined in Arvados class.
1266 #' @usage arv$nodes.delete(uuid)
1267 #' @param uuid The UUID of the Node in question.
1268 #' @return Node object.
1269 #' @name nodes.delete
1274 #' nodes.ping is a method defined in Arvados class.
1276 #' @usage arv$nodes.ping(uuid, ping_secret)
1278 #' @param ping_secret
1279 #' @return Node object.
1285 #' nodes.list is a method defined in Arvados class.
1287 #' @usage arv$nodes.list(filters = NULL,
1288 #' where = NULL, order = NULL, select = NULL,
1289 #' distinct = NULL, limit = "100", offset = "0",
1299 #' @return NodeList object.
1305 #' repositories.get is a method defined in Arvados class.
1307 #' @usage arv$repositories.get(uuid)
1308 #' @param uuid The UUID of the Repository in question.
1309 #' @return Repository object.
1310 #' @name repositories.get
1313 #' repositories.create
1315 #' repositories.create is a method defined in Arvados class.
1317 #' @usage arv$repositories.create(repository,
1318 #' ensure_unique_name = "false")
1319 #' @param repository Repository object.
1320 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1321 #' @return Repository object.
1322 #' @name repositories.create
1325 #' repositories.update
1327 #' repositories.update is a method defined in Arvados class.
1329 #' @usage arv$repositories.update(repository,
1331 #' @param repository Repository object.
1332 #' @param uuid The UUID of the Repository in question.
1333 #' @return Repository object.
1334 #' @name repositories.update
1337 #' repositories.delete
1339 #' repositories.delete is a method defined in Arvados class.
1341 #' @usage arv$repositories.delete(uuid)
1342 #' @param uuid The UUID of the Repository in question.
1343 #' @return Repository object.
1344 #' @name repositories.delete
1347 #' repositories.get_all_permissions
1349 #' repositories.get_all_permissions is a method defined in Arvados class.
1351 #' @usage arv$repositories.get_all_permissions(NULL)
1352 #' @return Repository object.
1353 #' @name repositories.get_all_permissions
1356 #' repositories.list
1358 #' repositories.list is a method defined in Arvados class.
1360 #' @usage arv$repositories.list(filters = NULL,
1361 #' where = NULL, order = NULL, select = NULL,
1362 #' distinct = NULL, limit = "100", offset = "0",
1372 #' @return RepositoryList object.
1373 #' @name repositories.list
1378 #' specimens.get is a method defined in Arvados class.
1380 #' @usage arv$specimens.get(uuid)
1381 #' @param uuid The UUID of the Specimen in question.
1382 #' @return Specimen object.
1383 #' @name specimens.get
1388 #' specimens.create is a method defined in Arvados class.
1390 #' @usage arv$specimens.create(specimen,
1391 #' ensure_unique_name = "false")
1392 #' @param specimen Specimen object.
1393 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1394 #' @return Specimen object.
1395 #' @name specimens.create
1400 #' specimens.update is a method defined in Arvados class.
1402 #' @usage arv$specimens.update(specimen,
1404 #' @param specimen Specimen object.
1405 #' @param uuid The UUID of the Specimen in question.
1406 #' @return Specimen object.
1407 #' @name specimens.update
1412 #' specimens.delete is a method defined in Arvados class.
1414 #' @usage arv$specimens.delete(uuid)
1415 #' @param uuid The UUID of the Specimen in question.
1416 #' @return Specimen object.
1417 #' @name specimens.delete
1422 #' specimens.list is a method defined in Arvados class.
1424 #' @usage arv$specimens.list(filters = NULL,
1425 #' where = NULL, order = NULL, select = NULL,
1426 #' distinct = NULL, limit = "100", offset = "0",
1436 #' @return SpecimenList object.
1437 #' @name specimens.list
1442 #' logs.get is a method defined in Arvados class.
1444 #' @usage arv$logs.get(uuid)
1445 #' @param uuid The UUID of the Log in question.
1446 #' @return Log object.
1452 #' logs.create is a method defined in Arvados class.
1454 #' @usage arv$logs.create(log, ensure_unique_name = "false")
1455 #' @param log Log object.
1456 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1457 #' @return Log object.
1458 #' @name logs.create
1463 #' logs.update is a method defined in Arvados class.
1465 #' @usage arv$logs.update(log, uuid)
1466 #' @param log Log object.
1467 #' @param uuid The UUID of the Log in question.
1468 #' @return Log object.
1469 #' @name logs.update
1474 #' logs.delete is a method defined in Arvados class.
1476 #' @usage arv$logs.delete(uuid)
1477 #' @param uuid The UUID of the Log in question.
1478 #' @return Log object.
1479 #' @name logs.delete
1484 #' logs.list is a method defined in Arvados class.
1486 #' @usage arv$logs.list(filters = NULL, where = NULL,
1487 #' order = NULL, select = NULL, distinct = NULL,
1488 #' limit = "100", offset = "0", count = "exact")
1497 #' @return LogList object.
1503 #' traits.get is a method defined in Arvados class.
1505 #' @usage arv$traits.get(uuid)
1506 #' @param uuid The UUID of the Trait in question.
1507 #' @return Trait object.
1513 #' traits.create is a method defined in Arvados class.
1515 #' @usage arv$traits.create(trait, ensure_unique_name = "false")
1516 #' @param trait Trait object.
1517 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1518 #' @return Trait object.
1519 #' @name traits.create
1524 #' traits.update is a method defined in Arvados class.
1526 #' @usage arv$traits.update(trait, uuid)
1527 #' @param trait Trait object.
1528 #' @param uuid The UUID of the Trait in question.
1529 #' @return Trait object.
1530 #' @name traits.update
1535 #' traits.delete is a method defined in Arvados class.
1537 #' @usage arv$traits.delete(uuid)
1538 #' @param uuid The UUID of the Trait in question.
1539 #' @return Trait object.
1540 #' @name traits.delete
1545 #' traits.list is a method defined in Arvados class.
1547 #' @usage arv$traits.list(filters = NULL,
1548 #' where = NULL, order = NULL, select = NULL,
1549 #' distinct = NULL, limit = "100", offset = "0",
1559 #' @return TraitList object.
1560 #' @name traits.list
1563 #' virtual_machines.get
1565 #' virtual_machines.get is a method defined in Arvados class.
1567 #' @usage arv$virtual_machines.get(uuid)
1568 #' @param uuid The UUID of the VirtualMachine in question.
1569 #' @return VirtualMachine object.
1570 #' @name virtual_machines.get
1573 #' virtual_machines.create
1575 #' virtual_machines.create is a method defined in Arvados class.
1577 #' @usage arv$virtual_machines.create(virtualmachine,
1578 #' ensure_unique_name = "false")
1579 #' @param virtualMachine VirtualMachine object.
1580 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1581 #' @return VirtualMachine object.
1582 #' @name virtual_machines.create
1585 #' virtual_machines.update
1587 #' virtual_machines.update is a method defined in Arvados class.
1589 #' @usage arv$virtual_machines.update(virtualmachine,
1591 #' @param virtualMachine VirtualMachine object.
1592 #' @param uuid The UUID of the VirtualMachine in question.
1593 #' @return VirtualMachine object.
1594 #' @name virtual_machines.update
1597 #' virtual_machines.delete
1599 #' virtual_machines.delete is a method defined in Arvados class.
1601 #' @usage arv$virtual_machines.delete(uuid)
1602 #' @param uuid The UUID of the VirtualMachine in question.
1603 #' @return VirtualMachine object.
1604 #' @name virtual_machines.delete
1607 #' virtual_machines.logins
1609 #' virtual_machines.logins is a method defined in Arvados class.
1611 #' @usage arv$virtual_machines.logins(uuid)
1613 #' @return VirtualMachine object.
1614 #' @name virtual_machines.logins
1617 #' virtual_machines.get_all_logins
1619 #' virtual_machines.get_all_logins is a method defined in Arvados class.
1621 #' @usage arv$virtual_machines.get_all_logins(NULL)
1622 #' @return VirtualMachine object.
1623 #' @name virtual_machines.get_all_logins
1626 #' virtual_machines.list
1628 #' virtual_machines.list is a method defined in Arvados class.
1630 #' @usage arv$virtual_machines.list(filters = NULL,
1631 #' where = NULL, order = NULL, select = NULL,
1632 #' distinct = NULL, limit = "100", offset = "0",
1642 #' @return VirtualMachineList object.
1643 #' @name virtual_machines.list
1648 #' workflows.get is a method defined in Arvados class.
1650 #' @usage arv$workflows.get(uuid)
1651 #' @param uuid The UUID of the Workflow in question.
1652 #' @return Workflow object.
1653 #' @name workflows.get
1658 #' workflows.create is a method defined in Arvados class.
1660 #' @usage arv$workflows.create(workflow,
1661 #' ensure_unique_name = "false")
1662 #' @param workflow Workflow object.
1663 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1664 #' @return Workflow object.
1665 #' @name workflows.create
1670 #' workflows.update is a method defined in Arvados class.
1672 #' @usage arv$workflows.update(workflow,
1674 #' @param workflow Workflow object.
1675 #' @param uuid The UUID of the Workflow in question.
1676 #' @return Workflow object.
1677 #' @name workflows.update
1682 #' workflows.delete is a method defined in Arvados class.
1684 #' @usage arv$workflows.delete(uuid)
1685 #' @param uuid The UUID of the Workflow in question.
1686 #' @return Workflow object.
1687 #' @name workflows.delete
1692 #' workflows.list is a method defined in Arvados class.
1694 #' @usage arv$workflows.list(filters = NULL,
1695 #' where = NULL, order = NULL, select = NULL,
1696 #' distinct = NULL, limit = "100", offset = "0",
1706 #' @return WorkflowList object.
1707 #' @name workflows.list
1712 #' groups.get is a method defined in Arvados class.
1714 #' @usage arv$groups.get(uuid)
1715 #' @param uuid The UUID of the Group in question.
1716 #' @return Group object.
1722 #' groups.create is a method defined in Arvados class.
1724 #' @usage arv$groups.create(group, ensure_unique_name = "false")
1725 #' @param group Group object.
1726 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1727 #' @return Group object.
1728 #' @name groups.create
1733 #' groups.update is a method defined in Arvados class.
1735 #' @usage arv$groups.update(group, uuid)
1736 #' @param group Group object.
1737 #' @param uuid The UUID of the Group in question.
1738 #' @return Group object.
1739 #' @name groups.update
1744 #' groups.delete is a method defined in Arvados class.
1746 #' @usage arv$groups.delete(uuid)
1747 #' @param uuid The UUID of the Group in question.
1748 #' @return Group object.
1749 #' @name groups.delete
1754 #' groups.contents is a method defined in Arvados class.
1756 #' @usage arv$groups.contents(filters = NULL,
1757 #' where = NULL, order = NULL, distinct = NULL,
1758 #' limit = "100", offset = "0", count = "exact",
1759 #' include_trash = NULL, uuid = NULL, recursive = NULL)
1767 #' @param include_trash Include items whose is_trashed attribute is true.
1769 #' @param recursive Include contents from child groups recursively.
1770 #' @return Group object.
1771 #' @name groups.contents
1776 #' groups.trash is a method defined in Arvados class.
1778 #' @usage arv$groups.trash(uuid)
1780 #' @return Group object.
1781 #' @name groups.trash
1786 #' groups.untrash is a method defined in Arvados class.
1788 #' @usage arv$groups.untrash(uuid)
1790 #' @return Group object.
1791 #' @name groups.untrash
1796 #' groups.list is a method defined in Arvados class.
1798 #' @usage arv$groups.list(filters = NULL,
1799 #' where = NULL, order = NULL, select = NULL,
1800 #' distinct = NULL, limit = "100", offset = "0",
1801 #' count = "exact", include_trash = NULL)
1810 #' @param include_trash Include items whose is_trashed attribute is true.
1811 #' @return GroupList object.
1812 #' @name groups.list
1815 #' user_agreements.get
1817 #' user_agreements.get is a method defined in Arvados class.
1819 #' @usage arv$user_agreements.get(uuid)
1820 #' @param uuid The UUID of the UserAgreement in question.
1821 #' @return UserAgreement object.
1822 #' @name user_agreements.get
1825 #' user_agreements.create
1827 #' user_agreements.create is a method defined in Arvados class.
1829 #' @usage arv$user_agreements.create(useragreement,
1830 #' ensure_unique_name = "false")
1831 #' @param userAgreement UserAgreement object.
1832 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1833 #' @return UserAgreement object.
1834 #' @name user_agreements.create
1837 #' user_agreements.update
1839 #' user_agreements.update is a method defined in Arvados class.
1841 #' @usage arv$user_agreements.update(useragreement,
1843 #' @param userAgreement UserAgreement object.
1844 #' @param uuid The UUID of the UserAgreement in question.
1845 #' @return UserAgreement object.
1846 #' @name user_agreements.update
1849 #' user_agreements.delete
1851 #' user_agreements.delete is a method defined in Arvados class.
1853 #' @usage arv$user_agreements.delete(uuid)
1854 #' @param uuid The UUID of the UserAgreement in question.
1855 #' @return UserAgreement object.
1856 #' @name user_agreements.delete
1859 #' user_agreements.signatures
1861 #' user_agreements.signatures is a method defined in Arvados class.
1863 #' @usage arv$user_agreements.signatures(NULL)
1864 #' @return UserAgreement object.
1865 #' @name user_agreements.signatures
1868 #' user_agreements.sign
1870 #' user_agreements.sign is a method defined in Arvados class.
1872 #' @usage arv$user_agreements.sign(NULL)
1873 #' @return UserAgreement object.
1874 #' @name user_agreements.sign
1877 #' user_agreements.list
1879 #' user_agreements.list is a method defined in Arvados class.
1881 #' @usage arv$user_agreements.list(filters = NULL,
1882 #' where = NULL, order = NULL, select = NULL,
1883 #' distinct = NULL, limit = "100", offset = "0",
1893 #' @return UserAgreementList object.
1894 #' @name user_agreements.list
1897 #' user_agreements.new
1899 #' user_agreements.new is a method defined in Arvados class.
1901 #' @usage arv$user_agreements.new(NULL)
1902 #' @return UserAgreement object.
1903 #' @name user_agreements.new
1908 #' projects.get is equivalent to groups.get method.
1910 #' @usage arv$projects.get(uuid)
1911 #' @param uuid The UUID of the Group in question.
1912 #' @return Group object.
1913 #' @name projects.get
1918 #' projects.create wrapps groups.create method by setting group_class attribute to "project".
1920 #' @usage arv$projects.create(group, ensure_unique_name = "false")
1921 #' @param group Group object.
1922 #' @param ensure_unique_name Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.
1923 #' @return Group object.
1924 #' @name projects.create
1929 #' projects.update wrapps groups.update method by setting group_class attribute to "project".
1931 #' @usage arv$projects.update(group, uuid)
1932 #' @param group Group object.
1933 #' @param uuid The UUID of the Group in question.
1934 #' @return Group object.
1935 #' @name projects.update
1940 #' projects.delete is equivalent to groups.delete method.
1942 #' @usage arv$project.delete(uuid)
1943 #' @param uuid The UUID of the Group in question.
1944 #' @return Group object.
1945 #' @name projects.delete
1950 #' projects.list wrapps groups.list method by setting group_class attribute to "project".
1952 #' @usage arv$projects.list(filters = NULL,
1953 #' where = NULL, order = NULL, distinct = NULL,
1954 #' limit = "100", offset = "0", count = "exact",
1955 #' include_trash = NULL, uuid = NULL, recursive = NULL)
1963 #' @param include_trash Include items whose is_trashed attribute is true.
1965 #' @param recursive Include contents from child groups recursively.
1966 #' @return Group object.
1967 #' @name projects.list
1972 #' Arvados class gives users ability to access Arvados REST API.
1975 #' \preformatted{arv = Arvados$new(authToken = NULL, hostName = NULL, numRetries = 0)}
1977 #' @section Arguments:
1979 #' \item{authToken}{Authentification token. If not specified ARVADOS_API_TOKEN environment variable will be used.}
1980 #' \item{hostName}{Host name. If not specified ARVADOS_API_HOST environment variable will be used.}
1981 #' \item{numRetries}{Number which specifies how many times to retry failed service requests.}
1984 #' @section Methods:
1986 #' \item{}{\code{\link{api_client_authorizations.create}}}
1987 #' \item{}{\code{\link{api_client_authorizations.create_system_auth}}}
1988 #' \item{}{\code{\link{api_client_authorizations.current}}}
1989 #' \item{}{\code{\link{api_client_authorizations.delete}}}
1990 #' \item{}{\code{\link{api_client_authorizations.get}}}
1991 #' \item{}{\code{\link{api_client_authorizations.list}}}
1992 #' \item{}{\code{\link{api_client_authorizations.update}}}
1993 #' \item{}{\code{\link{api_clients.create}}}
1994 #' \item{}{\code{\link{api_clients.delete}}}
1995 #' \item{}{\code{\link{api_clients.get}}}
1996 #' \item{}{\code{\link{api_clients.list}}}
1997 #' \item{}{\code{\link{api_clients.update}}}
1998 #' \item{}{\code{\link{authorized_keys.create}}}
1999 #' \item{}{\code{\link{authorized_keys.delete}}}
2000 #' \item{}{\code{\link{authorized_keys.get}}}
2001 #' \item{}{\code{\link{authorized_keys.list}}}
2002 #' \item{}{\code{\link{authorized_keys.update}}}
2003 #' \item{}{\code{\link{collections.create}}}
2004 #' \item{}{\code{\link{collections.delete}}}
2005 #' \item{}{\code{\link{collections.get}}}
2006 #' \item{}{\code{\link{collections.list}}}
2007 #' \item{}{\code{\link{collections.provenance}}}
2008 #' \item{}{\code{\link{collections.trash}}}
2009 #' \item{}{\code{\link{collections.untrash}}}
2010 #' \item{}{\code{\link{collections.update}}}
2011 #' \item{}{\code{\link{collections.used_by}}}
2012 #' \item{}{\code{\link{container_requests.create}}}
2013 #' \item{}{\code{\link{container_requests.delete}}}
2014 #' \item{}{\code{\link{container_requests.get}}}
2015 #' \item{}{\code{\link{container_requests.list}}}
2016 #' \item{}{\code{\link{container_requests.update}}}
2017 #' \item{}{\code{\link{containers.auth}}}
2018 #' \item{}{\code{\link{containers.create}}}
2019 #' \item{}{\code{\link{containers.current}}}
2020 #' \item{}{\code{\link{containers.delete}}}
2021 #' \item{}{\code{\link{containers.get}}}
2022 #' \item{}{\code{\link{containers.list}}}
2023 #' \item{}{\code{\link{containers.lock}}}
2024 #' \item{}{\code{\link{containers.secret_mounts}}}
2025 #' \item{}{\code{\link{containers.unlock}}}
2026 #' \item{}{\code{\link{containers.update}}}
2027 #' \item{}{\code{\link{groups.contents}}}
2028 #' \item{}{\code{\link{groups.create}}}
2029 #' \item{}{\code{\link{groups.delete}}}
2030 #' \item{}{\code{\link{groups.get}}}
2031 #' \item{}{\code{\link{groups.list}}}
2032 #' \item{}{\code{\link{groups.trash}}}
2033 #' \item{}{\code{\link{groups.untrash}}}
2034 #' \item{}{\code{\link{groups.update}}}
2035 #' \item{}{\code{\link{humans.create}}}
2036 #' \item{}{\code{\link{humans.delete}}}
2037 #' \item{}{\code{\link{humans.get}}}
2038 #' \item{}{\code{\link{humans.list}}}
2039 #' \item{}{\code{\link{humans.update}}}
2040 #' \item{}{\code{\link{jobs.cancel}}}
2041 #' \item{}{\code{\link{jobs.create}}}
2042 #' \item{}{\code{\link{jobs.delete}}}
2043 #' \item{}{\code{\link{jobs.get}}}
2044 #' \item{}{\code{\link{jobs.list}}}
2045 #' \item{}{\code{\link{jobs.lock}}}
2046 #' \item{}{\code{\link{jobs.queue}}}
2047 #' \item{}{\code{\link{jobs.queue_size}}}
2048 #' \item{}{\code{\link{jobs.update}}}
2049 #' \item{}{\code{\link{job_tasks.create}}}
2050 #' \item{}{\code{\link{job_tasks.delete}}}
2051 #' \item{}{\code{\link{job_tasks.get}}}
2052 #' \item{}{\code{\link{job_tasks.list}}}
2053 #' \item{}{\code{\link{job_tasks.update}}}
2054 #' \item{}{\code{\link{keep_disks.create}}}
2055 #' \item{}{\code{\link{keep_disks.delete}}}
2056 #' \item{}{\code{\link{keep_disks.get}}}
2057 #' \item{}{\code{\link{keep_disks.list}}}
2058 #' \item{}{\code{\link{keep_disks.ping}}}
2059 #' \item{}{\code{\link{keep_disks.update}}}
2060 #' \item{}{\code{\link{keep_services.accessible}}}
2061 #' \item{}{\code{\link{keep_services.create}}}
2062 #' \item{}{\code{\link{keep_services.delete}}}
2063 #' \item{}{\code{\link{keep_services.get}}}
2064 #' \item{}{\code{\link{keep_services.list}}}
2065 #' \item{}{\code{\link{keep_services.update}}}
2066 #' \item{}{\code{\link{links.create}}}
2067 #' \item{}{\code{\link{links.delete}}}
2068 #' \item{}{\code{\link{links.get}}}
2069 #' \item{}{\code{\link{links.get_permissions}}}
2070 #' \item{}{\code{\link{links.list}}}
2071 #' \item{}{\code{\link{links.update}}}
2072 #' \item{}{\code{\link{logs.create}}}
2073 #' \item{}{\code{\link{logs.delete}}}
2074 #' \item{}{\code{\link{logs.get}}}
2075 #' \item{}{\code{\link{logs.list}}}
2076 #' \item{}{\code{\link{logs.update}}}
2077 #' \item{}{\code{\link{nodes.create}}}
2078 #' \item{}{\code{\link{nodes.delete}}}
2079 #' \item{}{\code{\link{nodes.get}}}
2080 #' \item{}{\code{\link{nodes.list}}}
2081 #' \item{}{\code{\link{nodes.ping}}}
2082 #' \item{}{\code{\link{nodes.update}}}
2083 #' \item{}{\code{\link{pipeline_instances.cancel}}}
2084 #' \item{}{\code{\link{pipeline_instances.create}}}
2085 #' \item{}{\code{\link{pipeline_instances.delete}}}
2086 #' \item{}{\code{\link{pipeline_instances.get}}}
2087 #' \item{}{\code{\link{pipeline_instances.list}}}
2088 #' \item{}{\code{\link{pipeline_instances.update}}}
2089 #' \item{}{\code{\link{pipeline_templates.create}}}
2090 #' \item{}{\code{\link{pipeline_templates.delete}}}
2091 #' \item{}{\code{\link{pipeline_templates.get}}}
2092 #' \item{}{\code{\link{pipeline_templates.list}}}
2093 #' \item{}{\code{\link{pipeline_templates.update}}}
2094 #' \item{}{\code{\link{projects.create}}}
2095 #' \item{}{\code{\link{projects.delete}}}
2096 #' \item{}{\code{\link{projects.get}}}
2097 #' \item{}{\code{\link{projects.list}}}
2098 #' \item{}{\code{\link{projects.update}}}
2099 #' \item{}{\code{\link{repositories.create}}}
2100 #' \item{}{\code{\link{repositories.delete}}}
2101 #' \item{}{\code{\link{repositories.get}}}
2102 #' \item{}{\code{\link{repositories.get_all_permissions}}}
2103 #' \item{}{\code{\link{repositories.list}}}
2104 #' \item{}{\code{\link{repositories.update}}}
2105 #' \item{}{\code{\link{specimens.create}}}
2106 #' \item{}{\code{\link{specimens.delete}}}
2107 #' \item{}{\code{\link{specimens.get}}}
2108 #' \item{}{\code{\link{specimens.list}}}
2109 #' \item{}{\code{\link{specimens.update}}}
2110 #' \item{}{\code{\link{traits.create}}}
2111 #' \item{}{\code{\link{traits.delete}}}
2112 #' \item{}{\code{\link{traits.get}}}
2113 #' \item{}{\code{\link{traits.list}}}
2114 #' \item{}{\code{\link{traits.update}}}
2115 #' \item{}{\code{\link{user_agreements.create}}}
2116 #' \item{}{\code{\link{user_agreements.delete}}}
2117 #' \item{}{\code{\link{user_agreements.get}}}
2118 #' \item{}{\code{\link{user_agreements.list}}}
2119 #' \item{}{\code{\link{user_agreements.new}}}
2120 #' \item{}{\code{\link{user_agreements.sign}}}
2121 #' \item{}{\code{\link{user_agreements.signatures}}}
2122 #' \item{}{\code{\link{user_agreements.update}}}
2123 #' \item{}{\code{\link{users.activate}}}
2124 #' \item{}{\code{\link{users.create}}}
2125 #' \item{}{\code{\link{users.current}}}
2126 #' \item{}{\code{\link{users.delete}}}
2127 #' \item{}{\code{\link{users.get}}}
2128 #' \item{}{\code{\link{users.list}}}
2129 #' \item{}{\code{\link{users.setup}}}
2130 #' \item{}{\code{\link{users.system}}}
2131 #' \item{}{\code{\link{users.unsetup}}}
2132 #' \item{}{\code{\link{users.update}}}
2133 #' \item{}{\code{\link{users.update_uuid}}}
2134 #' \item{}{\code{\link{virtual_machines.create}}}
2135 #' \item{}{\code{\link{virtual_machines.delete}}}
2136 #' \item{}{\code{\link{virtual_machines.get}}}
2137 #' \item{}{\code{\link{virtual_machines.get_all_logins}}}
2138 #' \item{}{\code{\link{virtual_machines.list}}}
2139 #' \item{}{\code{\link{virtual_machines.logins}}}
2140 #' \item{}{\code{\link{virtual_machines.update}}}
2141 #' \item{}{\code{\link{workflows.create}}}
2142 #' \item{}{\code{\link{workflows.delete}}}
2143 #' \item{}{\code{\link{workflows.get}}}
2144 #' \item{}{\code{\link{workflows.list}}}
2145 #' \item{}{\code{\link{workflows.update}}}
2151 #' arv <- Arvados$new("your Arvados token", "example.arvadosapi.com")
2153 #' collection <- arv$collections.get("uuid")
2155 #' collectionList <- arv$collections.list(list(list("name", "like", "Test%")))
2156 #' collectionList <- listAll(arv$collections.list, list(list("name", "like", "Test%")))
2158 #' deletedCollection <- arv$collections.delete("uuid")
2160 #' updatedCollection <- arv$collections.update(list(name = "New name", description = "New description"),
2163 #' createdCollection <- arv$collections.create(list(name = "Example",
2164 #' description = "This is a test collection"))
2169 Arvados <- R6::R6Class(
2175 initialize = function(authToken = NULL, hostName = NULL, numRetries = 0)
2177 if(!is.null(hostName))
2178 Sys.setenv(ARVADOS_API_HOST = hostName)
2180 if(!is.null(authToken))
2181 Sys.setenv(ARVADOS_API_TOKEN = authToken)
2183 hostName <- Sys.getenv("ARVADOS_API_HOST")
2184 token <- Sys.getenv("ARVADOS_API_TOKEN")
2186 if(hostName == "" | token == "")
2187 stop(paste("Please provide host name and authentification token",
2188 "or set ARVADOS_API_HOST and ARVADOS_API_TOKEN",
2189 "environment variables."))
2191 private$token <- token
2192 private$host <- paste0("https://", hostName, "/arvados/v1/")
2193 private$numRetries <- numRetries
2194 private$REST <- RESTService$new(token, hostName,
2195 HttpRequest$new(), HttpParser$new(),
2200 projects.get = function(uuid)
2202 self$groups.get(uuid)
2205 projects.create = function(group, ensure_unique_name = "false")
2207 group <- c("group_class" = "project", group)
2208 self$groups.create(group, ensure_unique_name)
2211 projects.update = function(group, uuid)
2213 group <- c("group_class" = "project", group)
2214 self$groups.update(group, uuid)
2217 projects.list = function(filters = NULL, where = NULL,
2218 order = NULL, select = NULL, distinct = NULL,
2219 limit = "100", offset = "0", count = "exact",
2220 include_trash = NULL)
2222 filters[[length(filters) + 1]] <- list("group_class", "=", "project")
2223 self$groups.list(filters, where, order, select, distinct,
2224 limit, offset, count, include_trash)
2227 projects.delete = function(uuid)
2229 self$groups.delete(uuid)
2232 users.get = function(uuid)
2234 endPoint <- stringr::str_interp("users/${uuid}")
2235 url <- paste0(private$host, endPoint)
2236 headers <- list(Authorization = paste("OAuth2", private$token),
2237 "Content-Type" = "application/json")
2242 response <- private$REST$http$exec("GET", url, headers, body,
2243 queryArgs, private$numRetries)
2244 resource <- private$REST$httpParser$parseJSONResponse(response)
2246 if(!is.null(resource$errors))
2247 stop(resource$errors)
2252 users.create = function(user, ensure_unique_name = "false")
2254 endPoint <- stringr::str_interp("users")
2255 url <- paste0(private$host, endPoint)
2256 headers <- list(Authorization = paste("OAuth2", private$token),
2257 "Content-Type" = "application/json")
2258 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2260 if(length(user) > 0)
2261 body <- jsonlite::toJSON(list(user = user),
2266 response <- private$REST$http$exec("POST", url, headers, body,
2267 queryArgs, private$numRetries)
2268 resource <- private$REST$httpParser$parseJSONResponse(response)
2270 if(!is.null(resource$errors))
2271 stop(resource$errors)
2276 users.update = function(user, uuid)
2278 endPoint <- stringr::str_interp("users/${uuid}")
2279 url <- paste0(private$host, endPoint)
2280 headers <- list(Authorization = paste("OAuth2", private$token),
2281 "Content-Type" = "application/json")
2284 if(length(user) > 0)
2285 body <- jsonlite::toJSON(list(user = user),
2290 response <- private$REST$http$exec("PUT", url, headers, body,
2291 queryArgs, private$numRetries)
2292 resource <- private$REST$httpParser$parseJSONResponse(response)
2294 if(!is.null(resource$errors))
2295 stop(resource$errors)
2300 users.delete = function(uuid)
2302 endPoint <- stringr::str_interp("users/${uuid}")
2303 url <- paste0(private$host, endPoint)
2304 headers <- list(Authorization = paste("OAuth2", private$token),
2305 "Content-Type" = "application/json")
2310 response <- private$REST$http$exec("DELETE", url, headers, body,
2311 queryArgs, private$numRetries)
2312 resource <- private$REST$httpParser$parseJSONResponse(response)
2314 if(!is.null(resource$errors))
2315 stop(resource$errors)
2320 users.current = function()
2322 endPoint <- stringr::str_interp("users/current")
2323 url <- paste0(private$host, endPoint)
2324 headers <- list(Authorization = paste("OAuth2", private$token),
2325 "Content-Type" = "application/json")
2330 response <- private$REST$http$exec("GET", url, headers, body,
2331 queryArgs, private$numRetries)
2332 resource <- private$REST$httpParser$parseJSONResponse(response)
2334 if(!is.null(resource$errors))
2335 stop(resource$errors)
2340 users.system = function()
2342 endPoint <- stringr::str_interp("users/system")
2343 url <- paste0(private$host, endPoint)
2344 headers <- list(Authorization = paste("OAuth2", private$token),
2345 "Content-Type" = "application/json")
2350 response <- private$REST$http$exec("GET", url, headers, body,
2351 queryArgs, private$numRetries)
2352 resource <- private$REST$httpParser$parseJSONResponse(response)
2354 if(!is.null(resource$errors))
2355 stop(resource$errors)
2360 users.activate = function(uuid)
2362 endPoint <- stringr::str_interp("users/${uuid}/activate")
2363 url <- paste0(private$host, endPoint)
2364 headers <- list(Authorization = paste("OAuth2", private$token),
2365 "Content-Type" = "application/json")
2370 response <- private$REST$http$exec("POST", url, headers, body,
2371 queryArgs, private$numRetries)
2372 resource <- private$REST$httpParser$parseJSONResponse(response)
2374 if(!is.null(resource$errors))
2375 stop(resource$errors)
2380 users.setup = function(user = NULL, openid_prefix = NULL,
2381 repo_name = NULL, vm_uuid = NULL, send_notification_email = "false")
2383 endPoint <- stringr::str_interp("users/setup")
2384 url <- paste0(private$host, endPoint)
2385 headers <- list(Authorization = paste("OAuth2", private$token),
2386 "Content-Type" = "application/json")
2387 queryArgs <- list(user = user, openid_prefix = openid_prefix,
2388 repo_name = repo_name, vm_uuid = vm_uuid,
2389 send_notification_email = send_notification_email)
2393 response <- private$REST$http$exec("POST", url, headers, body,
2394 queryArgs, private$numRetries)
2395 resource <- private$REST$httpParser$parseJSONResponse(response)
2397 if(!is.null(resource$errors))
2398 stop(resource$errors)
2403 users.unsetup = function(uuid)
2405 endPoint <- stringr::str_interp("users/${uuid}/unsetup")
2406 url <- paste0(private$host, endPoint)
2407 headers <- list(Authorization = paste("OAuth2", private$token),
2408 "Content-Type" = "application/json")
2413 response <- private$REST$http$exec("POST", url, headers, body,
2414 queryArgs, private$numRetries)
2415 resource <- private$REST$httpParser$parseJSONResponse(response)
2417 if(!is.null(resource$errors))
2418 stop(resource$errors)
2423 users.update_uuid = function(uuid, new_uuid)
2425 endPoint <- stringr::str_interp("users/${uuid}/update_uuid")
2426 url <- paste0(private$host, endPoint)
2427 headers <- list(Authorization = paste("OAuth2", private$token),
2428 "Content-Type" = "application/json")
2429 queryArgs <- list(new_uuid = new_uuid)
2433 response <- private$REST$http$exec("POST", url, headers, body,
2434 queryArgs, private$numRetries)
2435 resource <- private$REST$httpParser$parseJSONResponse(response)
2437 if(!is.null(resource$errors))
2438 stop(resource$errors)
2443 users.list = function(filters = NULL, where = NULL,
2444 order = NULL, select = NULL, distinct = NULL,
2445 limit = "100", offset = "0", count = "exact")
2447 endPoint <- stringr::str_interp("users")
2448 url <- paste0(private$host, endPoint)
2449 headers <- list(Authorization = paste("OAuth2", private$token),
2450 "Content-Type" = "application/json")
2451 queryArgs <- list(filters = filters, where = where,
2452 order = order, select = select, distinct = distinct,
2453 limit = limit, offset = offset, count = count)
2457 response <- private$REST$http$exec("GET", url, headers, body,
2458 queryArgs, private$numRetries)
2459 resource <- private$REST$httpParser$parseJSONResponse(response)
2461 if(!is.null(resource$errors))
2462 stop(resource$errors)
2467 api_client_authorizations.get = function(uuid)
2469 endPoint <- stringr::str_interp("api_client_authorizations/${uuid}")
2470 url <- paste0(private$host, endPoint)
2471 headers <- list(Authorization = paste("OAuth2", private$token),
2472 "Content-Type" = "application/json")
2477 response <- private$REST$http$exec("GET", url, headers, body,
2478 queryArgs, private$numRetries)
2479 resource <- private$REST$httpParser$parseJSONResponse(response)
2481 if(!is.null(resource$errors))
2482 stop(resource$errors)
2487 api_client_authorizations.create = function(apiclientauthorization,
2488 ensure_unique_name = "false")
2490 endPoint <- stringr::str_interp("api_client_authorizations")
2491 url <- paste0(private$host, endPoint)
2492 headers <- list(Authorization = paste("OAuth2", private$token),
2493 "Content-Type" = "application/json")
2494 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2496 if(length(apiclientauthorization) > 0)
2497 body <- jsonlite::toJSON(list(apiclientauthorization = apiclientauthorization),
2502 response <- private$REST$http$exec("POST", url, headers, body,
2503 queryArgs, private$numRetries)
2504 resource <- private$REST$httpParser$parseJSONResponse(response)
2506 if(!is.null(resource$errors))
2507 stop(resource$errors)
2512 api_client_authorizations.update = function(apiclientauthorization, uuid)
2514 endPoint <- stringr::str_interp("api_client_authorizations/${uuid}")
2515 url <- paste0(private$host, endPoint)
2516 headers <- list(Authorization = paste("OAuth2", private$token),
2517 "Content-Type" = "application/json")
2520 if(length(apiclientauthorization) > 0)
2521 body <- jsonlite::toJSON(list(apiclientauthorization = apiclientauthorization),
2526 response <- private$REST$http$exec("PUT", url, headers, body,
2527 queryArgs, private$numRetries)
2528 resource <- private$REST$httpParser$parseJSONResponse(response)
2530 if(!is.null(resource$errors))
2531 stop(resource$errors)
2536 api_client_authorizations.delete = function(uuid)
2538 endPoint <- stringr::str_interp("api_client_authorizations/${uuid}")
2539 url <- paste0(private$host, endPoint)
2540 headers <- list(Authorization = paste("OAuth2", private$token),
2541 "Content-Type" = "application/json")
2546 response <- private$REST$http$exec("DELETE", url, headers, body,
2547 queryArgs, private$numRetries)
2548 resource <- private$REST$httpParser$parseJSONResponse(response)
2550 if(!is.null(resource$errors))
2551 stop(resource$errors)
2556 api_client_authorizations.create_system_auth = function(api_client_id = NULL, scopes = NULL)
2558 endPoint <- stringr::str_interp("api_client_authorizations/create_system_auth")
2559 url <- paste0(private$host, endPoint)
2560 headers <- list(Authorization = paste("OAuth2", private$token),
2561 "Content-Type" = "application/json")
2562 queryArgs <- list(api_client_id = api_client_id,
2567 response <- private$REST$http$exec("POST", url, headers, body,
2568 queryArgs, private$numRetries)
2569 resource <- private$REST$httpParser$parseJSONResponse(response)
2571 if(!is.null(resource$errors))
2572 stop(resource$errors)
2577 api_client_authorizations.current = function()
2579 endPoint <- stringr::str_interp("api_client_authorizations/current")
2580 url <- paste0(private$host, endPoint)
2581 headers <- list(Authorization = paste("OAuth2", private$token),
2582 "Content-Type" = "application/json")
2587 response <- private$REST$http$exec("GET", url, headers, body,
2588 queryArgs, private$numRetries)
2589 resource <- private$REST$httpParser$parseJSONResponse(response)
2591 if(!is.null(resource$errors))
2592 stop(resource$errors)
2597 api_client_authorizations.list = function(filters = NULL,
2598 where = NULL, order = NULL, select = NULL,
2599 distinct = NULL, limit = "100", offset = "0",
2602 endPoint <- stringr::str_interp("api_client_authorizations")
2603 url <- paste0(private$host, endPoint)
2604 headers <- list(Authorization = paste("OAuth2", private$token),
2605 "Content-Type" = "application/json")
2606 queryArgs <- list(filters = filters, where = where,
2607 order = order, select = select, distinct = distinct,
2608 limit = limit, offset = offset, count = count)
2612 response <- private$REST$http$exec("GET", url, headers, body,
2613 queryArgs, private$numRetries)
2614 resource <- private$REST$httpParser$parseJSONResponse(response)
2616 if(!is.null(resource$errors))
2617 stop(resource$errors)
2622 containers.get = function(uuid)
2624 endPoint <- stringr::str_interp("containers/${uuid}")
2625 url <- paste0(private$host, endPoint)
2626 headers <- list(Authorization = paste("OAuth2", private$token),
2627 "Content-Type" = "application/json")
2632 response <- private$REST$http$exec("GET", url, headers, body,
2633 queryArgs, private$numRetries)
2634 resource <- private$REST$httpParser$parseJSONResponse(response)
2636 if(!is.null(resource$errors))
2637 stop(resource$errors)
2642 containers.create = function(container, ensure_unique_name = "false")
2644 endPoint <- stringr::str_interp("containers")
2645 url <- paste0(private$host, endPoint)
2646 headers <- list(Authorization = paste("OAuth2", private$token),
2647 "Content-Type" = "application/json")
2648 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2650 if(length(container) > 0)
2651 body <- jsonlite::toJSON(list(container = container),
2656 response <- private$REST$http$exec("POST", url, headers, body,
2657 queryArgs, private$numRetries)
2658 resource <- private$REST$httpParser$parseJSONResponse(response)
2660 if(!is.null(resource$errors))
2661 stop(resource$errors)
2666 containers.update = function(container, uuid)
2668 endPoint <- stringr::str_interp("containers/${uuid}")
2669 url <- paste0(private$host, endPoint)
2670 headers <- list(Authorization = paste("OAuth2", private$token),
2671 "Content-Type" = "application/json")
2674 if(length(container) > 0)
2675 body <- jsonlite::toJSON(list(container = container),
2680 response <- private$REST$http$exec("PUT", url, headers, body,
2681 queryArgs, private$numRetries)
2682 resource <- private$REST$httpParser$parseJSONResponse(response)
2684 if(!is.null(resource$errors))
2685 stop(resource$errors)
2690 containers.delete = function(uuid)
2692 endPoint <- stringr::str_interp("containers/${uuid}")
2693 url <- paste0(private$host, endPoint)
2694 headers <- list(Authorization = paste("OAuth2", private$token),
2695 "Content-Type" = "application/json")
2700 response <- private$REST$http$exec("DELETE", url, headers, body,
2701 queryArgs, private$numRetries)
2702 resource <- private$REST$httpParser$parseJSONResponse(response)
2704 if(!is.null(resource$errors))
2705 stop(resource$errors)
2710 containers.auth = function(uuid)
2712 endPoint <- stringr::str_interp("containers/${uuid}/auth")
2713 url <- paste0(private$host, endPoint)
2714 headers <- list(Authorization = paste("OAuth2", private$token),
2715 "Content-Type" = "application/json")
2720 response <- private$REST$http$exec("GET", url, headers, body,
2721 queryArgs, private$numRetries)
2722 resource <- private$REST$httpParser$parseJSONResponse(response)
2724 if(!is.null(resource$errors))
2725 stop(resource$errors)
2730 containers.lock = function(uuid)
2732 endPoint <- stringr::str_interp("containers/${uuid}/lock")
2733 url <- paste0(private$host, endPoint)
2734 headers <- list(Authorization = paste("OAuth2", private$token),
2735 "Content-Type" = "application/json")
2740 response <- private$REST$http$exec("POST", url, headers, body,
2741 queryArgs, private$numRetries)
2742 resource <- private$REST$httpParser$parseJSONResponse(response)
2744 if(!is.null(resource$errors))
2745 stop(resource$errors)
2750 containers.unlock = function(uuid)
2752 endPoint <- stringr::str_interp("containers/${uuid}/unlock")
2753 url <- paste0(private$host, endPoint)
2754 headers <- list(Authorization = paste("OAuth2", private$token),
2755 "Content-Type" = "application/json")
2760 response <- private$REST$http$exec("POST", url, headers, body,
2761 queryArgs, private$numRetries)
2762 resource <- private$REST$httpParser$parseJSONResponse(response)
2764 if(!is.null(resource$errors))
2765 stop(resource$errors)
2770 containers.secret_mounts = function(uuid)
2772 endPoint <- stringr::str_interp("containers/${uuid}/secret_mounts")
2773 url <- paste0(private$host, endPoint)
2774 headers <- list(Authorization = paste("OAuth2", private$token),
2775 "Content-Type" = "application/json")
2780 response <- private$REST$http$exec("GET", url, headers, body,
2781 queryArgs, private$numRetries)
2782 resource <- private$REST$httpParser$parseJSONResponse(response)
2784 if(!is.null(resource$errors))
2785 stop(resource$errors)
2790 containers.current = function()
2792 endPoint <- stringr::str_interp("containers/current")
2793 url <- paste0(private$host, endPoint)
2794 headers <- list(Authorization = paste("OAuth2", private$token),
2795 "Content-Type" = "application/json")
2800 response <- private$REST$http$exec("GET", url, headers, body,
2801 queryArgs, private$numRetries)
2802 resource <- private$REST$httpParser$parseJSONResponse(response)
2804 if(!is.null(resource$errors))
2805 stop(resource$errors)
2810 containers.list = function(filters = NULL,
2811 where = NULL, order = NULL, select = NULL,
2812 distinct = NULL, limit = "100", offset = "0",
2815 endPoint <- stringr::str_interp("containers")
2816 url <- paste0(private$host, endPoint)
2817 headers <- list(Authorization = paste("OAuth2", private$token),
2818 "Content-Type" = "application/json")
2819 queryArgs <- list(filters = filters, where = where,
2820 order = order, select = select, distinct = distinct,
2821 limit = limit, offset = offset, count = count)
2825 response <- private$REST$http$exec("GET", url, headers, body,
2826 queryArgs, private$numRetries)
2827 resource <- private$REST$httpParser$parseJSONResponse(response)
2829 if(!is.null(resource$errors))
2830 stop(resource$errors)
2835 api_clients.get = function(uuid)
2837 endPoint <- stringr::str_interp("api_clients/${uuid}")
2838 url <- paste0(private$host, endPoint)
2839 headers <- list(Authorization = paste("OAuth2", private$token),
2840 "Content-Type" = "application/json")
2845 response <- private$REST$http$exec("GET", url, headers, body,
2846 queryArgs, private$numRetries)
2847 resource <- private$REST$httpParser$parseJSONResponse(response)
2849 if(!is.null(resource$errors))
2850 stop(resource$errors)
2855 api_clients.create = function(apiclient, ensure_unique_name = "false")
2857 endPoint <- stringr::str_interp("api_clients")
2858 url <- paste0(private$host, endPoint)
2859 headers <- list(Authorization = paste("OAuth2", private$token),
2860 "Content-Type" = "application/json")
2861 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2863 if(length(apiclient) > 0)
2864 body <- jsonlite::toJSON(list(apiclient = apiclient),
2869 response <- private$REST$http$exec("POST", url, headers, body,
2870 queryArgs, private$numRetries)
2871 resource <- private$REST$httpParser$parseJSONResponse(response)
2873 if(!is.null(resource$errors))
2874 stop(resource$errors)
2879 api_clients.update = function(apiclient, uuid)
2881 endPoint <- stringr::str_interp("api_clients/${uuid}")
2882 url <- paste0(private$host, endPoint)
2883 headers <- list(Authorization = paste("OAuth2", private$token),
2884 "Content-Type" = "application/json")
2887 if(length(apiclient) > 0)
2888 body <- jsonlite::toJSON(list(apiclient = apiclient),
2893 response <- private$REST$http$exec("PUT", url, headers, body,
2894 queryArgs, private$numRetries)
2895 resource <- private$REST$httpParser$parseJSONResponse(response)
2897 if(!is.null(resource$errors))
2898 stop(resource$errors)
2903 api_clients.delete = function(uuid)
2905 endPoint <- stringr::str_interp("api_clients/${uuid}")
2906 url <- paste0(private$host, endPoint)
2907 headers <- list(Authorization = paste("OAuth2", private$token),
2908 "Content-Type" = "application/json")
2913 response <- private$REST$http$exec("DELETE", url, headers, body,
2914 queryArgs, private$numRetries)
2915 resource <- private$REST$httpParser$parseJSONResponse(response)
2917 if(!is.null(resource$errors))
2918 stop(resource$errors)
2923 api_clients.list = function(filters = NULL,
2924 where = NULL, order = NULL, select = NULL,
2925 distinct = NULL, limit = "100", offset = "0",
2928 endPoint <- stringr::str_interp("api_clients")
2929 url <- paste0(private$host, endPoint)
2930 headers <- list(Authorization = paste("OAuth2", private$token),
2931 "Content-Type" = "application/json")
2932 queryArgs <- list(filters = filters, where = where,
2933 order = order, select = select, distinct = distinct,
2934 limit = limit, offset = offset, count = count)
2938 response <- private$REST$http$exec("GET", url, headers, body,
2939 queryArgs, private$numRetries)
2940 resource <- private$REST$httpParser$parseJSONResponse(response)
2942 if(!is.null(resource$errors))
2943 stop(resource$errors)
2948 authorized_keys.get = function(uuid)
2950 endPoint <- stringr::str_interp("authorized_keys/${uuid}")
2951 url <- paste0(private$host, endPoint)
2952 headers <- list(Authorization = paste("OAuth2", private$token),
2953 "Content-Type" = "application/json")
2958 response <- private$REST$http$exec("GET", url, headers, body,
2959 queryArgs, private$numRetries)
2960 resource <- private$REST$httpParser$parseJSONResponse(response)
2962 if(!is.null(resource$errors))
2963 stop(resource$errors)
2968 authorized_keys.create = function(authorizedkey,
2969 ensure_unique_name = "false")
2971 endPoint <- stringr::str_interp("authorized_keys")
2972 url <- paste0(private$host, endPoint)
2973 headers <- list(Authorization = paste("OAuth2", private$token),
2974 "Content-Type" = "application/json")
2975 queryArgs <- list(ensure_unique_name = ensure_unique_name)
2977 if(length(authorizedkey) > 0)
2978 body <- jsonlite::toJSON(list(authorizedkey = authorizedkey),
2983 response <- private$REST$http$exec("POST", url, headers, body,
2984 queryArgs, private$numRetries)
2985 resource <- private$REST$httpParser$parseJSONResponse(response)
2987 if(!is.null(resource$errors))
2988 stop(resource$errors)
2993 authorized_keys.update = function(authorizedkey, uuid)
2995 endPoint <- stringr::str_interp("authorized_keys/${uuid}")
2996 url <- paste0(private$host, endPoint)
2997 headers <- list(Authorization = paste("OAuth2", private$token),
2998 "Content-Type" = "application/json")
3001 if(length(authorizedkey) > 0)
3002 body <- jsonlite::toJSON(list(authorizedkey = authorizedkey),
3007 response <- private$REST$http$exec("PUT", url, headers, body,
3008 queryArgs, private$numRetries)
3009 resource <- private$REST$httpParser$parseJSONResponse(response)
3011 if(!is.null(resource$errors))
3012 stop(resource$errors)
3017 authorized_keys.delete = function(uuid)
3019 endPoint <- stringr::str_interp("authorized_keys/${uuid}")
3020 url <- paste0(private$host, endPoint)
3021 headers <- list(Authorization = paste("OAuth2", private$token),
3022 "Content-Type" = "application/json")
3027 response <- private$REST$http$exec("DELETE", url, headers, body,
3028 queryArgs, private$numRetries)
3029 resource <- private$REST$httpParser$parseJSONResponse(response)
3031 if(!is.null(resource$errors))
3032 stop(resource$errors)
3037 authorized_keys.list = function(filters = NULL,
3038 where = NULL, order = NULL, select = NULL,
3039 distinct = NULL, limit = "100", offset = "0",
3042 endPoint <- stringr::str_interp("authorized_keys")
3043 url <- paste0(private$host, endPoint)
3044 headers <- list(Authorization = paste("OAuth2", private$token),
3045 "Content-Type" = "application/json")
3046 queryArgs <- list(filters = filters, where = where,
3047 order = order, select = select, distinct = distinct,
3048 limit = limit, offset = offset, count = count)
3052 response <- private$REST$http$exec("GET", url, headers, body,
3053 queryArgs, private$numRetries)
3054 resource <- private$REST$httpParser$parseJSONResponse(response)
3056 if(!is.null(resource$errors))
3057 stop(resource$errors)
3062 container_requests.get = function(uuid)
3064 endPoint <- stringr::str_interp("container_requests/${uuid}")
3065 url <- paste0(private$host, endPoint)
3066 headers <- list(Authorization = paste("OAuth2", private$token),
3067 "Content-Type" = "application/json")
3072 response <- private$REST$http$exec("GET", url, headers, body,
3073 queryArgs, private$numRetries)
3074 resource <- private$REST$httpParser$parseJSONResponse(response)
3076 if(!is.null(resource$errors))
3077 stop(resource$errors)
3082 container_requests.create = function(containerrequest,
3083 ensure_unique_name = "false")
3085 endPoint <- stringr::str_interp("container_requests")
3086 url <- paste0(private$host, endPoint)
3087 headers <- list(Authorization = paste("OAuth2", private$token),
3088 "Content-Type" = "application/json")
3089 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3091 if(length(containerrequest) > 0)
3092 body <- jsonlite::toJSON(list(containerrequest = containerrequest),
3097 response <- private$REST$http$exec("POST", url, headers, body,
3098 queryArgs, private$numRetries)
3099 resource <- private$REST$httpParser$parseJSONResponse(response)
3101 if(!is.null(resource$errors))
3102 stop(resource$errors)
3107 container_requests.update = function(containerrequest, uuid)
3109 endPoint <- stringr::str_interp("container_requests/${uuid}")
3110 url <- paste0(private$host, endPoint)
3111 headers <- list(Authorization = paste("OAuth2", private$token),
3112 "Content-Type" = "application/json")
3115 if(length(containerrequest) > 0)
3116 body <- jsonlite::toJSON(list(containerrequest = containerrequest),
3121 response <- private$REST$http$exec("PUT", url, headers, body,
3122 queryArgs, private$numRetries)
3123 resource <- private$REST$httpParser$parseJSONResponse(response)
3125 if(!is.null(resource$errors))
3126 stop(resource$errors)
3131 container_requests.delete = function(uuid)
3133 endPoint <- stringr::str_interp("container_requests/${uuid}")
3134 url <- paste0(private$host, endPoint)
3135 headers <- list(Authorization = paste("OAuth2", private$token),
3136 "Content-Type" = "application/json")
3141 response <- private$REST$http$exec("DELETE", url, headers, body,
3142 queryArgs, private$numRetries)
3143 resource <- private$REST$httpParser$parseJSONResponse(response)
3145 if(!is.null(resource$errors))
3146 stop(resource$errors)
3151 container_requests.list = function(filters = NULL,
3152 where = NULL, order = NULL, select = NULL,
3153 distinct = NULL, limit = "100", offset = "0",
3156 endPoint <- stringr::str_interp("container_requests")
3157 url <- paste0(private$host, endPoint)
3158 headers <- list(Authorization = paste("OAuth2", private$token),
3159 "Content-Type" = "application/json")
3160 queryArgs <- list(filters = filters, where = where,
3161 order = order, select = select, distinct = distinct,
3162 limit = limit, offset = offset, count = count)
3166 response <- private$REST$http$exec("GET", url, headers, body,
3167 queryArgs, private$numRetries)
3168 resource <- private$REST$httpParser$parseJSONResponse(response)
3170 if(!is.null(resource$errors))
3171 stop(resource$errors)
3176 collections.get = function(uuid)
3178 endPoint <- stringr::str_interp("collections/${uuid}")
3179 url <- paste0(private$host, endPoint)
3180 headers <- list(Authorization = paste("OAuth2", private$token),
3181 "Content-Type" = "application/json")
3186 response <- private$REST$http$exec("GET", url, headers, body,
3187 queryArgs, private$numRetries)
3188 resource <- private$REST$httpParser$parseJSONResponse(response)
3190 if(!is.null(resource$errors))
3191 stop(resource$errors)
3196 collections.create = function(collection, ensure_unique_name = "false")
3198 endPoint <- stringr::str_interp("collections")
3199 url <- paste0(private$host, endPoint)
3200 headers <- list(Authorization = paste("OAuth2", private$token),
3201 "Content-Type" = "application/json")
3202 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3204 if(length(collection) > 0)
3205 body <- jsonlite::toJSON(list(collection = collection),
3210 response <- private$REST$http$exec("POST", url, headers, body,
3211 queryArgs, private$numRetries)
3212 resource <- private$REST$httpParser$parseJSONResponse(response)
3214 if(!is.null(resource$errors))
3215 stop(resource$errors)
3220 collections.update = function(collection, uuid)
3222 endPoint <- stringr::str_interp("collections/${uuid}")
3223 url <- paste0(private$host, endPoint)
3224 headers <- list(Authorization = paste("OAuth2", private$token),
3225 "Content-Type" = "application/json")
3228 if(length(collection) > 0)
3229 body <- jsonlite::toJSON(list(collection = collection),
3234 response <- private$REST$http$exec("PUT", url, headers, body,
3235 queryArgs, private$numRetries)
3236 resource <- private$REST$httpParser$parseJSONResponse(response)
3238 if(!is.null(resource$errors))
3239 stop(resource$errors)
3244 collections.delete = function(uuid)
3246 endPoint <- stringr::str_interp("collections/${uuid}")
3247 url <- paste0(private$host, endPoint)
3248 headers <- list(Authorization = paste("OAuth2", private$token),
3249 "Content-Type" = "application/json")
3254 response <- private$REST$http$exec("DELETE", url, headers, body,
3255 queryArgs, private$numRetries)
3256 resource <- private$REST$httpParser$parseJSONResponse(response)
3258 if(!is.null(resource$errors))
3259 stop(resource$errors)
3264 collections.provenance = function(uuid)
3266 endPoint <- stringr::str_interp("collections/${uuid}/provenance")
3267 url <- paste0(private$host, endPoint)
3268 headers <- list(Authorization = paste("OAuth2", private$token),
3269 "Content-Type" = "application/json")
3274 response <- private$REST$http$exec("GET", url, headers, body,
3275 queryArgs, private$numRetries)
3276 resource <- private$REST$httpParser$parseJSONResponse(response)
3278 if(!is.null(resource$errors))
3279 stop(resource$errors)
3284 collections.used_by = function(uuid)
3286 endPoint <- stringr::str_interp("collections/${uuid}/used_by")
3287 url <- paste0(private$host, endPoint)
3288 headers <- list(Authorization = paste("OAuth2", private$token),
3289 "Content-Type" = "application/json")
3294 response <- private$REST$http$exec("GET", url, headers, body,
3295 queryArgs, private$numRetries)
3296 resource <- private$REST$httpParser$parseJSONResponse(response)
3298 if(!is.null(resource$errors))
3299 stop(resource$errors)
3304 collections.trash = function(uuid)
3306 endPoint <- stringr::str_interp("collections/${uuid}/trash")
3307 url <- paste0(private$host, endPoint)
3308 headers <- list(Authorization = paste("OAuth2", private$token),
3309 "Content-Type" = "application/json")
3314 response <- private$REST$http$exec("POST", url, headers, body,
3315 queryArgs, private$numRetries)
3316 resource <- private$REST$httpParser$parseJSONResponse(response)
3318 if(!is.null(resource$errors))
3319 stop(resource$errors)
3324 collections.untrash = function(uuid)
3326 endPoint <- stringr::str_interp("collections/${uuid}/untrash")
3327 url <- paste0(private$host, endPoint)
3328 headers <- list(Authorization = paste("OAuth2", private$token),
3329 "Content-Type" = "application/json")
3334 response <- private$REST$http$exec("POST", url, headers, body,
3335 queryArgs, private$numRetries)
3336 resource <- private$REST$httpParser$parseJSONResponse(response)
3338 if(!is.null(resource$errors))
3339 stop(resource$errors)
3344 collections.list = function(filters = NULL,
3345 where = NULL, order = NULL, select = NULL,
3346 distinct = NULL, limit = "100", offset = "0",
3347 count = "exact", include_trash = NULL)
3349 endPoint <- stringr::str_interp("collections")
3350 url <- paste0(private$host, endPoint)
3351 headers <- list(Authorization = paste("OAuth2", private$token),
3352 "Content-Type" = "application/json")
3353 queryArgs <- list(filters = filters, where = where,
3354 order = order, select = select, distinct = distinct,
3355 limit = limit, offset = offset, count = count,
3356 include_trash = include_trash)
3360 response <- private$REST$http$exec("GET", url, headers, body,
3361 queryArgs, private$numRetries)
3362 resource <- private$REST$httpParser$parseJSONResponse(response)
3364 if(!is.null(resource$errors))
3365 stop(resource$errors)
3370 humans.get = function(uuid)
3372 endPoint <- stringr::str_interp("humans/${uuid}")
3373 url <- paste0(private$host, endPoint)
3374 headers <- list(Authorization = paste("OAuth2", private$token),
3375 "Content-Type" = "application/json")
3380 response <- private$REST$http$exec("GET", url, headers, body,
3381 queryArgs, private$numRetries)
3382 resource <- private$REST$httpParser$parseJSONResponse(response)
3384 if(!is.null(resource$errors))
3385 stop(resource$errors)
3390 humans.create = function(human, ensure_unique_name = "false")
3392 endPoint <- stringr::str_interp("humans")
3393 url <- paste0(private$host, endPoint)
3394 headers <- list(Authorization = paste("OAuth2", private$token),
3395 "Content-Type" = "application/json")
3396 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3398 if(length(human) > 0)
3399 body <- jsonlite::toJSON(list(human = human),
3404 response <- private$REST$http$exec("POST", url, headers, body,
3405 queryArgs, private$numRetries)
3406 resource <- private$REST$httpParser$parseJSONResponse(response)
3408 if(!is.null(resource$errors))
3409 stop(resource$errors)
3414 humans.update = function(human, uuid)
3416 endPoint <- stringr::str_interp("humans/${uuid}")
3417 url <- paste0(private$host, endPoint)
3418 headers <- list(Authorization = paste("OAuth2", private$token),
3419 "Content-Type" = "application/json")
3422 if(length(human) > 0)
3423 body <- jsonlite::toJSON(list(human = human),
3428 response <- private$REST$http$exec("PUT", url, headers, body,
3429 queryArgs, private$numRetries)
3430 resource <- private$REST$httpParser$parseJSONResponse(response)
3432 if(!is.null(resource$errors))
3433 stop(resource$errors)
3438 humans.delete = function(uuid)
3440 endPoint <- stringr::str_interp("humans/${uuid}")
3441 url <- paste0(private$host, endPoint)
3442 headers <- list(Authorization = paste("OAuth2", private$token),
3443 "Content-Type" = "application/json")
3448 response <- private$REST$http$exec("DELETE", url, headers, body,
3449 queryArgs, private$numRetries)
3450 resource <- private$REST$httpParser$parseJSONResponse(response)
3452 if(!is.null(resource$errors))
3453 stop(resource$errors)
3458 humans.list = function(filters = NULL, where = NULL,
3459 order = NULL, select = NULL, distinct = NULL,
3460 limit = "100", offset = "0", count = "exact")
3462 endPoint <- stringr::str_interp("humans")
3463 url <- paste0(private$host, endPoint)
3464 headers <- list(Authorization = paste("OAuth2", private$token),
3465 "Content-Type" = "application/json")
3466 queryArgs <- list(filters = filters, where = where,
3467 order = order, select = select, distinct = distinct,
3468 limit = limit, offset = offset, count = count)
3472 response <- private$REST$http$exec("GET", url, headers, body,
3473 queryArgs, private$numRetries)
3474 resource <- private$REST$httpParser$parseJSONResponse(response)
3476 if(!is.null(resource$errors))
3477 stop(resource$errors)
3482 job_tasks.get = function(uuid)
3484 endPoint <- stringr::str_interp("job_tasks/${uuid}")
3485 url <- paste0(private$host, endPoint)
3486 headers <- list(Authorization = paste("OAuth2", private$token),
3487 "Content-Type" = "application/json")
3492 response <- private$REST$http$exec("GET", url, headers, body,
3493 queryArgs, private$numRetries)
3494 resource <- private$REST$httpParser$parseJSONResponse(response)
3496 if(!is.null(resource$errors))
3497 stop(resource$errors)
3502 job_tasks.create = function(jobtask, ensure_unique_name = "false")
3504 endPoint <- stringr::str_interp("job_tasks")
3505 url <- paste0(private$host, endPoint)
3506 headers <- list(Authorization = paste("OAuth2", private$token),
3507 "Content-Type" = "application/json")
3508 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3510 if(length(jobtask) > 0)
3511 body <- jsonlite::toJSON(list(jobtask = jobtask),
3516 response <- private$REST$http$exec("POST", url, headers, body,
3517 queryArgs, private$numRetries)
3518 resource <- private$REST$httpParser$parseJSONResponse(response)
3520 if(!is.null(resource$errors))
3521 stop(resource$errors)
3526 job_tasks.update = function(jobtask, uuid)
3528 endPoint <- stringr::str_interp("job_tasks/${uuid}")
3529 url <- paste0(private$host, endPoint)
3530 headers <- list(Authorization = paste("OAuth2", private$token),
3531 "Content-Type" = "application/json")
3534 if(length(jobtask) > 0)
3535 body <- jsonlite::toJSON(list(jobtask = jobtask),
3540 response <- private$REST$http$exec("PUT", url, headers, body,
3541 queryArgs, private$numRetries)
3542 resource <- private$REST$httpParser$parseJSONResponse(response)
3544 if(!is.null(resource$errors))
3545 stop(resource$errors)
3550 job_tasks.delete = function(uuid)
3552 endPoint <- stringr::str_interp("job_tasks/${uuid}")
3553 url <- paste0(private$host, endPoint)
3554 headers <- list(Authorization = paste("OAuth2", private$token),
3555 "Content-Type" = "application/json")
3560 response <- private$REST$http$exec("DELETE", url, headers, body,
3561 queryArgs, private$numRetries)
3562 resource <- private$REST$httpParser$parseJSONResponse(response)
3564 if(!is.null(resource$errors))
3565 stop(resource$errors)
3570 job_tasks.list = function(filters = NULL,
3571 where = NULL, order = NULL, select = NULL,
3572 distinct = NULL, limit = "100", offset = "0",
3575 endPoint <- stringr::str_interp("job_tasks")
3576 url <- paste0(private$host, endPoint)
3577 headers <- list(Authorization = paste("OAuth2", private$token),
3578 "Content-Type" = "application/json")
3579 queryArgs <- list(filters = filters, where = where,
3580 order = order, select = select, distinct = distinct,
3581 limit = limit, offset = offset, count = count)
3585 response <- private$REST$http$exec("GET", url, headers, body,
3586 queryArgs, private$numRetries)
3587 resource <- private$REST$httpParser$parseJSONResponse(response)
3589 if(!is.null(resource$errors))
3590 stop(resource$errors)
3595 links.get = function(uuid)
3597 endPoint <- stringr::str_interp("links/${uuid}")
3598 url <- paste0(private$host, endPoint)
3599 headers <- list(Authorization = paste("OAuth2", private$token),
3600 "Content-Type" = "application/json")
3605 response <- private$REST$http$exec("GET", url, headers, body,
3606 queryArgs, private$numRetries)
3607 resource <- private$REST$httpParser$parseJSONResponse(response)
3609 if(!is.null(resource$errors))
3610 stop(resource$errors)
3615 links.create = function(link, ensure_unique_name = "false")
3617 endPoint <- stringr::str_interp("links")
3618 url <- paste0(private$host, endPoint)
3619 headers <- list(Authorization = paste("OAuth2", private$token),
3620 "Content-Type" = "application/json")
3621 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3623 if(length(link) > 0)
3624 body <- jsonlite::toJSON(list(link = link),
3629 response <- private$REST$http$exec("POST", url, headers, body,
3630 queryArgs, private$numRetries)
3631 resource <- private$REST$httpParser$parseJSONResponse(response)
3633 if(!is.null(resource$errors))
3634 stop(resource$errors)
3639 links.update = function(link, uuid)
3641 endPoint <- stringr::str_interp("links/${uuid}")
3642 url <- paste0(private$host, endPoint)
3643 headers <- list(Authorization = paste("OAuth2", private$token),
3644 "Content-Type" = "application/json")
3647 if(length(link) > 0)
3648 body <- jsonlite::toJSON(list(link = link),
3653 response <- private$REST$http$exec("PUT", url, headers, body,
3654 queryArgs, private$numRetries)
3655 resource <- private$REST$httpParser$parseJSONResponse(response)
3657 if(!is.null(resource$errors))
3658 stop(resource$errors)
3663 links.delete = function(uuid)
3665 endPoint <- stringr::str_interp("links/${uuid}")
3666 url <- paste0(private$host, endPoint)
3667 headers <- list(Authorization = paste("OAuth2", private$token),
3668 "Content-Type" = "application/json")
3673 response <- private$REST$http$exec("DELETE", url, headers, body,
3674 queryArgs, private$numRetries)
3675 resource <- private$REST$httpParser$parseJSONResponse(response)
3677 if(!is.null(resource$errors))
3678 stop(resource$errors)
3683 links.list = function(filters = NULL, where = NULL,
3684 order = NULL, select = NULL, distinct = NULL,
3685 limit = "100", offset = "0", count = "exact")
3687 endPoint <- stringr::str_interp("links")
3688 url <- paste0(private$host, endPoint)
3689 headers <- list(Authorization = paste("OAuth2", private$token),
3690 "Content-Type" = "application/json")
3691 queryArgs <- list(filters = filters, where = where,
3692 order = order, select = select, distinct = distinct,
3693 limit = limit, offset = offset, count = count)
3697 response <- private$REST$http$exec("GET", url, headers, body,
3698 queryArgs, private$numRetries)
3699 resource <- private$REST$httpParser$parseJSONResponse(response)
3701 if(!is.null(resource$errors))
3702 stop(resource$errors)
3707 links.get_permissions = function(uuid)
3709 endPoint <- stringr::str_interp("permissions/${uuid}")
3710 url <- paste0(private$host, endPoint)
3711 headers <- list(Authorization = paste("OAuth2", private$token),
3712 "Content-Type" = "application/json")
3717 response <- private$REST$http$exec("GET", url, headers, body,
3718 queryArgs, private$numRetries)
3719 resource <- private$REST$httpParser$parseJSONResponse(response)
3721 if(!is.null(resource$errors))
3722 stop(resource$errors)
3727 jobs.get = function(uuid)
3729 endPoint <- stringr::str_interp("jobs/${uuid}")
3730 url <- paste0(private$host, endPoint)
3731 headers <- list(Authorization = paste("OAuth2", private$token),
3732 "Content-Type" = "application/json")
3737 response <- private$REST$http$exec("GET", url, headers, body,
3738 queryArgs, private$numRetries)
3739 resource <- private$REST$httpParser$parseJSONResponse(response)
3741 if(!is.null(resource$errors))
3742 stop(resource$errors)
3747 jobs.create = function(job, ensure_unique_name = "false",
3748 find_or_create = "false", filters = NULL,
3749 minimum_script_version = NULL, exclude_script_versions = NULL)
3751 endPoint <- stringr::str_interp("jobs")
3752 url <- paste0(private$host, endPoint)
3753 headers <- list(Authorization = paste("OAuth2", private$token),
3754 "Content-Type" = "application/json")
3755 queryArgs <- list(ensure_unique_name = ensure_unique_name,
3756 find_or_create = find_or_create, filters = filters,
3757 minimum_script_version = minimum_script_version,
3758 exclude_script_versions = exclude_script_versions)
3761 body <- jsonlite::toJSON(list(job = job),
3766 response <- private$REST$http$exec("POST", url, headers, body,
3767 queryArgs, private$numRetries)
3768 resource <- private$REST$httpParser$parseJSONResponse(response)
3770 if(!is.null(resource$errors))
3771 stop(resource$errors)
3776 jobs.update = function(job, uuid)
3778 endPoint <- stringr::str_interp("jobs/${uuid}")
3779 url <- paste0(private$host, endPoint)
3780 headers <- list(Authorization = paste("OAuth2", private$token),
3781 "Content-Type" = "application/json")
3785 body <- jsonlite::toJSON(list(job = job),
3790 response <- private$REST$http$exec("PUT", url, headers, body,
3791 queryArgs, private$numRetries)
3792 resource <- private$REST$httpParser$parseJSONResponse(response)
3794 if(!is.null(resource$errors))
3795 stop(resource$errors)
3800 jobs.delete = function(uuid)
3802 endPoint <- stringr::str_interp("jobs/${uuid}")
3803 url <- paste0(private$host, endPoint)
3804 headers <- list(Authorization = paste("OAuth2", private$token),
3805 "Content-Type" = "application/json")
3810 response <- private$REST$http$exec("DELETE", url, headers, body,
3811 queryArgs, private$numRetries)
3812 resource <- private$REST$httpParser$parseJSONResponse(response)
3814 if(!is.null(resource$errors))
3815 stop(resource$errors)
3820 jobs.queue = function(filters = NULL, where = NULL,
3821 order = NULL, select = NULL, distinct = NULL,
3822 limit = "100", offset = "0", count = "exact")
3824 endPoint <- stringr::str_interp("jobs/queue")
3825 url <- paste0(private$host, endPoint)
3826 headers <- list(Authorization = paste("OAuth2", private$token),
3827 "Content-Type" = "application/json")
3828 queryArgs <- list(filters = filters, where = where,
3829 order = order, select = select, distinct = distinct,
3830 limit = limit, offset = offset, count = count)
3834 response <- private$REST$http$exec("GET", url, headers, body,
3835 queryArgs, private$numRetries)
3836 resource <- private$REST$httpParser$parseJSONResponse(response)
3838 if(!is.null(resource$errors))
3839 stop(resource$errors)
3844 jobs.queue_size = function()
3846 endPoint <- stringr::str_interp("jobs/queue_size")
3847 url <- paste0(private$host, endPoint)
3848 headers <- list(Authorization = paste("OAuth2", private$token),
3849 "Content-Type" = "application/json")
3854 response <- private$REST$http$exec("GET", url, headers, body,
3855 queryArgs, private$numRetries)
3856 resource <- private$REST$httpParser$parseJSONResponse(response)
3858 if(!is.null(resource$errors))
3859 stop(resource$errors)
3864 jobs.cancel = function(uuid)
3866 endPoint <- stringr::str_interp("jobs/${uuid}/cancel")
3867 url <- paste0(private$host, endPoint)
3868 headers <- list(Authorization = paste("OAuth2", private$token),
3869 "Content-Type" = "application/json")
3874 response <- private$REST$http$exec("POST", url, headers, body,
3875 queryArgs, private$numRetries)
3876 resource <- private$REST$httpParser$parseJSONResponse(response)
3878 if(!is.null(resource$errors))
3879 stop(resource$errors)
3884 jobs.lock = function(uuid)
3886 endPoint <- stringr::str_interp("jobs/${uuid}/lock")
3887 url <- paste0(private$host, endPoint)
3888 headers <- list(Authorization = paste("OAuth2", private$token),
3889 "Content-Type" = "application/json")
3894 response <- private$REST$http$exec("POST", url, headers, body,
3895 queryArgs, private$numRetries)
3896 resource <- private$REST$httpParser$parseJSONResponse(response)
3898 if(!is.null(resource$errors))
3899 stop(resource$errors)
3904 jobs.list = function(filters = NULL, where = NULL,
3905 order = NULL, select = NULL, distinct = NULL,
3906 limit = "100", offset = "0", count = "exact")
3908 endPoint <- stringr::str_interp("jobs")
3909 url <- paste0(private$host, endPoint)
3910 headers <- list(Authorization = paste("OAuth2", private$token),
3911 "Content-Type" = "application/json")
3912 queryArgs <- list(filters = filters, where = where,
3913 order = order, select = select, distinct = distinct,
3914 limit = limit, offset = offset, count = count)
3918 response <- private$REST$http$exec("GET", url, headers, body,
3919 queryArgs, private$numRetries)
3920 resource <- private$REST$httpParser$parseJSONResponse(response)
3922 if(!is.null(resource$errors))
3923 stop(resource$errors)
3928 keep_disks.get = function(uuid)
3930 endPoint <- stringr::str_interp("keep_disks/${uuid}")
3931 url <- paste0(private$host, endPoint)
3932 headers <- list(Authorization = paste("OAuth2", private$token),
3933 "Content-Type" = "application/json")
3938 response <- private$REST$http$exec("GET", url, headers, body,
3939 queryArgs, private$numRetries)
3940 resource <- private$REST$httpParser$parseJSONResponse(response)
3942 if(!is.null(resource$errors))
3943 stop(resource$errors)
3948 keep_disks.create = function(keepdisk, ensure_unique_name = "false")
3950 endPoint <- stringr::str_interp("keep_disks")
3951 url <- paste0(private$host, endPoint)
3952 headers <- list(Authorization = paste("OAuth2", private$token),
3953 "Content-Type" = "application/json")
3954 queryArgs <- list(ensure_unique_name = ensure_unique_name)
3956 if(length(keepdisk) > 0)
3957 body <- jsonlite::toJSON(list(keepdisk = keepdisk),
3962 response <- private$REST$http$exec("POST", url, headers, body,
3963 queryArgs, private$numRetries)
3964 resource <- private$REST$httpParser$parseJSONResponse(response)
3966 if(!is.null(resource$errors))
3967 stop(resource$errors)
3972 keep_disks.update = function(keepdisk, uuid)
3974 endPoint <- stringr::str_interp("keep_disks/${uuid}")
3975 url <- paste0(private$host, endPoint)
3976 headers <- list(Authorization = paste("OAuth2", private$token),
3977 "Content-Type" = "application/json")
3980 if(length(keepdisk) > 0)
3981 body <- jsonlite::toJSON(list(keepdisk = keepdisk),
3986 response <- private$REST$http$exec("PUT", url, headers, body,
3987 queryArgs, private$numRetries)
3988 resource <- private$REST$httpParser$parseJSONResponse(response)
3990 if(!is.null(resource$errors))
3991 stop(resource$errors)
3996 keep_disks.delete = function(uuid)
3998 endPoint <- stringr::str_interp("keep_disks/${uuid}")
3999 url <- paste0(private$host, endPoint)
4000 headers <- list(Authorization = paste("OAuth2", private$token),
4001 "Content-Type" = "application/json")
4006 response <- private$REST$http$exec("DELETE", url, headers, body,
4007 queryArgs, private$numRetries)
4008 resource <- private$REST$httpParser$parseJSONResponse(response)
4010 if(!is.null(resource$errors))
4011 stop(resource$errors)
4016 keep_disks.ping = function(uuid = NULL, ping_secret,
4017 node_uuid = NULL, filesystem_uuid = NULL,
4018 service_host = NULL, service_port, service_ssl_flag)
4020 endPoint <- stringr::str_interp("keep_disks/ping")
4021 url <- paste0(private$host, endPoint)
4022 headers <- list(Authorization = paste("OAuth2", private$token),
4023 "Content-Type" = "application/json")
4024 queryArgs <- list(uuid = uuid, ping_secret = ping_secret,
4025 node_uuid = node_uuid, filesystem_uuid = filesystem_uuid,
4026 service_host = service_host, service_port = service_port,
4027 service_ssl_flag = service_ssl_flag)
4031 response <- private$REST$http$exec("POST", url, headers, body,
4032 queryArgs, private$numRetries)
4033 resource <- private$REST$httpParser$parseJSONResponse(response)
4035 if(!is.null(resource$errors))
4036 stop(resource$errors)
4041 keep_disks.list = function(filters = NULL,
4042 where = NULL, order = NULL, select = NULL,
4043 distinct = NULL, limit = "100", offset = "0",
4046 endPoint <- stringr::str_interp("keep_disks")
4047 url <- paste0(private$host, endPoint)
4048 headers <- list(Authorization = paste("OAuth2", private$token),
4049 "Content-Type" = "application/json")
4050 queryArgs <- list(filters = filters, where = where,
4051 order = order, select = select, distinct = distinct,
4052 limit = limit, offset = offset, count = count)
4056 response <- private$REST$http$exec("GET", url, headers, body,
4057 queryArgs, private$numRetries)
4058 resource <- private$REST$httpParser$parseJSONResponse(response)
4060 if(!is.null(resource$errors))
4061 stop(resource$errors)
4066 keep_services.get = function(uuid)
4068 endPoint <- stringr::str_interp("keep_services/${uuid}")
4069 url <- paste0(private$host, endPoint)
4070 headers <- list(Authorization = paste("OAuth2", private$token),
4071 "Content-Type" = "application/json")
4076 response <- private$REST$http$exec("GET", url, headers, body,
4077 queryArgs, private$numRetries)
4078 resource <- private$REST$httpParser$parseJSONResponse(response)
4080 if(!is.null(resource$errors))
4081 stop(resource$errors)
4086 keep_services.create = function(keepservice,
4087 ensure_unique_name = "false")
4089 endPoint <- stringr::str_interp("keep_services")
4090 url <- paste0(private$host, endPoint)
4091 headers <- list(Authorization = paste("OAuth2", private$token),
4092 "Content-Type" = "application/json")
4093 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4095 if(length(keepservice) > 0)
4096 body <- jsonlite::toJSON(list(keepservice = keepservice),
4101 response <- private$REST$http$exec("POST", url, headers, body,
4102 queryArgs, private$numRetries)
4103 resource <- private$REST$httpParser$parseJSONResponse(response)
4105 if(!is.null(resource$errors))
4106 stop(resource$errors)
4111 keep_services.update = function(keepservice, uuid)
4113 endPoint <- stringr::str_interp("keep_services/${uuid}")
4114 url <- paste0(private$host, endPoint)
4115 headers <- list(Authorization = paste("OAuth2", private$token),
4116 "Content-Type" = "application/json")
4119 if(length(keepservice) > 0)
4120 body <- jsonlite::toJSON(list(keepservice = keepservice),
4125 response <- private$REST$http$exec("PUT", url, headers, body,
4126 queryArgs, private$numRetries)
4127 resource <- private$REST$httpParser$parseJSONResponse(response)
4129 if(!is.null(resource$errors))
4130 stop(resource$errors)
4135 keep_services.delete = function(uuid)
4137 endPoint <- stringr::str_interp("keep_services/${uuid}")
4138 url <- paste0(private$host, endPoint)
4139 headers <- list(Authorization = paste("OAuth2", private$token),
4140 "Content-Type" = "application/json")
4145 response <- private$REST$http$exec("DELETE", url, headers, body,
4146 queryArgs, private$numRetries)
4147 resource <- private$REST$httpParser$parseJSONResponse(response)
4149 if(!is.null(resource$errors))
4150 stop(resource$errors)
4155 keep_services.accessible = function()
4157 endPoint <- stringr::str_interp("keep_services/accessible")
4158 url <- paste0(private$host, endPoint)
4159 headers <- list(Authorization = paste("OAuth2", private$token),
4160 "Content-Type" = "application/json")
4165 response <- private$REST$http$exec("GET", url, headers, body,
4166 queryArgs, private$numRetries)
4167 resource <- private$REST$httpParser$parseJSONResponse(response)
4169 if(!is.null(resource$errors))
4170 stop(resource$errors)
4175 keep_services.list = function(filters = NULL,
4176 where = NULL, order = NULL, select = NULL,
4177 distinct = NULL, limit = "100", offset = "0",
4180 endPoint <- stringr::str_interp("keep_services")
4181 url <- paste0(private$host, endPoint)
4182 headers <- list(Authorization = paste("OAuth2", private$token),
4183 "Content-Type" = "application/json")
4184 queryArgs <- list(filters = filters, where = where,
4185 order = order, select = select, distinct = distinct,
4186 limit = limit, offset = offset, count = count)
4190 response <- private$REST$http$exec("GET", url, headers, body,
4191 queryArgs, private$numRetries)
4192 resource <- private$REST$httpParser$parseJSONResponse(response)
4194 if(!is.null(resource$errors))
4195 stop(resource$errors)
4200 pipeline_templates.get = function(uuid)
4202 endPoint <- stringr::str_interp("pipeline_templates/${uuid}")
4203 url <- paste0(private$host, endPoint)
4204 headers <- list(Authorization = paste("OAuth2", private$token),
4205 "Content-Type" = "application/json")
4210 response <- private$REST$http$exec("GET", url, headers, body,
4211 queryArgs, private$numRetries)
4212 resource <- private$REST$httpParser$parseJSONResponse(response)
4214 if(!is.null(resource$errors))
4215 stop(resource$errors)
4220 pipeline_templates.create = function(pipelinetemplate,
4221 ensure_unique_name = "false")
4223 endPoint <- stringr::str_interp("pipeline_templates")
4224 url <- paste0(private$host, endPoint)
4225 headers <- list(Authorization = paste("OAuth2", private$token),
4226 "Content-Type" = "application/json")
4227 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4229 if(length(pipelinetemplate) > 0)
4230 body <- jsonlite::toJSON(list(pipelinetemplate = pipelinetemplate),
4235 response <- private$REST$http$exec("POST", url, headers, body,
4236 queryArgs, private$numRetries)
4237 resource <- private$REST$httpParser$parseJSONResponse(response)
4239 if(!is.null(resource$errors))
4240 stop(resource$errors)
4245 pipeline_templates.update = function(pipelinetemplate, uuid)
4247 endPoint <- stringr::str_interp("pipeline_templates/${uuid}")
4248 url <- paste0(private$host, endPoint)
4249 headers <- list(Authorization = paste("OAuth2", private$token),
4250 "Content-Type" = "application/json")
4253 if(length(pipelinetemplate) > 0)
4254 body <- jsonlite::toJSON(list(pipelinetemplate = pipelinetemplate),
4259 response <- private$REST$http$exec("PUT", url, headers, body,
4260 queryArgs, private$numRetries)
4261 resource <- private$REST$httpParser$parseJSONResponse(response)
4263 if(!is.null(resource$errors))
4264 stop(resource$errors)
4269 pipeline_templates.delete = function(uuid)
4271 endPoint <- stringr::str_interp("pipeline_templates/${uuid}")
4272 url <- paste0(private$host, endPoint)
4273 headers <- list(Authorization = paste("OAuth2", private$token),
4274 "Content-Type" = "application/json")
4279 response <- private$REST$http$exec("DELETE", url, headers, body,
4280 queryArgs, private$numRetries)
4281 resource <- private$REST$httpParser$parseJSONResponse(response)
4283 if(!is.null(resource$errors))
4284 stop(resource$errors)
4289 pipeline_templates.list = function(filters = NULL,
4290 where = NULL, order = NULL, select = NULL,
4291 distinct = NULL, limit = "100", offset = "0",
4294 endPoint <- stringr::str_interp("pipeline_templates")
4295 url <- paste0(private$host, endPoint)
4296 headers <- list(Authorization = paste("OAuth2", private$token),
4297 "Content-Type" = "application/json")
4298 queryArgs <- list(filters = filters, where = where,
4299 order = order, select = select, distinct = distinct,
4300 limit = limit, offset = offset, count = count)
4304 response <- private$REST$http$exec("GET", url, headers, body,
4305 queryArgs, private$numRetries)
4306 resource <- private$REST$httpParser$parseJSONResponse(response)
4308 if(!is.null(resource$errors))
4309 stop(resource$errors)
4314 pipeline_instances.get = function(uuid)
4316 endPoint <- stringr::str_interp("pipeline_instances/${uuid}")
4317 url <- paste0(private$host, endPoint)
4318 headers <- list(Authorization = paste("OAuth2", private$token),
4319 "Content-Type" = "application/json")
4324 response <- private$REST$http$exec("GET", url, headers, body,
4325 queryArgs, private$numRetries)
4326 resource <- private$REST$httpParser$parseJSONResponse(response)
4328 if(!is.null(resource$errors))
4329 stop(resource$errors)
4334 pipeline_instances.create = function(pipelineinstance,
4335 ensure_unique_name = "false")
4337 endPoint <- stringr::str_interp("pipeline_instances")
4338 url <- paste0(private$host, endPoint)
4339 headers <- list(Authorization = paste("OAuth2", private$token),
4340 "Content-Type" = "application/json")
4341 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4343 if(length(pipelineinstance) > 0)
4344 body <- jsonlite::toJSON(list(pipelineinstance = pipelineinstance),
4349 response <- private$REST$http$exec("POST", url, headers, body,
4350 queryArgs, private$numRetries)
4351 resource <- private$REST$httpParser$parseJSONResponse(response)
4353 if(!is.null(resource$errors))
4354 stop(resource$errors)
4359 pipeline_instances.update = function(pipelineinstance, uuid)
4361 endPoint <- stringr::str_interp("pipeline_instances/${uuid}")
4362 url <- paste0(private$host, endPoint)
4363 headers <- list(Authorization = paste("OAuth2", private$token),
4364 "Content-Type" = "application/json")
4367 if(length(pipelineinstance) > 0)
4368 body <- jsonlite::toJSON(list(pipelineinstance = pipelineinstance),
4373 response <- private$REST$http$exec("PUT", url, headers, body,
4374 queryArgs, private$numRetries)
4375 resource <- private$REST$httpParser$parseJSONResponse(response)
4377 if(!is.null(resource$errors))
4378 stop(resource$errors)
4383 pipeline_instances.delete = function(uuid)
4385 endPoint <- stringr::str_interp("pipeline_instances/${uuid}")
4386 url <- paste0(private$host, endPoint)
4387 headers <- list(Authorization = paste("OAuth2", private$token),
4388 "Content-Type" = "application/json")
4393 response <- private$REST$http$exec("DELETE", url, headers, body,
4394 queryArgs, private$numRetries)
4395 resource <- private$REST$httpParser$parseJSONResponse(response)
4397 if(!is.null(resource$errors))
4398 stop(resource$errors)
4403 pipeline_instances.cancel = function(uuid)
4405 endPoint <- stringr::str_interp("pipeline_instances/${uuid}/cancel")
4406 url <- paste0(private$host, endPoint)
4407 headers <- list(Authorization = paste("OAuth2", private$token),
4408 "Content-Type" = "application/json")
4413 response <- private$REST$http$exec("POST", url, headers, body,
4414 queryArgs, private$numRetries)
4415 resource <- private$REST$httpParser$parseJSONResponse(response)
4417 if(!is.null(resource$errors))
4418 stop(resource$errors)
4423 pipeline_instances.list = function(filters = NULL,
4424 where = NULL, order = NULL, select = NULL,
4425 distinct = NULL, limit = "100", offset = "0",
4428 endPoint <- stringr::str_interp("pipeline_instances")
4429 url <- paste0(private$host, endPoint)
4430 headers <- list(Authorization = paste("OAuth2", private$token),
4431 "Content-Type" = "application/json")
4432 queryArgs <- list(filters = filters, where = where,
4433 order = order, select = select, distinct = distinct,
4434 limit = limit, offset = offset, count = count)
4438 response <- private$REST$http$exec("GET", url, headers, body,
4439 queryArgs, private$numRetries)
4440 resource <- private$REST$httpParser$parseJSONResponse(response)
4442 if(!is.null(resource$errors))
4443 stop(resource$errors)
4448 nodes.get = function(uuid)
4450 endPoint <- stringr::str_interp("nodes/${uuid}")
4451 url <- paste0(private$host, endPoint)
4452 headers <- list(Authorization = paste("OAuth2", private$token),
4453 "Content-Type" = "application/json")
4458 response <- private$REST$http$exec("GET", url, headers, body,
4459 queryArgs, private$numRetries)
4460 resource <- private$REST$httpParser$parseJSONResponse(response)
4462 if(!is.null(resource$errors))
4463 stop(resource$errors)
4468 nodes.create = function(node, ensure_unique_name = "false",
4471 endPoint <- stringr::str_interp("nodes")
4472 url <- paste0(private$host, endPoint)
4473 headers <- list(Authorization = paste("OAuth2", private$token),
4474 "Content-Type" = "application/json")
4475 queryArgs <- list(ensure_unique_name = ensure_unique_name,
4476 assign_slot = assign_slot)
4478 if(length(node) > 0)
4479 body <- jsonlite::toJSON(list(node = node),
4484 response <- private$REST$http$exec("POST", url, headers, body,
4485 queryArgs, private$numRetries)
4486 resource <- private$REST$httpParser$parseJSONResponse(response)
4488 if(!is.null(resource$errors))
4489 stop(resource$errors)
4494 nodes.update = function(node, uuid, assign_slot = NULL)
4496 endPoint <- stringr::str_interp("nodes/${uuid}")
4497 url <- paste0(private$host, endPoint)
4498 headers <- list(Authorization = paste("OAuth2", private$token),
4499 "Content-Type" = "application/json")
4500 queryArgs <- list(assign_slot = assign_slot)
4502 if(length(node) > 0)
4503 body <- jsonlite::toJSON(list(node = node),
4508 response <- private$REST$http$exec("PUT", url, headers, body,
4509 queryArgs, private$numRetries)
4510 resource <- private$REST$httpParser$parseJSONResponse(response)
4512 if(!is.null(resource$errors))
4513 stop(resource$errors)
4518 nodes.delete = function(uuid)
4520 endPoint <- stringr::str_interp("nodes/${uuid}")
4521 url <- paste0(private$host, endPoint)
4522 headers <- list(Authorization = paste("OAuth2", private$token),
4523 "Content-Type" = "application/json")
4528 response <- private$REST$http$exec("DELETE", url, headers, body,
4529 queryArgs, private$numRetries)
4530 resource <- private$REST$httpParser$parseJSONResponse(response)
4532 if(!is.null(resource$errors))
4533 stop(resource$errors)
4538 nodes.ping = function(uuid, ping_secret)
4540 endPoint <- stringr::str_interp("nodes/${uuid}/ping")
4541 url <- paste0(private$host, endPoint)
4542 headers <- list(Authorization = paste("OAuth2", private$token),
4543 "Content-Type" = "application/json")
4544 queryArgs <- list(ping_secret = ping_secret)
4548 response <- private$REST$http$exec("POST", url, headers, body,
4549 queryArgs, private$numRetries)
4550 resource <- private$REST$httpParser$parseJSONResponse(response)
4552 if(!is.null(resource$errors))
4553 stop(resource$errors)
4558 nodes.list = function(filters = NULL, where = NULL,
4559 order = NULL, select = NULL, distinct = NULL,
4560 limit = "100", offset = "0", count = "exact")
4562 endPoint <- stringr::str_interp("nodes")
4563 url <- paste0(private$host, endPoint)
4564 headers <- list(Authorization = paste("OAuth2", private$token),
4565 "Content-Type" = "application/json")
4566 queryArgs <- list(filters = filters, where = where,
4567 order = order, select = select, distinct = distinct,
4568 limit = limit, offset = offset, count = count)
4572 response <- private$REST$http$exec("GET", url, headers, body,
4573 queryArgs, private$numRetries)
4574 resource <- private$REST$httpParser$parseJSONResponse(response)
4576 if(!is.null(resource$errors))
4577 stop(resource$errors)
4582 repositories.get = function(uuid)
4584 endPoint <- stringr::str_interp("repositories/${uuid}")
4585 url <- paste0(private$host, endPoint)
4586 headers <- list(Authorization = paste("OAuth2", private$token),
4587 "Content-Type" = "application/json")
4592 response <- private$REST$http$exec("GET", url, headers, body,
4593 queryArgs, private$numRetries)
4594 resource <- private$REST$httpParser$parseJSONResponse(response)
4596 if(!is.null(resource$errors))
4597 stop(resource$errors)
4602 repositories.create = function(repository, ensure_unique_name = "false")
4604 endPoint <- stringr::str_interp("repositories")
4605 url <- paste0(private$host, endPoint)
4606 headers <- list(Authorization = paste("OAuth2", private$token),
4607 "Content-Type" = "application/json")
4608 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4610 if(length(repository) > 0)
4611 body <- jsonlite::toJSON(list(repository = repository),
4616 response <- private$REST$http$exec("POST", url, headers, body,
4617 queryArgs, private$numRetries)
4618 resource <- private$REST$httpParser$parseJSONResponse(response)
4620 if(!is.null(resource$errors))
4621 stop(resource$errors)
4626 repositories.update = function(repository, uuid)
4628 endPoint <- stringr::str_interp("repositories/${uuid}")
4629 url <- paste0(private$host, endPoint)
4630 headers <- list(Authorization = paste("OAuth2", private$token),
4631 "Content-Type" = "application/json")
4634 if(length(repository) > 0)
4635 body <- jsonlite::toJSON(list(repository = repository),
4640 response <- private$REST$http$exec("PUT", url, headers, body,
4641 queryArgs, private$numRetries)
4642 resource <- private$REST$httpParser$parseJSONResponse(response)
4644 if(!is.null(resource$errors))
4645 stop(resource$errors)
4650 repositories.delete = function(uuid)
4652 endPoint <- stringr::str_interp("repositories/${uuid}")
4653 url <- paste0(private$host, endPoint)
4654 headers <- list(Authorization = paste("OAuth2", private$token),
4655 "Content-Type" = "application/json")
4660 response <- private$REST$http$exec("DELETE", url, headers, body,
4661 queryArgs, private$numRetries)
4662 resource <- private$REST$httpParser$parseJSONResponse(response)
4664 if(!is.null(resource$errors))
4665 stop(resource$errors)
4670 repositories.get_all_permissions = function()
4672 endPoint <- stringr::str_interp("repositories/get_all_permissions")
4673 url <- paste0(private$host, endPoint)
4674 headers <- list(Authorization = paste("OAuth2", private$token),
4675 "Content-Type" = "application/json")
4680 response <- private$REST$http$exec("GET", url, headers, body,
4681 queryArgs, private$numRetries)
4682 resource <- private$REST$httpParser$parseJSONResponse(response)
4684 if(!is.null(resource$errors))
4685 stop(resource$errors)
4690 repositories.list = function(filters = NULL,
4691 where = NULL, order = NULL, select = NULL,
4692 distinct = NULL, limit = "100", offset = "0",
4695 endPoint <- stringr::str_interp("repositories")
4696 url <- paste0(private$host, endPoint)
4697 headers <- list(Authorization = paste("OAuth2", private$token),
4698 "Content-Type" = "application/json")
4699 queryArgs <- list(filters = filters, where = where,
4700 order = order, select = select, distinct = distinct,
4701 limit = limit, offset = offset, count = count)
4705 response <- private$REST$http$exec("GET", url, headers, body,
4706 queryArgs, private$numRetries)
4707 resource <- private$REST$httpParser$parseJSONResponse(response)
4709 if(!is.null(resource$errors))
4710 stop(resource$errors)
4715 specimens.get = function(uuid)
4717 endPoint <- stringr::str_interp("specimens/${uuid}")
4718 url <- paste0(private$host, endPoint)
4719 headers <- list(Authorization = paste("OAuth2", private$token),
4720 "Content-Type" = "application/json")
4725 response <- private$REST$http$exec("GET", url, headers, body,
4726 queryArgs, private$numRetries)
4727 resource <- private$REST$httpParser$parseJSONResponse(response)
4729 if(!is.null(resource$errors))
4730 stop(resource$errors)
4735 specimens.create = function(specimen, ensure_unique_name = "false")
4737 endPoint <- stringr::str_interp("specimens")
4738 url <- paste0(private$host, endPoint)
4739 headers <- list(Authorization = paste("OAuth2", private$token),
4740 "Content-Type" = "application/json")
4741 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4743 if(length(specimen) > 0)
4744 body <- jsonlite::toJSON(list(specimen = specimen),
4749 response <- private$REST$http$exec("POST", url, headers, body,
4750 queryArgs, private$numRetries)
4751 resource <- private$REST$httpParser$parseJSONResponse(response)
4753 if(!is.null(resource$errors))
4754 stop(resource$errors)
4759 specimens.update = function(specimen, uuid)
4761 endPoint <- stringr::str_interp("specimens/${uuid}")
4762 url <- paste0(private$host, endPoint)
4763 headers <- list(Authorization = paste("OAuth2", private$token),
4764 "Content-Type" = "application/json")
4767 if(length(specimen) > 0)
4768 body <- jsonlite::toJSON(list(specimen = specimen),
4773 response <- private$REST$http$exec("PUT", url, headers, body,
4774 queryArgs, private$numRetries)
4775 resource <- private$REST$httpParser$parseJSONResponse(response)
4777 if(!is.null(resource$errors))
4778 stop(resource$errors)
4783 specimens.delete = function(uuid)
4785 endPoint <- stringr::str_interp("specimens/${uuid}")
4786 url <- paste0(private$host, endPoint)
4787 headers <- list(Authorization = paste("OAuth2", private$token),
4788 "Content-Type" = "application/json")
4793 response <- private$REST$http$exec("DELETE", url, headers, body,
4794 queryArgs, private$numRetries)
4795 resource <- private$REST$httpParser$parseJSONResponse(response)
4797 if(!is.null(resource$errors))
4798 stop(resource$errors)
4803 specimens.list = function(filters = NULL,
4804 where = NULL, order = NULL, select = NULL,
4805 distinct = NULL, limit = "100", offset = "0",
4808 endPoint <- stringr::str_interp("specimens")
4809 url <- paste0(private$host, endPoint)
4810 headers <- list(Authorization = paste("OAuth2", private$token),
4811 "Content-Type" = "application/json")
4812 queryArgs <- list(filters = filters, where = where,
4813 order = order, select = select, distinct = distinct,
4814 limit = limit, offset = offset, count = count)
4818 response <- private$REST$http$exec("GET", url, headers, body,
4819 queryArgs, private$numRetries)
4820 resource <- private$REST$httpParser$parseJSONResponse(response)
4822 if(!is.null(resource$errors))
4823 stop(resource$errors)
4828 logs.get = function(uuid)
4830 endPoint <- stringr::str_interp("logs/${uuid}")
4831 url <- paste0(private$host, endPoint)
4832 headers <- list(Authorization = paste("OAuth2", private$token),
4833 "Content-Type" = "application/json")
4838 response <- private$REST$http$exec("GET", url, headers, body,
4839 queryArgs, private$numRetries)
4840 resource <- private$REST$httpParser$parseJSONResponse(response)
4842 if(!is.null(resource$errors))
4843 stop(resource$errors)
4848 logs.create = function(log, ensure_unique_name = "false")
4850 endPoint <- stringr::str_interp("logs")
4851 url <- paste0(private$host, endPoint)
4852 headers <- list(Authorization = paste("OAuth2", private$token),
4853 "Content-Type" = "application/json")
4854 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4857 body <- jsonlite::toJSON(list(log = log),
4862 response <- private$REST$http$exec("POST", url, headers, body,
4863 queryArgs, private$numRetries)
4864 resource <- private$REST$httpParser$parseJSONResponse(response)
4866 if(!is.null(resource$errors))
4867 stop(resource$errors)
4872 logs.update = function(log, uuid)
4874 endPoint <- stringr::str_interp("logs/${uuid}")
4875 url <- paste0(private$host, endPoint)
4876 headers <- list(Authorization = paste("OAuth2", private$token),
4877 "Content-Type" = "application/json")
4881 body <- jsonlite::toJSON(list(log = log),
4886 response <- private$REST$http$exec("PUT", url, headers, body,
4887 queryArgs, private$numRetries)
4888 resource <- private$REST$httpParser$parseJSONResponse(response)
4890 if(!is.null(resource$errors))
4891 stop(resource$errors)
4896 logs.delete = function(uuid)
4898 endPoint <- stringr::str_interp("logs/${uuid}")
4899 url <- paste0(private$host, endPoint)
4900 headers <- list(Authorization = paste("OAuth2", private$token),
4901 "Content-Type" = "application/json")
4906 response <- private$REST$http$exec("DELETE", url, headers, body,
4907 queryArgs, private$numRetries)
4908 resource <- private$REST$httpParser$parseJSONResponse(response)
4910 if(!is.null(resource$errors))
4911 stop(resource$errors)
4916 logs.list = function(filters = NULL, where = NULL,
4917 order = NULL, select = NULL, distinct = NULL,
4918 limit = "100", offset = "0", count = "exact")
4920 endPoint <- stringr::str_interp("logs")
4921 url <- paste0(private$host, endPoint)
4922 headers <- list(Authorization = paste("OAuth2", private$token),
4923 "Content-Type" = "application/json")
4924 queryArgs <- list(filters = filters, where = where,
4925 order = order, select = select, distinct = distinct,
4926 limit = limit, offset = offset, count = count)
4930 response <- private$REST$http$exec("GET", url, headers, body,
4931 queryArgs, private$numRetries)
4932 resource <- private$REST$httpParser$parseJSONResponse(response)
4934 if(!is.null(resource$errors))
4935 stop(resource$errors)
4940 traits.get = function(uuid)
4942 endPoint <- stringr::str_interp("traits/${uuid}")
4943 url <- paste0(private$host, endPoint)
4944 headers <- list(Authorization = paste("OAuth2", private$token),
4945 "Content-Type" = "application/json")
4950 response <- private$REST$http$exec("GET", url, headers, body,
4951 queryArgs, private$numRetries)
4952 resource <- private$REST$httpParser$parseJSONResponse(response)
4954 if(!is.null(resource$errors))
4955 stop(resource$errors)
4960 traits.create = function(trait, ensure_unique_name = "false")
4962 endPoint <- stringr::str_interp("traits")
4963 url <- paste0(private$host, endPoint)
4964 headers <- list(Authorization = paste("OAuth2", private$token),
4965 "Content-Type" = "application/json")
4966 queryArgs <- list(ensure_unique_name = ensure_unique_name)
4968 if(length(trait) > 0)
4969 body <- jsonlite::toJSON(list(trait = trait),
4974 response <- private$REST$http$exec("POST", url, headers, body,
4975 queryArgs, private$numRetries)
4976 resource <- private$REST$httpParser$parseJSONResponse(response)
4978 if(!is.null(resource$errors))
4979 stop(resource$errors)
4984 traits.update = function(trait, uuid)
4986 endPoint <- stringr::str_interp("traits/${uuid}")
4987 url <- paste0(private$host, endPoint)
4988 headers <- list(Authorization = paste("OAuth2", private$token),
4989 "Content-Type" = "application/json")
4992 if(length(trait) > 0)
4993 body <- jsonlite::toJSON(list(trait = trait),
4998 response <- private$REST$http$exec("PUT", url, headers, body,
4999 queryArgs, private$numRetries)
5000 resource <- private$REST$httpParser$parseJSONResponse(response)
5002 if(!is.null(resource$errors))
5003 stop(resource$errors)
5008 traits.delete = function(uuid)
5010 endPoint <- stringr::str_interp("traits/${uuid}")
5011 url <- paste0(private$host, endPoint)
5012 headers <- list(Authorization = paste("OAuth2", private$token),
5013 "Content-Type" = "application/json")
5018 response <- private$REST$http$exec("DELETE", url, headers, body,
5019 queryArgs, private$numRetries)
5020 resource <- private$REST$httpParser$parseJSONResponse(response)
5022 if(!is.null(resource$errors))
5023 stop(resource$errors)
5028 traits.list = function(filters = NULL, where = NULL,
5029 order = NULL, select = NULL, distinct = NULL,
5030 limit = "100", offset = "0", count = "exact")
5032 endPoint <- stringr::str_interp("traits")
5033 url <- paste0(private$host, endPoint)
5034 headers <- list(Authorization = paste("OAuth2", private$token),
5035 "Content-Type" = "application/json")
5036 queryArgs <- list(filters = filters, where = where,
5037 order = order, select = select, distinct = distinct,
5038 limit = limit, offset = offset, count = count)
5042 response <- private$REST$http$exec("GET", url, headers, body,
5043 queryArgs, private$numRetries)
5044 resource <- private$REST$httpParser$parseJSONResponse(response)
5046 if(!is.null(resource$errors))
5047 stop(resource$errors)
5052 virtual_machines.get = function(uuid)
5054 endPoint <- stringr::str_interp("virtual_machines/${uuid}")
5055 url <- paste0(private$host, endPoint)
5056 headers <- list(Authorization = paste("OAuth2", private$token),
5057 "Content-Type" = "application/json")
5062 response <- private$REST$http$exec("GET", url, headers, body,
5063 queryArgs, private$numRetries)
5064 resource <- private$REST$httpParser$parseJSONResponse(response)
5066 if(!is.null(resource$errors))
5067 stop(resource$errors)
5072 virtual_machines.create = function(virtualmachine,
5073 ensure_unique_name = "false")
5075 endPoint <- stringr::str_interp("virtual_machines")
5076 url <- paste0(private$host, endPoint)
5077 headers <- list(Authorization = paste("OAuth2", private$token),
5078 "Content-Type" = "application/json")
5079 queryArgs <- list(ensure_unique_name = ensure_unique_name)
5081 if(length(virtualmachine) > 0)
5082 body <- jsonlite::toJSON(list(virtualmachine = virtualmachine),
5087 response <- private$REST$http$exec("POST", url, headers, body,
5088 queryArgs, private$numRetries)
5089 resource <- private$REST$httpParser$parseJSONResponse(response)
5091 if(!is.null(resource$errors))
5092 stop(resource$errors)
5097 virtual_machines.update = function(virtualmachine, uuid)
5099 endPoint <- stringr::str_interp("virtual_machines/${uuid}")
5100 url <- paste0(private$host, endPoint)
5101 headers <- list(Authorization = paste("OAuth2", private$token),
5102 "Content-Type" = "application/json")
5105 if(length(virtualmachine) > 0)
5106 body <- jsonlite::toJSON(list(virtualmachine = virtualmachine),
5111 response <- private$REST$http$exec("PUT", url, headers, body,
5112 queryArgs, private$numRetries)
5113 resource <- private$REST$httpParser$parseJSONResponse(response)
5115 if(!is.null(resource$errors))
5116 stop(resource$errors)
5121 virtual_machines.delete = function(uuid)
5123 endPoint <- stringr::str_interp("virtual_machines/${uuid}")
5124 url <- paste0(private$host, endPoint)
5125 headers <- list(Authorization = paste("OAuth2", private$token),
5126 "Content-Type" = "application/json")
5131 response <- private$REST$http$exec("DELETE", url, headers, body,
5132 queryArgs, private$numRetries)
5133 resource <- private$REST$httpParser$parseJSONResponse(response)
5135 if(!is.null(resource$errors))
5136 stop(resource$errors)
5141 virtual_machines.logins = function(uuid)
5143 endPoint <- stringr::str_interp("virtual_machines/${uuid}/logins")
5144 url <- paste0(private$host, endPoint)
5145 headers <- list(Authorization = paste("OAuth2", private$token),
5146 "Content-Type" = "application/json")
5151 response <- private$REST$http$exec("GET", url, headers, body,
5152 queryArgs, private$numRetries)
5153 resource <- private$REST$httpParser$parseJSONResponse(response)
5155 if(!is.null(resource$errors))
5156 stop(resource$errors)
5161 virtual_machines.get_all_logins = function()
5163 endPoint <- stringr::str_interp("virtual_machines/get_all_logins")
5164 url <- paste0(private$host, endPoint)
5165 headers <- list(Authorization = paste("OAuth2", private$token),
5166 "Content-Type" = "application/json")
5171 response <- private$REST$http$exec("GET", url, headers, body,
5172 queryArgs, private$numRetries)
5173 resource <- private$REST$httpParser$parseJSONResponse(response)
5175 if(!is.null(resource$errors))
5176 stop(resource$errors)
5181 virtual_machines.list = function(filters = NULL,
5182 where = NULL, order = NULL, select = NULL,
5183 distinct = NULL, limit = "100", offset = "0",
5186 endPoint <- stringr::str_interp("virtual_machines")
5187 url <- paste0(private$host, endPoint)
5188 headers <- list(Authorization = paste("OAuth2", private$token),
5189 "Content-Type" = "application/json")
5190 queryArgs <- list(filters = filters, where = where,
5191 order = order, select = select, distinct = distinct,
5192 limit = limit, offset = offset, count = count)
5196 response <- private$REST$http$exec("GET", url, headers, body,
5197 queryArgs, private$numRetries)
5198 resource <- private$REST$httpParser$parseJSONResponse(response)
5200 if(!is.null(resource$errors))
5201 stop(resource$errors)
5206 workflows.get = function(uuid)
5208 endPoint <- stringr::str_interp("workflows/${uuid}")
5209 url <- paste0(private$host, endPoint)
5210 headers <- list(Authorization = paste("OAuth2", private$token),
5211 "Content-Type" = "application/json")
5216 response <- private$REST$http$exec("GET", url, headers, body,
5217 queryArgs, private$numRetries)
5218 resource <- private$REST$httpParser$parseJSONResponse(response)
5220 if(!is.null(resource$errors))
5221 stop(resource$errors)
5226 workflows.create = function(workflow, ensure_unique_name = "false")
5228 endPoint <- stringr::str_interp("workflows")
5229 url <- paste0(private$host, endPoint)
5230 headers <- list(Authorization = paste("OAuth2", private$token),
5231 "Content-Type" = "application/json")
5232 queryArgs <- list(ensure_unique_name = ensure_unique_name)
5234 if(length(workflow) > 0)
5235 body <- jsonlite::toJSON(list(workflow = workflow),
5240 response <- private$REST$http$exec("POST", url, headers, body,
5241 queryArgs, private$numRetries)
5242 resource <- private$REST$httpParser$parseJSONResponse(response)
5244 if(!is.null(resource$errors))
5245 stop(resource$errors)
5250 workflows.update = function(workflow, uuid)
5252 endPoint <- stringr::str_interp("workflows/${uuid}")
5253 url <- paste0(private$host, endPoint)
5254 headers <- list(Authorization = paste("OAuth2", private$token),
5255 "Content-Type" = "application/json")
5258 if(length(workflow) > 0)
5259 body <- jsonlite::toJSON(list(workflow = workflow),
5264 response <- private$REST$http$exec("PUT", url, headers, body,
5265 queryArgs, private$numRetries)
5266 resource <- private$REST$httpParser$parseJSONResponse(response)
5268 if(!is.null(resource$errors))
5269 stop(resource$errors)
5274 workflows.delete = function(uuid)
5276 endPoint <- stringr::str_interp("workflows/${uuid}")
5277 url <- paste0(private$host, endPoint)
5278 headers <- list(Authorization = paste("OAuth2", private$token),
5279 "Content-Type" = "application/json")
5284 response <- private$REST$http$exec("DELETE", url, headers, body,
5285 queryArgs, private$numRetries)
5286 resource <- private$REST$httpParser$parseJSONResponse(response)
5288 if(!is.null(resource$errors))
5289 stop(resource$errors)
5294 workflows.list = function(filters = NULL,
5295 where = NULL, order = NULL, select = NULL,
5296 distinct = NULL, limit = "100", offset = "0",
5299 endPoint <- stringr::str_interp("workflows")
5300 url <- paste0(private$host, endPoint)
5301 headers <- list(Authorization = paste("OAuth2", private$token),
5302 "Content-Type" = "application/json")
5303 queryArgs <- list(filters = filters, where = where,
5304 order = order, select = select, distinct = distinct,
5305 limit = limit, offset = offset, count = count)
5309 response <- private$REST$http$exec("GET", url, headers, body,
5310 queryArgs, private$numRetries)
5311 resource <- private$REST$httpParser$parseJSONResponse(response)
5313 if(!is.null(resource$errors))
5314 stop(resource$errors)
5319 groups.get = function(uuid)
5321 endPoint <- stringr::str_interp("groups/${uuid}")
5322 url <- paste0(private$host, endPoint)
5323 headers <- list(Authorization = paste("OAuth2", private$token),
5324 "Content-Type" = "application/json")
5329 response <- private$REST$http$exec("GET", url, headers, body,
5330 queryArgs, private$numRetries)
5331 resource <- private$REST$httpParser$parseJSONResponse(response)
5333 if(!is.null(resource$errors))
5334 stop(resource$errors)
5339 groups.create = function(group, ensure_unique_name = "false")
5341 endPoint <- stringr::str_interp("groups")
5342 url <- paste0(private$host, endPoint)
5343 headers <- list(Authorization = paste("OAuth2", private$token),
5344 "Content-Type" = "application/json")
5345 queryArgs <- list(ensure_unique_name = ensure_unique_name)
5347 if(length(group) > 0)
5348 body <- jsonlite::toJSON(list(group = group),
5353 response <- private$REST$http$exec("POST", url, headers, body,
5354 queryArgs, private$numRetries)
5355 resource <- private$REST$httpParser$parseJSONResponse(response)
5357 if(!is.null(resource$errors))
5358 stop(resource$errors)
5363 groups.update = function(group, uuid)
5365 endPoint <- stringr::str_interp("groups/${uuid}")
5366 url <- paste0(private$host, endPoint)
5367 headers <- list(Authorization = paste("OAuth2", private$token),
5368 "Content-Type" = "application/json")
5371 if(length(group) > 0)
5372 body <- jsonlite::toJSON(list(group = group),
5377 response <- private$REST$http$exec("PUT", url, headers, body,
5378 queryArgs, private$numRetries)
5379 resource <- private$REST$httpParser$parseJSONResponse(response)
5381 if(!is.null(resource$errors))
5382 stop(resource$errors)
5387 groups.delete = function(uuid)
5389 endPoint <- stringr::str_interp("groups/${uuid}")
5390 url <- paste0(private$host, endPoint)
5391 headers <- list(Authorization = paste("OAuth2", private$token),
5392 "Content-Type" = "application/json")
5397 response <- private$REST$http$exec("DELETE", url, headers, body,
5398 queryArgs, private$numRetries)
5399 resource <- private$REST$httpParser$parseJSONResponse(response)
5401 if(!is.null(resource$errors))
5402 stop(resource$errors)
5407 groups.contents = function(filters = NULL,
5408 where = NULL, order = NULL, distinct = NULL,
5409 limit = "100", offset = "0", count = "exact",
5410 include_trash = NULL, uuid = NULL, recursive = NULL)
5412 endPoint <- stringr::str_interp("groups/contents")
5413 url <- paste0(private$host, endPoint)
5414 headers <- list(Authorization = paste("OAuth2", private$token),
5415 "Content-Type" = "application/json")
5416 queryArgs <- list(filters = filters, where = where,
5417 order = order, distinct = distinct, limit = limit,
5418 offset = offset, count = count, include_trash = include_trash,
5419 uuid = uuid, recursive = recursive)
5423 response <- private$REST$http$exec("GET", url, headers, body,
5424 queryArgs, private$numRetries)
5425 resource <- private$REST$httpParser$parseJSONResponse(response)
5427 if(!is.null(resource$errors))
5428 stop(resource$errors)
5433 groups.trash = function(uuid)
5435 endPoint <- stringr::str_interp("groups/${uuid}/trash")
5436 url <- paste0(private$host, endPoint)
5437 headers <- list(Authorization = paste("OAuth2", private$token),
5438 "Content-Type" = "application/json")
5443 response <- private$REST$http$exec("POST", url, headers, body,
5444 queryArgs, private$numRetries)
5445 resource <- private$REST$httpParser$parseJSONResponse(response)
5447 if(!is.null(resource$errors))
5448 stop(resource$errors)
5453 groups.untrash = function(uuid)
5455 endPoint <- stringr::str_interp("groups/${uuid}/untrash")
5456 url <- paste0(private$host, endPoint)
5457 headers <- list(Authorization = paste("OAuth2", private$token),
5458 "Content-Type" = "application/json")
5463 response <- private$REST$http$exec("POST", url, headers, body,
5464 queryArgs, private$numRetries)
5465 resource <- private$REST$httpParser$parseJSONResponse(response)
5467 if(!is.null(resource$errors))
5468 stop(resource$errors)
5473 groups.list = function(filters = NULL, where = NULL,
5474 order = NULL, select = NULL, distinct = NULL,
5475 limit = "100", offset = "0", count = "exact",
5476 include_trash = NULL)
5478 endPoint <- stringr::str_interp("groups")
5479 url <- paste0(private$host, endPoint)
5480 headers <- list(Authorization = paste("OAuth2", private$token),
5481 "Content-Type" = "application/json")
5482 queryArgs <- list(filters = filters, where = where,
5483 order = order, select = select, distinct = distinct,
5484 limit = limit, offset = offset, count = count,
5485 include_trash = include_trash)
5489 response <- private$REST$http$exec("GET", url, headers, body,
5490 queryArgs, private$numRetries)
5491 resource <- private$REST$httpParser$parseJSONResponse(response)
5493 if(!is.null(resource$errors))
5494 stop(resource$errors)
5499 user_agreements.get = function(uuid)
5501 endPoint <- stringr::str_interp("user_agreements/${uuid}")
5502 url <- paste0(private$host, endPoint)
5503 headers <- list(Authorization = paste("OAuth2", private$token),
5504 "Content-Type" = "application/json")
5509 response <- private$REST$http$exec("GET", url, headers, body,
5510 queryArgs, private$numRetries)
5511 resource <- private$REST$httpParser$parseJSONResponse(response)
5513 if(!is.null(resource$errors))
5514 stop(resource$errors)
5519 user_agreements.create = function(useragreement,
5520 ensure_unique_name = "false")
5522 endPoint <- stringr::str_interp("user_agreements")
5523 url <- paste0(private$host, endPoint)
5524 headers <- list(Authorization = paste("OAuth2", private$token),
5525 "Content-Type" = "application/json")
5526 queryArgs <- list(ensure_unique_name = ensure_unique_name)
5528 if(length(useragreement) > 0)
5529 body <- jsonlite::toJSON(list(useragreement = useragreement),
5534 response <- private$REST$http$exec("POST", url, headers, body,
5535 queryArgs, private$numRetries)
5536 resource <- private$REST$httpParser$parseJSONResponse(response)
5538 if(!is.null(resource$errors))
5539 stop(resource$errors)
5544 user_agreements.update = function(useragreement, uuid)
5546 endPoint <- stringr::str_interp("user_agreements/${uuid}")
5547 url <- paste0(private$host, endPoint)
5548 headers <- list(Authorization = paste("OAuth2", private$token),
5549 "Content-Type" = "application/json")
5552 if(length(useragreement) > 0)
5553 body <- jsonlite::toJSON(list(useragreement = useragreement),
5558 response <- private$REST$http$exec("PUT", url, headers, body,
5559 queryArgs, private$numRetries)
5560 resource <- private$REST$httpParser$parseJSONResponse(response)
5562 if(!is.null(resource$errors))
5563 stop(resource$errors)
5568 user_agreements.delete = function(uuid)
5570 endPoint <- stringr::str_interp("user_agreements/${uuid}")
5571 url <- paste0(private$host, endPoint)
5572 headers <- list(Authorization = paste("OAuth2", private$token),
5573 "Content-Type" = "application/json")
5578 response <- private$REST$http$exec("DELETE", url, headers, body,
5579 queryArgs, private$numRetries)
5580 resource <- private$REST$httpParser$parseJSONResponse(response)
5582 if(!is.null(resource$errors))
5583 stop(resource$errors)
5588 user_agreements.signatures = function()
5590 endPoint <- stringr::str_interp("user_agreements/signatures")
5591 url <- paste0(private$host, endPoint)
5592 headers <- list(Authorization = paste("OAuth2", private$token),
5593 "Content-Type" = "application/json")
5598 response <- private$REST$http$exec("GET", url, headers, body,
5599 queryArgs, private$numRetries)
5600 resource <- private$REST$httpParser$parseJSONResponse(response)
5602 if(!is.null(resource$errors))
5603 stop(resource$errors)
5608 user_agreements.sign = function()
5610 endPoint <- stringr::str_interp("user_agreements/sign")
5611 url <- paste0(private$host, endPoint)
5612 headers <- list(Authorization = paste("OAuth2", private$token),
5613 "Content-Type" = "application/json")
5618 response <- private$REST$http$exec("POST", url, headers, body,
5619 queryArgs, private$numRetries)
5620 resource <- private$REST$httpParser$parseJSONResponse(response)
5622 if(!is.null(resource$errors))
5623 stop(resource$errors)
5628 user_agreements.list = function(filters = NULL,
5629 where = NULL, order = NULL, select = NULL,
5630 distinct = NULL, limit = "100", offset = "0",
5633 endPoint <- stringr::str_interp("user_agreements")
5634 url <- paste0(private$host, endPoint)
5635 headers <- list(Authorization = paste("OAuth2", private$token),
5636 "Content-Type" = "application/json")
5637 queryArgs <- list(filters = filters, where = where,
5638 order = order, select = select, distinct = distinct,
5639 limit = limit, offset = offset, count = count)
5643 response <- private$REST$http$exec("GET", url, headers, body,
5644 queryArgs, private$numRetries)
5645 resource <- private$REST$httpParser$parseJSONResponse(response)
5647 if(!is.null(resource$errors))
5648 stop(resource$errors)
5653 user_agreements.new = function()
5655 endPoint <- stringr::str_interp("user_agreements/new")
5656 url <- paste0(private$host, endPoint)
5657 headers <- list(Authorization = paste("OAuth2", private$token),
5658 "Content-Type" = "application/json")
5663 response <- private$REST$http$exec("GET", url, headers, body,
5664 queryArgs, private$numRetries)
5665 resource <- private$REST$httpParser$parseJSONResponse(response)
5667 if(!is.null(resource$errors))
5668 stop(resource$errors)
5673 getHostName = function() private$host,
5674 getToken = function() private$token,
5675 setRESTService = function(newREST) private$REST <- newREST,
5676 getRESTService = function() private$REST