Class WorkspaceClient
- java.lang.Object
-
- us.kbase.workspace.WorkspaceClient
-
public class WorkspaceClient extends Object
Original spec-file module name: Workspace
The Workspace Service (WSS) is primarily a language independent remote storage and retrieval system for KBase typed objects (TO) defined with the KBase Interface Description Language (KIDL). It has the following primary features: - Immutable storage of TOs with - user defined metadata - data provenance - Versioning of TOs - Referencing from TO to TO - Typechecking of all saved objects against a KIDL specification - Collecting typed objects into a workspace - Sharing workspaces with specific KBase users or the world - Freezing and publishing workspaces
-
-
Constructor Summary
Constructors Constructor Description WorkspaceClient()
Constructs a client with the default url and no user credentials.WorkspaceClient(String user, String password)
Constructs a client with the default URL.WorkspaceClient(URL url)
Constructs a client with a custom URL and no user credentials.WorkspaceClient(URL url, String user, String password)
Constructs a client with a custom URL.WorkspaceClient(URL url, String user, String password, URL auth)
Constructs a client with a custom URL and a custom authorization service URL.WorkspaceClient(URL url, AuthToken token)
Constructs a client with a custom URL.WorkspaceClient(AuthToken token)
Constructs a client with the default URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
_setFileForNextRpcResponse(File f)
UObject
administer(UObject command, RpcContext... jsonRpcContext)
Original spec-file function name: administervoid
alterAdminObjectMetadata(AlterAdminObjectMetadataParams params, RpcContext... jsonRpcContext)
Original spec-file function name: alter_admin_object_metadatavoid
alterWorkspaceMetadata(AlterWorkspaceMetadataParams params, RpcContext... jsonRpcContext)
Original spec-file function name: alter_workspace_metadataTuple9<Long,String,String,String,Long,String,String,String,Map<String,String>>
cloneWorkspace(CloneWorkspaceParams params, RpcContext... jsonRpcContext)
Original spec-file function name: clone_workspaceTuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>
copyObject(CopyObjectParams params, RpcContext... jsonRpcContext)
Original spec-file function name: copy_objectTuple9<Long,String,String,String,Long,String,String,String,Map<String,String>>
createWorkspace(CreateWorkspaceParams params, RpcContext... jsonRpcContext)
Original spec-file function name: create_workspacevoid
deleteObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Original spec-file function name: delete_objectsvoid
deleteWorkspace(WorkspaceIdentity wsi, RpcContext... jsonRpcContext)
Original spec-file function name: delete_workspaceGetAdminRoleResults
getAdminRole(RpcContext... jsonRpcContext)
Original spec-file function name: get_admin_roleList<FuncInfo>
getAllFuncInfo(String mod, RpcContext... jsonRpcContext)
Deprecated.List<TypeInfo>
getAllTypeInfo(String mod, RpcContext... jsonRpcContext)
Original spec-file function name: get_all_type_infoFuncInfo
getFuncInfo(String func, RpcContext... jsonRpcContext)
Deprecated.String
getJsonschema(String type, RpcContext... jsonRpcContext)
Original spec-file function name: get_jsonschemaModuleInfo
getModuleInfo(GetModuleInfoParams params, RpcContext... jsonRpcContext)
Original spec-file function name: get_module_infoGetNamesByPrefixResults
getNamesByPrefix(GetNamesByPrefixParams params, RpcContext... jsonRpcContext)
Original spec-file function name: get_names_by_prefixGetObjectOutput
getObject(GetObjectParams params, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_objectsList<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>>
getObjectHistory(ObjectIdentity object, RpcContext... jsonRpcContext)
Original spec-file function name: get_object_historyList<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>>
getObjectInfo(List<ObjectIdentity> objectIds, Long includeMetadata, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_object_info3GetObjectInfo3Results
getObjectInfo3(GetObjectInfo3Params params, RpcContext... jsonRpcContext)
Original spec-file function name: get_object_info3List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>>
getObjectInfoNew(GetObjectInfoNewParams params, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_object_info3Tuple12<String,String,String,Long,String,String,String,String,String,String,Map<String,String>,Long>
getObjectmeta(GetObjectmetaParams params, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_object_info3List<ObjectProvenanceInfo>
getObjectProvenance(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_objects2List<ObjectData>
getObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_objects2GetObjects2Results
getObjects2(GetObjects2Params params, RpcContext... jsonRpcContext)
Original spec-file function name: get_objects2List<ObjectData>
getObjectSubset(List<SubObjectIdentity> subObjectIds, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_objects2Map<String,String>
getPermissions(WorkspaceIdentity wsi, RpcContext... jsonRpcContext)
Deprecated.get_permissions_massWorkspacePermissions
getPermissionsMass(GetPermissionsMassParams mass, RpcContext... jsonRpcContext)
Original spec-file function name: get_permissions_massList<ObjectData>
getReferencedObjects(List<List<ObjectIdentity>> refChains, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_objects2String
getServiceVersion()
AuthToken
getToken()
Get the token this client uses to communicate with the server.TypeInfo
getTypeInfo(String type, RpcContext... jsonRpcContext)
Original spec-file function name: get_type_infoURL
getURL()
Get the URL of the service with which this client communicates.String
getWorkspaceDescription(WorkspaceIdentity wsi, RpcContext... jsonRpcContext)
Original spec-file function name: get_workspace_descriptionTuple9<Long,String,String,String,Long,String,String,String,Map<String,String>>
getWorkspaceInfo(WorkspaceIdentity wsi, RpcContext... jsonRpcContext)
Original spec-file function name: get_workspace_infoTuple7<String,String,String,Long,String,String,Long>
getWorkspacemeta(GetWorkspacemetaParams params, RpcContext... jsonRpcContext)
Deprecated.Workspace.get_workspace_infovoid
grantModuleOwnership(GrantModuleOwnershipParams params, RpcContext... jsonRpcContext)
Original spec-file function name: grant_module_ownershipvoid
hideObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Original spec-file function name: hide_objectsboolean
isAllSSLCertificatesTrusted()
Check if this client trusts all SSL certificates, including self-signed certificates.boolean
isAuthAllowedForHttp()
Deprecated.boolean
isInsecureHttpConnectionAllowed()
Check if this client allows insecure http (vs https) connections.boolean
isStreamingModeOn()
Returns true if streaming mode is on.Map<String,Map<String,String>>
listAllTypes(ListAllTypesParams params, RpcContext... jsonRpcContext)
Original spec-file function name: list_all_typesList<String>
listModules(ListModulesParams params, RpcContext... jsonRpcContext)
Original spec-file function name: list_modulesModuleVersions
listModuleVersions(ListModuleVersionsParams params, RpcContext... jsonRpcContext)
Original spec-file function name: list_module_versionsList<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>>
listObjects(ListObjectsParams params, RpcContext... jsonRpcContext)
Original spec-file function name: list_objectsList<Long>
listReferencingObjectCounts(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Deprecated.List<List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>>>
listReferencingObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Original spec-file function name: list_referencing_objectsListWorkspaceIDsResults
listWorkspaceIds(ListWorkspaceIDsParams params, RpcContext... jsonRpcContext)
Original spec-file function name: list_workspace_idsList<Tuple9<Long,String,String,String,Long,String,String,String,Map<String,String>>>
listWorkspaceInfo(ListWorkspaceInfoParams params, RpcContext... jsonRpcContext)
Original spec-file function name: list_workspace_infoList<Tuple12<String,String,String,Long,String,String,String,String,String,String,Map<String,String>,Long>>
listWorkspaceObjects(ListWorkspaceObjectsParams params, RpcContext... jsonRpcContext)
Deprecated.Workspace.list_objectsList<Tuple7<String,String,String,Long,String,String,Long>>
listWorkspaces(ListWorkspacesParams params, RpcContext... jsonRpcContext)
Deprecated.Workspace.list_workspace_infoTuple9<Long,String,String,String,Long,String,String,String,Map<String,String>>
lockWorkspace(WorkspaceIdentity wsi, RpcContext... jsonRpcContext)
Original spec-file function name: lock_workspaceMap<String,String>
registerTypespec(RegisterTypespecParams params, RpcContext... jsonRpcContext)
Original spec-file function name: register_typespecLong
registerTypespecCopy(RegisterTypespecCopyParams params, RpcContext... jsonRpcContext)
Original spec-file function name: register_typespec_copyList<String>
releaseModule(String mod, RpcContext... jsonRpcContext)
Original spec-file function name: release_modulevoid
removeModuleOwnership(RemoveModuleOwnershipParams params, RpcContext... jsonRpcContext)
Original spec-file function name: remove_module_ownershipTuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>
renameObject(RenameObjectParams params, RpcContext... jsonRpcContext)
Original spec-file function name: rename_objectTuple9<Long,String,String,String,Long,String,String,String,Map<String,String>>
renameWorkspace(RenameWorkspaceParams params, RpcContext... jsonRpcContext)
Original spec-file function name: rename_workspacevoid
requestModuleOwnership(String mod, RpcContext... jsonRpcContext)
Original spec-file function name: request_module_ownershipTuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>
revertObject(ObjectIdentity object, RpcContext... jsonRpcContext)
Original spec-file function name: revert_objectTuple12<String,String,String,Long,String,String,String,String,String,String,Map<String,String>,Long>
saveObject(SaveObjectParams params, RpcContext... jsonRpcContext)
Deprecated.Workspace.save_objectsList<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>>
saveObjects(SaveObjectsParams params, RpcContext... jsonRpcContext)
Original spec-file function name: save_objectsvoid
setAllSSLCertificatesTrusted(boolean trustAll)
Set whether all SSL certificates, including self-signed certificates, should be trusted.void
setAuthAllowedForHttp(boolean isAuthAllowedForHttp)
Deprecated.void
setConnectionReadTimeOut(Integer milliseconds)
Set the timeout between establishing a connection to a server and receiving a response.void
setGlobalPermission(SetGlobalPermissionsParams params, RpcContext... jsonRpcContext)
Original spec-file function name: set_global_permissionvoid
setIsInsecureHttpConnectionAllowed(boolean allowed)
Set whether insecure http (vs https) connections should be allowed by this client.void
setPermissions(SetPermissionsParams params, RpcContext... jsonRpcContext)
Original spec-file function name: set_permissionsvoid
setServiceVersion(String newValue)
void
setStreamingModeOn(boolean streamRequest)
Sets streaming mode on.void
setWorkspaceDescription(SetWorkspaceDescriptionParams params, RpcContext... jsonRpcContext)
Original spec-file function name: set_workspace_descriptionMap<String,Object>
status(RpcContext... jsonRpcContext)
Map<String,List<String>>
translateFromMD5Types(List<String> md5Types, RpcContext... jsonRpcContext)
Original spec-file function name: translate_from_MD5_typesMap<String,String>
translateToMD5Types(List<String> semTypes, RpcContext... jsonRpcContext)
Original spec-file function name: translate_to_MD5_typesvoid
undeleteObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Original spec-file function name: undelete_objectsvoid
unhideObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext)
Original spec-file function name: unhide_objectsString
ver(RpcContext... jsonRpcContext)
Original spec-file function name: ver
-
-
-
Constructor Detail
-
WorkspaceClient
public WorkspaceClient()
Constructs a client with the default url and no user credentials.
-
WorkspaceClient
public WorkspaceClient(URL url)
Constructs a client with a custom URL and no user credentials.- Parameters:
url
- the URL of the service.
-
WorkspaceClient
public WorkspaceClient(URL url, AuthToken token) throws UnauthorizedException, IOException
Constructs a client with a custom URL.- Parameters:
url
- the URL of the service.token
- the user's authorization token.- Throws:
UnauthorizedException
- if the token is not valid.IOException
- if an IOException occurs when checking the token's validity.
-
WorkspaceClient
public WorkspaceClient(URL url, String user, String password) throws UnauthorizedException, IOException
Constructs a client with a custom URL.- Parameters:
url
- the URL of the service.user
- the user name.password
- the password for the user name.- Throws:
UnauthorizedException
- if the credentials are not valid.IOException
- if an IOException occurs when checking the user's credentials.
-
WorkspaceClient
public WorkspaceClient(URL url, String user, String password, URL auth) throws UnauthorizedException, IOException
Constructs a client with a custom URL and a custom authorization service URL.- Parameters:
url
- the URL of the service.user
- the user name.password
- the password for the user name.auth
- the URL of the authorization server.- Throws:
UnauthorizedException
- if the credentials are not valid.IOException
- if an IOException occurs when checking the user's credentials.
-
WorkspaceClient
public WorkspaceClient(AuthToken token) throws UnauthorizedException, IOException
Constructs a client with the default URL.- Parameters:
token
- the user's authorization token.- Throws:
UnauthorizedException
- if the token is not valid.IOException
- if an IOException occurs when checking the token's validity.
-
WorkspaceClient
public WorkspaceClient(String user, String password) throws UnauthorizedException, IOException
Constructs a client with the default URL.- Parameters:
user
- the user name.password
- the password for the user name.- Throws:
UnauthorizedException
- if the credentials are not valid.IOException
- if an IOException occurs when checking the user's credentials.
-
-
Method Detail
-
getToken
public AuthToken getToken()
Get the token this client uses to communicate with the server.- Returns:
- the authorization token.
-
getURL
public URL getURL()
Get the URL of the service with which this client communicates.- Returns:
- the service URL.
-
setConnectionReadTimeOut
public void setConnectionReadTimeOut(Integer milliseconds)
Set the timeout between establishing a connection to a server and receiving a response. A value of zero or null implies no timeout.- Parameters:
milliseconds
- the milliseconds to wait before timing out when attempting to read from a server.
-
isInsecureHttpConnectionAllowed
public boolean isInsecureHttpConnectionAllowed()
Check if this client allows insecure http (vs https) connections.- Returns:
- true if insecure connections are allowed.
-
isAuthAllowedForHttp
public boolean isAuthAllowedForHttp()
Deprecated.Deprecated. Use isInsecureHttpConnectionAllowed().
-
setIsInsecureHttpConnectionAllowed
public void setIsInsecureHttpConnectionAllowed(boolean allowed)
Set whether insecure http (vs https) connections should be allowed by this client.- Parameters:
allowed
- true to allow insecure connections. Default false
-
setAuthAllowedForHttp
public void setAuthAllowedForHttp(boolean isAuthAllowedForHttp)
Deprecated.Deprecated. Use setIsInsecureHttpConnectionAllowed().
-
setAllSSLCertificatesTrusted
public void setAllSSLCertificatesTrusted(boolean trustAll)
Set whether all SSL certificates, including self-signed certificates, should be trusted.- Parameters:
trustAll
- true to trust all certificates. Default false.
-
isAllSSLCertificatesTrusted
public boolean isAllSSLCertificatesTrusted()
Check if this client trusts all SSL certificates, including self-signed certificates.- Returns:
- true if all certificates are trusted.
-
setStreamingModeOn
public void setStreamingModeOn(boolean streamRequest)
Sets streaming mode on. In this case, the data will be streamed to the server in chunks as it is read from disk rather than buffered in memory. Many servers are not compatible with this feature.- Parameters:
streamRequest
- true to set streaming mode on, false otherwise.
-
isStreamingModeOn
public boolean isStreamingModeOn()
Returns true if streaming mode is on.- Returns:
- true if streaming mode is on.
-
_setFileForNextRpcResponse
public void _setFileForNextRpcResponse(File f)
-
getServiceVersion
public String getServiceVersion()
-
setServiceVersion
public void setServiceVersion(String newValue)
-
ver
public String ver(RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: ver
Returns the version of the workspace service.
- Returns:
- parameter "ver" of String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
createWorkspace
public Tuple9<Long,String,String,String,Long,String,String,String,Map<String,String>> createWorkspace(CreateWorkspaceParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: create_workspace
Creates a new workspace.
- Parameters:
params
- instance of typeCreateWorkspaceParams
- Returns:
- parameter "info" of original type "workspace_info" (Information about a workspace. ws_id id - the numerical ID of the workspace. ws_name workspace - name of the workspace. username owner - name of the user who owns (e.g. created) this workspace. timestamp moddate - date when the workspace was last modified. int max_objid - the maximum object ID appearing in this workspace. Since cloning a workspace preserves object IDs, this number may be greater than the number of objects in a newly cloned workspace. permission user_permission - permissions for the authenticated user of this workspace. permission globalread - whether this workspace is globally readable. lock_status lockstat - the status of the workspace lock. usermeta metadata - arbitrary user-supplied metadata about the workspace.) → tuple of size 9: parameter "id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "max_objid" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "globalread" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "lockstat" of original type "lock_status" (The lock status of a workspace. One of 'unlocked', 'locked', or 'published'.), parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
alterWorkspaceMetadata
public void alterWorkspaceMetadata(AlterWorkspaceMetadataParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: alter_workspace_metadata
Change the metadata associated with a workspace.
- Parameters:
params
- instance of typeAlterWorkspaceMetadataParams
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
cloneWorkspace
public Tuple9<Long,String,String,String,Long,String,String,String,Map<String,String>> cloneWorkspace(CloneWorkspaceParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: clone_workspace
Clones a workspace.
- Parameters:
params
- instance of typeCloneWorkspaceParams
- Returns:
- parameter "info" of original type "workspace_info" (Information about a workspace. ws_id id - the numerical ID of the workspace. ws_name workspace - name of the workspace. username owner - name of the user who owns (e.g. created) this workspace. timestamp moddate - date when the workspace was last modified. int max_objid - the maximum object ID appearing in this workspace. Since cloning a workspace preserves object IDs, this number may be greater than the number of objects in a newly cloned workspace. permission user_permission - permissions for the authenticated user of this workspace. permission globalread - whether this workspace is globally readable. lock_status lockstat - the status of the workspace lock. usermeta metadata - arbitrary user-supplied metadata about the workspace.) → tuple of size 9: parameter "id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "max_objid" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "globalread" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "lockstat" of original type "lock_status" (The lock status of a workspace. One of 'unlocked', 'locked', or 'published'.), parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
lockWorkspace
public Tuple9<Long,String,String,String,Long,String,String,String,Map<String,String>> lockWorkspace(WorkspaceIdentity wsi, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: lock_workspace
Lock a workspace, preventing further changes. WARNING: Locking a workspace is permanent. A workspace, once locked, cannot be unlocked. The only changes allowed for a locked workspace are changing user based permissions or making a private workspace globally readable, thus permanently publishing the workspace. A locked, globally readable workspace cannot be made private.
- Parameters:
wsi
- instance of typeWorkspaceIdentity
- Returns:
- parameter "info" of original type "workspace_info" (Information about a workspace. ws_id id - the numerical ID of the workspace. ws_name workspace - name of the workspace. username owner - name of the user who owns (e.g. created) this workspace. timestamp moddate - date when the workspace was last modified. int max_objid - the maximum object ID appearing in this workspace. Since cloning a workspace preserves object IDs, this number may be greater than the number of objects in a newly cloned workspace. permission user_permission - permissions for the authenticated user of this workspace. permission globalread - whether this workspace is globally readable. lock_status lockstat - the status of the workspace lock. usermeta metadata - arbitrary user-supplied metadata about the workspace.) → tuple of size 9: parameter "id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "max_objid" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "globalread" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "lockstat" of original type "lock_status" (The lock status of a workspace. One of 'unlocked', 'locked', or 'published'.), parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getWorkspacemeta
public Tuple7<String,String,String,Long,String,String,Long> getWorkspacemeta(GetWorkspacemetaParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_workspace_infoOriginal spec-file function name: get_workspacemeta
Retrieves the metadata associated with the specified workspace. Provided for backwards compatibility.
- Parameters:
params
- instance of typeGetWorkspacemetaParams
(original type "get_workspacemeta_params")- Returns:
- parameter "metadata" of original type "workspace_metadata" (Meta data associated with a workspace. Provided for backwards compatibility. To be replaced by workspace_info. ws_name id - name of the workspace username owner - name of the user who owns (who created) this workspace timestamp moddate - date when the workspace was last modified int objects - the approximate number of objects currently stored in the workspace. permission user_permission - permissions for the currently logged in user for the workspace permission global_permission - default permissions for the workspace for all KBase users ws_id num_id - numerical ID of the workspace @deprecated Workspace.workspace_info) → tuple of size 7: parameter "id" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "objects" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "global_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "num_id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getWorkspaceInfo
public Tuple9<Long,String,String,String,Long,String,String,String,Map<String,String>> getWorkspaceInfo(WorkspaceIdentity wsi, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_workspace_info
Get information associated with a workspace.
- Parameters:
wsi
- instance of typeWorkspaceIdentity
- Returns:
- parameter "info" of original type "workspace_info" (Information about a workspace. ws_id id - the numerical ID of the workspace. ws_name workspace - name of the workspace. username owner - name of the user who owns (e.g. created) this workspace. timestamp moddate - date when the workspace was last modified. int max_objid - the maximum object ID appearing in this workspace. Since cloning a workspace preserves object IDs, this number may be greater than the number of objects in a newly cloned workspace. permission user_permission - permissions for the authenticated user of this workspace. permission globalread - whether this workspace is globally readable. lock_status lockstat - the status of the workspace lock. usermeta metadata - arbitrary user-supplied metadata about the workspace.) → tuple of size 9: parameter "id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "max_objid" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "globalread" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "lockstat" of original type "lock_status" (The lock status of a workspace. One of 'unlocked', 'locked', or 'published'.), parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getWorkspaceDescription
public String getWorkspaceDescription(WorkspaceIdentity wsi, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_workspace_description
Get a workspace's description.
- Parameters:
wsi
- instance of typeWorkspaceIdentity
- Returns:
- parameter "description" of String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
setPermissions
public void setPermissions(SetPermissionsParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: set_permissions
Set permissions for a workspace.
- Parameters:
params
- instance of typeSetPermissionsParams
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
setGlobalPermission
public void setGlobalPermission(SetGlobalPermissionsParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: set_global_permission
Set the global permission for a workspace.
- Parameters:
params
- instance of typeSetGlobalPermissionsParams
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
setWorkspaceDescription
public void setWorkspaceDescription(SetWorkspaceDescriptionParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: set_workspace_description
Set the description for a workspace.
- Parameters:
params
- instance of typeSetWorkspaceDescriptionParams
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getPermissionsMass
public WorkspacePermissions getPermissionsMass(GetPermissionsMassParams mass, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_permissions_mass
Get permissions for multiple workspaces.
- Parameters:
mass
- instance of typeGetPermissionsMassParams
- Returns:
- parameter "perms" of type
WorkspacePermissions
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getPermissions
public Map<String,String> getPermissions(WorkspaceIdentity wsi, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.get_permissions_massOriginal spec-file function name: get_permissions
Get permissions for a workspace.
- Parameters:
wsi
- instance of typeWorkspaceIdentity
- Returns:
- parameter "perms" of mapping from original type "username" (Login name of a KBase user account.) to original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
saveObject
public Tuple12<String,String,String,Long,String,String,String,String,String,String,Map<String,String>,Long> saveObject(SaveObjectParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.save_objectsOriginal spec-file function name: save_object
Saves the input object data and metadata into the selected workspace, returning the object_metadata of the saved object. Provided for backwards compatibility.
- Parameters:
params
- instance of typeSaveObjectParams
(original type "save_object_params")- Returns:
- parameter "metadata" of original type "object_metadata" (Meta data associated with an object stored in a workspace. Provided for backwards compatibility. obj_name id - name of the object. type_string type - type of the object. timestamp moddate - date when the object was saved obj_ver instance - the version of the object string command - Deprecated. Always returns the empty string. username lastmodifier - name of the user who last saved the object, including copying the object username owner - Deprecated. Same as lastmodifier. ws_name workspace - name of the workspace in which the object is stored string ref - Deprecated. Always returns the empty string. string chsum - the md5 checksum of the object. usermeta metadata - arbitrary user-supplied metadata about the object. obj_id objid - the numerical id of the object. @deprecated object_info) → tuple of size 12: parameter "id" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "instance" of Long, parameter "command" of String, parameter "lastmodifier" of original type "username" (Login name of a KBase user account.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "ref" of String, parameter "chsum" of String, parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String, parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
saveObjects
public List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>> saveObjects(SaveObjectsParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: save_objects
Save objects to the workspace. Saving over a deleted object undeletes it.
- Parameters:
params
- instance of typeSaveObjectsParams
- Returns:
- parameter "info" of list of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObject
public GetObjectOutput getObject(GetObjectParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_objectsOriginal spec-file function name: get_object
Retrieves the specified object from the specified workspace. Both the object data and metadata are returned. Provided for backwards compatibility.
- Parameters:
params
- instance of typeGetObjectParams
(original type "get_object_params")- Returns:
- parameter "output" of type
GetObjectOutput
(original type "get_object_output") - Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjectProvenance
public List<ObjectProvenanceInfo> getObjectProvenance(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_objects2Original spec-file function name: get_object_provenance
DEPRECATED Get object provenance from the workspace.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Returns:
- parameter "data" of list of type
ObjectProvenanceInfo
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjects
public List<ObjectData> getObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_objects2Original spec-file function name: get_objects
DEPRECATED Get objects from the workspace.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Returns:
- parameter "data" of list of type
ObjectData
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjects2
public GetObjects2Results getObjects2(GetObjects2Params params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_objects2
Get objects from the workspace.
- Parameters:
params
- instance of typeGetObjects2Params
- Returns:
- parameter "results" of type
GetObjects2Results
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjectSubset
public List<ObjectData> getObjectSubset(List<SubObjectIdentity> subObjectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_objects2Original spec-file function name: get_object_subset
DEPRECATED Get portions of objects from the workspace. When selecting a subset of an array in an object, the returned array is compressed to the size of the subset, but the ordering of the array is maintained. For example, if the array stored at the 'feature' key of a Genome object has 4000 entries, and the object paths provided are: /feature/7 /feature/3015 /feature/700 The returned feature array will be of length three and the entries will consist, in order, of the 7th, 700th, and 3015th entries of the original array.
- Parameters:
subObjectIds
- instance of list of typeSubObjectIdentity
- Returns:
- parameter "data" of list of type
ObjectData
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjectHistory
public List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>> getObjectHistory(ObjectIdentity object, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_object_history
Get an object's history. The version argument of the ObjectIdentity is ignored.
- Parameters:
object
- instance of typeObjectIdentity
- Returns:
- parameter "history" of list of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listReferencingObjects
public List<List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>>> listReferencingObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: list_referencing_objects
List objects that reference one or more specified objects. References in the deleted state are not returned.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Returns:
- parameter "referrers" of list of list of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listReferencingObjectCounts
public List<Long> listReferencingObjectCounts(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Original spec-file function name: list_referencing_object_counts
DEPRECATED List the number of times objects have been referenced. This count includes both provenance and object-to-object references and, unlike list_referencing_objects, includes objects that are inaccessible to the user.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Returns:
- parameter "counts" of list of Long
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getReferencedObjects
public List<ObjectData> getReferencedObjects(List<List<ObjectIdentity>> refChains, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_objects2Original spec-file function name: get_referenced_objects
DEPRECATED Get objects by references from other objects. NOTE: In the vast majority of cases, this method is not necessary and get_objects should be used instead. get_referenced_objects guarantees that a user that has access to an object can always see a) objects that are referenced inside the object and b) objects that are referenced in the object's provenance. This ensures that the user has visibility into the entire provenance of the object and the object's object dependencies (e.g. references). The user must have at least read access to the first object in each reference chain, but need not have access to any further objects in the chain, and those objects may be deleted.
- Parameters:
refChains
- instance of list of original type "ref_chain" (A chain of objects with references to one another. An object reference chain consists of a list of objects where the nth object possesses a reference, either in the object itself or in the object provenance, to the n+1th object.) → list of typeObjectIdentity
- Returns:
- parameter "data" of list of type
ObjectData
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listWorkspaces
public List<Tuple7<String,String,String,Long,String,String,Long>> listWorkspaces(ListWorkspacesParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.list_workspace_infoOriginal spec-file function name: list_workspaces
Lists the metadata of all workspaces a user has access to. Provided for backwards compatibility - to be replaced by the functionality of list_workspace_info
- Parameters:
params
- instance of typeListWorkspacesParams
(original type "list_workspaces_params")- Returns:
- parameter "workspaces" of list of original type "workspace_metadata" (Meta data associated with a workspace. Provided for backwards compatibility. To be replaced by workspace_info. ws_name id - name of the workspace username owner - name of the user who owns (who created) this workspace timestamp moddate - date when the workspace was last modified int objects - the approximate number of objects currently stored in the workspace. permission user_permission - permissions for the currently logged in user for the workspace permission global_permission - default permissions for the workspace for all KBase users ws_id num_id - numerical ID of the workspace @deprecated Workspace.workspace_info) → tuple of size 7: parameter "id" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "objects" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "global_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "num_id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listWorkspaceInfo
public List<Tuple9<Long,String,String,String,Long,String,String,String,Map<String,String>>> listWorkspaceInfo(ListWorkspaceInfoParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: list_workspace_info
List workspaces viewable by the user.
- Parameters:
params
- instance of typeListWorkspaceInfoParams
- Returns:
- parameter "wsinfo" of list of original type "workspace_info" (Information about a workspace. ws_id id - the numerical ID of the workspace. ws_name workspace - name of the workspace. username owner - name of the user who owns (e.g. created) this workspace. timestamp moddate - date when the workspace was last modified. int max_objid - the maximum object ID appearing in this workspace. Since cloning a workspace preserves object IDs, this number may be greater than the number of objects in a newly cloned workspace. permission user_permission - permissions for the authenticated user of this workspace. permission globalread - whether this workspace is globally readable. lock_status lockstat - the status of the workspace lock. usermeta metadata - arbitrary user-supplied metadata about the workspace.) → tuple of size 9: parameter "id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "max_objid" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "globalread" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "lockstat" of original type "lock_status" (The lock status of a workspace. One of 'unlocked', 'locked', or 'published'.), parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listWorkspaceIds
public ListWorkspaceIDsResults listWorkspaceIds(ListWorkspaceIDsParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: list_workspace_ids
List workspace IDs to which the user has access. This function returns a subset of the information in the list_workspace_info method and should be substantially faster.
- Parameters:
params
- instance of typeListWorkspaceIDsParams
- Returns:
- parameter "results" of type
ListWorkspaceIDsResults
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listWorkspaceObjects
public List<Tuple12<String,String,String,Long,String,String,String,String,String,String,Map<String,String>,Long>> listWorkspaceObjects(ListWorkspaceObjectsParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.list_objectsOriginal spec-file function name: list_workspace_objects
Lists the metadata of all objects in the specified workspace with the specified type (or with any type). Provided for backwards compatibility.
- Parameters:
params
- instance of typeListWorkspaceObjectsParams
(original type "list_workspace_objects_params")- Returns:
- parameter "objects" of list of original type "object_metadata" (Meta data associated with an object stored in a workspace. Provided for backwards compatibility. obj_name id - name of the object. type_string type - type of the object. timestamp moddate - date when the object was saved obj_ver instance - the version of the object string command - Deprecated. Always returns the empty string. username lastmodifier - name of the user who last saved the object, including copying the object username owner - Deprecated. Same as lastmodifier. ws_name workspace - name of the workspace in which the object is stored string ref - Deprecated. Always returns the empty string. string chsum - the md5 checksum of the object. usermeta metadata - arbitrary user-supplied metadata about the object. obj_id objid - the numerical id of the object. @deprecated object_info) → tuple of size 12: parameter "id" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "instance" of Long, parameter "command" of String, parameter "lastmodifier" of original type "username" (Login name of a KBase user account.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "ref" of String, parameter "chsum" of String, parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String, parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listObjects
public List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>> listObjects(ListObjectsParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: list_objects
List objects in one or more workspaces.
- Parameters:
params
- instance of typeListObjectsParams
- Returns:
- parameter "objinfo" of list of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjectmeta
public Tuple12<String,String,String,Long,String,String,String,String,String,String,Map<String,String>,Long> getObjectmeta(GetObjectmetaParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_object_info3Original spec-file function name: get_objectmeta
Retrieves the metadata for a specified object from the specified workspace. Provides access to metadata for all versions of the object via the instance parameter. Provided for backwards compatibility.
- Parameters:
params
- instance of typeGetObjectmetaParams
(original type "get_objectmeta_params")- Returns:
- parameter "metadata" of original type "object_metadata" (Meta data associated with an object stored in a workspace. Provided for backwards compatibility. obj_name id - name of the object. type_string type - type of the object. timestamp moddate - date when the object was saved obj_ver instance - the version of the object string command - Deprecated. Always returns the empty string. username lastmodifier - name of the user who last saved the object, including copying the object username owner - Deprecated. Same as lastmodifier. ws_name workspace - name of the workspace in which the object is stored string ref - Deprecated. Always returns the empty string. string chsum - the md5 checksum of the object. usermeta metadata - arbitrary user-supplied metadata about the object. obj_id objid - the numerical id of the object. @deprecated object_info) → tuple of size 12: parameter "id" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "instance" of Long, parameter "command" of String, parameter "lastmodifier" of original type "username" (Login name of a KBase user account.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "ref" of String, parameter "chsum" of String, parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String, parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjectInfo
public List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>> getObjectInfo(List<ObjectIdentity> objectIds, Long includeMetadata, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_object_info3Original spec-file function name: get_object_info
Get information about objects from the workspace. Set includeMetadata true to include the user specified metadata. Otherwise the metadata in the object_info will be null. This method will be replaced by the behavior of get_object_info_new in the future.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
includeMetadata
- instance of original type "boolean" (A boolean. 0 = false, other = true.)- Returns:
- parameter "info" of list of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjectInfoNew
public List<Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>>> getObjectInfoNew(GetObjectInfoNewParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Workspace.get_object_info3Original spec-file function name: get_object_info_new
Get information about objects from the workspace.
- Parameters:
params
- instance of typeGetObjectInfoNewParams
- Returns:
- parameter "info" of list of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getObjectInfo3
public GetObjectInfo3Results getObjectInfo3(GetObjectInfo3Params params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_object_info3
- Parameters:
params
- instance of typeGetObjectInfo3Params
- Returns:
- parameter "results" of type
GetObjectInfo3Results
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
renameWorkspace
public Tuple9<Long,String,String,String,Long,String,String,String,Map<String,String>> renameWorkspace(RenameWorkspaceParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: rename_workspace
Rename a workspace.
- Parameters:
params
- instance of typeRenameWorkspaceParams
- Returns:
- parameter "renamed" of original type "workspace_info" (Information about a workspace. ws_id id - the numerical ID of the workspace. ws_name workspace - name of the workspace. username owner - name of the user who owns (e.g. created) this workspace. timestamp moddate - date when the workspace was last modified. int max_objid - the maximum object ID appearing in this workspace. Since cloning a workspace preserves object IDs, this number may be greater than the number of objects in a newly cloned workspace. permission user_permission - permissions for the authenticated user of this workspace. permission globalread - whether this workspace is globally readable. lock_status lockstat - the status of the workspace lock. usermeta metadata - arbitrary user-supplied metadata about the workspace.) → tuple of size 9: parameter "id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "max_objid" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "globalread" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "lockstat" of original type "lock_status" (The lock status of a workspace. One of 'unlocked', 'locked', or 'published'.), parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
renameObject
public Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>> renameObject(RenameObjectParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: rename_object
Rename an object. User meta data is always returned as null.
- Parameters:
params
- instance of typeRenameObjectParams
- Returns:
- parameter "renamed" of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
copyObject
public Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>> copyObject(CopyObjectParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: copy_object
Copy an object. Returns the object_info for the newest version.
- Parameters:
params
- instance of typeCopyObjectParams
- Returns:
- parameter "copied" of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
revertObject
public Tuple11<Long,String,String,String,Long,String,Long,String,String,Long,Map<String,String>> revertObject(ObjectIdentity object, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: revert_object
Revert an object. The object specified in the ObjectIdentity is reverted to the version specified in the ObjectIdentity.
- Parameters:
object
- instance of typeObjectIdentity
- Returns:
- parameter "reverted" of original type "object_info" (Information about an object, including user provided metadata. obj_id objid - the numerical id of the object. obj_name name - the name of the object. type_string type - the type of the object. timestamp save_date - the save date of the object. obj_ver ver - the version of the object. username saved_by - the user that saved or copied the object. ws_id wsid - the workspace containing the object. ws_name workspace - the workspace containing the object. string chsum - the md5 checksum of the object. int size - the size of the object in bytes. usermeta meta - arbitrary user-supplied metadata about the object.) → tuple of size 11: parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.), parameter "name" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "save_date" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "version" of Long, parameter "saved_by" of original type "username" (Login name of a KBase user account.), parameter "wsid" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "chsum" of String, parameter "size" of Long, parameter "meta" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getNamesByPrefix
public GetNamesByPrefixResults getNamesByPrefix(GetNamesByPrefixParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_names_by_prefix
Get object names matching a prefix. At most 1000 names are returned. No particular ordering is guaranteed, nor is which names will be returned if more than 1000 are found. This function is intended for use as an autocomplete helper function.
- Parameters:
params
- instance of typeGetNamesByPrefixParams
- Returns:
- parameter "res" of type
GetNamesByPrefixResults
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
hideObjects
public void hideObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: hide_objects
Hide objects. All versions of an object are hidden, regardless of the version specified in the ObjectIdentity. Hidden objects do not appear in the list_objects method.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
unhideObjects
public void unhideObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: unhide_objects
Unhide objects. All versions of an object are unhidden, regardless of the version specified in the ObjectIdentity.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
deleteObjects
public void deleteObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: delete_objects
Delete objects. All versions of an object are deleted, regardless of the version specified in the ObjectIdentity.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
undeleteObjects
public void undeleteObjects(List<ObjectIdentity> objectIds, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: undelete_objects
Undelete objects. All versions of an object are undeleted, regardless of the version specified in the ObjectIdentity. If an object is not deleted, no error is thrown.
- Parameters:
objectIds
- instance of list of typeObjectIdentity
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
deleteWorkspace
public void deleteWorkspace(WorkspaceIdentity wsi, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: delete_workspace
Delete a workspace. All objects contained in the workspace are deleted.
- Parameters:
wsi
- instance of typeWorkspaceIdentity
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
requestModuleOwnership
public void requestModuleOwnership(String mod, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: request_module_ownership
Request ownership of a module name. A Workspace administrator must approve the request.
- Parameters:
mod
- instance of original type "modulename" (A module name defined in a KIDL typespec.)- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
registerTypespec
public Map<String,String> registerTypespec(RegisterTypespecParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: register_typespec
Register a new typespec or recompile a previously registered typespec with new options. See the documentation of RegisterTypespecParams for more details. Also see the release_types function.
- Parameters:
params
- instance of typeRegisterTypespecParams
- Returns:
- instance of mapping from original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1) to original type "jsonschema" (The JSON Schema (v4) representation of a type definition.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
registerTypespecCopy
public Long registerTypespecCopy(RegisterTypespecCopyParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: register_typespec_copy
Register a copy of new typespec or refresh an existing typespec which is loaded from another workspace for synchronization. Method returns new version of module in current workspace. Also see the release_types function.
- Parameters:
params
- instance of typeRegisterTypespecCopyParams
- Returns:
- parameter "new_local_version" of original type "spec_version" (The version of a typespec file.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
releaseModule
public List<String> releaseModule(String mod, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: release_module
Release a module for general use of its types. Releases the most recent version of a module. Releasing a module does two things to the module's types: 1) If a type's major version is 0, it is changed to 1. A major version of 0 implies that the type is in development and may have backwards incompatible changes from minor version to minor version. Once a type is released, backwards incompatible changes always cause a major version increment. 2) This version of the type becomes the default version, and if a specific version is not supplied in a function call, this version will be used. This means that newer, unreleased versions of the type may be skipped.
- Parameters:
mod
- instance of original type "modulename" (A module name defined in a KIDL typespec.)- Returns:
- parameter "types" of list of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listModules
public List<String> listModules(ListModulesParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: list_modules
List typespec modules.
- Parameters:
params
- instance of typeListModulesParams
- Returns:
- parameter "modules" of list of original type "modulename" (A module name defined in a KIDL typespec.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listModuleVersions
public ModuleVersions listModuleVersions(ListModuleVersionsParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: list_module_versions
List typespec module versions.
- Parameters:
params
- instance of typeListModuleVersionsParams
- Returns:
- parameter "vers" of type
ModuleVersions
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getModuleInfo
public ModuleInfo getModuleInfo(GetModuleInfoParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_module_info
- Parameters:
params
- instance of typeGetModuleInfoParams
- Returns:
- parameter "info" of type
ModuleInfo
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getJsonschema
public String getJsonschema(String type, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_jsonschema
Get JSON schema for a type.
- Parameters:
type
- instance of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)- Returns:
- parameter "schema" of original type "jsonschema" (The JSON Schema (v4) representation of a type definition.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
translateFromMD5Types
public Map<String,List<String>> translateFromMD5Types(List<String> md5Types, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: translate_from_MD5_types
Translation from types qualified with MD5 to their semantic versions
- Parameters:
md5Types
- instance of list of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)- Returns:
- parameter "sem_types" of mapping from original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1) to list of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
translateToMD5Types
public Map<String,String> translateToMD5Types(List<String> semTypes, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: translate_to_MD5_types
Translation from types qualified with semantic versions to their MD5'ed versions
- Parameters:
semTypes
- instance of list of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)- Returns:
- parameter "md5_types" of mapping from original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1) to original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getTypeInfo
public TypeInfo getTypeInfo(String type, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_type_info
- Parameters:
type
- instance of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)- Returns:
- parameter "info" of type
TypeInfo
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getAllTypeInfo
public List<TypeInfo> getAllTypeInfo(String mod, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_all_type_info
- Parameters:
mod
- instance of original type "modulename" (A module name defined in a KIDL typespec.)- Returns:
- instance of list of type
TypeInfo
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getFuncInfo
public FuncInfo getFuncInfo(String func, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Original spec-file function name: get_func_info
- Parameters:
func
- instance of original type "func_string" (A function string for referencing a funcdef. Specifies the function and its version in a single string in the format [modulename].[funcname]-[major].[minor]: modulename - a string. The name of the module containing the function. funcname - a string. The name of the function as assigned by the funcdef statement. major - an integer. The major version of the function. A change in the major version implies the function has changed in a non-backwards compatible way. minor - an integer. The minor version of the function. A change in the minor version implies that the function has changed in a way that is backwards compatible with previous function definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyFunc-3.1)- Returns:
- parameter "info" of type
FuncInfo
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getAllFuncInfo
public List<FuncInfo> getAllFuncInfo(String mod, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Deprecated.Original spec-file function name: get_all_func_info
- Parameters:
mod
- instance of original type "modulename" (A module name defined in a KIDL typespec.)- Returns:
- parameter "info" of list of type
FuncInfo
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
grantModuleOwnership
public void grantModuleOwnership(GrantModuleOwnershipParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: grant_module_ownership
Grant ownership of a module. You must have grant ability on the module.
- Parameters:
params
- instance of typeGrantModuleOwnershipParams
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
removeModuleOwnership
public void removeModuleOwnership(RemoveModuleOwnershipParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: remove_module_ownership
Remove ownership from a current owner. You must have the grant ability on the module.
- Parameters:
params
- instance of typeRemoveModuleOwnershipParams
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
listAllTypes
public Map<String,Map<String,String>> listAllTypes(ListAllTypesParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: list_all_types
List all released types with released version from all modules. Return mapping from module name to mapping from type name to released type version.
- Parameters:
params
- instance of typeListAllTypesParams
- Returns:
- instance of mapping from original type "modulename" (A module name defined in a KIDL typespec.) to mapping from original type "typename" (A type definition name in a KIDL typespec.) to original type "typever" (A version of a type. Specifies the version of the type in a single string in the format [major].[minor]: major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions.)
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
getAdminRole
public GetAdminRoleResults getAdminRole(RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: get_admin_role
Get the administrative role for the current user.
- Returns:
- parameter "results" of type
GetAdminRoleResults
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
alterAdminObjectMetadata
public void alterAdminObjectMetadata(AlterAdminObjectMetadataParams params, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: alter_admin_object_metadata
Update admin metadata for an object. The user must have full workspace service administration privileges.
- Parameters:
params
- instance of typeAlterAdminObjectMetadataParams
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
administer
public UObject administer(UObject command, RpcContext... jsonRpcContext) throws IOException, JsonClientException
Original spec-file function name: administer
The administration interface.
- Parameters:
command
- instance of unspecified object- Returns:
- parameter "response" of unspecified object
- Throws:
IOException
- if an IO exception occursJsonClientException
- if a JSON RPC exception occurs
-
status
public Map<String,Object> status(RpcContext... jsonRpcContext) throws IOException, JsonClientException
- Throws:
IOException
JsonClientException
-
-