Class WorkspaceClient


  • public class WorkspaceClient
    extends java.lang.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​(java.lang.String user, java.lang.String password)
      Constructs a client with the default URL.
      WorkspaceClient​(java.net.URL url)
      Constructs a client with a custom URL and no user credentials.
      WorkspaceClient​(java.net.URL url, java.lang.String user, java.lang.String password)
      Constructs a client with a custom URL.
      WorkspaceClient​(java.net.URL url, java.lang.String user, java.lang.String password, java.net.URL auth)
      Constructs a client with a custom URL and a custom authorization service URL.
      WorkspaceClient​(java.net.URL url, us.kbase.auth.AuthToken token)
      Constructs a client with a custom URL.
      WorkspaceClient​(us.kbase.auth.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​(java.io.File f)  
      UObject administer​(UObject command, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: administer
      void alterAdminObjectMetadata​(AlterAdminObjectMetadataParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: alter_admin_object_metadata
      void alterWorkspaceMetadata​(AlterWorkspaceMetadataParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: alter_workspace_metadata
      Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> cloneWorkspace​(CloneWorkspaceParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: clone_workspace
      Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>> copyObject​(CopyObjectParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: copy_object
      Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> createWorkspace​(CreateWorkspaceParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: create_workspace
      void deleteObjects​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: delete_objects
      void deleteWorkspace​(WorkspaceIdentity wsi, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: delete_workspace
      GetAdminRoleResults getAdminRole​(us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_admin_role
      java.util.List<FuncInfo> getAllFuncInfo​(java.lang.String mod, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      java.util.List<TypeInfo> getAllTypeInfo​(java.lang.String mod, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_all_type_info
      FuncInfo getFuncInfo​(java.lang.String func, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      java.lang.String getJsonschema​(java.lang.String type, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_jsonschema
      ModuleInfo getModuleInfo​(GetModuleInfoParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_module_info
      GetNamesByPrefixResults getNamesByPrefix​(GetNamesByPrefixParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_names_by_prefix
      GetObjectOutput getObject​(GetObjectParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_objects
      java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> getObjectHistory​(ObjectIdentity object, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_object_history
      java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> getObjectInfo​(java.util.List<ObjectIdentity> objectIds, java.lang.Long includeMetadata, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_object_info3
      GetObjectInfo3Results getObjectInfo3​(GetObjectInfo3Params params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_object_info3
      java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> getObjectInfoNew​(GetObjectInfoNewParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_object_info3
      Tuple12<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.lang.Long> getObjectmeta​(GetObjectmetaParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_object_info3
      java.util.List<ObjectProvenanceInfo> getObjectProvenance​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_objects2
      java.util.List<ObjectData> getObjects​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_objects2
      GetObjects2Results getObjects2​(GetObjects2Params params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_objects2
      java.util.List<ObjectData> getObjectSubset​(java.util.List<SubObjectIdentity> subObjectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_objects2
      java.util.Map<java.lang.String,​java.lang.String> getPermissions​(WorkspaceIdentity wsi, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      get_permissions_mass
      WorkspacePermissions getPermissionsMass​(GetPermissionsMassParams mass, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_permissions_mass
      java.util.List<ObjectData> getReferencedObjects​(java.util.List<java.util.List<ObjectIdentity>> refChains, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_objects2
      java.lang.String getServiceVersion()  
      us.kbase.auth.AuthToken getToken()
      Get the token this client uses to communicate with the server.
      TypeInfo getTypeInfo​(java.lang.String type, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_type_info
      java.net.URL getURL()
      Get the URL of the service with which this client communicates.
      java.lang.String getWorkspaceDescription​(WorkspaceIdentity wsi, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_workspace_description
      Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getWorkspaceInfo​(WorkspaceIdentity wsi, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: get_workspace_info
      Tuple7<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long> getWorkspacemeta​(GetWorkspacemetaParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.get_workspace_info
      void grantModuleOwnership​(GrantModuleOwnershipParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: grant_module_ownership
      void hideObjects​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: hide_objects
      boolean 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.
      java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> listAllTypes​(ListAllTypesParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: list_all_types
      java.util.List<java.lang.String> listModules​(ListModulesParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: list_modules
      ModuleVersions listModuleVersions​(ListModuleVersionsParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: list_module_versions
      java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> listObjects​(ListObjectsParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: list_objects
      java.util.List<java.lang.Long> listReferencingObjectCounts​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      java.util.List<java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>>> listReferencingObjects​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: list_referencing_objects
      ListWorkspaceIDsResults listWorkspaceIds​(ListWorkspaceIDsParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: list_workspace_ids
      java.util.List<Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>>> listWorkspaceInfo​(ListWorkspaceInfoParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: list_workspace_info
      java.util.List<Tuple12<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.lang.Long>> listWorkspaceObjects​(ListWorkspaceObjectsParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.list_objects
      java.util.List<Tuple7<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long>> listWorkspaces​(ListWorkspacesParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.list_workspace_info
      Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> lockWorkspace​(WorkspaceIdentity wsi, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: lock_workspace
      java.util.Map<java.lang.String,​java.lang.String> registerTypespec​(RegisterTypespecParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: register_typespec
      java.lang.Long registerTypespecCopy​(RegisterTypespecCopyParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: register_typespec_copy
      java.util.List<java.lang.String> releaseModule​(java.lang.String mod, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: release_module
      void removeModuleOwnership​(RemoveModuleOwnershipParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: remove_module_ownership
      Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>> renameObject​(RenameObjectParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: rename_object
      Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> renameWorkspace​(RenameWorkspaceParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: rename_workspace
      void requestModuleOwnership​(java.lang.String mod, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: request_module_ownership
      Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>> revertObject​(ObjectIdentity object, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: revert_object
      Tuple12<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.lang.Long> saveObject​(SaveObjectParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Deprecated.
      Workspace.save_objects
      java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> saveObjects​(SaveObjectsParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: save_objects
      void setAllSSLCertificatesTrusted​(boolean trustAll)
      Set whether all SSL certificates, including self-signed certificates, should be trusted.
      void setAuthAllowedForHttp​(boolean isAuthAllowedForHttp)
      Deprecated. 
      void setConnectionReadTimeOut​(java.lang.Integer milliseconds)
      Set the timeout between establishing a connection to a server and receiving a response.
      void setGlobalPermission​(SetGlobalPermissionsParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: set_global_permission
      void setIsInsecureHttpConnectionAllowed​(boolean allowed)
      Set whether insecure http (vs https) connections should be allowed by this client.
      void setPermissions​(SetPermissionsParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: set_permissions
      void setServiceVersion​(java.lang.String newValue)  
      void setStreamingModeOn​(boolean streamRequest)
      Sets streaming mode on.
      void setWorkspaceDescription​(SetWorkspaceDescriptionParams params, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: set_workspace_description
      java.util.Map<java.lang.String,​java.lang.Object> status​(us.kbase.common.service.RpcContext... jsonRpcContext)  
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> translateFromMD5Types​(java.util.List<java.lang.String> md5Types, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: translate_from_MD5_types
      java.util.Map<java.lang.String,​java.lang.String> translateToMD5Types​(java.util.List<java.lang.String> semTypes, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: translate_to_MD5_types
      void undeleteObjects​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: undelete_objects
      void unhideObjects​(java.util.List<ObjectIdentity> objectIds, us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: unhide_objects
      java.lang.String ver​(us.kbase.common.service.RpcContext... jsonRpcContext)
      Original spec-file function name: ver
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkspaceClient

        public WorkspaceClient()
        Constructs a client with the default url and no user credentials.
      • WorkspaceClient

        public WorkspaceClient​(java.net.URL url)
        Constructs a client with a custom URL and no user credentials.
        Parameters:
        url - the URL of the service.
      • WorkspaceClient

        public WorkspaceClient​(java.net.URL url,
                               us.kbase.auth.AuthToken token)
                        throws UnauthorizedException,
                               java.io.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.
        java.io.IOException - if an IOException occurs when checking the token's validity.
      • WorkspaceClient

        public WorkspaceClient​(java.net.URL url,
                               java.lang.String user,
                               java.lang.String password)
                        throws UnauthorizedException,
                               java.io.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.
        java.io.IOException - if an IOException occurs when checking the user's credentials.
      • WorkspaceClient

        public WorkspaceClient​(java.net.URL url,
                               java.lang.String user,
                               java.lang.String password,
                               java.net.URL auth)
                        throws UnauthorizedException,
                               java.io.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.
        java.io.IOException - if an IOException occurs when checking the user's credentials.
      • WorkspaceClient

        public WorkspaceClient​(us.kbase.auth.AuthToken token)
                        throws UnauthorizedException,
                               java.io.IOException
        Constructs a client with the default URL.
        Parameters:
        token - the user's authorization token.
        Throws:
        UnauthorizedException - if the token is not valid.
        java.io.IOException - if an IOException occurs when checking the token's validity.
      • WorkspaceClient

        public WorkspaceClient​(java.lang.String user,
                               java.lang.String password)
                        throws UnauthorizedException,
                               java.io.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.
        java.io.IOException - if an IOException occurs when checking the user's credentials.
    • Method Detail

      • getToken

        public us.kbase.auth.AuthToken getToken()
        Get the token this client uses to communicate with the server.
        Returns:
        the authorization token.
      • getURL

        public java.net.URL getURL()
        Get the URL of the service with which this client communicates.
        Returns:
        the service URL.
      • setConnectionReadTimeOut

        public void setConnectionReadTimeOut​(java.lang.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​(java.io.File f)
      • getServiceVersion

        public java.lang.String getServiceVersion()
      • setServiceVersion

        public void setServiceVersion​(java.lang.String newValue)
      • ver

        public java.lang.String ver​(us.kbase.common.service.RpcContext... jsonRpcContext)
                             throws java.io.IOException,
                                    JsonClientException

        Original spec-file function name: ver

         Returns the version of the workspace service.
         
        Returns:
        parameter "ver" of String
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • createWorkspace

        public Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> createWorkspace​(CreateWorkspaceParams params,
                                                                                                                                                                                                                                                                                  us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                           throws java.io.IOException,
                                                                                                                                                                                                                                                                                  JsonClientException

        Original spec-file function name: create_workspace

         Creates a new workspace.
         
        Parameters:
        params - instance of type CreateWorkspaceParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • alterWorkspaceMetadata

        public void alterWorkspaceMetadata​(AlterWorkspaceMetadataParams params,
                                           us.kbase.common.service.RpcContext... jsonRpcContext)
                                    throws java.io.IOException,
                                           JsonClientException

        Original spec-file function name: alter_workspace_metadata

         Change the metadata associated with a workspace.
         
        Parameters:
        params - instance of type AlterWorkspaceMetadataParams
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • cloneWorkspace

        public Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> cloneWorkspace​(CloneWorkspaceParams params,
                                                                                                                                                                                                                                                                                 us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                          throws java.io.IOException,
                                                                                                                                                                                                                                                                                 JsonClientException

        Original spec-file function name: clone_workspace

         Clones a workspace.
         
        Parameters:
        params - instance of type CloneWorkspaceParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • lockWorkspace

        public Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> lockWorkspace​(WorkspaceIdentity wsi,
                                                                                                                                                                                                                                                                                us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                         throws java.io.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 type WorkspaceIdentity
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getWorkspacemeta

        public Tuple7<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long> getWorkspacemeta​(GetWorkspacemetaParams params,
                                                                                                                                                                                               us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                        throws java.io.IOException,
                                                                                                                                                                                               JsonClientException
        Deprecated.
        Workspace.get_workspace_info

        Original spec-file function name: get_workspacemeta

         Retrieves the metadata associated with the specified workspace.
         Provided for backwards compatibility.
        Parameters:
        params - instance of type GetWorkspacemetaParams (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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getWorkspaceInfo

        public Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getWorkspaceInfo​(WorkspaceIdentity wsi,
                                                                                                                                                                                                                                                                                   us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                            throws java.io.IOException,
                                                                                                                                                                                                                                                                                   JsonClientException

        Original spec-file function name: get_workspace_info

         Get information associated with a workspace.
         
        Parameters:
        wsi - instance of type WorkspaceIdentity
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getWorkspaceDescription

        public java.lang.String getWorkspaceDescription​(WorkspaceIdentity wsi,
                                                        us.kbase.common.service.RpcContext... jsonRpcContext)
                                                 throws java.io.IOException,
                                                        JsonClientException

        Original spec-file function name: get_workspace_description

         Get a workspace's description.
         
        Parameters:
        wsi - instance of type WorkspaceIdentity
        Returns:
        parameter "description" of String
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • setPermissions

        public void setPermissions​(SetPermissionsParams params,
                                   us.kbase.common.service.RpcContext... jsonRpcContext)
                            throws java.io.IOException,
                                   JsonClientException

        Original spec-file function name: set_permissions

         Set permissions for a workspace.
         
        Parameters:
        params - instance of type SetPermissionsParams
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • setGlobalPermission

        public void setGlobalPermission​(SetGlobalPermissionsParams params,
                                        us.kbase.common.service.RpcContext... jsonRpcContext)
                                 throws java.io.IOException,
                                        JsonClientException

        Original spec-file function name: set_global_permission

         Set the global permission for a workspace.
         
        Parameters:
        params - instance of type SetGlobalPermissionsParams
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • setWorkspaceDescription

        public void setWorkspaceDescription​(SetWorkspaceDescriptionParams params,
                                            us.kbase.common.service.RpcContext... jsonRpcContext)
                                     throws java.io.IOException,
                                            JsonClientException

        Original spec-file function name: set_workspace_description

         Set the description for a workspace.
         
        Parameters:
        params - instance of type SetWorkspaceDescriptionParams
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getPermissions

        public java.util.Map<java.lang.String,​java.lang.String> getPermissions​(WorkspaceIdentity wsi,
                                                                                     us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                              throws java.io.IOException,
                                                                                     JsonClientException
        Deprecated.
        get_permissions_mass

        Original spec-file function name: get_permissions

         Get permissions for a workspace.
        Parameters:
        wsi - instance of type WorkspaceIdentity
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • saveObject

        public Tuple12<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.lang.Long> saveObject​(SaveObjectParams params,
                                                                                                                                                                                                                                                                                                                                                   us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                            throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                                                   JsonClientException
        Deprecated.
        Workspace.save_objects

        Original 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 type SaveObjectParams (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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • saveObjects

        public java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> saveObjects​(SaveObjectsParams params,
                                                                                                                                                                                                                                                                                                                                         us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                  throws java.io.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 type SaveObjectsParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObject

        public GetObjectOutput getObject​(GetObjectParams params,
                                         us.kbase.common.service.RpcContext... jsonRpcContext)
                                  throws java.io.IOException,
                                         JsonClientException
        Deprecated.
        Workspace.get_objects

        Original 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 type GetObjectParams (original type "get_object_params")
        Returns:
        parameter "output" of type GetObjectOutput (original type "get_object_output")
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObjectProvenance

        public java.util.List<ObjectProvenanceInfo> getObjectProvenance​(java.util.List<ObjectIdentity> objectIds,
                                                                        us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                 throws java.io.IOException,
                                                                        JsonClientException
        Deprecated.
        Workspace.get_objects2

        Original spec-file function name: get_object_provenance

         DEPRECATED
         Get object provenance from the workspace.
        Parameters:
        objectIds - instance of list of type ObjectIdentity
        Returns:
        parameter "data" of list of type ObjectProvenanceInfo
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObjects

        public java.util.List<ObjectData> getObjects​(java.util.List<ObjectIdentity> objectIds,
                                                     us.kbase.common.service.RpcContext... jsonRpcContext)
                                              throws java.io.IOException,
                                                     JsonClientException
        Deprecated.
        Workspace.get_objects2

        Original spec-file function name: get_objects

         DEPRECATED
         Get objects from the workspace.
        Parameters:
        objectIds - instance of list of type ObjectIdentity
        Returns:
        parameter "data" of list of type ObjectData
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObjectSubset

        public java.util.List<ObjectData> getObjectSubset​(java.util.List<SubObjectIdentity> subObjectIds,
                                                          us.kbase.common.service.RpcContext... jsonRpcContext)
                                                   throws java.io.IOException,
                                                          JsonClientException
        Deprecated.
        Workspace.get_objects2

        Original 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 type SubObjectIdentity
        Returns:
        parameter "data" of list of type ObjectData
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObjectHistory

        public java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> getObjectHistory​(ObjectIdentity object,
                                                                                                                                                                                                                                                                                                                                              us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                       throws java.io.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 type ObjectIdentity
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listReferencingObjects

        public java.util.List<java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>>> listReferencingObjects​(java.util.List<ObjectIdentity> objectIds,
                                                                                                                                                                                                                                                                                                                                                                    us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                                             throws java.io.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 type ObjectIdentity
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listReferencingObjectCounts

        public java.util.List<java.lang.Long> listReferencingObjectCounts​(java.util.List<ObjectIdentity> objectIds,
                                                                          us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                   throws java.io.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 type ObjectIdentity
        Returns:
        parameter "counts" of list of Long
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getReferencedObjects

        public java.util.List<ObjectData> getReferencedObjects​(java.util.List<java.util.List<ObjectIdentity>> refChains,
                                                               us.kbase.common.service.RpcContext... jsonRpcContext)
                                                        throws java.io.IOException,
                                                               JsonClientException
        Deprecated.
        Workspace.get_objects2

        Original 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 type ObjectIdentity
        Returns:
        parameter "data" of list of type ObjectData
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listWorkspaces

        public java.util.List<Tuple7<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long>> listWorkspaces​(ListWorkspacesParams params,
                                                                                                                                                                                                             us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                      throws java.io.IOException,
                                                                                                                                                                                                             JsonClientException
        Deprecated.
        Workspace.list_workspace_info

        Original 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 type ListWorkspacesParams (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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listWorkspaceInfo

        public java.util.List<Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>>> listWorkspaceInfo​(ListWorkspaceInfoParams params,
                                                                                                                                                                                                                                                                                                    us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                             throws java.io.IOException,
                                                                                                                                                                                                                                                                                                    JsonClientException

        Original spec-file function name: list_workspace_info

         List workspaces viewable by the user.
         
        Parameters:
        params - instance of type ListWorkspaceInfoParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listWorkspaceIds

        public ListWorkspaceIDsResults listWorkspaceIds​(ListWorkspaceIDsParams params,
                                                        us.kbase.common.service.RpcContext... jsonRpcContext)
                                                 throws java.io.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 type ListWorkspaceIDsParams
        Returns:
        parameter "results" of type ListWorkspaceIDsResults
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listWorkspaceObjects

        public java.util.List<Tuple12<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.lang.Long>> listWorkspaceObjects​(ListWorkspaceObjectsParams params,
                                                                                                                                                                                                                                                                                                                                                                             us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                                                      throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                                                                             JsonClientException
        Deprecated.
        Workspace.list_objects

        Original 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 type ListWorkspaceObjectsParams (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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listObjects

        public java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> listObjects​(ListObjectsParams params,
                                                                                                                                                                                                                                                                                                                                         us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                  throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                                         JsonClientException

        Original spec-file function name: list_objects

         List objects in one or more workspaces.
         
        Parameters:
        params - instance of type ListObjectsParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObjectmeta

        public Tuple12<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.lang.Long> getObjectmeta​(GetObjectmetaParams params,
                                                                                                                                                                                                                                                                                                                                                      us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                               throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                                                      JsonClientException
        Deprecated.
        Workspace.get_object_info3

        Original 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 type GetObjectmetaParams (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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObjectInfo

        public java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> getObjectInfo​(java.util.List<ObjectIdentity> objectIds,
                                                                                                                                                                                                                                                                                                                                           java.lang.Long includeMetadata,
                                                                                                                                                                                                                                                                                                                                           us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                    throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                                           JsonClientException
        Deprecated.
        Workspace.get_object_info3

        Original 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 type ObjectIdentity
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getObjectInfoNew

        public java.util.List<Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>>> getObjectInfoNew​(GetObjectInfoNewParams params,
                                                                                                                                                                                                                                                                                                                                              us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                                       throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                                              JsonClientException
        Deprecated.
        Workspace.get_object_info3

        Original spec-file function name: get_object_info_new

         Get information about objects from the workspace.
        Parameters:
        params - instance of type GetObjectInfoNewParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • renameWorkspace

        public Tuple9<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> renameWorkspace​(RenameWorkspaceParams params,
                                                                                                                                                                                                                                                                                  us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                           throws java.io.IOException,
                                                                                                                                                                                                                                                                                  JsonClientException

        Original spec-file function name: rename_workspace

         Rename a workspace.
         
        Parameters:
        params - instance of type RenameWorkspaceParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • renameObject

        public Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>> renameObject​(RenameObjectParams params,
                                                                                                                                                                                                                                                                                                                          us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                   throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                          JsonClientException

        Original spec-file function name: rename_object

         Rename an object. User meta data is always returned as null.
         
        Parameters:
        params - instance of type RenameObjectParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • copyObject

        public Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>> copyObject​(CopyObjectParams params,
                                                                                                                                                                                                                                                                                                                        us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                 throws java.io.IOException,
                                                                                                                                                                                                                                                                                                                        JsonClientException

        Original spec-file function name: copy_object

         Copy an object. Returns the object_info for the newest version.
         
        Parameters:
        params - instance of type CopyObjectParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • revertObject

        public Tuple11<java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.Long,​java.lang.String,​java.lang.String,​java.lang.Long,​java.util.Map<java.lang.String,​java.lang.String>> revertObject​(ObjectIdentity object,
                                                                                                                                                                                                                                                                                                                          us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                                                                                                                                                                                                                   throws java.io.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 type ObjectIdentity
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getNamesByPrefix

        public GetNamesByPrefixResults getNamesByPrefix​(GetNamesByPrefixParams params,
                                                        us.kbase.common.service.RpcContext... jsonRpcContext)
                                                 throws java.io.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 type GetNamesByPrefixParams
        Returns:
        parameter "res" of type GetNamesByPrefixResults
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • hideObjects

        public void hideObjects​(java.util.List<ObjectIdentity> objectIds,
                                us.kbase.common.service.RpcContext... jsonRpcContext)
                         throws java.io.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 type ObjectIdentity
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • unhideObjects

        public void unhideObjects​(java.util.List<ObjectIdentity> objectIds,
                                  us.kbase.common.service.RpcContext... jsonRpcContext)
                           throws java.io.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 type ObjectIdentity
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • deleteObjects

        public void deleteObjects​(java.util.List<ObjectIdentity> objectIds,
                                  us.kbase.common.service.RpcContext... jsonRpcContext)
                           throws java.io.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 type ObjectIdentity
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • undeleteObjects

        public void undeleteObjects​(java.util.List<ObjectIdentity> objectIds,
                                    us.kbase.common.service.RpcContext... jsonRpcContext)
                             throws java.io.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 type ObjectIdentity
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • deleteWorkspace

        public void deleteWorkspace​(WorkspaceIdentity wsi,
                                    us.kbase.common.service.RpcContext... jsonRpcContext)
                             throws java.io.IOException,
                                    JsonClientException

        Original spec-file function name: delete_workspace

         Delete a workspace. All objects contained in the workspace are deleted.
         
        Parameters:
        wsi - instance of type WorkspaceIdentity
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • requestModuleOwnership

        public void requestModuleOwnership​(java.lang.String mod,
                                           us.kbase.common.service.RpcContext... jsonRpcContext)
                                    throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • registerTypespec

        public java.util.Map<java.lang.String,​java.lang.String> registerTypespec​(RegisterTypespecParams params,
                                                                                       us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                throws java.io.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 type RegisterTypespecParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • registerTypespecCopy

        public java.lang.Long registerTypespecCopy​(RegisterTypespecCopyParams params,
                                                   us.kbase.common.service.RpcContext... jsonRpcContext)
                                            throws java.io.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 type RegisterTypespecCopyParams
        Returns:
        parameter "new_local_version" of original type "spec_version" (The version of a typespec file.)
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • releaseModule

        public java.util.List<java.lang.String> releaseModule​(java.lang.String mod,
                                                              us.kbase.common.service.RpcContext... jsonRpcContext)
                                                       throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listModules

        public java.util.List<java.lang.String> listModules​(ListModulesParams params,
                                                            us.kbase.common.service.RpcContext... jsonRpcContext)
                                                     throws java.io.IOException,
                                                            JsonClientException

        Original spec-file function name: list_modules

         List typespec modules.
         
        Parameters:
        params - instance of type ListModulesParams
        Returns:
        parameter "modules" of list of original type "modulename" (A module name defined in a KIDL typespec.)
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getJsonschema

        public java.lang.String getJsonschema​(java.lang.String type,
                                              us.kbase.common.service.RpcContext... jsonRpcContext)
                                       throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • translateFromMD5Types

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> translateFromMD5Types​(java.util.List<java.lang.String> md5Types,
                                                                                                            us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                     throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • translateToMD5Types

        public java.util.Map<java.lang.String,​java.lang.String> translateToMD5Types​(java.util.List<java.lang.String> semTypes,
                                                                                          us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                   throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getTypeInfo

        public TypeInfo getTypeInfo​(java.lang.String type,
                                    us.kbase.common.service.RpcContext... jsonRpcContext)
                             throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getAllTypeInfo

        public java.util.List<TypeInfo> getAllTypeInfo​(java.lang.String mod,
                                                       us.kbase.common.service.RpcContext... jsonRpcContext)
                                                throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getFuncInfo

        public FuncInfo getFuncInfo​(java.lang.String func,
                                    us.kbase.common.service.RpcContext... jsonRpcContext)
                             throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getAllFuncInfo

        public java.util.List<FuncInfo> getAllFuncInfo​(java.lang.String mod,
                                                       us.kbase.common.service.RpcContext... jsonRpcContext)
                                                throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • grantModuleOwnership

        public void grantModuleOwnership​(GrantModuleOwnershipParams params,
                                         us.kbase.common.service.RpcContext... jsonRpcContext)
                                  throws java.io.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 type GrantModuleOwnershipParams
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • removeModuleOwnership

        public void removeModuleOwnership​(RemoveModuleOwnershipParams params,
                                          us.kbase.common.service.RpcContext... jsonRpcContext)
                                   throws java.io.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 type RemoveModuleOwnershipParams
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • listAllTypes

        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> listAllTypes​(ListAllTypesParams params,
                                                                                                                         us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                                                                  throws java.io.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 type ListAllTypesParams
        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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • getAdminRole

        public GetAdminRoleResults getAdminRole​(us.kbase.common.service.RpcContext... jsonRpcContext)
                                         throws java.io.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:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • alterAdminObjectMetadata

        public void alterAdminObjectMetadata​(AlterAdminObjectMetadataParams params,
                                             us.kbase.common.service.RpcContext... jsonRpcContext)
                                      throws java.io.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 type AlterAdminObjectMetadataParams
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • administer

        public UObject administer​(UObject command,
                                  us.kbase.common.service.RpcContext... jsonRpcContext)
                           throws java.io.IOException,
                                  JsonClientException

        Original spec-file function name: administer

         The administration interface.
         
        Parameters:
        command - instance of unspecified object
        Returns:
        parameter "response" of unspecified object
        Throws:
        java.io.IOException - if an IO exception occurs
        JsonClientException - if a JSON RPC exception occurs
      • status

        public java.util.Map<java.lang.String,​java.lang.Object> status​(us.kbase.common.service.RpcContext... jsonRpcContext)
                                                                      throws java.io.IOException,
                                                                             JsonClientException
        Throws:
        java.io.IOException
        JsonClientException