This interface provides methods to access Attachment resources by their id.
* *Thread Safety: Implementation of this interface must be thread safe.
+ * * @deprecated As of release 2.0. Please use {@link AttachmentVersioningResources} instead */ @Deprecated(since = "2.0.0", forRemoval = true) @@ -32,21 +33,21 @@ public interface AttachmentResources { /** * @param attachmentId the id - * @param file the file - * @param contentType the content type + * @param file the file + * @param contentType the content type * @return the attachment (note that if there is no such resource, this method will throw ResourceNotFoundException - * rather than returning null). + * rather than returning null). * @deprecated As of release 2.0. Please use {@link AttachmentVersioningResources} instead */ @Deprecated(since = "2.0.0", forRemoval = true) Attachment attachNewVersion(long attachmentId, File file, String contentType); /** - * @param attachmentId the id of the attachment to upload a new version. - * @param inputStream the file to attach - * @param contentType the content type of the file + * @param attachmentId the id of the attachment to upload a new version. + * @param inputStream the file to attach + * @param contentType the content type of the file * @param attachmentName attachment name - * @param contentLength content length + * @param contentLength content length * @return the created attachment * @deprecated As of release 2.0. Please use {@link AttachmentVersioningResources} instead */ diff --git a/src/main/java/com/smartsheet/api/AttachmentVersioningResources.java b/src/main/java/com/smartsheet/api/AttachmentVersioningResources.java index 803f7794..45e252fe 100644 --- a/src/main/java/com/smartsheet/api/AttachmentVersioningResources.java +++ b/src/main/java/com/smartsheet/api/AttachmentVersioningResources.java @@ -1,5 +1,5 @@ /* -* Copyright (C) 2024 Smartsheet + * Copyright (C) 2024 Smartsheet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,14 +35,14 @@ public interface AttachmentVersioningResources { * *It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/attachments/{attachmentId}/versions
* - * @param sheetId the sheet id + * @param sheetId the sheet id * @param attachentId the attachment id - * @throws IllegalArgumentException if any argument is null or empty string - * @throws InvalidRequestException if there is any problem with the REST API request - * @throws AuthorizationException if there is any problem with the REST API authorization (access token) - * @throws ResourceNotFoundException if the resource cannot be found + * @throws IllegalArgumentException if any argument is null or empty string + * @throws InvalidRequestException if there is any problem with the REST API request + * @throws AuthorizationException if there is any problem with the REST API authorization (access token) + * @throws ResourceNotFoundException if the resource cannot be found * @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting) - * @throws SmartsheetException if there is any other error during the operation + * @throws SmartsheetException if there is any other error during the operation */ void deleteAllVersions(long sheetId, long attachentId) throws SmartsheetException; @@ -51,17 +51,17 @@ public interface AttachmentVersioningResources { * *It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/attachments/{attachmentId}/versions
* - * @param sheetId the id + * @param sheetId the id * @param attachmentId the attachment id - * @param parameters the pagination paramaters + * @param parameters the pagination paramaters * @return the attachment (note that if there is no such resource, this method will throw ResourceNotFoundException - * rather than returning null). - * @throws IllegalArgumentException if any argument is null or empty string - * @throws InvalidRequestException if there is any problem with the REST API request - * @throws AuthorizationException if there is any problem with the REST API authorization (access token) - * @throws ResourceNotFoundException if the resource cannot be found + * rather than returning null). + * @throws IllegalArgumentException if any argument is null or empty string + * @throws InvalidRequestException if there is any problem with the REST API request + * @throws AuthorizationException if there is any problem with the REST API authorization (access token) + * @throws ResourceNotFoundException if the resource cannot be found * @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting) - * @throws SmartsheetException if there is any other error during the operation + * @throws SmartsheetException if there is any other error during the operation */ PagedResultIt mirrors to the following Smartsheet REST API method: POST /attachment/{id}/versions
* - * @param sheetId the id of the sheet + * @param sheetId the id of the sheet * @param attachmentId the id of the attachment to upload a new version. - * @param file the file to attach - * @param contentType the content type of the file + * @param file the file to attach + * @param contentType the content type of the file * @return the created attachment - * @throws FileNotFoundException the file not found exception - * @throws IllegalArgumentException if any argument is null or empty string - * @throws InvalidRequestException if there is any problem with the REST API request - * @throws AuthorizationException if there is any problem with the REST API authorization (access token) - * @throws ResourceNotFoundException if the resource cannot be found + * @throws FileNotFoundException the file not found exception + * @throws IllegalArgumentException if any argument is null or empty string + * @throws InvalidRequestException if there is any problem with the REST API request + * @throws AuthorizationException if there is any problem with the REST API authorization (access token) + * @throws ResourceNotFoundException if the resource cannot be found * @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting) - * @throws SmartsheetException if there is any other error during the operation + * @throws SmartsheetException if there is any other error during the operation */ Attachment attachNewVersion( long sheetId, diff --git a/src/main/java/com/smartsheet/api/AuthorizationException.java b/src/main/java/com/smartsheet/api/AuthorizationException.java index 2ecd0117..863dec0f 100644 --- a/src/main/java/com/smartsheet/api/AuthorizationException.java +++ b/src/main/java/com/smartsheet/api/AuthorizationException.java @@ -1,5 +1,5 @@ /* -* Copyright (C) 2024 Smartsheet + * Copyright (C) 2024 Smartsheet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/smartsheet/api/ColumnResources.java b/src/main/java/com/smartsheet/api/ColumnResources.java index 05fcdddf..afb76c33 100644 --- a/src/main/java/com/smartsheet/api/ColumnResources.java +++ b/src/main/java/com/smartsheet/api/ColumnResources.java @@ -1,5 +1,5 @@ /* -* Copyright (C) 2024 Smartsheet + * Copyright (C) 2024 Smartsheet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ *This interface provides methods to access Column resources.
* *Thread Safety: Implementation of this interface must be thread safe.
+ * * @deprecated As of release 2.0. Please use {@link SheetCommentResources} instead */ @Deprecated(since = "2.0.0", forRemoval = true) @@ -30,14 +31,14 @@ public interface ColumnResources { /** * @param column the column to update * @return the updated Column (note that if there is no such resource, this method will throw - * ResourceNotFoundException rather than returning null). + * ResourceNotFoundException rather than returning null). * @deprecated As of release 2.0. Please use {@link SheetCommentResources} instead */ @Deprecated(since = "2.0.0", forRemoval = true) Column updateColumn(Column column); /** - * @param id id of the column + * @param id id of the column * @param sheetId the sheet id * @deprecated As of release 2.0. Please use {@link SheetCommentResources} instead */ diff --git a/src/main/java/com/smartsheet/api/CommentAttachmentResources.java b/src/main/java/com/smartsheet/api/CommentAttachmentResources.java index dfd6f1a2..e5ce1016 100644 --- a/src/main/java/com/smartsheet/api/CommentAttachmentResources.java +++ b/src/main/java/com/smartsheet/api/CommentAttachmentResources.java @@ -1,5 +1,5 @@ /* -* Copyright (C) 2024 Smartsheet + * Copyright (C) 2024 Smartsheet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,16 +37,16 @@ public interface CommentAttachmentResources { * *It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/comments/{commentId}/attachments * - * @param sheetId the sheet id - * @param commentId the comment id + * @param sheetId the sheet id + * @param commentId the comment id * @param attachment the attachment object * @return the created attachment - * @throws IllegalArgumentException if any argument is null or empty string - * @throws InvalidRequestException if there is any problem with the REST API request - * @throws AuthorizationException if there is any problem with the REST API authorization (access token) - * @throws ResourceNotFoundException if the resource cannot be found + * @throws IllegalArgumentException if any argument is null or empty string + * @throws InvalidRequestException if there is any problem with the REST API request + * @throws AuthorizationException if there is any problem with the REST API authorization (access token) + * @throws ResourceNotFoundException if the resource cannot be found * @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting) - * @throws SmartsheetException if there is any other error during the operation + * @throws SmartsheetException if there is any other error during the operation */ Attachment attachUrl(long sheetId, long commentId, Attachment attachment) throws SmartsheetException; @@ -55,29 +55,29 @@ public interface CommentAttachmentResources { * *
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/comments/{commentId}/attachments
* - * @param sheetId the id of the sheet - * @param commentId the id of the comment - * @param file the file to attach + * @param sheetId the id of the sheet + * @param commentId the id of the comment + * @param file the file to attach * @param contentType the content type of the file * @return the created attachment - * @throws FileNotFoundException the file not found exception - * @throws IllegalArgumentException if any argument is null or empty string - * @throws InvalidRequestException if there is any problem with the REST API request - * @throws AuthorizationException if there is any problem with the REST API authorization (access token) - * @throws ResourceNotFoundException if the resource cannot be found + * @throws FileNotFoundException the file not found exception + * @throws IllegalArgumentException if any argument is null or empty string + * @throws InvalidRequestException if there is any problem with the REST API request + * @throws AuthorizationException if there is any problem with the REST API authorization (access token) + * @throws ResourceNotFoundException if the resource cannot be found * @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting) - * @throws SmartsheetException if there is any other error during the operation + * @throws SmartsheetException if there is any other error during the operation */ Attachment attachFile(long sheetId, long commentId, File file, String contentType) throws FileNotFoundException, SmartsheetException; /** *Attach file for simple upload.
* - * @param sheetId the sheet id - * @param commentId the comment id - * @param inputStream the attachment data inputStream - * @param contentType the content type - * @param contentLength the content length + * @param sheetId the sheet id + * @param commentId the comment id + * @param inputStream the attachment data inputStream + * @param contentType the content type + * @param contentLength the content length * @param attachmentName the name of the attachment * @return the attachment * @throws SmartsheetException the smartsheet exception diff --git a/src/main/java/com/smartsheet/api/CommentResources.java b/src/main/java/com/smartsheet/api/CommentResources.java index 6b87f690..db85644b 100644 --- a/src/main/java/com/smartsheet/api/CommentResources.java +++ b/src/main/java/com/smartsheet/api/CommentResources.java @@ -1,5 +1,5 @@ /* -* Copyright (C) 2024 Smartsheet + * Copyright (C) 2024 Smartsheet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,17 +24,17 @@ @Deprecated(since = "2.0.0", forRemoval = true) public interface CommentResources { /** - * @param sheetId the id + * @param sheetId the id * @param commentId the commentid * @return the comment (note that if there is no such resource, this method will throw ResourceNotFoundException - * rather than returning null). + * rather than returning null). * @deprecated As of release 2.0. Please use {@link SheetCommentResources} instead */ @Deprecated(since = "2.0.0", forRemoval = true) Comment getComment(long sheetId, long commentId); /** - * @param sheetId the id + * @param sheetId the id * @param commentId the commentid * @deprecated As of release 2.0. Please use {@link SheetCommentResources} instead */ diff --git a/src/main/java/com/smartsheet/api/ContactResources.java b/src/main/java/com/smartsheet/api/ContactResources.java index c6910e93..94b5379e 100644 --- a/src/main/java/com/smartsheet/api/ContactResources.java +++ b/src/main/java/com/smartsheet/api/ContactResources.java @@ -1,5 +1,5 @@ /* -* Copyright (C) 2024 Smartsheet + * Copyright (C) 2024 Smartsheet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/main/java/com/smartsheet/api/DiscussionAttachmentResources.java b/src/main/java/com/smartsheet/api/DiscussionAttachmentResources.java index d0995037..818147e6 100644 --- a/src/main/java/com/smartsheet/api/DiscussionAttachmentResources.java +++ b/src/main/java/com/smartsheet/api/DiscussionAttachmentResources.java @@ -1,5 +1,5 @@ /* -* Copyright (C) 2024 Smartsheet + * Copyright (C) 2024 Smartsheet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,20 +26,20 @@ public interface DiscussionAttachmentResources { *Get discussion attachment.
* *It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/discussions/{discussionId}/attachments
- * + *
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param discussionId the discussion id
- * @param parameters the pagination parameters
+ * @param parameters the pagination parameters
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
PagedResult It mirrors to the following Smartsheet REST API method: POST /discussion/{discussionId}/comments It mirrors to the following Smartsheet REST API method: POST /discussion/{discussionId}/comments Update the specified comment It mirrors to the following Smartsheet REST API method: PUT PUT /sheets/{sheetId}/comments/{commentId} It mirrors to the following Smartsheet REST API method: POST /discussion/{discussionId}/comments It mirrors to the following Smartsheet REST API method: GET /events Adds one or more items to the user’s list of Favorite items. It mirrors to the following Smartsheet REST API method: POST /favorites
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param favorites the list of favorites object limited to the following attributes: * objectId * type
* @return a single Favorite object or an array of Favorite objects
@@ -49,15 +49,15 @@ public interface FavoriteResources {
* Gets a list of all of the user’s Favorite items. It mirrors to the following Smartsheet REST API method: GET /favorites
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param parameters pagination parameters
* @return a single Favorite object or an array of Favorite objects
@@ -69,18 +69,18 @@ public interface FavoriteResources {
* Deletes a list of favorites (all of the same type) It mirrors to the following Smartsheet REST API method: DELETE /favorites
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param favoriteType the favorite type
- * @param objectIds a single Favorite object ID or an array of Favorite object IDs
+ * @param objectIds a single Favorite object ID or an array of Favorite object IDs
* @throws SmartsheetException the smartsheet exception
*/
void removeFavorites(FavoriteType favoriteType, Set It mirrors to the following Smartsheet REST API method: DELETE /folder{id} It mirrors to the following Smartsheet REST API method: GET /folder/{id}/folders It mirrors to the following Smartsheet REST API method: POST /folder/{id}/folders Creates a copy of the specified Folder. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param folderId the folder id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param folderId the folder id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
- * @param skipRemap optional parameters to exclude
+ * @param includes optional parameters to include
+ * @param skipRemap optional parameters to exclude
* @return the folder
* @throws SmartsheetException the smartsheet exception
*/
@@ -147,20 +147,20 @@ Folder copyFolder(
* Creates a copy of the specified Folder. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param folderId the folder id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param folderId the folder id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
- * @param skipRemap optional parameters to NOT re-map in the new folder
- * @param excludes optional parameters to exclude
+ * @param includes optional parameters to include
+ * @param skipRemap optional parameters to NOT re-map in the new folder
+ * @param excludes optional parameters to exclude
* @return the folder
* @throws SmartsheetException the smartsheet exception
*/
@@ -176,16 +176,16 @@ Folder copyFolder(
* Moves the specified Folder to another location. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/move
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param folderId the folder id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param folderId the folder id
* @param containerDestination describes the destination container
* @return the folder
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/GroupMemberResources.java b/src/main/java/com/smartsheet/api/GroupMemberResources.java
index 2ec153b1..bb564966 100644
--- a/src/main/java/com/smartsheet/api/GroupMemberResources.java
+++ b/src/main/java/com/smartsheet/api/GroupMemberResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,12 +35,12 @@ public interface GroupMemberResources {
* @param groupId the ID of the object to add members to.
* @param members the list of members to add. Users that are already members will be ignored.
* @return the list of newly added members. Users that were added to the group. Pre-existing members are not included in the result.
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
List It mirrors to the following Smartsheet REST API method: DELETE /group/{id}/member/{userId} It mirrors to the following Smartsheet REST API method: DELETE /group/{groupId} It mirrors to the following Smartsheet REST API method: GET /home Issue an HTTP GET request. Issue an HTTP POST request. Issue an HTTP PUT request. It mirrors to the following Smartsheet REST API method: POST /reports/{reportId}/emails List all reports. It mirrors to the following Smartsheet REST API method: GET /reports
* Exceptions:
- * - InvalidRequestException : if there is any problem with the REST API request
- * - AuthorizationException : if there is any problem with the REST API authorization(access token)
- * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * - SmartsheetException : if there is any other error occurred during the operation
+ * - InvalidRequestException : if there is any problem with the REST API request
+ * - AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * - SmartsheetException : if there is any other error occurred during the operation
*
- * @param parameters pagination parameters for paging result
+ * @param parameters pagination parameters for paging result
* @param modifiedSince restrict results to sheets modified on or after this date
* @return all sheets (note that empty list will be returned if there is none)
* @throws SmartsheetException the smartsheet exception
@@ -120,13 +120,13 @@ Report getReport(
* List all reports. It mirrors to the following Smartsheet REST API method: GET /reports
* Exceptions:
- * - InvalidRequestException : if there is any problem with the REST API request
- * - AuthorizationException : if there is any problem with the REST API authorization(access token)
- * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * - SmartsheetException : if there is any other error occurred during the operation
+ * - InvalidRequestException : if there is any problem with the REST API request
+ * - AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * - SmartsheetException : if there is any other error occurred during the operation
*
* @param parameters pagination parameters for paging result
* @return all sheets (note that empty list will be returned if there is none)
@@ -139,20 +139,20 @@ Report getReport(
*
* It mirrors to the following Smartsheet REST API method: GET /reports/{id} with "application/vnd.ms-excel" Accept
* HTTP header
* Exceptions:
- * IllegalArgumentException : if outputStream is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param id the id
+ * IllegalArgumentException : if outputStream is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param id the id
* @param outputStream the OutputStream to which the Excel file will be written
* @throws SmartsheetException the smartsheet exception
- * */
+ */
void getReportAsExcel(long id, OutputStream outputStream) throws SmartsheetException;
/**
@@ -160,20 +160,20 @@ Report getReport(
*
* It mirrors to the following Smartsheet REST API method: GET /reports/{id} with "application/vnd.ms-excel" Accept
* HTTP header
* Exceptions:
- * IllegalArgumentException : if outputStream is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param id the id
+ * IllegalArgumentException : if outputStream is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param id the id
* @param outputStream the OutputStream to which the Excel file will be written
* @throws SmartsheetException the smartsheet exception
- * */
+ */
void getReportAsCsv(long id, OutputStream outputStream) throws SmartsheetException;
/**
@@ -183,13 +183,13 @@ Report getReport(
*
* @param id the ID of the report
* @return the report publish status (note that if there is no such resource, this method will
- * throw ResourceNotFoundException rather than returning null).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * throw ResourceNotFoundException rather than returning null).
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
ReportPublish getPublishStatus(long id) throws SmartsheetException;
@@ -199,16 +199,16 @@ Report getReport(
*
* It mirrors to the following Smartsheet REST API method: PUT /reports/{id}/publish
* Basically this exception will be thrown when the Smartsheet REST API responds with "404 NOT FOUND".
- *
+ *
* Thread safety: Exceptions are not thread safe.
*/
public class ResourceNotFoundException extends SmartsheetRestException {
- /** The Constant serialVersionUID. */
+ /**
+ * The Constant serialVersionUID.
+ */
private static final long serialVersionUID = 1L;
/**
diff --git a/src/main/java/com/smartsheet/api/RowAttachmentResources.java b/src/main/java/com/smartsheet/api/RowAttachmentResources.java
index e9120fdc..0e36df91 100644
--- a/src/main/java/com/smartsheet/api/RowAttachmentResources.java
+++ b/src/main/java/com/smartsheet/api/RowAttachmentResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,16 +39,16 @@ public interface RowAttachmentResources {
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/attachments
*
- * @param sheetId the sheet id
- * @param rowId the row id
+ * @param sheetId the sheet id
+ * @param rowId the row id
* @param attachment the attachment object
* @return the created attachment
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
Attachment attachUrl(long sheetId, long rowId, Attachment attachment) throws SmartsheetException;
@@ -56,20 +56,20 @@ public interface RowAttachmentResources {
* Get row attachment. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/attachments
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
- * @param rowId the row id
+ * @param sheetId the sheet id
+ * @param rowId the row id
* @param parameters the pagination parameters
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
PagedResult It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/attachments Attach file for simple upload. Get the cell modification history. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/history
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param rowId the row id
- * @param sheetId the sheet Id
- * @param columnId the column id
+ * @param rowId the row id
+ * @param sheetId the sheet Id
+ * @param columnId the column id
* @param pagination the pagination parameters
* @return the modification history (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
PagedResult Get the cell modification history. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/history
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param rowId the row id
- * @param sheetId the sheet Id
- * @param columnId the column id
+ * @param rowId the row id
+ * @param sheetId the sheet Id
+ * @param columnId the column id
* @param pagination the pagination parameters
- * @param includes cell history inclusion
- * @param level compatbility level
+ * @param includes cell history inclusion
+ * @param level compatbility level
* @return the modification history (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
PagedResult Uploads an image to the specified cell within a sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet Id
- * @param rowId the row id
- * @param columnId the column id
- * @param file the file path
+ * @param sheetId the sheet Id
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param file the file path
* @param contentType MIME type
- * @throws SmartsheetException the smartsheet exception
+ * @throws SmartsheetException the smartsheet exception
* @throws FileNotFoundException image file not found
*/
void addImageToCell(
@@ -119,23 +119,23 @@ void addImageToCell(
* Uploads an image to the specified cell within a sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet Id
- * @param rowId the row id
- * @param columnId the column id
- * @param file the file path
- * @param contentType MIME type
+ * @param sheetId the sheet Id
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param file the file path
+ * @param contentType MIME type
* @param overrideValidation override column type validation
- * @param altText alternate description for the image
- * @throws SmartsheetException the smartsheet exception
+ * @param altText alternate description for the image
+ * @throws SmartsheetException the smartsheet exception
* @throws FileNotFoundException image file not found
*/
void addImageToCell(
@@ -154,25 +154,25 @@ void addImageToCell(
* It mirrors the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet Id
- * @param rowId the row id
- * @param columnId the column id
- * @param file the File object
- * @param contentType MIME type
+ * @param sheetId the sheet Id
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param file the File object
+ * @param contentType MIME type
* @param overrideValidation override column type validation if true
- * @param altText alternate description for the image
- * @throws SmartsheetException the smartsheet exception
+ * @param altText alternate description for the image
+ * @throws SmartsheetException the smartsheet exception
* @throws FileNotFoundException image file not found
*/
void addImageToCell(long sheetId, long rowId, long columnId, File file, String contentType,
- boolean overrideValidation, String altText) throws FileNotFoundException, SmartsheetException;
+ boolean overrideValidation, String altText) throws FileNotFoundException, SmartsheetException;
/**
* Add an image to a cell.
@@ -180,21 +180,21 @@ void addImageToCell(long sheetId, long rowId, long columnId, File file, String c
* It mirrors the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet Id
- * @param rowId the row id
- * @param columnId the column id
- * @param inputStream the input stream of the contents
- * @param contentType MIME type
- * @param contentLength length of the input stream
+ * @param sheetId the sheet Id
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param inputStream the input stream of the contents
+ * @param contentType MIME type
+ * @param contentLength length of the input stream
* @param overrideValidation override column type validation if true
- * @param altText alternate description for the image
+ * @param altText alternate description for the image
* @throws SmartsheetException the smartsheet exception
*/
void addImageToCell(
diff --git a/src/main/java/com/smartsheet/api/RowDiscussionResources.java b/src/main/java/com/smartsheet/api/RowDiscussionResources.java
index 80ff4355..275e2f39 100644
--- a/src/main/java/com/smartsheet/api/RowDiscussionResources.java
+++ b/src/main/java/com/smartsheet/api/RowDiscussionResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,17 +36,17 @@ public interface RowDiscussionResources {
* Create discussion on a row. It mirrors to the following Smartsheet REST API method: /sheets/{sheetId}/rows/{rowId}/discussions
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row ID
+ * @param sheetId the sheet ID
+ * @param rowId the row ID
* @param discussion the comment to add, limited to the following required attributes: text
* @return the created comment
* @throws SmartsheetException the smartsheet exception
@@ -57,19 +57,19 @@ public interface RowDiscussionResources {
* Gets a list of all Discussions associated with the specified Row. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/discussions
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row ID
+ * @param sheetId the sheet ID
+ * @param rowId the row ID
* @param pagination the pagination pagination
- * @param includes the optional include parameters
+ * @param includes the optional include parameters
* @return the row discussions
* @throws SmartsheetException the smartsheet exception
*/
@@ -84,23 +84,23 @@ PagedResult Create discussion on a row. It mirrors to the following Smartsheet REST API method: /sheets/{sheetId}/rows/{rowId}/discussions
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row ID
- * @param discussion the comment to add, limited to the following required attributes: text
- * @param file the file to be attached
+ * @param sheetId the sheet ID
+ * @param rowId the row ID
+ * @param discussion the comment to add, limited to the following required attributes: text
+ * @param file the file to be attached
* @param contentType the type of file
* @return the created discussion
* @throws SmartsheetException the smartsheet exception
- * @throws IOException is there is an I/O exception
+ * @throws IOException is there is an I/O exception
*/
Discussion createDiscussionWithAttachment(
long sheetId,
diff --git a/src/main/java/com/smartsheet/api/SearchResources.java b/src/main/java/com/smartsheet/api/SearchResources.java
index 9d697c1d..a1c9269f 100644
--- a/src/main/java/com/smartsheet/api/SearchResources.java
+++ b/src/main/java/com/smartsheet/api/SearchResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,13 +38,13 @@ public interface SearchResources {
*
* @param query the query text
* @return the search result (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * ResourceNotFoundException rather than returning null).
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
SearchResult search(String query) throws SmartsheetException;
@@ -53,20 +53,20 @@ public interface SearchResources {
*
* It mirrors to the following Smartsheet REST API method: GET /search It mirrors to the following Smartsheet REST API method: GET /search/sheet/{sheetId} It mirrors to the following Smartsheet REST API method: GET /serverinfo GET /workspace/{id}/shares GET /sheet/{id}/shares GET /workspace/{id}/shares GET /sheet/{id}/shares GET /workspaces/{workspaceId}/shares/{shareId} GET /sheets/{sheetId}/shares/{shareId} GET /reports/{reportId}/shares
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param objectId the ID of the object to share
- * @param shareId the ID of the share
+ * @param shareId the ID of the share
* @return the share (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
Share getShare(long objectId, String shareId) throws SmartsheetException;
@@ -105,18 +105,18 @@ PagedResult POST /workspaces/{id}/shares POST /sheets/{id}/shares POST /reports/{reportId}/shares
* Exceptions:
- * IllegalArgumentException : if multiShare is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if multiShare is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param objectId the ID of the object to share
- * @param shares list of share objects
+ * @param objectId the ID of the object to share
+ * @param shares list of share objects
* @param sendEmail whether to send email
* @return the created shares
* @throws SmartsheetException the smartsheet exception
@@ -132,15 +132,15 @@ PagedResult PUT /reports/{reportId}/shares/{shareId} DELETE /workspaces/{workspaceId}/shares/{shareId} DELETE /sheets/{sheetId}/shares/{shareId} DELETE /reports/{reportId}/shares/{shareId}
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param objectId the ID of the object to share
- * @param shareId the ID of the share to delete
+ * @param shareId the ID of the share to delete
* @throws SmartsheetException the smartsheet exception
*/
void deleteShare(long objectId, String shareId) throws SmartsheetException;
diff --git a/src/main/java/com/smartsheet/api/SheetAttachmentResources.java b/src/main/java/com/smartsheet/api/SheetAttachmentResources.java
index 7fc5802b..3105519f 100644
--- a/src/main/java/com/smartsheet/api/SheetAttachmentResources.java
+++ b/src/main/java/com/smartsheet/api/SheetAttachmentResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,15 +34,15 @@ public interface SheetAttachmentResources {
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/attachments
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param attachment the attachment object
* @return the attachment object
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
Attachment attachUrl(long sheetId, Attachment attachment) throws SmartsheetException;
@@ -50,16 +50,16 @@ public interface SheetAttachmentResources {
* Delete an attachment. It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/attachments/{attachmentId}
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the ID of the sheet
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the ID of the sheet
* @param attachmentId the ID of the attachment
* @throws SmartsheetException the smartsheet exception
*/
@@ -69,19 +69,19 @@ public interface SheetAttachmentResources {
* Get an attachment. It mirrors to the following Smartsheet REST API method: GET /attachment/{id}
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the sheet id
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the sheet id
* @param attachmentId the attachment id
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
Attachment getAttachment(long sheetId, long attachmentId) throws SmartsheetException;
@@ -90,16 +90,16 @@ public interface SheetAttachmentResources {
* Gets a list of all Attachments that are on the Sheet, including Sheet, Row, and Discussion level Attachments. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/attachments
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the ID of the sheet to which the attachments are associated
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the ID of the sheet to which the attachments are associated
* @param parameters the pagination parameters
* @return the attachments (note that empty list will be returned if there is none)
* @throws SmartsheetException the smartsheet exception
@@ -111,27 +111,27 @@ public interface SheetAttachmentResources {
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/attachments Attach file for simple upload. Get all automation rules for this sheet It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/automationrules
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination parameters
* @return a list of automation rules
* @throws SmartsheetException the smartsheet exception
@@ -46,16 +46,16 @@ public interface SheetAutomationRuleResources {
*
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/automationrules/{automationRuleId} It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/automationrules/{automationRuleId} Delete an automation rule. It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/automationrules/{automationRuleId}
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param automationRuleId the automation rule ID
* @throws SmartsheetException the smartsheet exception
*/
diff --git a/src/main/java/com/smartsheet/api/SheetColumnResources.java b/src/main/java/com/smartsheet/api/SheetColumnResources.java
index e84d4d59..de45e212 100644
--- a/src/main/java/com/smartsheet/api/SheetColumnResources.java
+++ b/src/main/java/com/smartsheet/api/SheetColumnResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,16 +36,16 @@ public interface SheetColumnResources {
*
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/columns/{columnId} Update a column. It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/columns/{columnId}
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the sheetId
- * @param column the column to update limited to the following attributes: index (column's new index in the sheet),
- * title, sheetId, type, options (optional), symbol (optional), systemColumnType (optional),
- * autoNumberFormat (optional)
+ * @param column the column to update limited to the following attributes: index (column's new index in the sheet),
+ * title, sheetId, type, options (optional), symbol (optional), systemColumnType (optional),
+ * autoNumberFormat (optional)
* @return the updated sheet (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
Column updateColumn(long sheetId, Column column) throws SmartsheetException;
@@ -138,16 +138,16 @@ PagedResult Gets the Column specified in the URL. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns/{columnId}
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param columnId the column id
* @param includes list of includes
* @return the column (note that empty list will be returned if there is none)
diff --git a/src/main/java/com/smartsheet/api/SheetCommentResources.java b/src/main/java/com/smartsheet/api/SheetCommentResources.java
index a1392826..210159af 100644
--- a/src/main/java/com/smartsheet/api/SheetCommentResources.java
+++ b/src/main/java/com/smartsheet/api/SheetCommentResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,10 +29,10 @@ public interface SheetCommentResources {
*
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/comments/{commentId} It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/comments/{commentId} Get all cross sheet references for this sheet It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/crosssheetreferences
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination parameters
* @return a list of cross sheet references
* @throws SmartsheetException the smartsheet exception
@@ -47,16 +47,16 @@ public interface SheetCrossSheetReferenceResources {
*
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/crosssheetreferences/{crossSheetReferenceId} It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/crosssheetreferences It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/discussions/{discussionId} Delete discussion. It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/discussions/{discussionId}
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param discussionId the discussion ID
* @throws SmartsheetException the smartsheet exception
*/
@@ -110,18 +110,18 @@ Discussion createDiscussionWithAttachment(
* Get all discussions It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/discussions
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination parameters
- * @param includes the optional paramters to include
+ * @param includes the optional paramters to include
* @return a list of discussions
* @throws SmartsheetException the smartsheet exception
*/
diff --git a/src/main/java/com/smartsheet/api/SheetFilterResources.java b/src/main/java/com/smartsheet/api/SheetFilterResources.java
index d1414469..021563f3 100644
--- a/src/main/java/com/smartsheet/api/SheetFilterResources.java
+++ b/src/main/java/com/smartsheet/api/SheetFilterResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,16 +27,16 @@ public interface SheetFilterResources {
*
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/filters/{filterId} Delete filter. It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/filters/{filterId}
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param filterId the filter ID
* @throws SmartsheetException the smartsheet exception
*/
@@ -63,16 +63,16 @@ public interface SheetFilterResources {
* Get all filters It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/filters
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination parameters
* @return a list of discussions
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/SheetResources.java b/src/main/java/com/smartsheet/api/SheetResources.java
index 382c9e87..4b9d3a7f 100644
--- a/src/main/java/com/smartsheet/api/SheetResources.java
+++ b/src/main/java/com/smartsheet/api/SheetResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -49,13 +49,14 @@ public interface SheetResources {
* List all sheets.
*
* It mirrors to the following Smartsheet REST API method: GET /sheets
+ *
* @return A list of all sheets (note that an empty list will be returned if there are none).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
PagedResult It mirrors to the following Smartsheet REST API method: GET /sheets It mirrors to the following Smartsheet REST API method: GET /sheets It mirrors to the following Smartsheet REST API method: GET /sheet/{id} Get a sheet. It mirrors to the following Smartsheet REST API method: GET /sheet/{id} Get a sheet. It mirrors to the following Smartsheet REST API method: GET /sheet/{id} Get sheet by ID. Load all row and column data It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/vnd.ms-excel" Accept HTTP header It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/vnd.ms-excel" Accept HTTP header It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/pdf" Accept HTTP header It mirrors to the following Smartsheet REST API method: POST /sheets It mirrors to the following Smartsheet REST API method: POST /sheets/import It mirrors to the following Smartsheet REST API method: POST /sheets/import It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets/import It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets/import It mirrors to the following Smartsheet REST API method: POST /workspace/{workspaceId}/sheets It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets/import It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets/import Delete a sheet. It mirrors to the following Smartsheet REST API method: DELETE /sheet{id}
* Parameters: - id : the ID of the sheet
- *
+ *
* Returns: None
*
- *
* @param id the id
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
void deleteSheet(long id) throws SmartsheetException;
@@ -555,12 +555,12 @@ Sheet importXlsxInWorkspace(
*
* @param sheet the sheet to update
* @return the updated sheet
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
Sheet updateSheet(Sheet sheet) throws SmartsheetException;
@@ -571,13 +571,13 @@ Sheet importXlsxInWorkspace(
*
* @param id the id
* @return the sheet version (note that if there is no such resource, this method will throw
- * ResourceNotFoundException)
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * ResourceNotFoundException)
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
int getSheetVersion(long id) throws SmartsheetException;
@@ -586,14 +586,14 @@ Sheet importXlsxInWorkspace(
*
* It mirrors to the following Smartsheet REST API method: POST /sheet/{sheetId}/emails It mirrors to the following Smartsheet REST API method: PUT /sheet/{sheetId}/publish Creates a copy of the specified sheet. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the sheet id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the sheet id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
+ * @param includes optional parameters to include
* @return the sheet
* @throws SmartsheetException the smartsheet exception
*/
@@ -661,39 +661,39 @@ Sheet copySheet(
* Creates a copy of the specified sheet. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the sheet id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the sheet id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
- * @param excludes optional parameters to exclude
+ * @param includes optional parameters to include
+ * @param excludes optional parameters to exclude
* @return the sheet
* @throws SmartsheetException the smartsheet exception
*/
Sheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet Moves the specified Sheet to another location. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/move
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the folder id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the folder id
* @param containerDestination describes the destination container
* @return the sheet
* @throws SmartsheetException the smartsheet exception
@@ -704,17 +704,17 @@ Sheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet
* Creates an Update Request for the specified Row(s) within the Sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/updaterequests
* Exceptions:
- * - IllegalArgumentException : if any argument is null
- * - InvalidRequestException : if there is any problem with the REST API request
- * - AuthorizationException : if there is any problem with the REST API authorization(access token)
- * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * - SmartsheetException : if there is any other error occurred during the operation
+ * - IllegalArgumentException : if any argument is null
+ * - InvalidRequestException : if there is any problem with the REST API request
+ * - AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * - SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the sheet id
- * @param email the email
+ * @param email the email
* @return the update request object
* @throws SmartsheetException the smartsheet exception
* @deprecated As of release 2.0. Please use {@link SheetUpdateRequestResources} instead.
@@ -727,14 +727,14 @@ Sheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/sort It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/sort
* Thread Safety: Implementation of this interface must be thread safe.
*/
public interface SheetRowResources {
@@ -46,14 +46,14 @@ public interface SheetRowResources {
* It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId} Delete a row. It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/rows/{rowId}
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the sheet id
- * @param rowId the row id
+ * @param rowId the row id
* @throws SmartsheetException the smartsheet exception
* @deprecated as of API 2.0.2 release, replaced by {@link #deleteRows(long, Set, boolean)}
*/
@@ -167,18 +167,18 @@ PartialRowUpdateResult addRowsAllowPartialSuccess(
* Send a row via email to the designated recipients. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/emails
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the id of the sheet
- * @param rowId the id of the row
- * @param email the row email
+ * @param rowId the id of the row
+ * @param email the row email
* @throws SmartsheetException the smartsheet exception
* @deprecated as of API V2.0.2, replaced by {@link #sendRows(long, MultiRowEmail)}
*/
@@ -189,17 +189,17 @@ PartialRowUpdateResult addRowsAllowPartialSuccess(
* Send a row via email to the designated recipients. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/emails
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the id of the sheet
- * @param email the multi row email
+ * @param email the multi row email
* @throws SmartsheetException the smartsheet exception
*/
void sendRows(long sheetId, MultiRowEmail email) throws SmartsheetException;
@@ -208,17 +208,17 @@ PartialRowUpdateResult addRowsAllowPartialSuccess(
* Deletes one or more row(s) from the Sheet specified in the URL. It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/rows/{rowId}
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the sheet id
- * @param rowIds the row ids
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the sheet id
+ * @param rowIds the row ids
* @param ignoreRowsNotFound boolean for ignoring row ids not found
* @return a list of deleted rows
* @throws SmartsheetException the smartsheet exception
@@ -229,17 +229,17 @@ PartialRowUpdateResult addRowsAllowPartialSuccess(
* Update rows. It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the id of the sheet
- * @param rows the list of rows
+ * @param rows the list of rows
* @return a list of rows
* @throws SmartsheetException the smartsheet exception
*/
@@ -249,17 +249,17 @@ PartialRowUpdateResult addRowsAllowPartialSuccess(
* Update rows. It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the id of the sheet
- * @param rows the list of rows
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the id of the sheet
+ * @param rows the list of rows
* @param includes optional objects to include
* @param excludes optional objects to exclude
* @return a list of rows
@@ -276,7 +276,7 @@ List Helper method: Update a single cell NOTE: This method internally fetches the sheet. To avoid this step, fetch the sheet in
* advance and use the method by the same name Helper method: Update a single with a string value It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the id of the sheet
- * @param rows the list of rows
+ * @param rows the list of rows
* @return a list of rows
* @throws SmartsheetException the smartsheet exception
*/
@@ -334,17 +334,17 @@ List It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the id of the sheet
- * @param rows the list of rows
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the id of the sheet
+ * @param rows the list of rows
* @param includes optional objects to include
* @param excludes optional objects to exclude
* @return a list of rows
@@ -361,19 +361,19 @@ PartialRowUpdateResult updateRowsAllowPartialSuccess(
* Moves Row(s) from the Sheet specified in the URL to (the bottom of) another sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/move
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the sheet ID to move
- * @param includes the parameters to include
+ * IllegalArgumentException : if any argument is null, or path is empty string
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the sheet ID to move
+ * @param includes the parameters to include
* @param ignoreRowsNotFound optional,specifying row Ids that do not exist within the source sheet
- * @param moveParameters CopyOrMoveRowDirective object
+ * @param moveParameters CopyOrMoveRowDirective object
* @return the result object
* @throws SmartsheetException the smartsheet exception
*/
@@ -388,19 +388,19 @@ CopyOrMoveRowResult moveRows(
* Copies Row(s) from the Sheet specified in the URL to (the bottom of) another sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/move
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param sheetId the sheet ID to move
- * @param includes the parameters to include
+ * IllegalArgumentException : if any argument is null, or path is empty string
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param sheetId the sheet ID to move
+ * @param includes the parameters to include
* @param ignoreRowsNotFound optional,specifying row Ids that do not exist within the source sheet
- * @param copyParameters CopyOrMoveRowDirective object
+ * @param copyParameters CopyOrMoveRowDirective object
* @return the result object
* @throws SmartsheetException the smartsheet exception
*/
diff --git a/src/main/java/com/smartsheet/api/SheetSummaryResources.java b/src/main/java/com/smartsheet/api/SheetSummaryResources.java
index d5329912..4efaa67f 100644
--- a/src/main/java/com/smartsheet/api/SheetSummaryResources.java
+++ b/src/main/java/com/smartsheet/api/SheetSummaryResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,56 +39,56 @@ public interface SheetSummaryResources {
*
* It mirrors to the following Smartsheet REST API method: GET /sheets/{id}/summary Gets the sheet summary fields It mirrors to the following Smartsheet REST API method: GET /sheets/{id}/summary/fields Insert fields into a sheet summary. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/summary/fields Update fields in a sheet summary. It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/summary/fields It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/summary/fields Delete fields in a sheet summary. It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/summary/fields It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/summary/fields/{fieldId}/images
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/summary/fields/{fieldId}/images
*
- * @param sheetId the sheet id
- * @param fieldId the summary field id
- * @param file File to upload
+ * @param sheetId the sheet id
+ * @param fieldId the summary field id
+ * @param file File to upload
* @param contentType content-type of the file being uploaded
- * @param altText alternate text for the image
+ * @param altText alternate text for the image
* @return Result
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
Result
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/summary/fields/{fieldId}/images
*
- * @param sheetId the sheet id
- * @param fieldId the summary field id
- * @param inputStream File to upload
- * @param contentType content-type of the file being uploaded
+ * @param sheetId the sheet id
+ * @param fieldId the summary field id
+ * @param inputStream File to upload
+ * @param contentType content-type of the file being uploaded
* @param contentLength content length
- * @param altText alternate text for the image
+ * @param altText alternate text for the image
* @return Result
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
Result It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/updaterequests It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/updaterequests/{updateRequestId} It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/updaterequests It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/updaterequests/{updateRequestId} It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/updaterequests/{updateRequestId} It mirrors To the following Smartsheet REST API method: GET /sheets/{sheetId}/sentupdaterequests It mirrors To the following Smartsheet REST API method: GET /sheets/{sheetId}/sentupdaterequests/{updateRequestId} It mirrors To the following Smartsheet REST API method: DELETE /sheets/{sheetId}/sentupdaterequests/{sentUpdateRequestId} It mirrors to the following Smartsheet REST API method: GET /sights It mirrors to the following Smartsheet REST API method: GET /sights/{sightId} It mirrors to the following Smartsheet REST API method: GET /sights/{sightId} It mirrors to the following Smartsheet REST API method: DELETE /sights/{sightId} It mirrors to the following Smartsheet REST API method: POST /sights/{sightId}/copy It mirrors to the following Smartsheet REST API method: POST /sights/{sightId}/move It mirrors to the following Smartsheet REST API method: PUT /sights/{sightId}/publish Enable request/response tracing in client Constructor. Represents the error code. Represents the reference ID. Represents the reference ID. It will be initialized in the constructor and will not change afterwards. It will be initialized in the constructor and will not change afterwards. Represents any error detail provided by the API Represents any error detail provided by the API It will be initialized in the constructor and will not change afterwards. It will be initialized in the constructor and will not change afterwards. List user-created templates. It mirrors to the following Smartsheet REST API method: GET /templates
* Exceptions:
- * - InvalidRequestException : if there is any problem with the REST API request
- * - AuthorizationException : if there is any problem with the REST API authorization(access token)
- * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * - SmartsheetException : if there is any other error occurred during the operation
+ * - InvalidRequestException : if there is any problem with the REST API request
+ * - AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * - SmartsheetException : if there is any other error occurred during the operation
*
* @param parameters the pagination parameters
* @return all templates (note that empty list will be returned if there is none)
@@ -49,13 +49,13 @@ public interface TemplateResources {
* List public templates. It mirrors to the following Smartsheet REST API method: GET /templates/public
* Exceptions:
- * - InvalidRequestException : if there is any problem with the REST API request
- * - AuthorizationException : if there is any problem with the REST API authorization(access token)
- * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * - SmartsheetException : if there is any other error occurred during the operation
+ * - InvalidRequestException : if there is any problem with the REST API request
+ * - AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * - SmartsheetException : if there is any other error occurred during the operation
*
* @param parameters the pagination parameters
* @return all templates (note that empty list will be returned if there is none)
diff --git a/src/main/java/com/smartsheet/api/TokenResources.java b/src/main/java/com/smartsheet/api/TokenResources.java
index 42bf9d6a..8a631804 100644
--- a/src/main/java/com/smartsheet/api/TokenResources.java
+++ b/src/main/java/com/smartsheet/api/TokenResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,18 +35,18 @@ public interface TokenResources {
* Revoke access token.
*
* Exceptions:
- * - IllegalArgumentException : if url is null or empty
- * - InvalidTokenRequestException : if the token request is invalid
- * - InvalidOAuthClientException : if the client information is invalid
- * - InvalidOAuthGrantException : if the authorization code or refresh token is invalid or
- * expired, the redirect_uri does not match, or the hash value does not match the client secret and/or code
- * - UnsupportedOAuthGrantTypeException : if the grant type is invalid
- * - OAuthTokenException : if any other error occurred during the operation
+ * - IllegalArgumentException : if url is null or empty
+ * - InvalidTokenRequestException : if the token request is invalid
+ * - InvalidOAuthClientException : if the client information is invalid
+ * - InvalidOAuthGrantException : if the authorization code or refresh token is invalid or
+ * expired, the redirect_uri does not match, or the hash value does not match the client secret and/or code
+ * - UnsupportedOAuthGrantTypeException : if the grant type is invalid
+ * - OAuthTokenException : if any other error occurred during the operation
*
- * @throws OAuthTokenException the o auth token exception
+ * @throws OAuthTokenException the o auth token exception
* @throws JSONSerializerException the JSON serializer exception
- * @throws HttpClientException the http client exception
- * @throws URISyntaxException the URI syntax exception
+ * @throws HttpClientException the http client exception
+ * @throws URISyntaxException the URI syntax exception
* @throws InvalidRequestException the invalid request exception
*/
void revokeAccessToken() throws OAuthTokenException, JSONSerializerException, HttpClientException,
diff --git a/src/main/java/com/smartsheet/api/Trace.java b/src/main/java/com/smartsheet/api/Trace.java
index 1290f21c..694541a8 100644
--- a/src/main/java/com/smartsheet/api/Trace.java
+++ b/src/main/java/com/smartsheet/api/Trace.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -49,6 +49,7 @@ public boolean addReplacements(Set It mirrors to the following Smartsheet REST API method: GET /users It mirrors to the following Smartsheet REST API method: GET /users It mirrors to the following Smartsheet REST API method: GET /users Add a user to the organization, without sending email. It mirrors to the following Smartsheet REST API method: POST /users It mirrors to the following Smartsheet REST API method: GET /user/me It mirrors to the following Smartsheet REST API method: DELETE /user/{id} It mirrors to the following Smartsheet REST API method: GET /users/sheets It mirrors to the following Smartsheet REST API method: GET /users/{userId}/alternateemails It mirrors to the following Smartsheet REST API method: GET /users/{userId}/alternateemails/{alternateEmailId} It mirrors to the following Smartsheet REST API method: POST /users/{userId}/alternateemails It mirrors to the following Smartsheet REST API method: DELETE /users/{userId}/alternateemails/{alternateEmailId} Promote and alternate email to primary. Uploads a profile image for the specified user. It mirrors to the following Smartsheet REST API method: DELETE /webhooks/{webhookId} Resets the shared secret for the specified Webhook. For more information about how a shared secret is used,
- * see Authenticating Callbacks. It mirrors to the following Smartsheet REST API method: POST /webhooks/{webhookId}/resetsharedsecret It mirrors to the following Smartsheet REST API method: GET /workspace/{id}/folders It mirrors to the following Smartsheet REST API method: POST /workspace/{id}/folders It mirrors to the following Smartsheet REST API method: GET /workspace/{id} It mirrors to the following Smartsheet REST API method: DELETE /workspace{id} Creates a copy of the specified workspace. It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/copy
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param workspaceId the folder id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param workspaceId the folder id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
- * @param skipRemap optional parameters to exclude
+ * @param includes optional parameters to include
+ * @param skipRemap optional parameters to exclude
* @return the folder
* @throws SmartsheetException the smartsheet exception
*/
@@ -148,27 +148,27 @@ Workspace copyWorkspace(
* Creates a copy of the specified workspace. It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/copy
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param workspaceId the folder id
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param workspaceId the folder id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
- * @param skipRemap optional parameters to NOT re-map in the new folder
- * @param excludes optional parameters to exclude
+ * @param includes optional parameters to include
+ * @param skipRemap optional parameters to NOT re-map in the new folder
+ * @param excludes optional parameters to exclude
* @return the folder
* @throws SmartsheetException the smartsheet exception
* @deprecated As of release 2.0. `excludes` param is deprecated. Please use the `copyWorkspace` method with `includes` instead.
*/
@Deprecated(since = "2.0.0", forRemoval = true)
Workspace copyWorkspace(long workspaceId, ContainerDestination containerDestination, EnumSet Return the WorkspaceFolderResources object that provides access to Folder resources associated with Workspace
diff --git a/src/main/java/com/smartsheet/api/internal/AbstractAssociatedResources.java b/src/main/java/com/smartsheet/api/internal/AbstractAssociatedResources.java
index 664d965b..1dc79f41 100644
--- a/src/main/java/com/smartsheet/api/internal/AbstractAssociatedResources.java
+++ b/src/main/java/com/smartsheet/api/internal/AbstractAssociatedResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,13 +20,13 @@
/**
* This is the base class of the Smartsheet REST API resources that are associated to other resources.
- *
+ *
* Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
*/
public abstract class AbstractAssociatedResources extends AbstractResources {
/**
* Represents the master resource type (e.g. "sheet", "workspace").
- *
+ *
* It will be initialized in constructor and will not change afterwards.
*/
private String masterResourceType;
@@ -34,7 +34,7 @@ public abstract class AbstractAssociatedResources extends AbstractResources {
/**
* Constructor.
*
- * @param smartsheet the smartsheet
+ * @param smartsheet the smartsheet
* @param masterResourceType the master resource type
*/
public AbstractAssociatedResources(SmartsheetImpl smartsheet, String masterResourceType) {
diff --git a/src/main/java/com/smartsheet/api/internal/AbstractResources.java b/src/main/java/com/smartsheet/api/internal/AbstractResources.java
index ae23abbe..f60032cc 100644
--- a/src/main/java/com/smartsheet/api/internal/AbstractResources.java
+++ b/src/main/java/com/smartsheet/api/internal/AbstractResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -60,16 +60,20 @@
/**
* This is the base class of the Smartsheet REST API resources.
- *
+ *
* Thread Safety: This class is thread safe because it is immutable and the underlying SmartsheetImpl is thread safe.
*/
public abstract class AbstractResources {
- /** this system property is used to control the number of characters logged from an API response in logs */
+ /**
+ * this system property is used to control the number of characters logged from an API response in logs
+ */
public static final String PROPERTY_RESPONSE_LOG_CHARS = "Smartsheet.responseLogChars";
private static final Logger log = LoggerFactory.getLogger(AbstractResources.class);
- /** The Constant BUFFER_SIZE. */
+ /**
+ * The Constant BUFFER_SIZE.
+ */
private static final int BUFFER_SIZE = 4098;
private static final String JSON_CONTENT_TYPE = "application/json";
@@ -87,16 +91,20 @@ public enum ErrorCode {
INTERNAL_SERVER_ERROR(500, InvalidRequestException.class),
SERVICE_UNAVAILABLE(503, ServiceUnavailableException.class);
- /** The error code. */
+ /**
+ * The error code.
+ */
int errorCode;
- /** The Exception class. */
+ /**
+ * The Exception class.
+ */
Class extends SmartsheetRestException> exceptionClass;
/**
* Instantiates a new error code.
*
- * @param errorCode the error code
+ * @param errorCode the error code
* @param exceptionClass the Exception class
*/
ErrorCode(int errorCode, Class extends SmartsheetRestException> exceptionClass) {
@@ -160,7 +168,7 @@ public SmartsheetRestException getException(com.smartsheet.api.models.Error erro
/**
* Represents the SmartsheetImpl.
- *
+ *
* It will be initialized in constructor and will not change afterwards.
*/
protected final SmartsheetImpl smartsheet;
@@ -178,22 +186,22 @@ protected AbstractResources(SmartsheetImpl smartsheet) {
/**
* Get a resource from Smartsheet REST API.
- *
+ *
* Parameters: - path : the relative path of the resource - objectClass : the resource object class
- *
+ *
* Returns: the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
* rather than returning null).
- *
+ *
* Exceptions: -
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Parameters: - path : the relative path of the resource collections - objectToPost : the object to post -
* objectClassToReceive : the resource object class to receive
- *
+ *
* Returns: the object list
- *
+ *
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param
* Returns: the object
- *
+ *
* Exceptions:
- * IllegalArgumentException : if any argument is null, or path is empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
- *
- * @param path the path
+ * IllegalArgumentException : if any argument is null, or path is empty string
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param path the path
* @param objectToPost the object to post
* @return the result object
* @throws SmartsheetException the smartsheet exception
@@ -692,18 +701,19 @@ protected CopyOrMoveRowResult postAndReceiveRowObject(String path, CopyOrMoveRow
/**
* Put an object to Smartsheet REST API and receive a list of objects from response.
- * @param
* Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
+ *
* @deprecated As of release 2.0. Please use {@link AttachmentVersioningResources} instead
*/
@Deprecated(since = "2.0.0", forRemoval = true)
diff --git a/src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java
index fcfdd702..1d1afad8 100644
--- a/src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ public class AttachmentVersioningResourcesImpl extends AbstractResources impleme
* Constructor.
*
* Exceptions:
- * IllegalArgumentException : if any argument is null or empty string
+ * IllegalArgumentException : if any argument is null or empty string
*
* @param smartsheet the smartsheet
*/
@@ -56,14 +56,14 @@ public AttachmentVersioningResourcesImpl(SmartsheetImpl smartsheet) {
*
* It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/attachments/{attachmentId}/versions
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param attachentId the attachment id
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public void deleteAllVersions(long sheetId, long attachentId) throws SmartsheetException {
// Note: "attachentId" has a typo in it here, but it'd be a breaking change to rename it since this is public
@@ -75,17 +75,17 @@ public void deleteAllVersions(long sheetId, long attachentId) throws SmartsheetE
*
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/attachments/{attachmentId}/versions
*
- * @param sheetId the id
+ * @param sheetId the id
* @param attachmentId the attachment id
- * @param parameters the pagination paramaters
+ * @param parameters the pagination paramaters
* @return the attachment (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * rather than returning null).
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public PagedResult
* It mirrors to the following Smartsheet REST API method: POST /attachment/{id}/versions
*
- * @param sheetId the id of the sheet
+ * @param sheetId the id of the sheet
* @param attachmentId the id of the attachment to upload a new version.
- * @param file the file to attach
- * @param contentType the content type of the file
+ * @param file the file to attach
+ * @param contentType the content type of the file
* @return the created attachment
- * @throws FileNotFoundException the file not found exception
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws FileNotFoundException the file not found exception
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Attachment attachNewVersion(
long sheetId,
@@ -135,19 +135,19 @@ public Attachment attachNewVersion(
*
* It mirrors to the following Smartsheet REST API method: POST /attachment/{id}/versions
*
- * @param sheetId the id of the sheet
- * @param attachmentId the id of the object
- * @param inputStream the {@link InputStream} of the file to attach
- * @param contentType the content type of the file
- * @param contentLength the size of the file in bytes.
+ * @param sheetId the id of the sheet
+ * @param attachmentId the id of the object
+ * @param inputStream the {@link InputStream} of the file to attach
+ * @param contentType the content type of the file
+ * @param contentLength the size of the file in bytes.
* @param attachmentName the name of the file.
* @return the created attachment
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
private Attachment attachNewVersion(
long sheetId,
diff --git a/src/main/java/com/smartsheet/api/internal/ColumnResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/ColumnResourcesImpl.java
index bbb849f0..7d67821a 100644
--- a/src/main/java/com/smartsheet/api/internal/ColumnResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/ColumnResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,6 +24,7 @@
* This is the implementation of the ColumnResources.
*
* Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
+ *
* @deprecated As of release 2.0. Please use {@link SheetCommentResources} instead
*/
@Deprecated(since = "2.0.0", forRemoval = true)
diff --git a/src/main/java/com/smartsheet/api/internal/CommentAttachmentResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/CommentAttachmentResourcesImpl.java
index 737e69f6..2efa9b6a 100644
--- a/src/main/java/com/smartsheet/api/internal/CommentAttachmentResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/CommentAttachmentResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@
/**
* This is the implementation of the CommentAttachmentResources.
- *
+ *
* Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
*/
public class CommentAttachmentResourcesImpl extends AbstractResources implements com.smartsheet.api.CommentAttachmentResources {
@@ -42,22 +42,22 @@ public CommentAttachmentResourcesImpl(SmartsheetImpl smartsheet) {
/**
* Attach a URL to a comment.
- *
+ *
* The URL can be a normal URL (attachmentType "URL"), a Google Drive URL (attachmentType "GOOGLE_DRIVE") or a
* Box.com URL (attachmentType "BOX_COM").
- *
+ *
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/comments/{commentId}/attachments
*
- * @param sheetId the sheet id
- * @param commentId the comment id
+ * @param sheetId the sheet id
+ * @param commentId the comment id
* @param attachment the attachment object
* @return the created attachment
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Attachment attachUrl(long sheetId, long commentId, Attachment attachment) throws SmartsheetException {
return this.createResource("sheets/" + sheetId + "/comments/" + commentId + "/attachments", Attachment.class, attachment);
@@ -65,21 +65,21 @@ public Attachment attachUrl(long sheetId, long commentId, Attachment attachment)
/**
* Attach a file to a comment with simple upload.
- *
+ *
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/comments/{commentId}/attachments
*
- * @param sheetId the id of the sheet
- * @param commentId the id of the comment
- * @param file the file to attach
+ * @param sheetId the id of the sheet
+ * @param commentId the id of the comment
+ * @param file the file to attach
* @param contentType the content type of the file
* @return the created attachment
- * @throws FileNotFoundException the file not found exception
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws FileNotFoundException the file not found exception
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Attachment attachFile(long sheetId, long commentId, File file, String contentType) throws FileNotFoundException,
SmartsheetException {
@@ -92,11 +92,11 @@ public Attachment attachFile(long sheetId, long commentId, File file, String con
/**
* Attach file for simple upload.
*
- * @param sheetId the sheet id
- * @param commentId the comment id
- * @param inputStream the attachment data inputStream
- * @param contentType the content type
- * @param contentLength the content length
+ * @param sheetId the sheet id
+ * @param commentId the comment id
+ * @param inputStream the attachment data inputStream
+ * @param contentType the content type
+ * @param contentLength the content length
* @param attachmentName the name of the attachment
* @return the attachment
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/internal/CommentResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/CommentResourcesImpl.java
index 8bc3eb27..ecf835db 100644
--- a/src/main/java/com/smartsheet/api/internal/CommentResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/CommentResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/src/main/java/com/smartsheet/api/internal/ContactResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/ContactResourcesImpl.java
index a2ada220..c28b0a8f 100644
--- a/src/main/java/com/smartsheet/api/internal/ContactResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/ContactResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ public class ContactResourcesImpl extends AbstractResources implements ContactRe
/**
* Constructor
- *
+ *
* Exceptions: - IllegalArgumentException : if any argument is null
*
* @param smartsheet the smartsheet
diff --git a/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResources.java b/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResources.java
index 491a5fdf..75d15baf 100644
--- a/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResources.java
+++ b/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResources.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,18 +46,18 @@ public DiscussionAttachmentResources(SmartsheetImpl smartsheet) {
* Attach a file to the object.
*
* It mirrors to the following Smartsheet REST API method:
- * POST /sheet/{id}/attachments
- * POST /row/{id}/attachments
- * POST /comment/{id}/attachments
+ * POST /sheet/{id}/attachments
+ * POST /row/{id}/attachments
+ * POST /comment/{id}/attachments
*
* Returns: the created attachment
*
* Exceptions:
- * UnsupportedOperationException : this exception is always thrown since this method is not supported by
- * discussion resources.
+ * UnsupportedOperationException : this exception is always thrown since this method is not supported by
+ * discussion resources.
*
- * @param objectId the object id
- * @param file the file to attach
+ * @param objectId the object id
+ * @param file the file to attach
* @param contentType the content type of the file
* @return the attachment
*/
diff --git a/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResourcesImpl.java
index 386bc691..5f7a7193 100644
--- a/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,18 +46,18 @@ public DiscussionAttachmentResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/discussions/{discussionId}/attachments
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param discussionId the discussion id
- * @param parameters the pagination parameters
+ * @param parameters the pagination parameters
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public PagedResult
* It mirrors to the following Smartsheet REST API method: POST /discussion/{discussionId}/comments
*
- * @param sheetId the sheet id
+ *
+ * @param sheetId the sheet id
* @param discussionId the discussion id
- * @param comment the comment to add
+ * @param comment the comment to add
* @return the created comment
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Comment addComment(long sheetId, long discussionId, Comment comment) throws SmartsheetException {
return this.createResource(SHEETS_PATH + sheetId + "/discussions/" + discussionId + "/comments", Comment.class, comment);
@@ -71,22 +72,22 @@ public Comment addComment(long sheetId, long discussionId, Comment comment) thro
/**
* Add a comment to a discussion with an attachment.
- *
+ *
* It mirrors to the following Smartsheet REST API method: POST /discussion/{discussionId}/comments
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param discussionId the dicussion id
- * @param comment the comment to add
- * @param file the file to be attached
- * @param contentType the type of file
+ * @param comment the comment to add
+ * @param file the file to be attached
+ * @param contentType the type of file
* @return the created comment
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
- * @throws IOException is there is any error with file
+ * @throws SmartsheetException if there is any other error during the operation
+ * @throws IOException is there is any error with file
*/
public Comment addCommentWithAttachment(
long sheetId,
@@ -113,18 +114,18 @@ private Comment addCommentWithAttachment(
/**
* Update the specified comment
- *
+ *
* It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/comments/{commentId}
-
+ *
* @param sheetId the sheet id
* @param comment the new comment object
* @return the updated comment
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Comment updateComment(long sheetId, Comment comment) throws SmartsheetException {
return this.updateResource(SHEETS_PATH + sheetId + "/comments/" + comment.getId(), Comment.class, comment);
diff --git a/src/main/java/com/smartsheet/api/internal/DiscussionResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/DiscussionResourcesImpl.java
index f5828ef2..a8e73438 100644
--- a/src/main/java/com/smartsheet/api/internal/DiscussionResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/DiscussionResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -59,14 +59,14 @@ public DiscussionResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: POST /discussion/{discussionId}/comments
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param id the discussion ID
+ * @param id the discussion ID
* @param comment the comment to add, limited to the following required attributes: text
* @return the created comment
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/internal/EventResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/EventResourcesImpl.java
index 48eb39cc..22c5112e 100644
--- a/src/main/java/com/smartsheet/api/internal/EventResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/EventResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -56,22 +56,22 @@ public EventResourcesImpl(SmartsheetImpl smartsheet) {
*
* It mirrors to the following Smartsheet REST API method: GET /events
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param favorites the list of favorites object limited to the following attributes: *
- * objectId * type
+ * objectId * type
* @return a single Favorite object or an array of Favorite objects
* @throws SmartsheetException the smartsheet exception
*/
@@ -76,13 +76,13 @@ public List
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param parameters pagination parameters
* @return a single Favorite object or an array of Favorite objects
@@ -104,16 +104,16 @@ public PagedResult
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param favoriteType the favorite type
- * @param objectIds a single Favorite object or an array of Favorite objects
+ * @param objectIds a single Favorite object or an array of Favorite objects
* @throws SmartsheetException the smartsheet exception
*/
public void removeFavorites(FavoriteType favoriteType, Set
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param folderId the folder id
* @param includes the include parameters
* @return the folder (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null)
+ * rather than returning null)
* @throws SmartsheetException the smartsheet exception
*/
public Folder getFolder(long folderId, EnumSet
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param folder the folder to update
* @return the updated folder (note that if there is no such folder, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public Folder updateFolder(Folder folder) throws SmartsheetException {
@@ -111,12 +111,12 @@ public Folder updateFolder(Folder folder) throws SmartsheetException {
* It mirrors to the following Smartsheet REST API method: DELETE /folder{id}
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param folderId the folder id
* @throws SmartsheetException the smartsheet exception
@@ -134,15 +134,15 @@ public void deleteFolder(long folderId) throws SmartsheetException {
* Parameters: - parentFolderId : the parent folder ID
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param parentFolderId the parent folder id
- * @param parameters the parameters for pagination
+ * @param parameters the parameters for pagination
* @return the child folders (note that empty list will be returned if no child folder found)
* @throws SmartsheetException the smartsheet exception
*/
@@ -162,15 +162,15 @@ public PagedResult
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param parentFolderId the parent folder id
- * @param folder the folder to create
+ * @param folder the folder to create
* @return the folder
* @throws SmartsheetException the smartsheet exception
*/
@@ -185,17 +185,17 @@ public Folder createFolder(long parentFolderId, Folder folder) throws Smartsheet
* It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
*
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param folderId the folder id
+ * @param folderId the folder id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
- * @param skipRemap optional parameters to exclude
+ * @param includes optional parameters to include
+ * @param skipRemap optional parameters to exclude
* @return the folder
* @throws SmartsheetException the smartsheet exception
*/
@@ -214,18 +214,18 @@ public Folder copyFolder(
* It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/copy
*
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param folderId the folder id
+ * @param folderId the folder id
* @param containerDestination describes the destination container
- * @param includes optional parameters to include
- * @param skipRemap optional parameters to NOT re-map in the new folder
- * @param excludes optional parameters to exclude
+ * @param includes optional parameters to include
+ * @param skipRemap optional parameters to NOT re-map in the new folder
+ * @param excludes optional parameters to exclude
* @return the folder
* @throws SmartsheetException the smartsheet exception
*/
@@ -250,14 +250,14 @@ public Folder copyFolder(long folderId, ContainerDestination containerDestinatio
* It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/move
*
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param folderId the folder id
+ * @param folderId the folder id
* @param containerDestination describes the destination container
* @return the folder
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/internal/GroupMemberResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/GroupMemberResourcesImpl.java
index ed49f05b..aa5ad40e 100644
--- a/src/main/java/com/smartsheet/api/internal/GroupMemberResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/GroupMemberResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,17 +26,17 @@
/**
* This is the implementation of the ShareResources.
- *
+ *
* Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
*/
public class GroupMemberResourcesImpl extends AbstractAssociatedResources implements GroupMemberResources {
/**
* Constructor.
- *
+ *
* Exceptions: - IllegalArgumentException : if any argument is null or empty string
*
- * @param smartsheet the smartsheet
+ * @param smartsheet the smartsheet
* @param masterResourceType the master resource type (e.g. "sheet", "workspace")
*/
public GroupMemberResourcesImpl(SmartsheetImpl smartsheet, String masterResourceType) {
diff --git a/src/main/java/com/smartsheet/api/internal/GroupResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/GroupResourcesImpl.java
index 3f931da1..211de69e 100644
--- a/src/main/java/com/smartsheet/api/internal/GroupResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/GroupResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/src/main/java/com/smartsheet/api/internal/HomeFolderResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/HomeFolderResourcesImpl.java
index 190cfa19..ea54b810 100644
--- a/src/main/java/com/smartsheet/api/internal/HomeFolderResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/HomeFolderResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,12 +46,12 @@ public HomeFolderResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /home/folders
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param parameters the pagination parameters
* @return the folders (note that empty list will be returned if there is none)
@@ -73,12 +73,12 @@ public PagedResult
* Exceptions:
- * IllegalArgumentException : if folder is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if folder is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param folder the folder to create
* @return the created folder
diff --git a/src/main/java/com/smartsheet/api/internal/HomeResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/HomeResourcesImpl.java
index c8ba701f..662a8011 100644
--- a/src/main/java/com/smartsheet/api/internal/HomeResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/HomeResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -60,16 +60,16 @@ public HomeResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /home
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param includes used to specify the optional objects to include, currently TEMPLATES is supported.
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public Home getHome(EnumSet
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param includes used to specify the optional objects to include, currently TEMPLATES is supported.
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public Home getHome(EnumSet
* Exceptions: - IllegalArgumentException : if any argument is null
*
* @param smartsheet the smartsheet
@@ -57,13 +57,13 @@ public ImageUrlResourcesImpl(SmartsheetImpl smartsheet) {
*
* @param requestUrls array of requested Images and sizes.
* @return the ImageUrlMap object (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * ResourceNotFoundException rather than returning null).
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public ImageUrlMap getImageUrls(List
* If reset is called the totalBytesRead property is reset to 0.
*/
public class LengthEnforcingInputStream extends FilterInputStream {
diff --git a/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java
index c348766c..841bcb22 100644
--- a/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -51,15 +51,15 @@ public PassthroughResourcesImpl(SmartsheetImpl smartsheet) {
/**
* Issue an HTTP GET request.
*
- * @param endpoint the API endpoint
+ * @param endpoint the API endpoint
* @param parameters optional list of resource parameters
* @return a JSON response string
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public String getRequest(String endpoint, Map
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param reportId the folder id
* @param includes the optional objects to include in response
* @param pageSize Number of rows per page
- * @param page page number to return
- * @return the report (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null)
+ * @param page page number to return
+ * @return the report (note that if there is no such resource, this method will throw ResourceNotFoundException
+ * rather than returning null)
* @throws SmartsheetException the smartsheet exception
*/
public Report getReport(long reportId, EnumSet
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param reportId the folder id
* @param includes the optional objects to include in response
* @param pageSize Number of rows per page
- * @param page page number to return
- * @param level compatibility level
- * @return the report (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null)
+ * @param page page number to return
+ * @param level compatibility level
+ * @return the report (note that if there is no such resource, this method will throw ResourceNotFoundException
+ * rather than returning null)
* @throws SmartsheetException the smartsheet exception
*/
public Report getReport(
@@ -149,15 +149,15 @@ public Report getReport(
* It mirrors to the following Smartsheet REST API method: POST /reports/{id}/emails
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param reportId the report id
- * @param email the recipient email
+ * @param email the recipient email
* @throws SmartsheetException the smartsheet exception
*/
public void sendReport(long reportId, SheetEmail email) throws SmartsheetException {
@@ -170,11 +170,11 @@ public void sendReport(long reportId, SheetEmail email) throws SmartsheetExcepti
* It mirrors to the following Smartsheet REST API method: GET /reports
*
* Exceptions:
- * - InvalidRequestException : if there is any problem with the REST API request
- * - AuthorizationException : if there is any problem with the REST API authorization(access token)
- * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * - SmartsheetException : if there is any other error occurred during the operation
+ * - InvalidRequestException : if there is any problem with the REST API request
+ * - AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * - SmartsheetException : if there is any other error occurred during the operation
*
* @param pagination pagination parameters for paging result
* @return all sheets (note that empty list will be returned if there is none)
@@ -210,15 +210,15 @@ public PagedResult
* Exceptions:
- * IllegalArgumentException : if outputStream is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if outputStream is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param id the id
+ * @param id the id
* @param outputStream the OutputStream to which the Excel file will be written
* @throws SmartsheetException the smartsheet exception
*/
@@ -233,15 +233,15 @@ public void getReportAsExcel(long id, OutputStream outputStream) throws Smartshe
* HTTP header
*
* Exceptions:
- * IllegalArgumentException : if outputStream is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if outputStream is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param id the id
+ * @param id the id
* @param outputStream the OutputStream to which the Excel file will be written
* @throws SmartsheetException the smartsheet exception
*/
@@ -255,22 +255,22 @@ public void getReportAsCsv(long id, OutputStream outputStream) throws Smartsheet
* It mirrors to the following Smartsheet REST API method: GET /reports/{id}/publish
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param id the ID of the report
* @return the report publish status (note that if there is no such resource, this method will
- * throw ResourceNotFoundException rather than returning null).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * throw ResourceNotFoundException rather than returning null).
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public ReportPublish getPublishStatus(long id) throws SmartsheetException {
return this.getResource(REPORTS_PATH + id + "/publish", ReportPublish.class);
@@ -283,23 +283,23 @@ public ReportPublish getPublishStatus(long id) throws SmartsheetException {
* It mirrors to the following Smartsheet REST API method: PUT /reports/{id}/publish
*
* Exceptions:
- * - InvalidRequestException : if there is any problem with the REST API request
- * - AuthorizationException : if there is any problem with the REST API authorization(access token)
- * - ResourceNotFoundException : if the resource can not be found
- * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * - SmartsheetException : if there is any other error occurred during the operation
+ * - InvalidRequestException : if there is any problem with the REST API request
+ * - AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * - ResourceNotFoundException : if the resource can not be found
+ * - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * - SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * - SmartsheetException : if there is any other error occurred during the operation
*
- * @param id the ID of the report
+ * @param id the ID of the report
* @param reportPublish the ReportPublish object
* @return the updated ReportPublish (note that if there is no such resource, this method will
- * throw ResourceNotFoundException rather than returning null)
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * throw ResourceNotFoundException rather than returning null)
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public ReportPublish updatePublishStatus(long id, ReportPublish reportPublish) throws SmartsheetException {
return this.updateResource(REPORTS_PATH + id + "/publish", ReportPublish.class, reportPublish);
diff --git a/src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java
index f95af9d9..390b9aab 100644
--- a/src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -51,16 +51,16 @@ public RowAttachmentResourcesImpl(SmartsheetImpl smartsheet) {
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/attachments
*
- * @param sheetId the sheet id
- * @param rowId the row id
+ * @param sheetId the sheet id
+ * @param rowId the row id
* @param attachment the attachment object
* @return the created attachment
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Attachment attachUrl(long sheetId, long rowId, Attachment attachment) throws SmartsheetException {
return this.createResource(createPath(sheetId, rowId), Attachment.class, attachment);
@@ -75,18 +75,18 @@ public Attachment attachUrl(long sheetId, long rowId, Attachment attachment) thr
* rather than returning null).
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
- * @param rowId the row id
+ * @param sheetId the sheet id
+ * @param rowId the row id
* @param parameters the pagination parameters
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public PagedResult
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/attachments
*
- * @param sheetId the id of the sheet
- * @param rowId the id of the comment
- * @param file the file to attach
+ * @param sheetId the id of the sheet
+ * @param rowId the id of the comment
+ * @param file the file to attach
* @param contentType the content type of the file
* @return the created attachment
- * @throws FileNotFoundException the file not found exception
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws FileNotFoundException the file not found exception
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Attachment attachFile(long sheetId, long rowId, File file, String contentType) throws FileNotFoundException,
SmartsheetException {
@@ -126,10 +126,10 @@ public Attachment attachFile(long sheetId, long rowId, File file, String content
/**
* Attach file for simple upload.
*
- * @param sheetId the sheet id
- * @param rowId the row id
- * @param contentType the content type
- * @param contentLength the content length
+ * @param sheetId the sheet id
+ * @param rowId the row id
+ * @param contentType the content type
+ * @param contentLength the content length
* @param attachmentName the name of the attachment
* @return the attachment
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/internal/RowColumnResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/RowColumnResourcesImpl.java
index cb03e942..cdfafb1e 100644
--- a/src/main/java/com/smartsheet/api/internal/RowColumnResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/RowColumnResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,19 +69,19 @@ public RowColumnResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/history
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param rowId the row id
- * @param columnId the column id
- * @param sheetId the sheet ID
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param sheetId the sheet ID
* @param parameters the pagination parameters
* @return the modification history (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public PagedResult
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param rowId the row id
- * @param columnId the column id
- * @param sheetId the sheet ID
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param sheetId the sheet ID
* @param pagination the pagination parameters
- * @param includes cell history inclusion
- * @param level compatibility level
+ * @param includes cell history inclusion
+ * @param level compatibility level
* @return the modification history (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public PagedResult
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row id
- * @param columnId the column id
- * @param file the file path
+ * @param sheetId the sheet ID
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param file the file path
* @param contentType MIME type of the image
- * @throws SmartsheetException the smartsheet exception
+ * @throws SmartsheetException the smartsheet exception
* @throws FileNotFoundException image file not found
*/
public void addImageToCell(
@@ -174,21 +174,21 @@ public void addImageToCell(
* It mirrors the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row id
- * @param columnId the column id
- * @param file the file path
- * @param contentType MIME type of the image
+ * @param sheetId the sheet ID
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param file the file path
+ * @param contentType MIME type of the image
* @param overrideValidation override column type validation if true
- * @param altText alternate description for the image
- * @throws SmartsheetException the smartsheet exception
+ * @param altText alternate description for the image
+ * @throws SmartsheetException the smartsheet exception
* @throws FileNotFoundException image file not found
*/
public void addImageToCell(
@@ -212,21 +212,21 @@ public void addImageToCell(
* It mirrors the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row id
- * @param columnId the column id
- * @param file the File object
- * @param contentType MIME type
+ * @param sheetId the sheet ID
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param file the File object
+ * @param contentType MIME type
* @param overrideValidation override column type validation if true
- * @param altText alternate description for the image
- * @throws SmartsheetException the smartsheet exception
+ * @param altText alternate description for the image
+ * @throws SmartsheetException the smartsheet exception
* @throws FileNotFoundException image file not found
*/
public void addImageToCell(long sheetId, long rowId, long columnId, File file, String contentType,
@@ -242,21 +242,21 @@ public void addImageToCell(long sheetId, long rowId, long columnId, File file, S
* It mirrors the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row id
- * @param columnId the column id
- * @param inputStream the input stream of the contents
- * @param contentType MIME type
- * @param contentLength length of the input stream
+ * @param sheetId the sheet ID
+ * @param rowId the row id
+ * @param columnId the column id
+ * @param inputStream the input stream of the contents
+ * @param contentType MIME type
+ * @param contentLength length of the input stream
* @param overrideValidation override column type validation if true
- * @param altText alternate description for the image
+ * @param altText alternate description for the image
* @throws SmartsheetException the smartsheet exception
*/
public void addImageToCell(long sheetId, long rowId, long columnId, InputStream inputStream, String contentType,
diff --git a/src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java
index e11f49c0..ae94f9d4 100644
--- a/src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -44,15 +44,15 @@ public RowDiscussionResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: /sheets/{sheetId}/rows/{rowId}/discussions
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row ID
+ * @param sheetId the sheet ID
+ * @param rowId the row ID
* @param discussion the comment to add, limited to the following required attributes: text
* @return the created comment
* @throws SmartsheetException the smartsheet exception
@@ -67,21 +67,21 @@ public Discussion createDiscussion(long sheetId, long rowId, Discussion discussi
* It mirrors to the following Smartsheet REST API method: /sheets/{sheetId}/rows/{rowId}/discussions
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row ID
- * @param discussion the comment to add, limited to the following required attributes: text
- * @param file the file to be attached
+ * @param sheetId the sheet ID
+ * @param rowId the row ID
+ * @param discussion the comment to add, limited to the following required attributes: text
+ * @param file the file to be attached
* @param contentType the type of file
* @return the created discussion
* @throws SmartsheetException the smartsheet exception
- * @throws IOException is there is an I/O exception
+ * @throws IOException is there is an I/O exception
*/
public Discussion createDiscussionWithAttachment(
long sheetId,
@@ -110,17 +110,17 @@ public Discussion createDiscussionWithAttachment(
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/discussions
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
- * @param rowId the row ID
+ * @param sheetId the sheet ID
+ * @param rowId the row ID
* @param pagination the pagination pagination
- * @param includes the optional include parameters
+ * @param includes the optional include parameters
* @return the row discussions
* @throws SmartsheetException the smartsheet exception
*/
diff --git a/src/main/java/com/smartsheet/api/internal/SearchResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SearchResourcesImpl.java
index f970144e..8049335f 100644
--- a/src/main/java/com/smartsheet/api/internal/SearchResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SearchResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -61,16 +61,16 @@ public SearchResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /search
*
* Exceptions:
- * IllegalArgumentException : if query is null/empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if query is null/empty string
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param query the query text
* @return the search result (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public SearchResult search(String query) throws SmartsheetException {
@@ -82,20 +82,20 @@ public SearchResult search(String query) throws SmartsheetException {
*
* It mirrors to the following Smartsheet REST API method: GET /search
*
- * @param query the query text
- * @param includes enum set of inclusions
- * @param location when specified with a value of "personalWorkspace" limits response to only those
- * items in the user's Workspace
+ * @param query the query text
+ * @param includes enum set of inclusions
+ * @param location when specified with a value of "personalWorkspace" limits response to only those
+ * items in the user's Workspace
* @param modifiedSince only return items modified since this date
- * @param scopes enum set of search filters
+ * @param scopes enum set of search filters
* @return the search result (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * ResourceNotFoundException rather than returning null).
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public SearchResult search(String query, EnumSet
* Exceptions:
- * IllegalArgumentException : if query is null/empty string
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if query is null/empty string
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the sheet id
- * @param query the query
+ * @param query the query
* @return the search result (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public SearchResult searchSheet(long sheetId, String query) throws SmartsheetException {
diff --git a/src/main/java/com/smartsheet/api/internal/ServerInfoResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/ServerInfoResourcesImpl.java
index 124e633b..d929a9c2 100644
--- a/src/main/java/com/smartsheet/api/internal/ServerInfoResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/ServerInfoResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,12 +43,12 @@ public ServerInfoResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /serverinfo
*
* @return the server information
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public ServerInfo getServerInfo() throws SmartsheetException {
return this.getResource("serverinfo", ServerInfo.class);
diff --git a/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java
index 2153edd1..1a806374 100644
--- a/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ public class ShareResourcesImpl extends AbstractAssociatedResources implements S
*
* Exceptions: - IllegalArgumentException : if any argument is null or empty string
*
- * @param smartsheet the smartsheet
+ * @param smartsheet the smartsheet
* @param masterResourceType the master resource type (e.g. "sheet", "workspace")
*/
public ShareResourcesImpl(SmartsheetImpl smartsheet, String masterResourceType) {
@@ -56,20 +56,20 @@ public ShareResourcesImpl(SmartsheetImpl smartsheet, String masterResourceType)
* List shares of a given object.
*
* It mirrors to the following Smartsheet REST API method:
- * GET /workspace/{id}/shares
- * GET /sheet/{id}/shares
- * GET /sights/{id}/shares
- * GET /reports/{id}/shares
+ * GET /workspace/{id}/shares
+ * GET /sheet/{id}/shares
+ * GET /sights/{id}/shares
+ * GET /reports/{id}/shares
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param objectId the id of the object to share.
+ * @param objectId the id of the object to share.
* @param pagination the pagination parameters
* @return the shares (note that empty list will be returned if there is none)
* @throws SmartsheetException the smartsheet exception
@@ -104,23 +104,23 @@ public PagedResult
* It mirrors to the following Smartsheet REST API method:
- * GET /workspaces/{workspaceId}/shares/{shareId}
- * GET /sheets/{sheetId}/shares/{shareId}
- * GET /sights/{sightId}/shares
- * GET /reports/{reportId}/shares
+ * GET /workspaces/{workspaceId}/shares/{shareId}
+ * GET /sheets/{sheetId}/shares/{shareId}
+ * GET /sights/{sightId}/shares
+ * GET /reports/{reportId}/shares
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param objectId the ID of the object to share
- * @param shareId the ID of the share
+ * @param shareId the ID of the share
* @return the share (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public Share getShare(long objectId, String shareId) throws SmartsheetException {
@@ -131,22 +131,22 @@ public Share getShare(long objectId, String shareId) throws SmartsheetException
* Shares the object with the specified Users and Groups.
*
* It mirrors to the following Smartsheet REST API method:
- * POST /workspaces/{id}/shares
- * POST /sheets/{id}/shares
- * POST /sights/{id}/shares
- * POST /reports/{reportId}/shares
+ * POST /workspaces/{id}/shares
+ * POST /sheets/{id}/shares
+ * POST /sights/{id}/shares
+ * POST /reports/{reportId}/shares
*
* Exceptions:
- * IllegalArgumentException : if multiShare is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if multiShare is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param objectId the ID of the object to share
- * @param shares list of share objects
+ * @param objectId the ID of the object to share
+ * @param shares list of share objects
* @param sendEmail whether to send email
* @return the created shares
* @throws SmartsheetException the smartsheet exception
@@ -169,15 +169,15 @@ public List PUT /reports/{reportId}/shares/{shareId}
* It mirrors to the following Smartsheet REST API method:
- * DELETE /workspaces/{workspaceId}/shares/{shareId}
- * DELETE /sheets/{sheetId}/shares/{shareId}
- * DELETE /sights/{sheetId}/shares/{shareId}
- * DELETE /reports/{reportId}/shares/{shareId}
+ * DELETE /workspaces/{workspaceId}/shares/{shareId}
+ * DELETE /sheets/{sheetId}/shares/{shareId}
+ * DELETE /sights/{sheetId}/shares/{shareId}
+ * DELETE /reports/{reportId}/shares/{shareId}
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param objectId the ID of the object to share
- * @param shareId the ID of the share to delete
+ * @param shareId the ID of the share to delete
* @throws SmartsheetException the smartsheet exception
*/
public void deleteShare(long objectId, String shareId) throws SmartsheetException {
diff --git a/src/main/java/com/smartsheet/api/internal/SheetAttachmentResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SheetAttachmentResourcesImpl.java
index a10dc27f..a7992e82 100644
--- a/src/main/java/com/smartsheet/api/internal/SheetAttachmentResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SheetAttachmentResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -61,15 +61,15 @@ public SheetAttachmentResourcesImpl(SmartsheetImpl smartsheet) {
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/attachments
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param attachment the attachment object
* @return the attachment object
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Attachment attachUrl(long sheetId, Attachment attachment) throws SmartsheetException {
return this.createResource(SHEETS_PATH + sheetId + ATTACHMENTS_PATH, Attachment.class, attachment);
@@ -81,14 +81,14 @@ public Attachment attachUrl(long sheetId, Attachment attachment) throws Smartshe
* It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/attachments/{attachmentId}
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the ID of the sheet
+ * @param sheetId the ID of the sheet
* @param attachmentId the ID of the attachment
* @throws SmartsheetException the smartsheet exception
*/
@@ -105,17 +105,17 @@ public void deleteAttachment(long sheetId, long attachmentId) throws SmartsheetE
* rather than returning null).
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param attachmentId the attachment id
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null).
+ * rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public Attachment getAttachment(long sheetId, long attachmentId) throws SmartsheetException {
@@ -128,14 +128,14 @@ public Attachment getAttachment(long sheetId, long attachmentId) throws Smartshe
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/attachments
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the ID of the sheet to which the attachments are associated
+ * @param sheetId the ID of the sheet to which the attachments are associated
* @param parameters the pagination parameters
* @return the attachments (note that empty list will be returned if there is none)
* @throws SmartsheetException the smartsheet exception
@@ -154,17 +154,17 @@ public PagedResult
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/attachments
*
- * @param sheetId the id of the sheet
- * @param file the file to attach
+ * @param sheetId the id of the sheet
+ * @param file the file to attach
* @param contentType the content type of the file
* @return the created attachment
- * @throws FileNotFoundException the file not found exception
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws FileNotFoundException the file not found exception
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Attachment attachFile(long sheetId, File file, String contentType) throws FileNotFoundException,
SmartsheetException {
@@ -177,10 +177,10 @@ public Attachment attachFile(long sheetId, File file, String contentType) throws
/**
* Attach file for simple upload.
*
- * @param sheetId the sheet id
- * @param inputStream attachment data inputStream
- * @param contentType the content type
- * @param contentLength the content length
+ * @param sheetId the sheet id
+ * @param inputStream attachment data inputStream
+ * @param contentType the content type
+ * @param contentLength the content length
* @param attachmentName the name of the attachment
* @return the attachment
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/internal/SheetAutomationRuleResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SheetAutomationRuleResourcesImpl.java
index 23d9421e..f3b4563d 100644
--- a/src/main/java/com/smartsheet/api/internal/SheetAutomationRuleResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SheetAutomationRuleResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,14 +50,14 @@ public SheetAutomationRuleResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/automationrules
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination pagination
* @return all the automation rules
* @throws SmartsheetException the smartsheet exception
@@ -80,14 +80,14 @@ public PagedResult
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheetId
+ * @param sheetId the sheetId
* @param automationRuleId the automation rule ID
* @return the automation rule
* @throws SmartsheetException the smartsheet exception
@@ -102,18 +102,18 @@ public AutomationRule getAutomationRule(long sheetId, long automationRuleId) thr
* It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/automationrules/{automationRuleId}
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheetId
+ * @param sheetId the sheetId
* @param automationRule the automation rule to update
* @return the updated automation rule (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public AutomationRule updateAutomationRule(long sheetId, AutomationRule automationRule) throws SmartsheetException {
@@ -128,14 +128,14 @@ public AutomationRule updateAutomationRule(long sheetId, AutomationRule automati
* It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/automationrules/{automationRuleId}
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param automationRuleId the automation rule ID
* @throws SmartsheetException the smartsheet exception
*/
diff --git a/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
index ff554634..703c79c1 100644
--- a/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -61,15 +61,15 @@ public SheetColumnResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
- * @param includes list of includes
+ * @param sheetId the sheet id
+ * @param includes list of includes
* @param pagination the object containing the pagination parameters
* @return the columns (note that empty list will be returned if there is none)
* @throws SmartsheetException the smartsheet exception
@@ -88,17 +88,17 @@ public PagedResult
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
- * @param includes list of includes
+ * @param sheetId the sheet id
+ * @param includes list of includes
* @param pagination the object containing the pagination parameters
- * @param level compatibility level
+ * @param level compatibility level
* @return the columns (note that empty list will be returned if there is none)
* @throws SmartsheetException the smartsheet exception
*/
@@ -128,18 +128,18 @@ public PagedResult
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the sheet id
* @param columns the list of columns object limited to the following attributes: *
- * title * type * symbol (optional) * options (optional) - array of options * index (zero-based) * systemColumnType
- * (optional) * autoNumberFormat (optional)
+ * title * type * symbol (optional) * options (optional) - array of options * index (zero-based) * systemColumnType
+ * (optional) * autoNumberFormat (optional)
* @return the list of created columns
* @throws SmartsheetException the smartsheet exception
*/
@@ -152,15 +152,14 @@ public List
* It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/columns/{columnId}
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param columnId the column id
- *
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public void deleteColumn(long sheetId, long columnId) throws SmartsheetException {
this.deleteResource(SHEETS_PATH + sheetId + "/" + COLUMNS + "/" + columnId, Column.class);
@@ -172,20 +171,20 @@ public void deleteColumn(long sheetId, long columnId) throws SmartsheetException
* It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/columns/{columnId}
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
* @param sheetId the sheetId
- * @param column the column to update limited to the following attributes: index (column's new index in the sheet),
- * title, sheetId, type, options (optional), symbol (optional), systemColumnType (optional),
- * autoNumberFormat (optional)
+ * @param column the column to update limited to the following attributes: index (column's new index in the sheet),
+ * title, sheetId, type, options (optional), symbol (optional), systemColumnType (optional),
+ * autoNumberFormat (optional)
* @return the updated sheet (note that if there is no such resource, this method will throw
- * ResourceNotFoundException rather than returning null).
+ * ResourceNotFoundException rather than returning null).
* @throws SmartsheetException the smartsheet exception
*/
public Column updateColumn(long sheetId, Column column) throws SmartsheetException {
@@ -199,14 +198,14 @@ public Column updateColumn(long sheetId, Column column) throws SmartsheetExcepti
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns/{columnId}
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param columnId the column id
* @param includes list of includes
* @return the column (note that empty list will be returned if there is none)
diff --git a/src/main/java/com/smartsheet/api/internal/SheetCommentResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SheetCommentResourcesImpl.java
index 9f54fcf8..28157496 100644
--- a/src/main/java/com/smartsheet/api/internal/SheetCommentResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SheetCommentResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,17 +47,17 @@ public SheetCommentResourcesImpl(SmartsheetImpl smartsheet) {
* It mirrors to the following Smartsheet REST API method: GET /comment/{id}
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the ID of the sheet
+ * @param sheetId the ID of the sheet
* @param commentId the ID of the comment
* @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundException
- * rather than returning null)
+ * rather than returning null)
* @throws SmartsheetException the smartsheet exception
*/
public Comment getComment(long sheetId, long commentId) throws SmartsheetException {
@@ -70,14 +70,14 @@ public Comment getComment(long sheetId, long commentId) throws SmartsheetExcepti
* It mirrors to the following Smartsheet REST API method: DELETE /comment{id}
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the ID of the sheet
+ * @param sheetId the ID of the sheet
* @param commentId the ID of the comment
* @throws SmartsheetException the smartsheet exception
*/
diff --git a/src/main/java/com/smartsheet/api/internal/SheetCrossSheetReferenceResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SheetCrossSheetReferenceResourcesImpl.java
index a363fe7a..b5b473e8 100644
--- a/src/main/java/com/smartsheet/api/internal/SheetCrossSheetReferenceResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SheetCrossSheetReferenceResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -48,16 +48,16 @@ public SheetCrossSheetReferenceResourcesImpl(SmartsheetImpl smartsheet) {
* Get all cross sheet references for this sheet It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/crosssheetreferences
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination parameters
* @return a list of cross sheet references
* @throws SmartsheetException the smartsheet exception
@@ -82,16 +82,16 @@ public PagedResult It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/crosssheetreferences/{crossSheetReferenceId} It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/crosssheetreferences
* Exceptions:
- * IllegalArgumentException : if any argument is null or empty string
+ * IllegalArgumentException : if any argument is null or empty string
*
* @param smartsheet the smartsheet
*/
@@ -65,15 +65,15 @@ public SheetDiscussionResourcesImpl(SmartsheetImpl smartsheet) {
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions
*
- * @param sheetId the sheet id
+ * @param sheetId the sheet id
* @param discussion the discussion object
* @return the created discussion
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public Discussion createDiscussion(long sheetId, Discussion discussion) throws SmartsheetException {
Util.throwIfNull(sheetId, discussion);
@@ -86,18 +86,18 @@ public Discussion createDiscussion(long sheetId, Discussion discussion) throws S
*
* It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions
*
- * @param sheetId the sheet id
- * @param discussion the discussion object
- * @param file the file to attach
+ * @param sheetId the sheet id
+ * @param discussion the discussion object
+ * @param file the file to attach
* @param contentType the type of file
* @return the created discussion
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
- * @throws IOException is there is with file
+ * @throws SmartsheetException if there is any other error during the operation
+ * @throws IOException is there is with file
*/
public Discussion createDiscussionWithAttachment(
long sheetId,
@@ -139,14 +139,14 @@ private Discussion createDiscussionWithAttachment(
* rather than returning null).
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheetId
+ * @param sheetId the sheetId
* @param discussionId the discussionId
* @return the discussion
* @throws SmartsheetException the smartsheet exception
@@ -161,14 +161,14 @@ public Discussion getDiscussion(long sheetId, long discussionId) throws Smartshe
* It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/discussions/{discussionId}
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param discussionId the discussion ID
* @throws SmartsheetException the smartsheet exception
*/
@@ -182,16 +182,16 @@ public void deleteDiscussion(long sheetId, long discussionId) throws SmartsheetE
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/discussions
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination pagination
- * @param includes the optional include parameters
+ * @param includes the optional include parameters
* @return all the discussions
* @throws SmartsheetException the smartsheet exception
*/
diff --git a/src/main/java/com/smartsheet/api/internal/SheetFilterResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SheetFilterResourcesImpl.java
index e4645d1b..b9016132 100644
--- a/src/main/java/com/smartsheet/api/internal/SheetFilterResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SheetFilterResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ public class SheetFilterResourcesImpl extends AbstractResources implements Sheet
* Constructor.
*
* Exceptions:
- * IllegalArgumentException : if any argument is null or empty string
+ * IllegalArgumentException : if any argument is null or empty string
*
* @param smartsheet the smartsheet
*/
@@ -52,14 +52,14 @@ public SheetFilterResourcesImpl(SmartsheetImpl smartsheet) {
* rather than returning null).
*
* Exceptions:
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ResourceNotFoundException : if the resource can not be found
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ResourceNotFoundException : if the resource can not be found
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheetId
+ * @param sheetId the sheetId
* @param filterId the filter ID
* @return the filter
* @throws SmartsheetException the smartsheet exception
@@ -74,14 +74,14 @@ public SheetFilter getFilter(long sheetId, long filterId) throws SmartsheetExcep
* It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/filters/{filterId}
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param filterId the filter ID
* @throws SmartsheetException the smartsheet exception
*/
@@ -95,14 +95,14 @@ public void deleteFilter(long sheetId, long filterId) throws SmartsheetException
* It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/filters
*
* Exceptions:
- * IllegalArgumentException : if any argument is null
- * InvalidRequestException : if there is any problem with the REST API request
- * AuthorizationException : if there is any problem with the REST API authorization(access token)
- * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * SmartsheetException : if there is any other error occurred during the operation
+ * IllegalArgumentException : if any argument is null
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
*
- * @param sheetId the sheet ID
+ * @param sheetId the sheet ID
* @param pagination the pagination pagination
* @return all the filters
* @throws SmartsheetException the smartsheet exception
diff --git a/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java b/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
index 5bbc0921..39a693a8 100644
--- a/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
+++ b/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
@@ -1,5 +1,5 @@
/*
-* Copyright (C) 2024 Smartsheet
+ * Copyright (C) 2024 Smartsheet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -80,7 +80,9 @@
*/
public class SheetResourcesImpl extends AbstractResources implements SheetResources {
- /** The Constant BUFFER_SIZE. */
+ /**
+ * The Constant BUFFER_SIZE.
+ */
private static final int BUFFER_SIZE = 4098;
private static final String SHEETS = "sheets";
@@ -166,6 +168,7 @@ public class SheetResourcesImpl extends AbstractResources implements SheetResour
/**
* Constructor.
+ *
* @param smartsheet the smartsheet
* @throws IllegalArgumentException : if any argument is null
*/
@@ -188,13 +191,14 @@ public SheetResourcesImpl(SmartsheetImpl smartsheet) {
* List all sheets.
*
* It mirrors to the following Smartsheet REST API method: GET /sheets
+ *
* @return A list of all sheets (note that an empty list will be returned if there are none).
- * @throws IllegalArgumentException if any argument is null or empty string
- * @throws InvalidRequestException if there is any problem with the REST API request
- * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
- * @throws ResourceNotFoundException if the resource cannot be found
+ * @throws IllegalArgumentException if any argument is null or empty string
+ * @throws InvalidRequestException if there is any problem with the REST API request
+ * @throws AuthorizationException if there is any problem with the REST API authorization (access token)
+ * @throws ResourceNotFoundException if the resource cannot be found
* @throws ServiceUnavailableException if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetException if there is any other error during the operation
+ * @throws SmartsheetException if there is any other error during the operation
*/
public PagedResult the generic type of object to serialize
- * @param path the relative path of the resource collections
+ * IllegalArgumentException : if any argument is null, or path is empty string
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param the generic type of object to serialize
+ * @param path the relative path of the resource collections
* @param objectClass the resource object class
- * @param object the object to create
+ * @param object the object to create
* @return the created resource
* @throws SmartsheetException the smartsheet exception
*/
@@ -314,19 +322,19 @@ protected the generic type
- * @param path the path
- * @param objectToPost the object to post
+ * IllegalArgumentException : if any argument is null, or path is empty string
+ * InvalidRequestException : if there is any problem with the REST API request
+ * AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
+ * SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * SmartsheetException : if there is any other error occurred during the operation
+ *
+ * @param the generic type
+ * @param path the path
+ * @param objectToPost the object to post
* @param objectClassToReceive the object class to receive
* @return the list
* @throws SmartsheetException the smartsheet exception
@@ -640,20 +649,20 @@ protected postAndReceiveList(String path, T objectToPost, Class
* Parameters: - path : the relative path of the resource collections - objectToPost : the object to post -
- *
+ * the generic type
- * @param path the relative path of the resource collections
- * @param objectToPut the object to put
+ *
+ * @param the generic type
+ * @param path the relative path of the resource collections
+ * @param objectToPut the object to put
* @param objectClassToReceive the resource object class to receive
* @return the object list
- * @throws IllegalArgumentException : if any argument is null, or path is empty string
- * @throws InvalidRequestException : if there is any problem with the REST API request
- * @throws AuthorizationException : if there is any problem with the REST API authorization(access token)
+ * @throws IllegalArgumentException : if any argument is null, or path is empty string
+ * @throws InvalidRequestException : if there is any problem with the REST API request
+ * @throws AuthorizationException : if there is any problem with the REST API authorization(access token)
* @throws ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
- * @throws SmartsheetRestException : if there is any other REST API related error occurred during the operation
- * @throws SmartsheetException : if there is any other error occurred during the operation
+ * @throws SmartsheetRestException : if there is any other REST API related error occurred during the operation
+ * @throws SmartsheetException : if there is any other error occurred during the operation
*/
protected putAndReceiveList(String path, T objectToPut, Class objectClassToReceive)
throws SmartsheetException {
@@ -740,6 +750,7 @@ protected putAndReceiveList(String path, T objectToPut, Class
/**
* Create an HttpRequest.
+ *
* @param uri the URI
* @param method the HttpMethod
* @return the http request
@@ -802,9 +813,9 @@ public Attachment attachFile(String url, InputStream inputStream, String content
/**
* Create a multipart upload request.
*
- * @param url the url
- * @param t the object to create
- * @param partName the name of the part
+ * @param url the url
+ * @param t the object to create
+ * @param partName the name of the part
* @param inputstream the file inputstream
* @param contentType the type of the file to be attached
* @return the http request
@@ -846,8 +857,9 @@ public