ArrayApi: Array operations

ArrayApiR Documentation

Array operations

Description

tiledbcloud.Array

Format

An R6Class generator object

Methods

ArrayActivityLog get array activity logs

  • @param namespace character

  • @param array character

  • @param start integer

  • @param end integer

  • @param event.types character

  • @param task.id character

  • @returnType list( ArrayActivityLog )

  • status code : 200 | log of array activity

  • return type : array[ArrayActivityLog]

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

ArraysBrowserOwnedGet Fetch a list of all arrays that are owned directly by user or user's organizations

  • @param page integer

  • @param per.page integer

  • @param search character

  • @param namespace character

  • @param orderby character

  • @param permissions character

  • @param tag list( character )

  • @returnType ArrayBrowserData

  • status code : 200 | Array of array info that are owned directly by user or user's organizations

  • return type : ArrayBrowserData

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

ArraysBrowserOwnedSidebarGet Fetch a sidebar for arrays that are owned directly by user or user's organizations

  • @returnType ArrayBrowserSidebar

  • status code : 200 | Array of array info that are owned directly by user or user's organizations

  • return type : ArrayBrowserSidebar

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

ArraysBrowserPublicGet Fetch a list of all arrays that have been shared publically

  • @param page integer

  • @param per.page integer

  • @param search character

  • @param namespace character

  • @param orderby character

  • @param permissions character

  • @param tag list( character )

  • @returnType ArrayBrowserData

  • status code : 200 | Array of array info that has been shared publically

  • return type : ArrayBrowserData

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

ArraysBrowserPublicSidebarGet Fetch a sidebar of all arrays that have been shared publically

  • @returnType ArrayBrowserSidebar

  • status code : 200 | Array of array info that has been shared publically

  • return type : ArrayBrowserSidebar

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

ArraysBrowserSharedGet Fetch a list of all arrays that have been shared with the user

  • @param page integer

  • @param per.page integer

  • @param search character

  • @param namespace character

  • @param orderby character

  • @param permissions character

  • @param tag list( character )

  • @returnType ArrayBrowserData

  • status code : 200 | Array of array info that has been shared with the user

  • return type : ArrayBrowserData

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

ArraysBrowserSharedSidebarGet Fetch a list of all arrays that have been shared with the user

  • @returnType ArrayBrowserSidebar

  • status code : 200 | Array of array info that has been shared with the user

  • return type : ArrayBrowserSidebar

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

CreateArray create a array schema at a specified URI registered to a group/project

  • @param namespace character

  • @param array character

  • @param content.type character

  • @param array.schema ArraySchema

  • status code : 204 | schema created successfully

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

DeleteArray delete a array

  • @param namespace character

  • @param array character

  • @param content.type character

  • status code : 204 | delete array successful

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

DeregisterArray deregister a array

  • @param namespace character

  • @param array character

  • status code : 204 | deregistered array successful

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetAllArrayMetadata get all array metadata user has access to

  • @param public.share character

  • @returnType list( ArrayInfo )

  • status code : 200 | array metadata for all arrays user has access to

  • return type : array[ArrayInfo]

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArray get an ArraySchema using a url encoded uri

  • @param namespace character

  • @param array character

  • @param content.type character

  • @returnType ArraySchema

  • status code : 200 | get ArraySchema

  • return type : ArraySchema

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArrayMaxBufferSizes get the max buffer sizes of an array for a subarray

  • @param namespace character

  • @param array character

  • @param subarray character

  • @param content.type character

  • @param x.payer character

  • @returnType MaxBufferSizes

  • status code : 200 | get the max buffer sizes of an array for a subarray

  • return type : MaxBufferSizes

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArrayMetaDataJson get metadata from the array in json format

  • @param namespace character

  • @param array character

  • @param length integer

  • status code : 200 | get array metadata

  • return type : object

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArrayMetadata get metadata on an array

  • @param namespace character

  • @param array character

  • @returnType ArrayInfo

  • status code : 200 | array metadata for an array

  • return type : ArrayInfo

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArrayNonEmptyDomain get the non empty domain of an array

  • @param namespace character

  • @param array character

  • @param content.type character

  • @param x.payer character

  • @returnType NonEmptyDomain

  • status code : 200 | get the non empty domain of an array

  • return type : NonEmptyDomain

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArraySampleData get an sample set of data from the array

  • @param namespace character

  • @param array character

  • @param samples numeric

  • @returnType ArraySample

  • status code : 200 | get array sample data

  • return type : ArraySample

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArraySharingPolicies Get all sharing details of the array

  • @param namespace character

  • @param array character

  • @returnType list( ArraySharing )

  • status code : 200 | List of all specific sharing policies

  • return type : array[ArraySharing]

  • response headers :

  • status code : 404 | Array does not exist or user does not have permissions to view array sharing policies

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetArraysInNamespace get metadata on all arrays in a namespace

  • @param namespace character

  • @returnType list( ArrayInfo )

  • status code : 200 | array metadata for all arrays in a namespace

  • return type : array[ArrayInfo]

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

