X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1012f12d29be01b56f2bbbe2e9bd5969d69f7b89..945eba28be38c66484deb5656472fad502087ee7:/sdk/R/man/Subcollection.Rd diff --git a/sdk/R/man/Subcollection.Rd b/sdk/R/man/Subcollection.Rd index e644e02168..1c9ec96e11 100644 --- a/sdk/R/man/Subcollection.Rd +++ b/sdk/R/man/Subcollection.Rd @@ -1,14 +1,250 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/Subcollection.R -\docType{data} -\name{Subcollection} -\alias{Subcollection} -\title{Arvados SubCollection Object} -\format{An object of class \code{R6ClassGenerator} of length 24.} -\usage{ -Subcollection -} -\description{ -Update description -} -\keyword{datasets} +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/Subcollection.R +\name{Subcollection} +\alias{Subcollection} +\title{R6 Class Representing a Subcollection} +\description{ +Subcollection class represents a folder inside Arvados collection. +It is essentially a composite of arvadosFiles and other subcollections. +} +\section{Methods}{ +\subsection{Public methods}{ +\itemize{ +\item \href{#method-new}{\code{Subcollection$new()}} +\item \href{#method-getName}{\code{Subcollection$getName()}} +\item \href{#method-getRelativePath}{\code{Subcollection$getRelativePath()}} +\item \href{#method-add}{\code{Subcollection$add()}} +\item \href{#method-remove}{\code{Subcollection$remove()}} +\item \href{#method-getFileListing}{\code{Subcollection$getFileListing()}} +\item \href{#method-getSizeInBytes}{\code{Subcollection$getSizeInBytes()}} +\item \href{#method-move}{\code{Subcollection$move()}} +\item \href{#method-copy}{\code{Subcollection$copy()}} +\item \href{#method-duplicate}{\code{Subcollection$duplicate()}} +\item \href{#method-get}{\code{Subcollection$get()}} +\item \href{#method-getFirst}{\code{Subcollection$getFirst()}} +\item \href{#method-setCollection}{\code{Subcollection$setCollection()}} +\item \href{#method-getCollection}{\code{Subcollection$getCollection()}} +\item \href{#method-getParent}{\code{Subcollection$getParent()}} +\item \href{#method-setParent}{\code{Subcollection$setParent()}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-new}{}}} +\subsection{Method \code{new()}}{ +Initialize new enviroment. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$new(name)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{name}}{Name of the new enviroment.} +} +\if{html}{\out{
}} +} +\subsection{Returns}{ +A new `Subcollection` object. +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-getName}{}}} +\subsection{Method \code{getName()}}{ +Returns name of the file. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$getName()}\if{html}{\out{
}} +} + +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-getRelativePath}{}}} +\subsection{Method \code{getRelativePath()}}{ +Returns Subcollection's path relative to the root. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$getRelativePath()}\if{html}{\out{
}} +} + +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-add}{}}} +\subsection{Method \code{add()}}{ +Adds ArvadosFile or Subcollection specified by content to the Subcollection. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$add(content)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{content}}{Content to be added.} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-remove}{}}} +\subsection{Method \code{remove()}}{ +Removes ArvadosFile or Subcollection specified by name from the Subcollection. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$remove(name)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{name}}{Name of the file to be removed.} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-getFileListing}{}}} +\subsection{Method \code{getFileListing()}}{ +Returns Subcollections file content as character vector. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$getFileListing(fullPath = TRUE)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{fullPath}}{Checking if the path to file exists.} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-getSizeInBytes}{}}} +\subsection{Method \code{getSizeInBytes()}}{ +Returns subcollections content size in bytes. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$getSizeInBytes()}\if{html}{\out{
}} +} + +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-move}{}}} +\subsection{Method \code{move()}}{ +Moves Subcollection to a new location inside collection. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$move(destination)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{destination}}{Path to move the file.} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-copy}{}}} +\subsection{Method \code{copy()}}{ +Copies Subcollection to a new location inside collection. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$copy(destination)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{destination}}{Path to copy the file.} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-duplicate}{}}} +\subsection{Method \code{duplicate()}}{ +Duplicate Subcollection and gives it a new name. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$duplicate(newName = NULL)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{newName}}{New name for duplicated file.} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-get}{}}} +\subsection{Method \code{get()}}{ +If name is valid, returns ArvadosFile or Subcollection specified by relativePath, else returns NULL. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$get(name)}\if{html}{\out{
}} +} + +\subsection{Arguments}{ +\if{html}{\out{
}} +\describe{ +\item{\code{name}}{Name of the file.} +} +\if{html}{\out{
}} +} +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-getFirst}{}}} +\subsection{Method \code{getFirst()}}{ +Returns files in Subcollection. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$getFirst()}\if{html}{\out{
}} +} + +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-setCollection}{}}} +\subsection{Method \code{setCollection()}}{ +Sets Collection by its UUID. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$setCollection(collection, setRecursively = TRUE)}\if{html}{\out{
}} +} + +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-getCollection}{}}} +\subsection{Method \code{getCollection()}}{ +Returns Collection of Subcollection. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$getCollection()}\if{html}{\out{
}} +} + +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-getParent}{}}} +\subsection{Method \code{getParent()}}{ +Returns Collection UUID. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$getParent()}\if{html}{\out{
}} +} + +} +\if{html}{\out{
}} +\if{html}{\out{}} +\if{latex}{\out{\hypertarget{method-setParent}{}}} +\subsection{Method \code{setParent()}}{ +Sets new Collection. +\subsection{Usage}{ +\if{html}{\out{
}}\preformatted{Subcollection$setParent(newParent)}\if{html}{\out{
}} +} + +} +}