X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2d8d861fadc8f3e0e7d5524c78f980dedc56f759..606c29cdbb9012ee99043a2da9f28b2cd302e5e4:/sdk/R/man/Collection.Rd diff --git a/sdk/R/man/Collection.Rd b/sdk/R/man/Collection.Rd index add30b1440..8cf29a2ea5 100644 --- a/sdk/R/man/Collection.Rd +++ b/sdk/R/man/Collection.Rd @@ -1,67 +1,51 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/arvados_objects.R +% Please edit documentation in R/Collection.R \name{Collection} \alias{Collection} -\title{Collection Object} -\usage{ -Collection(uuid = NULL, etag = NULL, owner_uuid = NULL, - created_at = NULL, modified_by_client_uuid = NULL, - modified_by_user_uuid = NULL, modified_at = NULL, - portable_data_hash = NULL, replication_desired = NULL, - replication_confirmed_at = NULL, replication_confirmed = NULL, - updated_at = NULL, manifest_text = NULL, name = NULL, - description = NULL, properties = NULL, delete_at = NULL, - file_names = NULL, trash_at = NULL, is_trashed = NULL) +\title{Collection} +\description{ +Collection class provides interface for working with Arvados collections. } -\arguments{ -\item{uuid}{Object ID} - -\item{etag}{Object version} - -\item{owner_uuid}{No description} - -\item{created_at}{No description} - -\item{modified_by_client_uuid}{No description} - -\item{modified_by_user_uuid}{No description} - -\item{modified_at}{No description} - -\item{portable_data_hash}{No description} - -\item{replication_desired}{No description} +\section{Usage}{ -\item{replication_confirmed_at}{No description} +\preformatted{collection = Collection$new(arv, uuid)} +} -\item{replication_confirmed}{No description} +\section{Arguments}{ -\item{updated_at}{No description} +\describe{ + \item{arv}{Arvados object.} + \item{uuid}{UUID of a collection.} +} +} -\item{manifest_text}{No description} +\section{Methods}{ -\item{name}{No description} +\describe{ + \item{add(content)}{Adds ArvadosFile or Subcollection specified by content to the collection.} + \item{create(fileNames, relativePath = "")}{Creates one or more ArvadosFiles and adds them to the collection at specified path.} + \item{remove(fileNames)}{Remove one or more files from the collection.} + \item{move(content, newLocation)}{Moves ArvadosFile or Subcollection to another location in the collection.} + \item{getFileListing()}{Returns collections file content as character vector.} + \item{get(relativePath)}{If relativePath is valid, returns ArvadosFile or Subcollection specified by relativePath, else returns NULL.} +} +} -\item{description}{No description} +\examples{ +\dontrun{ +arv <- Arvados$new("your Arvados token", "example.arvadosapi.com") +collection <- Collection$new(arv, "uuid") -\item{properties}{No description} +newFile <- ArvadosFile$new("myFile") +collection$add(newFile, "myFolder") -\item{delete_at}{No description} +createdFiles <- collection$create(c("main.cpp", lib.dll), "cpp/src/") -\item{file_names}{No description} +collection$remove("location/to/my/file.cpp") -\item{trash_at}{No description} +collection$move("folder/file.cpp", "file.cpp") -\item{is_trashed}{No description} -} -\value{ -Collection object -} -\description{ -Collection Object +arvadosFile <- collection$get("location/to/my/file.cpp") +arvadosSubcollection <- collection$get("location/to/my/directory/") } -\details{ -Todo: Update description -Collection } -\concept{Collection functions}