GetLastAccessedArrays

  • @returnType list( LastAccessedArray )

  • status code : 200 | gets last accessed arrays

  • return type : array[LastAccessedArray]

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

RegisterArray register an array at a specified URI registered to the given namespace

  • @param namespace character

  • @param array character

  • @param array.metadata ArrayInfoUpdate

  • status code : 204 | schema registered successfully

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

ShareArray Share an array with a user

  • @param namespace character

  • @param array character

  • @param array.sharing ArraySharing

  • status code : 204 | Array shared successfully

  • response headers :

  • status code : 404 | Array does not exist or user does not have permissions to share array

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

UpdateArrayMetadata update metadata on an array

  • @param namespace character

  • @param array character

  • @param array.metadata ArrayInfoUpdate

  • status code : 204 | array metadata updated successfully

  • response headers :

  • status code : 0 | error response

  • return type : Error

  • response headers :

Public fields

apiClient

Handles the client-server communication.

Methods

Public methods


Method new()

Usage
ArrayApi$new(apiClient)

Method ArrayActivityLog()

Usage
ArrayApi$ArrayActivityLog(
  namespace,
  array,
  start = NULL,
  end = NULL,
  event.types = NULL,
  task.id = NULL,
  ...
)

Method ArrayActivityLogWithHttpInfo()

Usage
ArrayApi$ArrayActivityLogWithHttpInfo(
  namespace,
  array,
  start = NULL,
  end = NULL,
  event.types = NULL,
  task.id = NULL,
  ...
)

Method ArraysBrowserOwnedGet()

Usage
ArrayApi$ArraysBrowserOwnedGet(
  page = NULL,
  per.page = NULL,
  search = NULL,
  namespace = NULL,
  orderby = NULL,
  permissions = NULL,
  tag = NULL,
  ...
)

Method ArraysBrowserOwnedGetWithHttpInfo()

Usage
ArrayApi$ArraysBrowserOwnedGetWithHttpInfo(
  page = NULL,
  per.page = NULL,
  search = NULL,
  namespace = NULL,
  orderby = NULL,
  permissions = NULL,
  tag = NULL,
  ...
)

Method ArraysBrowserOwnedSidebarGet()

Usage
ArrayApi$ArraysBrowserOwnedSidebarGet(...)

Method ArraysBrowserOwnedSidebarGetWithHttpInfo()

Usage
ArrayApi$ArraysBrowserOwnedSidebarGetWithHttpInfo(...)

Method ArraysBrowserPublicGet()

Usage
ArrayApi$ArraysBrowserPublicGet(
  page = NULL,
  per.page = NULL,
  search = NULL,
  namespace = NULL,
  orderby = NULL,
  permissions = NULL,
  tag = NULL,
  ...
)

Method ArraysBrowserPublicGetWithHttpInfo()

Usage
ArrayApi$ArraysBrowserPublicGetWithHttpInfo(
  page = NULL,
  per.page = NULL,
  search = NULL,
  namespace = NULL,
  orderby = NULL,
  permissions = NULL,
  tag = NULL,
  ...
)

Method ArraysBrowserPublicSidebarGet()

Usage
ArrayApi$ArraysBrowserPublicSidebarGet(...)

Method ArraysBrowserPublicSidebarGetWithHttpInfo()

Usage
ArrayApi$ArraysBrowserPublicSidebarGetWithHttpInfo(...)

Method ArraysBrowserSharedGet()

