Package com.smartsheet.api
Interface HomeResources
-
@Deprecated(since="3.4.0", forRemoval=true) public interface HomeResourcesDeprecated, for removal: This API element is subject to removal in a future version.Home resources have been deprecated and will be removed in a future version.This interface provides methods to access Home resources.
Thread Safety: Implementation of this interface must be thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description HomeFolderResourcesfolderResources()Deprecated, for removal: This API element is subject to removal in a future version.Home resources have been deprecated and will be removed in a future version.HomegetHome(java.util.EnumSet<SourceInclusion> includes)Deprecated, for removal: This API element is subject to removal in a future version.Home resources have been deprecated and will be removed in a future version.HomegetHome(java.util.EnumSet<SourceInclusion> includes, java.util.EnumSet<SourceExclusion> excludes)Deprecated, for removal: This API element is subject to removal in a future version.Home resources have been deprecated and will be removed in a future version.
-
-
-
Method Detail
-
getHome
@Deprecated(since="3.4.0", forRemoval=true) Home getHome(java.util.EnumSet<SourceInclusion> includes) throws SmartsheetExceptionDeprecated, for removal: This API element is subject to removal in a future version.Home resources have been deprecated and will be removed in a future version.Get a nested list of all Home objects, including sheets, workspaces and folders, and optionally reports and/or templates, as shown on the Home tab.
It mirrors to the following Smartsheet REST API method: GET /home
- Parameters:
includes- used to specify the optional objects to include.- Returns:
- the home resource (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
- Throws:
java.lang.IllegalArgumentException- if any argument is null or empty stringInvalidRequestException- if there is any problem with the REST API requestAuthorizationException- if there is any problem with the REST API authorization (access token)ResourceNotFoundException- if the resource cannot be foundServiceUnavailableException- if the REST API service is not available (possibly due to rate limiting)SmartsheetException- if there is any other error during the operation
-
getHome
@Deprecated(since="3.4.0", forRemoval=true) Home getHome(java.util.EnumSet<SourceInclusion> includes, java.util.EnumSet<SourceExclusion> excludes) throws SmartsheetExceptionDeprecated, for removal: This API element is subject to removal in a future version.Home resources have been deprecated and will be removed in a future version.Get a nested list of all Home objects, including sheets, workspaces and folders, and optionally reports and/or templates, as shown on the Home tab.
It mirrors to the following Smartsheet REST API method: GET /home
- Parameters:
includes- used to specify the optional objects to include.excludes- used to specify the optional objects to exclude.- Returns:
- the home resource (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
- Throws:
java.lang.IllegalArgumentException- if any argument is null or empty stringInvalidRequestException- if there is any problem with the REST API requestAuthorizationException- if there is any problem with the REST API authorization (access token)ResourceNotFoundException- if the resource cannot be foundServiceUnavailableException- if the REST API service is not available (possibly due to rate limiting)SmartsheetException- if there is any other error during the operation
-
folderResources
@Deprecated(since="3.4.0", forRemoval=true) HomeFolderResources folderResources()Deprecated, for removal: This API element is subject to removal in a future version.Home resources have been deprecated and will be removed in a future version.Return the HomeFolderResources object that provides access to Folder resources under home.
- Returns:
- the home folder resources
-
-