Usage
ArrayApi$ArraysBrowserSharedGet(
  page = NULL,
  per.page = NULL,
  search = NULL,
  namespace = NULL,
  orderby = NULL,
  permissions = NULL,
  tag = NULL,
  ...
)

Method ArraysBrowserSharedGetWithHttpInfo()

Usage
ArrayApi$ArraysBrowserSharedGetWithHttpInfo(
  page = NULL,
  per.page = NULL,
  search = NULL,
  namespace = NULL,
  orderby = NULL,
  permissions = NULL,
  tag = NULL,
  ...
)

Method ArraysBrowserSharedSidebarGet()

Usage
ArrayApi$ArraysBrowserSharedSidebarGet(...)

Method ArraysBrowserSharedSidebarGetWithHttpInfo()

Usage
ArrayApi$ArraysBrowserSharedSidebarGetWithHttpInfo(...)

Method CreateArray()

Usage
ArrayApi$CreateArray(namespace, array, content.type, array.schema, ...)

Method CreateArrayWithHttpInfo()

Usage
ArrayApi$CreateArrayWithHttpInfo(
  namespace,
  array,
  content.type,
  array.schema,
  ...
)

Method DeleteArray()

Usage
ArrayApi$DeleteArray(namespace, array, content.type, ...)

Method DeleteArrayWithHttpInfo()

Usage
ArrayApi$DeleteArrayWithHttpInfo(namespace, array, content.type, ...)

Method DeregisterArray()

Usage
ArrayApi$DeregisterArray(namespace, array, ...)

Method DeregisterArrayWithHttpInfo()

Usage
ArrayApi$DeregisterArrayWithHttpInfo(namespace, array, ...)

Method GetAllArrayMetadata()

Usage
ArrayApi$GetAllArrayMetadata(public.share = NULL, ...)

Method GetAllArrayMetadataWithHttpInfo()

Usage
ArrayApi$GetAllArrayMetadataWithHttpInfo(public.share = NULL, ...)

Method GetArray()

Usage
ArrayApi$GetArray(namespace, array, content.type, ...)

Method GetArrayWithHttpInfo()

Usage
ArrayApi$GetArrayWithHttpInfo(namespace, array, content.type, ...)

Method GetArrayMaxBufferSizes()

Usage
ArrayApi$GetArrayMaxBufferSizes(
  namespace,
  array,
  subarray,
  content.type,
  x.payer = NULL,
  ...
)

Method GetArrayMaxBufferSizesWithHttpInfo()

Usage
ArrayApi$GetArrayMaxBufferSizesWithHttpInfo(
  namespace,
  array,
  subarray,
  content.type,
  x.payer = NULL,
  ...
)

Method GetArrayMetaDataJson()

Usage
ArrayApi$GetArrayMetaDataJson(namespace, array, length = NULL, ...)

Method GetArrayMetaDataJsonWithHttpInfo()

Usage
ArrayApi$GetArrayMetaDataJsonWithHttpInfo(namespace, array, length = NULL, ...)

Method GetArrayMetadata()

Usage
ArrayApi$GetArrayMetadata(namespace, array, ...)

Method GetArrayMetadataWithHttpInfo()

Usage
ArrayApi$GetArrayMetadataWithHttpInfo(namespace, array, ...)

Method GetArrayNonEmptyDomain()

Usage
ArrayApi$GetArrayNonEmptyDomain(
  namespace,
  array,
  content.type,
  x.payer = NULL,
  ...
)

Method GetArrayNonEmptyDomainWithHttpInfo()

Usage
ArrayApi$GetArrayNonEmptyDomainWithHttpInfo(
  namespace,
  array,
  content.type,
  x.payer = NULL,
  ...
)

Method GetArraySampleData()

Usage
ArrayApi$GetArraySampleData(namespace, array, samples = 5, ...)

Method GetArraySampleDataWithHttpInfo()

Usage
ArrayApi$GetArraySampleDataWithHttpInfo(namespace, array, samples = 5, ...)

Method GetArraySharingPolicies()

Usage
ArrayApi$GetArraySharingPolicies(namespace, array, ...)

Method GetArraySharingPoliciesWithHttpInfo()

Usage
ArrayApi$GetArraySharingPoliciesWithHttpInfo(namespace, array, ...)

Method GetArraysInNamespace()

Usage
ArrayApi$GetArraysInNamespace(namespace, ...)

Method GetArraysInNamespaceWithHttpInfo()

Usage
ArrayApi$GetArraysInNamespaceWithHttpInfo(namespace, ...)

Method GetLastAccessedArrays()

Usage
ArrayApi$GetLastAccessedArrays(...)

Method GetLastAccessedArraysWithHttpInfo()

Usage
ArrayApi$GetLastAccessedArraysWithHttpInfo(...)

Method RegisterArray()

Usage
ArrayApi$RegisterArray(namespace, array, array.metadata, ...)

Method RegisterArrayWithHttpInfo()

Usage
ArrayApi$RegisterArrayWithHttpInfo(namespace, array, array.metadata, ...)

Method ShareArray()

Usage
ArrayApi$ShareArray(namespace, array, array.sharing, ...)

Method ShareArrayWithHttpInfo()

Usage
ArrayApi$ShareArrayWithHttpInfo(namespace, array, array.sharing, ...)

Method UpdateArrayMetadata()

Usage
ArrayApi$UpdateArrayMetadata(namespace, array, array.metadata, ...)

Method UpdateArrayMetadataWithHttpInfo()

Usage
ArrayApi$UpdateArrayMetadataWithHttpInfo(namespace, array, array.metadata, ...)

Method clone()

The objects of this class are cloneable with this method.

Usage
ArrayApi$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

## Not run: 
####################  ArrayActivityLog  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.start <- 56 # integer | Start time of window of fetch logs, unix epoch in seconds (default: seven days ago)
var.end <- 56 # integer | End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp)
var.event.types <- 'event.types_example' # character | Event values can be one or more of the following read, write, create, delete, register, deregister, comma separated
var.task.id <- 'task.id_example' # character | Array task id To filter activity to

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ArrayActivityLog(var.namespace, var.array, start=var.start, end=var.end, event.types=var.event.types, task.id=var.task.id)


####################  ArraysBrowserOwnedGet  ####################

library(tiledbcloud)
var.page <- 56 # integer | pagination offset
var.per.page <- 56 # integer | pagination limit
var.search <- 'search_example' # character | search string that will look at name, namespace or description fields
var.namespace <- 'namespace_example' # character | namespace
var.orderby <- 'orderby_example' # character | sort by which field valid values include last_accessed, size, name
var.permissions <- 'permissions_example' # character | permissions valid values include read, read_write, write, admin
var.tag <- ['tag_example'] # array[character] | tag to search for, more than one can be included

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ArraysBrowserOwnedGet(page=var.page, per.page=var.per.page, search=var.search, namespace=var.namespace, orderby=var.orderby, permissions=var.permissions, tag=var.tag)


####################  ArraysBrowserOwnedSidebarGet  ####################

library(tiledbcloud)

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ArraysBrowserOwnedSidebarGet()


####################  ArraysBrowserPublicGet  ####################

library(tiledbcloud)
var.page <- 56 # integer | pagination offset
var.per.page <- 56 # integer | pagination limit
var.search <- 'search_example' # character | search string that will look at name, namespace or description fields
var.namespace <- 'namespace_example' # character | namespace
var.orderby <- 'orderby_example' # character | sort by which field valid values include last_accessed, size, name
var.permissions <- 'permissions_example' # character | permissions valid values include read, read_write, write, admin
var.tag <- ['tag_example'] # array[character] | tag to search for, more than one can be included

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ArraysBrowserPublicGet(page=var.page, per.page=var.per.page, search=var.search, namespace=var.namespace, orderby=var.orderby, permissions=var.permissions, tag=var.tag)


####################  ArraysBrowserPublicSidebarGet  ####################

library(tiledbcloud)

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ArraysBrowserPublicSidebarGet()


####################  ArraysBrowserSharedGet  ####################

library(tiledbcloud)
var.page <- 56 # integer | pagination offset
var.per.page <- 56 # integer | pagination limit
var.search <- 'search_example' # character | search string that will look at name, namespace or description fields
var.namespace <- 'namespace_example' # character | namespace
var.orderby <- 'orderby_example' # character | sort by which field valid values include last_accessed, size, name
var.permissions <- 'permissions_example' # character | permissions valid values include read, read_write, write, admin
var.tag <- ['tag_example'] # array[character] | tag to search for, more than one can be included

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ArraysBrowserSharedGet(page=var.page, per.page=var.per.page, search=var.search, namespace=var.namespace, orderby=var.orderby, permissions=var.permissions, tag=var.tag)


####################  ArraysBrowserSharedSidebarGet  ####################

library(tiledbcloud)

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ArraysBrowserSharedSidebarGet()


####################  CreateArray  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.content.type <- 'application/json' # character | Content Type of input and return mime
var.array.schema <- ArraySchema$new() # ArraySchema | ArraySchema being created

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$CreateArray(var.namespace, var.array, var.content.type, var.array.schema)


####################  DeleteArray  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.content.type <- 'application/json' # character | Content Type of input and return mime

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$DeleteArray(var.namespace, var.array, var.content.type)


####################  DeregisterArray  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$DeregisterArray(var.namespace, var.array)


####################  GetAllArrayMetadata  ####################

library(tiledbcloud)
var.public.share <- 'public.share_example' # character | Public share values can be one of exclude, only

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetAllArrayMetadata(public.share=var.public.share)


####################  GetArray  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.content.type <- 'application/json' # character | Content Type of input and return mime

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArray(var.namespace, var.array, var.content.type)


####################  GetArrayMaxBufferSizes  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.subarray <- 'subarray_example' # character | CSV string of subarray to get max buffer sizes for
var.content.type <- 'application/json' # character | Content Type of input and return mime
var.x.payer <- 'x.payer_example' # character | Name of organization or user who should be charged for this request

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArrayMaxBufferSizes(var.namespace, var.array, var.subarray, var.content.type, x.payer=var.x.payer)


####################  GetArrayMetaDataJson  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.length <- 56 # integer | (optional) limit character length of returned values

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArrayMetaDataJson(var.namespace, var.array, length=var.length)


####################  GetArrayMetadata  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArrayMetadata(var.namespace, var.array)


####################  GetArrayNonEmptyDomain  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.content.type <- 'application/json' # character | Content Type of input and return mime
var.x.payer <- 'x.payer_example' # character | Name of organization or user who should be charged for this request

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArrayNonEmptyDomain(var.namespace, var.array, var.content.type, x.payer=var.x.payer)


####################  GetArraySampleData  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.samples <- 5.0 # numeric | Number of sample results to return

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArraySampleData(var.namespace, var.array, samples=var.samples)


####################  GetArraySharingPolicies  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArraySharingPolicies(var.namespace, var.array)


####################  GetArraysInNamespace  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetArraysInNamespace(var.namespace)


####################  GetLastAccessedArrays  ####################

library(tiledbcloud)

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$GetLastAccessedArrays()


####################  RegisterArray  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.array.metadata <- ArrayInfoUpdate$new() # ArrayInfoUpdate | metadata associated with array

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$RegisterArray(var.namespace, var.array, var.array.metadata)


####################  ShareArray  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.array.sharing <- ArraySharing$new() # ArraySharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace, if permissions already exist they will be deleted then new ones added. In the event of a failure, the new polcies will be rolled back to prevent partial policies, and its likely the array will not be shared with the namespace at all

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$ShareArray(var.namespace, var.array, var.array.sharing)


####################  UpdateArrayMetadata  ####################

library(tiledbcloud)
var.namespace <- 'namespace_example' # character | namespace array is in (an organization name or user's username)
var.array <- 'array_example' # character | name/uri of array that is url-encoded
var.array.metadata <- ArrayInfoUpdate$new() # ArrayInfoUpdate | array metadata to update

api.instance <- ArrayApi$new()

#Configure API key authorization: ApiKeyAuth
api.instance$apiClient$apiKeys['X-TILEDB-REST-API-KEY'] <- 'TODO_YOUR_API_KEY';

#Configure HTTP basic authorization: BasicAuth
# provide your username in the user-serial format
api.instance$apiClient$username <- '<user-serial>'; 
# provide your api key generated using the developer portal
api.instance$apiClient$password <- '<api_key>';

result <- api.instance$UpdateArrayMetadata(var.namespace, var.array, var.array.metadata)



## End(Not run)

eddelbuettel/tldbclr documentation built on Sept. 25, 2022, 12:46 p.m.