repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/oauth/OAuthFlowImpl.java
OAuthFlowImpl.refreshToken
public Token refreshToken(Token token) throws OAuthTokenException, JSONSerializerException, HttpClientException, URISyntaxException, InvalidRequestException { // Prepare the hash String doHash = clientSecret + "|" + token.getRefreshToken(); MessageDigest md; try { md = Messag...
java
public Token refreshToken(Token token) throws OAuthTokenException, JSONSerializerException, HttpClientException, URISyntaxException, InvalidRequestException { // Prepare the hash String doHash = clientSecret + "|" + token.getRefreshToken(); MessageDigest md; try { md = Messag...
[ "public", "Token", "refreshToken", "(", "Token", "token", ")", "throws", "OAuthTokenException", ",", "JSONSerializerException", ",", "HttpClientException", ",", "URISyntaxException", ",", "InvalidRequestException", "{", "// Prepare the hash", "String", "doHash", "=", "cli...
Refresh token. Exceptions: - IllegalArgumentException : if token is null. - 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_u...
[ "Refresh", "token", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/oauth/OAuthFlowImpl.java#L302-L331
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/oauth/OAuthFlowImpl.java
OAuthFlowImpl.requestToken
private Token requestToken(String url) throws OAuthTokenException, JSONSerializerException, HttpClientException, URISyntaxException, InvalidRequestException { // Create the request and send it to get the response/token. HttpRequest request = new HttpRequest(); request.setUri(new URI...
java
private Token requestToken(String url) throws OAuthTokenException, JSONSerializerException, HttpClientException, URISyntaxException, InvalidRequestException { // Create the request and send it to get the response/token. HttpRequest request = new HttpRequest(); request.setUri(new URI...
[ "private", "Token", "requestToken", "(", "String", "url", ")", "throws", "OAuthTokenException", ",", "JSONSerializerException", ",", "HttpClientException", ",", "URISyntaxException", ",", "InvalidRequestException", "{", "// Create the request and send it to get the response/token...
Request a 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 re...
[ "Request", "a", "token", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/oauth/OAuthFlowImpl.java#L353-L409
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/oauth/OAuthFlowImpl.java
OAuthFlowImpl.revokeAccessToken
public void revokeAccessToken(Token token) throws OAuthTokenException, JSONSerializerException, HttpClientException, URISyntaxException, InvalidRequestException{ HttpRequest request = new HttpRequest(); request.setUri(new URI(tokenURL)); request.setMethod(HttpMethod.DELETE); ...
java
public void revokeAccessToken(Token token) throws OAuthTokenException, JSONSerializerException, HttpClientException, URISyntaxException, InvalidRequestException{ HttpRequest request = new HttpRequest(); request.setUri(new URI(tokenURL)); request.setMethod(HttpMethod.DELETE); ...
[ "public", "void", "revokeAccessToken", "(", "Token", "token", ")", "throws", "OAuthTokenException", ",", "JSONSerializerException", ",", "HttpClientException", ",", "URISyntaxException", ",", "InvalidRequestException", "{", "HttpRequest", "request", "=", "new", "HttpReque...
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, th...
[ "Revoke", "access", "token", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/oauth/OAuthFlowImpl.java#L430-L445
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java
RowDiscussionResourcesImpl.createDiscussion
public Discussion createDiscussion(long sheetId, long rowId, Discussion discussion) throws SmartsheetException{ return this.createResource("sheets/" + sheetId + "/rows/" + rowId + "/discussions", Discussion.class, discussion); }
java
public Discussion createDiscussion(long sheetId, long rowId, Discussion discussion) throws SmartsheetException{ return this.createResource("sheets/" + sheetId + "/rows/" + rowId + "/discussions", Discussion.class, discussion); }
[ "public", "Discussion", "createDiscussion", "(", "long", "sheetId", ",", "long", "rowId", ",", "Discussion", "discussion", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "createResource", "(", "\"sheets/\"", "+", "sheetId", "+", "\"/rows/\"", "+...
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 wit...
[ "Create", "discussion", "on", "a", "row", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java#L63-L65
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java
RowDiscussionResourcesImpl.listDiscussions
public PagedResult<Discussion> listDiscussions(long sheetId, long rowId, PaginationParameters pagination, EnumSet<DiscussionInclusion> includes) throws SmartsheetException{ String path = "sheets/" + sheetId + "/rows/" + rowId + "/discussions" ; HashMap<String, Object> parameters = new HashMap<String, Ob...
java
public PagedResult<Discussion> listDiscussions(long sheetId, long rowId, PaginationParameters pagination, EnumSet<DiscussionInclusion> includes) throws SmartsheetException{ String path = "sheets/" + sheetId + "/rows/" + rowId + "/discussions" ; HashMap<String, Object> parameters = new HashMap<String, Ob...
[ "public", "PagedResult", "<", "Discussion", ">", "listDiscussions", "(", "long", "sheetId", ",", "long", "rowId", ",", "PaginationParameters", "pagination", ",", "EnumSet", "<", "DiscussionInclusion", ">", "includes", ")", "throws", "SmartsheetException", "{", "Stri...
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 Authorizat...
[ "Gets", "a", "list", "of", "all", "Discussions", "associated", "with", "the", "specified", "Row", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/RowDiscussionResourcesImpl.java#L115-L127
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/json/JacksonJsonSerializer.java
JacksonJsonSerializer.serialize
public <T> String serialize(T object) throws JSONSerializerException { Util.throwIfNull(object); String value; try { value= OBJECT_MAPPER.writeValueAsString(object); } catch (JsonGenerationException e) { throw new JSONSerializerException(e); } catch (Json...
java
public <T> String serialize(T object) throws JSONSerializerException { Util.throwIfNull(object); String value; try { value= OBJECT_MAPPER.writeValueAsString(object); } catch (JsonGenerationException e) { throw new JSONSerializerException(e); } catch (Json...
[ "public", "<", "T", ">", "String", "serialize", "(", "T", "object", ")", "throws", "JSONSerializerException", "{", "Util", ".", "throwIfNull", "(", "object", ")", ";", "String", "value", ";", "try", "{", "value", "=", "OBJECT_MAPPER", ".", "writeValueAsStrin...
Serialize an object to JSON. Parameters: object : the object to serialize outputStream : the output stream to which the JSON will be written Returns: None Exceptions: - IllegalArgumentException : if any argument is null - JSONSerializerException : if there is any other error occurred during the operation @param obj...
[ "Serialize", "an", "object", "to", "JSON", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/json/JacksonJsonSerializer.java#L176-L190
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/json/JacksonJsonSerializer.java
JacksonJsonSerializer.deserializeCopyOrMoveRow
@Override public CopyOrMoveRowResult deserializeCopyOrMoveRow(java.io.InputStream inputStream) throws JSONSerializerException{ Util.throwIfNull(inputStream); CopyOrMoveRowResult rw = null; try { // Read the json input stream into a List. rw = OBJECT_MAPPER.readValue...
java
@Override public CopyOrMoveRowResult deserializeCopyOrMoveRow(java.io.InputStream inputStream) throws JSONSerializerException{ Util.throwIfNull(inputStream); CopyOrMoveRowResult rw = null; try { // Read the json input stream into a List. rw = OBJECT_MAPPER.readValue...
[ "@", "Override", "public", "CopyOrMoveRowResult", "deserializeCopyOrMoveRow", "(", "java", ".", "io", ".", "InputStream", "inputStream", ")", "throws", "JSONSerializerException", "{", "Util", ".", "throwIfNull", "(", "inputStream", ")", ";", "CopyOrMoveRowResult", "rw...
De-serialize to a CopyOrMoveRowResult object from JSON @param inputStream @return @throws JSONSerializerException
[ "De", "-", "serialize", "to", "a", "CopyOrMoveRowResult", "object", "from", "JSON" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/json/JacksonJsonSerializer.java#L401-L419
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetUpdateRequestResourcesImpl.java
SheetUpdateRequestResourcesImpl.listUpdateRequests
public PagedResult<UpdateRequest> listUpdateRequests(long sheetId, PaginationParameters paging) throws SmartsheetException { String path = "sheets/" + sheetId + "/updaterequests"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (paging != null) { parameters = ...
java
public PagedResult<UpdateRequest> listUpdateRequests(long sheetId, PaginationParameters paging) throws SmartsheetException { String path = "sheets/" + sheetId + "/updaterequests"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (paging != null) { parameters = ...
[ "public", "PagedResult", "<", "UpdateRequest", ">", "listUpdateRequests", "(", "long", "sheetId", ",", "PaginationParameters", "paging", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", "\"/updaterequests\"", ";", ...
Gets a list of all Update Requests that have future schedules associated with the specified Sheet. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/updaterequests @param paging the object containing the pagination parameters @return A list of all UpdateRequests (note that an empty list wi...
[ "Gets", "a", "list", "of", "all", "Update", "Requests", "that", "have", "future", "schedules", "associated", "with", "the", "specified", "Sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetUpdateRequestResourcesImpl.java#L65-L75
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetUpdateRequestResourcesImpl.java
SheetUpdateRequestResourcesImpl.updateUpdateRequest
public UpdateRequest updateUpdateRequest(long sheetId, UpdateRequest updateRequest) throws SmartsheetException { return this.updateResource("sheets/" + sheetId + "/updaterequests/" + updateRequest.getId(), UpdateRequest.class, updateRequest); }
java
public UpdateRequest updateUpdateRequest(long sheetId, UpdateRequest updateRequest) throws SmartsheetException { return this.updateResource("sheets/" + sheetId + "/updaterequests/" + updateRequest.getId(), UpdateRequest.class, updateRequest); }
[ "public", "UpdateRequest", "updateUpdateRequest", "(", "long", "sheetId", ",", "UpdateRequest", "updateRequest", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "updateResource", "(", "\"sheets/\"", "+", "sheetId", "+", "\"/updaterequests/\"", "+", "...
Changes the specified Update Request for the Sheet. It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/updaterequests/{updateRequestId} @param sheetId the Id of the sheet @param updateRequest the update request object @return the update request resource. @throws IllegalArgumentException if ...
[ "Changes", "the", "specified", "Update", "Request", "for", "the", "Sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetUpdateRequestResourcesImpl.java#L149-L152
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetUpdateRequestResourcesImpl.java
SheetUpdateRequestResourcesImpl.listSentUpdateRequests
public PagedResult<SentUpdateRequest> listSentUpdateRequests(long sheetId, PaginationParameters paging) throws SmartsheetException { String path = "sheets/" + sheetId + "/sentupdaterequests"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (paging != null) { p...
java
public PagedResult<SentUpdateRequest> listSentUpdateRequests(long sheetId, PaginationParameters paging) throws SmartsheetException { String path = "sheets/" + sheetId + "/sentupdaterequests"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (paging != null) { p...
[ "public", "PagedResult", "<", "SentUpdateRequest", ">", "listSentUpdateRequests", "(", "long", "sheetId", ",", "PaginationParameters", "paging", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", "\"/sentupdaterequests\...
Gets a list of all Sent Update Requests that have future schedules associated with the specified Sheet. It mirrors To the following Smartsheet REST API method: GET /sheets/{sheetId}/sentupdaterequests @param sheetId the Id of the sheet @param paging the object containing the pagination parameters @return A list of al...
[ "Gets", "a", "list", "of", "all", "Sent", "Update", "Requests", "that", "have", "future", "schedules", "associated", "with", "the", "specified", "Sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetUpdateRequestResourcesImpl.java#L169-L179
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java
AttachmentVersioningResourcesImpl.listAllVersions
public PagedResult<Attachment> listAllVersions(long sheetId, long attachmentId, PaginationParameters parameters) throws SmartsheetException { String path = "sheets/"+ sheetId + "/attachments/" + attachmentId + "/versions"; if (parameters != null) { path += parameters.toQueryString(); ...
java
public PagedResult<Attachment> listAllVersions(long sheetId, long attachmentId, PaginationParameters parameters) throws SmartsheetException { String path = "sheets/"+ sheetId + "/attachments/" + attachmentId + "/versions"; if (parameters != null) { path += parameters.toQueryString(); ...
[ "public", "PagedResult", "<", "Attachment", ">", "listAllVersions", "(", "long", "sheetId", ",", "long", "attachmentId", ",", "PaginationParameters", "parameters", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", ...
Get all versions of an attachment. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/attachments/{attachmentId}/versions @param sheetId the id @param attachmentId the attachment id @param parameters the pagination paramaters @return the attachment (note that if there is no such resource, t...
[ "Get", "all", "versions", "of", "an", "attachment", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java#L86-L93
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java
AttachmentVersioningResourcesImpl.attachNewVersion
private Attachment attachNewVersion (long sheetId, long attachmentId, InputStream inputStream, String contentType, long contentLength, String attachmentName) throws SmartsheetException { return super.attachFile("sheets/"+ sheetId + "/attachments/"+ attachmentId +"/versions", inputStream, contentType...
java
private Attachment attachNewVersion (long sheetId, long attachmentId, InputStream inputStream, String contentType, long contentLength, String attachmentName) throws SmartsheetException { return super.attachFile("sheets/"+ sheetId + "/attachments/"+ attachmentId +"/versions", inputStream, contentType...
[ "private", "Attachment", "attachNewVersion", "(", "long", "sheetId", ",", "long", "attachmentId", ",", "InputStream", "inputStream", ",", "String", "contentType", ",", "long", "contentLength", ",", "String", "attachmentName", ")", "throws", "SmartsheetException", "{",...
Attach a new version of an attachment. 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 @pa...
[ "Attach", "a", "new", "version", "of", "an", "attachment", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AttachmentVersioningResourcesImpl.java#L139-L142
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java
UserResourcesImpl.listUsers
public PagedResult<User> listUsers(Set<String> email, PaginationParameters pagination) throws SmartsheetException { String path = "users"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (pagination != null){ parameters = pagination.toHashMap(); } ...
java
public PagedResult<User> listUsers(Set<String> email, PaginationParameters pagination) throws SmartsheetException { String path = "users"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (pagination != null){ parameters = pagination.toHashMap(); } ...
[ "public", "PagedResult", "<", "User", ">", "listUsers", "(", "Set", "<", "String", ">", "email", ",", "PaginationParameters", "pagination", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"users\"", ";", "HashMap", "<", "String", ",", "Obje...
List all users. It mirrors to the following Smartsheet REST API method: GET /users 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 ...
[ "List", "all", "users", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java#L91-L102
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java
UserResourcesImpl.addUser
public User addUser(User user, boolean sendEmail) throws SmartsheetException { return this.createResource("users?sendEmail=" + sendEmail, User.class, user); }
java
public User addUser(User user, boolean sendEmail) throws SmartsheetException { return this.createResource("users?sendEmail=" + sendEmail, User.class, user); }
[ "public", "User", "addUser", "(", "User", "user", ",", "boolean", "sendEmail", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "createResource", "(", "\"users?sendEmail=\"", "+", "sendEmail", ",", "User", ".", "class", ",", "user", ")", ";", ...
Add a user to the organization, without sending email. It mirrors to the following Smartsheet REST API method: POST /users Exceptions: - IllegalArgumentException : if any argument is null - InvalidRequestException : if there is any problem with the REST API request - AuthorizationException : if there is any problem w...
[ "Add", "a", "user", "to", "the", "organization", "without", "sending", "email", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java#L145-L147
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java
UserResourcesImpl.listAlternateEmails
public PagedResult<AlternateEmail> listAlternateEmails(long userId, PaginationParameters pagination) throws SmartsheetException { String path = "users/" + userId + "/alternateemails"; if (pagination != null) { path += pagination.toQueryString(); } return this.listResource...
java
public PagedResult<AlternateEmail> listAlternateEmails(long userId, PaginationParameters pagination) throws SmartsheetException { String path = "users/" + userId + "/alternateemails"; if (pagination != null) { path += pagination.toQueryString(); } return this.listResource...
[ "public", "PagedResult", "<", "AlternateEmail", ">", "listAlternateEmails", "(", "long", "userId", ",", "PaginationParameters", "pagination", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"users/\"", "+", "userId", "+", "\"/alternateemails\"", ";...
List all user alternate emails. It mirrors to the following Smartsheet REST API method: GET /users/{userId}/alternateemails @param userId the id of the user @param pagination the object containing the pagination query parameters @return the list of all user alternate emails @throws IllegalArgumentException if any arg...
[ "List", "all", "user", "alternate", "emails", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java#L260-L267
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java
UserResourcesImpl.addAlternateEmail
public List<AlternateEmail> addAlternateEmail(long userId, List<AlternateEmail> altEmails) throws SmartsheetException { Util.throwIfNull(altEmails); if (altEmails.size() == 0) { return altEmails; } return this.postAndReceiveList("users/" + userId + "/alternateemails", altEmai...
java
public List<AlternateEmail> addAlternateEmail(long userId, List<AlternateEmail> altEmails) throws SmartsheetException { Util.throwIfNull(altEmails); if (altEmails.size() == 0) { return altEmails; } return this.postAndReceiveList("users/" + userId + "/alternateemails", altEmai...
[ "public", "List", "<", "AlternateEmail", ">", "addAlternateEmail", "(", "long", "userId", ",", "List", "<", "AlternateEmail", ">", "altEmails", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "altEmails", ")", ";", "if", "(", "altEm...
Add an alternate email. It mirrors to the following Smartsheet REST API method: POST /users/{userId}/alternateemails @param userId the id of the user @param altEmails AlternateEmail alternate email address to add. @return the resource (note that if there is no such resource, this method will throw ResourceNotFoundExc...
[ "Add", "an", "alternate", "email", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java#L305-L311
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java
UserResourcesImpl.promoteAlternateEmail
public AlternateEmail promoteAlternateEmail(long userId, long altEmailId) throws SmartsheetException { HttpRequest request = createHttpRequest(smartsheet.getBaseURI().resolve( "users/" + userId + "/alternateemails/" + altEmailId + "/makeprimary"), HttpMethod.POST); Object obj = null; ...
java
public AlternateEmail promoteAlternateEmail(long userId, long altEmailId) throws SmartsheetException { HttpRequest request = createHttpRequest(smartsheet.getBaseURI().resolve( "users/" + userId + "/alternateemails/" + altEmailId + "/makeprimary"), HttpMethod.POST); Object obj = null; ...
[ "public", "AlternateEmail", "promoteAlternateEmail", "(", "long", "userId", ",", "long", "altEmailId", ")", "throws", "SmartsheetException", "{", "HttpRequest", "request", "=", "createHttpRequest", "(", "smartsheet", ".", "getBaseURI", "(", ")", ".", "resolve", "(",...
Promote and alternate email to primary. @param userId id of the user @param altEmailId alternate email id @return alternateEmail of the primary @throws IllegalArgumentException if any argument is null or empty string @throws InvalidRequestException if there is any problem with the REST API request @throws Authorizatio...
[ "Promote", "and", "alternate", "email", "to", "primary", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java#L346-L367
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java
UserResourcesImpl.addProfileImage
public User addProfileImage(long userId, String file, String fileType) throws SmartsheetException, FileNotFoundException { return attachProfileImage("users/" + userId + "/profileimage", file, fileType); }
java
public User addProfileImage(long userId, String file, String fileType) throws SmartsheetException, FileNotFoundException { return attachProfileImage("users/" + userId + "/profileimage", file, fileType); }
[ "public", "User", "addProfileImage", "(", "long", "userId", ",", "String", "file", ",", "String", "fileType", ")", "throws", "SmartsheetException", ",", "FileNotFoundException", "{", "return", "attachProfileImage", "(", "\"users/\"", "+", "userId", "+", "\"/profilei...
Uploads a profile image for the specified user. @param userId id of the user @param file path to the image file @param fileType content type of the image file @return user @throws IllegalArgumentException if any argument is null or empty string @throws InvalidRequestException if there is any problem with the REST API ...
[ "Uploads", "a", "profile", "image", "for", "the", "specified", "user", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/UserResourcesImpl.java#L383-L385
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/CommentAttachmentResourcesImpl.java
CommentAttachmentResourcesImpl.attachFile
public Attachment attachFile(long sheetId, long commentId, File file, String contentType) throws FileNotFoundException, SmartsheetException { Util.throwIfNull(sheetId, commentId, file, contentType); Util.throwIfEmpty(contentType); return attachFile(sheetId, commentId, new FileInputS...
java
public Attachment attachFile(long sheetId, long commentId, File file, String contentType) throws FileNotFoundException, SmartsheetException { Util.throwIfNull(sheetId, commentId, file, contentType); Util.throwIfEmpty(contentType); return attachFile(sheetId, commentId, new FileInputS...
[ "public", "Attachment", "attachFile", "(", "long", "sheetId", ",", "long", "commentId", ",", "File", "file", ",", "String", "contentType", ")", "throws", "FileNotFoundException", ",", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "sheetId", ",", "...
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 contentType the content type of the file @retur...
[ "Attach", "a", "file", "to", "a", "comment", "with", "simple", "upload", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/CommentAttachmentResourcesImpl.java#L81-L87
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.setMaxRetryTimeMillis
public void setMaxRetryTimeMillis(long maxRetryTimeMillis) { if (this.httpClient instanceof DefaultHttpClient) { ((DefaultHttpClient) this.httpClient).setMaxRetryTimeMillis(maxRetryTimeMillis); } else throw new UnsupportedOperationException("Invalid operation for class " ...
java
public void setMaxRetryTimeMillis(long maxRetryTimeMillis) { if (this.httpClient instanceof DefaultHttpClient) { ((DefaultHttpClient) this.httpClient).setMaxRetryTimeMillis(maxRetryTimeMillis); } else throw new UnsupportedOperationException("Invalid operation for class " ...
[ "public", "void", "setMaxRetryTimeMillis", "(", "long", "maxRetryTimeMillis", ")", "{", "if", "(", "this", ".", "httpClient", "instanceof", "DefaultHttpClient", ")", "{", "(", "(", "DefaultHttpClient", ")", "this", ".", "httpClient", ")", ".", "setMaxRetryTimeMill...
Sets the max retry time if the HttpClient is an instance of DefaultHttpClient @param maxRetryTimeMillis max retry time
[ "Sets", "the", "max", "retry", "time", "if", "the", "HttpClient", "is", "an", "instance", "of", "DefaultHttpClient" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L426-L432
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.setTracePrettyPrint
public void setTracePrettyPrint(boolean pretty) { if (this.httpClient instanceof DefaultHttpClient) { ((DefaultHttpClient)this.httpClient).setTracePrettyPrint(pretty); } else throw new UnsupportedOperationException("Invalid operation for class " + this.httpClient.getClass...
java
public void setTracePrettyPrint(boolean pretty) { if (this.httpClient instanceof DefaultHttpClient) { ((DefaultHttpClient)this.httpClient).setTracePrettyPrint(pretty); } else throw new UnsupportedOperationException("Invalid operation for class " + this.httpClient.getClass...
[ "public", "void", "setTracePrettyPrint", "(", "boolean", "pretty", ")", "{", "if", "(", "this", ".", "httpClient", "instanceof", "DefaultHttpClient", ")", "{", "(", "(", "DefaultHttpClient", ")", "this", ".", "httpClient", ")", ".", "setTracePrettyPrint", "(", ...
set whether or not to generate "pretty formatted" JSON in trace-logging
[ "set", "whether", "or", "not", "to", "generate", "pretty", "formatted", "JSON", "in", "trace", "-", "logging" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L444-L450
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.homeResources
public HomeResources homeResources() { if (home.get() == null) { home.compareAndSet(null, new HomeResourcesImpl(this)); } return home.get(); }
java
public HomeResources homeResources() { if (home.get() == null) { home.compareAndSet(null, new HomeResourcesImpl(this)); } return home.get(); }
[ "public", "HomeResources", "homeResources", "(", ")", "{", "if", "(", "home", ".", "get", "(", ")", "==", "null", ")", "{", "home", ".", "compareAndSet", "(", "null", ",", "new", "HomeResourcesImpl", "(", "this", ")", ")", ";", "}", "return", "home", ...
Returns the HomeResources instance that provides access to Home resources. @return the home resources
[ "Returns", "the", "HomeResources", "instance", "that", "provides", "access", "to", "Home", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L457-L462
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.workspaceResources
public WorkspaceResources workspaceResources() { if (workspaces.get() == null) { workspaces.compareAndSet(null, new WorkspaceResourcesImpl(this)); } return workspaces.get(); }
java
public WorkspaceResources workspaceResources() { if (workspaces.get() == null) { workspaces.compareAndSet(null, new WorkspaceResourcesImpl(this)); } return workspaces.get(); }
[ "public", "WorkspaceResources", "workspaceResources", "(", ")", "{", "if", "(", "workspaces", ".", "get", "(", ")", "==", "null", ")", "{", "workspaces", ".", "compareAndSet", "(", "null", ",", "new", "WorkspaceResourcesImpl", "(", "this", ")", ")", ";", "...
Returns the WorkspaceResources instance that provides access to Workspace resources. @return the workspace resources
[ "Returns", "the", "WorkspaceResources", "instance", "that", "provides", "access", "to", "Workspace", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L469-L474
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.folderResources
public FolderResources folderResources() { if (folders.get() == null) { folders.compareAndSet(null, new FolderResourcesImpl(this)); } return folders.get(); }
java
public FolderResources folderResources() { if (folders.get() == null) { folders.compareAndSet(null, new FolderResourcesImpl(this)); } return folders.get(); }
[ "public", "FolderResources", "folderResources", "(", ")", "{", "if", "(", "folders", ".", "get", "(", ")", "==", "null", ")", "{", "folders", ".", "compareAndSet", "(", "null", ",", "new", "FolderResourcesImpl", "(", "this", ")", ")", ";", "}", "return",...
Returns the FolderResources instance that provides access to Folder resources. @return the folder resources
[ "Returns", "the", "FolderResources", "instance", "that", "provides", "access", "to", "Folder", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L481-L486
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.templateResources
public TemplateResources templateResources() { if (templates.get() == null) { templates.compareAndSet(null, new TemplateResourcesImpl(this)); } return templates.get(); }
java
public TemplateResources templateResources() { if (templates.get() == null) { templates.compareAndSet(null, new TemplateResourcesImpl(this)); } return templates.get(); }
[ "public", "TemplateResources", "templateResources", "(", ")", "{", "if", "(", "templates", ".", "get", "(", ")", "==", "null", ")", "{", "templates", ".", "compareAndSet", "(", "null", ",", "new", "TemplateResourcesImpl", "(", "this", ")", ")", ";", "}", ...
Returns the TemplateResources instance that provides access to Template resources. @return the template resources
[ "Returns", "the", "TemplateResources", "instance", "that", "provides", "access", "to", "Template", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L493-L498
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.sheetResources
public SheetResources sheetResources() { if (sheets.get() == null) { sheets.compareAndSet(null, new SheetResourcesImpl(this)); } return sheets.get(); }
java
public SheetResources sheetResources() { if (sheets.get() == null) { sheets.compareAndSet(null, new SheetResourcesImpl(this)); } return sheets.get(); }
[ "public", "SheetResources", "sheetResources", "(", ")", "{", "if", "(", "sheets", ".", "get", "(", ")", "==", "null", ")", "{", "sheets", ".", "compareAndSet", "(", "null", ",", "new", "SheetResourcesImpl", "(", "this", ")", ")", ";", "}", "return", "s...
Returns the SheetResources instance that provides access to Sheet resources. @return the sheet resources
[ "Returns", "the", "SheetResources", "instance", "that", "provides", "access", "to", "Sheet", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L505-L510
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.sightResources
public SightResources sightResources() { if (sights.get() == null) { sights.compareAndSet(null, new SightResourcesImpl(this)); } return sights.get(); }
java
public SightResources sightResources() { if (sights.get() == null) { sights.compareAndSet(null, new SightResourcesImpl(this)); } return sights.get(); }
[ "public", "SightResources", "sightResources", "(", ")", "{", "if", "(", "sights", ".", "get", "(", ")", "==", "null", ")", "{", "sights", ".", "compareAndSet", "(", "null", ",", "new", "SightResourcesImpl", "(", "this", ")", ")", ";", "}", "return", "s...
Returns the SightResources instance that provides access to Sight resources. @return the sight resources
[ "Returns", "the", "SightResources", "instance", "that", "provides", "access", "to", "Sight", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L517-L522
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.favoriteResources
public FavoriteResources favoriteResources() { if (favorites.get() == null) { favorites.compareAndSet(null, new FavoriteResourcesImpl(this)); } return favorites.get(); }
java
public FavoriteResources favoriteResources() { if (favorites.get() == null) { favorites.compareAndSet(null, new FavoriteResourcesImpl(this)); } return favorites.get(); }
[ "public", "FavoriteResources", "favoriteResources", "(", ")", "{", "if", "(", "favorites", ".", "get", "(", ")", "==", "null", ")", "{", "favorites", ".", "compareAndSet", "(", "null", ",", "new", "FavoriteResourcesImpl", "(", "this", ")", ")", ";", "}", ...
Returns the FavoriteResources instance that provides access to Favorite resources. @return the favorite resources
[ "Returns", "the", "FavoriteResources", "instance", "that", "provides", "access", "to", "Favorite", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L528-L533
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.tokenResources
public TokenResources tokenResources() { if (tokens.get() == null) { tokens.compareAndSet(null, new TokenResourcesImpl(this)); } return tokens.get(); }
java
public TokenResources tokenResources() { if (tokens.get() == null) { tokens.compareAndSet(null, new TokenResourcesImpl(this)); } return tokens.get(); }
[ "public", "TokenResources", "tokenResources", "(", ")", "{", "if", "(", "tokens", ".", "get", "(", ")", "==", "null", ")", "{", "tokens", ".", "compareAndSet", "(", "null", ",", "new", "TokenResourcesImpl", "(", "this", ")", ")", ";", "}", "return", "t...
Returns the TokenResources instance that provides access to token resources. @return the token resources
[ "Returns", "the", "TokenResources", "instance", "that", "provides", "access", "to", "token", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L600-L605
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.contactResources
public ContactResources contactResources() { if (contacts.get() == null) { contacts.compareAndSet(null, new ContactResourcesImpl(this)); } return contacts.get(); }
java
public ContactResources contactResources() { if (contacts.get() == null) { contacts.compareAndSet(null, new ContactResourcesImpl(this)); } return contacts.get(); }
[ "public", "ContactResources", "contactResources", "(", ")", "{", "if", "(", "contacts", ".", "get", "(", ")", "==", "null", ")", "{", "contacts", ".", "compareAndSet", "(", "null", ",", "new", "ContactResourcesImpl", "(", "this", ")", ")", ";", "}", "ret...
Returns the ContactResources instance that provides access to contact resources. @return the contact resources
[ "Returns", "the", "ContactResources", "instance", "that", "provides", "access", "to", "contact", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L612-L617
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.imageUrlResources
public ImageUrlResources imageUrlResources() { if (imageUrls.get() == null) { imageUrls.compareAndSet(null, new ImageUrlResourcesImpl(this)); } return imageUrls.get(); }
java
public ImageUrlResources imageUrlResources() { if (imageUrls.get() == null) { imageUrls.compareAndSet(null, new ImageUrlResourcesImpl(this)); } return imageUrls.get(); }
[ "public", "ImageUrlResources", "imageUrlResources", "(", ")", "{", "if", "(", "imageUrls", ".", "get", "(", ")", "==", "null", ")", "{", "imageUrls", ".", "compareAndSet", "(", "null", ",", "new", "ImageUrlResourcesImpl", "(", "this", ")", ")", ";", "}", ...
Returns the ImageUrlResources instance that provides access to image url resources. @return the image url resources
[ "Returns", "the", "ImageUrlResources", "instance", "that", "provides", "access", "to", "image", "url", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L624-L629
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.webhookResources
public WebhookResources webhookResources() { if (webhooks.get() == null) { webhooks.compareAndSet(null, new WebhookResourcesImpl(this)); } return webhooks.get(); }
java
public WebhookResources webhookResources() { if (webhooks.get() == null) { webhooks.compareAndSet(null, new WebhookResourcesImpl(this)); } return webhooks.get(); }
[ "public", "WebhookResources", "webhookResources", "(", ")", "{", "if", "(", "webhooks", ".", "get", "(", ")", "==", "null", ")", "{", "webhooks", ".", "compareAndSet", "(", "null", ",", "new", "WebhookResourcesImpl", "(", "this", ")", ")", ";", "}", "ret...
Returns the WebhookResources instance that provides access to webhook resources. @return the webhook resources
[ "Returns", "the", "WebhookResources", "instance", "that", "provides", "access", "to", "webhook", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L636-L641
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java
SmartsheetImpl.passthroughResources
public PassthroughResources passthroughResources() { if (passthrough.get() == null) { passthrough.compareAndSet(null, new PassthroughResourcesImpl(this)); } return passthrough.get(); }
java
public PassthroughResources passthroughResources() { if (passthrough.get() == null) { passthrough.compareAndSet(null, new PassthroughResourcesImpl(this)); } return passthrough.get(); }
[ "public", "PassthroughResources", "passthroughResources", "(", ")", "{", "if", "(", "passthrough", ".", "get", "(", ")", "==", "null", ")", "{", "passthrough", ".", "compareAndSet", "(", "null", ",", "new", "PassthroughResourcesImpl", "(", "this", ")", ")", ...
Returns the PassthroughResources instance that provides access to passthrough resources. @return the passthrough resources
[ "Returns", "the", "PassthroughResources", "instance", "that", "provides", "access", "to", "passthrough", "resources", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SmartsheetImpl.java#L648-L653
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/WebhookResourcesImpl.java
WebhookResourcesImpl.updateWebhook
public Webhook updateWebhook(Webhook webhook) throws SmartsheetException { return this.updateResource("webhooks/" + webhook.getId(), Webhook.class, webhook); }
java
public Webhook updateWebhook(Webhook webhook) throws SmartsheetException { return this.updateResource("webhooks/" + webhook.getId(), Webhook.class, webhook); }
[ "public", "Webhook", "updateWebhook", "(", "Webhook", "webhook", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "updateResource", "(", "\"webhooks/\"", "+", "webhook", ".", "getId", "(", ")", ",", "Webhook", ".", "class", ",", "webhook", ")"...
Updates the webhooks specified in the URL. It mirrors to the following Smartsheet REST API method: PUT /webhooks/{webhookId} @param webhook the webhook to update @return the updated webhook resource. @throws SmartsheetException @throws IllegalArgumentException if any argument is null or empty string @throws InvalidRe...
[ "Updates", "the", "webhooks", "specified", "in", "the", "URL", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/WebhookResourcesImpl.java#L126-L128
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/WebhookResourcesImpl.java
WebhookResourcesImpl.resetSharedSecret
public WebhookSharedSecret resetSharedSecret(long webhookId) throws SmartsheetException { HttpRequest request = createHttpRequest(this.getSmartsheet().getBaseURI().resolve("webhooks/" + webhookId + "/resetsharedsecret"), HttpMethod.POST); HttpResponse response = getSmartsheet().getHttpC...
java
public WebhookSharedSecret resetSharedSecret(long webhookId) throws SmartsheetException { HttpRequest request = createHttpRequest(this.getSmartsheet().getBaseURI().resolve("webhooks/" + webhookId + "/resetsharedsecret"), HttpMethod.POST); HttpResponse response = getSmartsheet().getHttpC...
[ "public", "WebhookSharedSecret", "resetSharedSecret", "(", "long", "webhookId", ")", "throws", "SmartsheetException", "{", "HttpRequest", "request", "=", "createHttpRequest", "(", "this", ".", "getSmartsheet", "(", ")", ".", "getBaseURI", "(", ")", ".", "resolve", ...
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 @param webhookId the webhook Id @return the Webhook shared secret @throws Illeg...
[ "Resets", "the", "shared", "secret", "for", "the", "specified", "Webhook", ".", "For", "more", "information", "about", "how", "a", "shared", "secret", "is", "used", "see", "Authenticating", "Callbacks", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/WebhookResourcesImpl.java#L162-L188
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/util/Util.java
Util.throwIfNull
public static void throwIfNull(Object obj1, Object obj2) { if(obj1 == null){ throw new IllegalArgumentException(); } if(obj2 == null){ throw new IllegalArgumentException(); } }
java
public static void throwIfNull(Object obj1, Object obj2) { if(obj1 == null){ throw new IllegalArgumentException(); } if(obj2 == null){ throw new IllegalArgumentException(); } }
[ "public", "static", "void", "throwIfNull", "(", "Object", "obj1", ",", "Object", "obj2", ")", "{", "if", "(", "obj1", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "if", "(", "obj2", "==", "null", ")", "{", "...
faster util method that avoids creation of array for two-arg cases
[ "faster", "util", "method", "that", "avoids", "creation", "of", "array", "for", "two", "-", "arg", "cases" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/util/Util.java#L36-L43
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetRowResourcesImpl.java
SheetRowResourcesImpl.addRows
public List<Row> addRows(long sheetId, List<Row> rows) throws SmartsheetException { return this.postAndReceiveList("sheets/" + sheetId + "/rows", rows, Row.class); }
java
public List<Row> addRows(long sheetId, List<Row> rows) throws SmartsheetException { return this.postAndReceiveList("sheets/" + sheetId + "/rows", rows, Row.class); }
[ "public", "List", "<", "Row", ">", "addRows", "(", "long", "sheetId", ",", "List", "<", "Row", ">", "rows", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "postAndReceiveList", "(", "\"sheets/\"", "+", "sheetId", "+", "\"/rows\"", ",", "...
Insert rows to a sheet. It mirrors to the following Smartsheet REST API method: POST /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 AP...
[ "Insert", "rows", "to", "a", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetRowResourcesImpl.java#L85-L87
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetRowResourcesImpl.java
SheetRowResourcesImpl.getRow
public Row getRow(long sheetId, long rowId, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException { String path = "sheets/" + sheetId + "/rows/" + rowId; HashMap<String, Object> parameters = new HashMap<String, Object>(); parameters.put("include", QueryU...
java
public Row getRow(long sheetId, long rowId, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException { String path = "sheets/" + sheetId + "/rows/" + rowId; HashMap<String, Object> parameters = new HashMap<String, Object>(); parameters.put("include", QueryU...
[ "public", "Row", "getRow", "(", "long", "sheetId", ",", "long", "rowId", ",", "EnumSet", "<", "RowInclusion", ">", "includes", ",", "EnumSet", "<", "ObjectExclusion", ">", "excludes", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/...
Get a row. It mirrors to the following Smartsheet REST API method: GET /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 :...
[ "Get", "a", "row", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetRowResourcesImpl.java#L116-L126
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetRowResourcesImpl.java
SheetRowResourcesImpl.updateRows
public List<Row> updateRows(long sheetId, List<Row> rows) throws SmartsheetException { return this.putAndReceiveList("sheets/" + sheetId + "/rows", rows, Row.class); }
java
public List<Row> updateRows(long sheetId, List<Row> rows) throws SmartsheetException { return this.putAndReceiveList("sheets/" + sheetId + "/rows", rows, Row.class); }
[ "public", "List", "<", "Row", ">", "updateRows", "(", "long", "sheetId", ",", "List", "<", "Row", ">", "rows", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "putAndReceiveList", "(", "\"sheets/\"", "+", "sheetId", "+", "\"/rows\"", ",", ...
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(ac...
[ "Update", "rows", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetRowResourcesImpl.java#L251-L253
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/util/StreamUtil.java
StreamUtil.readBytesFromStream
public static byte[] readBytesFromStream(InputStream source, int bufferSize) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); copyContentIntoOutputStream(source, buffer, bufferSize, true); return buffer.toByteArray(); }
java
public static byte[] readBytesFromStream(InputStream source, int bufferSize) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); copyContentIntoOutputStream(source, buffer, bufferSize, true); return buffer.toByteArray(); }
[ "public", "static", "byte", "[", "]", "readBytesFromStream", "(", "InputStream", "source", ",", "int", "bufferSize", ")", "throws", "IOException", "{", "ByteArrayOutputStream", "buffer", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "copyContentIntoOutputStream"...
read all bytes from an InputStream with the specified buffer size; doesn't close input-stream @param source the input stream to consume @param bufferSize the buffer size to use when reading the stream @return the bytes read from 'is' @throws IOException if anything goes wrong reading from 'is'
[ "read", "all", "bytes", "from", "an", "InputStream", "with", "the", "specified", "buffer", "size", ";", "doesn", "t", "close", "input", "-", "stream" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/util/StreamUtil.java#L57-L61
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/util/StreamUtil.java
StreamUtil.copyContentIntoOutputStream
public static long copyContentIntoOutputStream(InputStream source, OutputStream target, int bufferSize, boolean readToEOF) throws IOException { byte[] tempBuf = new byte[Math.max(ONE_KB, bufferSize)]; // at least a 1k buffer long bytesWritten = 0; ...
java
public static long copyContentIntoOutputStream(InputStream source, OutputStream target, int bufferSize, boolean readToEOF) throws IOException { byte[] tempBuf = new byte[Math.max(ONE_KB, bufferSize)]; // at least a 1k buffer long bytesWritten = 0; ...
[ "public", "static", "long", "copyContentIntoOutputStream", "(", "InputStream", "source", ",", "OutputStream", "target", ",", "int", "bufferSize", ",", "boolean", "readToEOF", ")", "throws", "IOException", "{", "byte", "[", "]", "tempBuf", "=", "new", "byte", "["...
the real work-horse behind most of these methods @param source the source InputStream from which to read the data (not closed when done) @param target the target OutputStream to which to write the data (not closed when done) @param bufferSize the size of the transfer buffer to use @param readToEOF if we should...
[ "the", "real", "work", "-", "horse", "behind", "most", "of", "these", "methods" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/util/StreamUtil.java#L71-L89
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/util/StreamUtil.java
StreamUtil.cloneContent
public static InputStream cloneContent(InputStream source, int readbackSize, ByteArrayOutputStream target) throws IOException { if (source == null) { return null; } // if the source supports mark/reset then we read and then reset up to the read-back size if (source.markSuppor...
java
public static InputStream cloneContent(InputStream source, int readbackSize, ByteArrayOutputStream target) throws IOException { if (source == null) { return null; } // if the source supports mark/reset then we read and then reset up to the read-back size if (source.markSuppor...
[ "public", "static", "InputStream", "cloneContent", "(", "InputStream", "source", ",", "int", "readbackSize", ",", "ByteArrayOutputStream", "target", ")", "throws", "IOException", "{", "if", "(", "source", "==", "null", ")", "{", "return", "null", ";", "}", "//...
used when you want to clone a InputStream's content and still have it appear "rewound" to the stream beginning @param source the stream around the contents we want to clone @param readbackSize the farthest we should read a resetable stream before giving up @param target an output stream into which we place ...
[ "used", "when", "you", "want", "to", "clone", "a", "InputStream", "s", "content", "and", "still", "have", "it", "appear", "rewound", "to", "the", "stream", "beginning" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/util/StreamUtil.java#L99-L116
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java
PassthroughResourcesImpl.getRequest
public String getRequest(String endpoint, HashMap<String, Object> parameters) throws SmartsheetException { return passthroughRequest(HttpMethod.GET, endpoint, null, parameters); }
java
public String getRequest(String endpoint, HashMap<String, Object> parameters) throws SmartsheetException { return passthroughRequest(HttpMethod.GET, endpoint, null, parameters); }
[ "public", "String", "getRequest", "(", "String", "endpoint", ",", "HashMap", "<", "String", ",", "Object", ">", "parameters", ")", "throws", "SmartsheetException", "{", "return", "passthroughRequest", "(", "HttpMethod", ".", "GET", ",", "endpoint", ",", "null", ...
Issue an HTTP GET request. @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 Authorizat...
[ "Issue", "an", "HTTP", "GET", "request", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java#L60-L62
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java
PassthroughResourcesImpl.postRequest
public String postRequest(String endpoint, String payload, HashMap<String, Object> parameters) throws SmartsheetException { Util.throwIfNull(payload); return passthroughRequest(HttpMethod.POST, endpoint, payload, parameters); }
java
public String postRequest(String endpoint, String payload, HashMap<String, Object> parameters) throws SmartsheetException { Util.throwIfNull(payload); return passthroughRequest(HttpMethod.POST, endpoint, payload, parameters); }
[ "public", "String", "postRequest", "(", "String", "endpoint", ",", "String", "payload", ",", "HashMap", "<", "String", ",", "Object", ">", "parameters", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "payload", ")", ";", "return", ...
Issue an HTTP POST request. @param endpoint the API endpoint @param payload a JSON payload string @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 t...
[ "Issue", "an", "HTTP", "POST", "request", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java#L78-L81
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java
PassthroughResourcesImpl.putRequest
public String putRequest(String endpoint, String payload, HashMap<String, Object> parameters) throws SmartsheetException { Util.throwIfNull(payload); return passthroughRequest(HttpMethod.PUT, endpoint, payload, parameters); }
java
public String putRequest(String endpoint, String payload, HashMap<String, Object> parameters) throws SmartsheetException { Util.throwIfNull(payload); return passthroughRequest(HttpMethod.PUT, endpoint, payload, parameters); }
[ "public", "String", "putRequest", "(", "String", "endpoint", ",", "String", "payload", ",", "HashMap", "<", "String", ",", "Object", ">", "parameters", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "payload", ")", ";", "return", ...
Issue an HTTP PUT request. @param endpoint the API endpoint @param payload a JSON payload string @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 th...
[ "Issue", "an", "HTTP", "PUT", "request", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java#L97-L100
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java
PassthroughResourcesImpl.deleteRequest
public String deleteRequest(String endpoint) throws SmartsheetException { return passthroughRequest(HttpMethod.DELETE, endpoint, null, null); }
java
public String deleteRequest(String endpoint) throws SmartsheetException { return passthroughRequest(HttpMethod.DELETE, endpoint, null, null); }
[ "public", "String", "deleteRequest", "(", "String", "endpoint", ")", "throws", "SmartsheetException", "{", "return", "passthroughRequest", "(", "HttpMethod", ".", "DELETE", ",", "endpoint", ",", "null", ",", "null", ")", ";", "}" ]
Issue an HTTP DELETE request. @param endpoint the API endpoint @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 ...
[ "Issue", "an", "HTTP", "DELETE", "request", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/PassthroughResourcesImpl.java#L114-L116
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/DiscussionCommentResourcesImpl.java
DiscussionCommentResourcesImpl.addCommentWithAttachment
public Comment addCommentWithAttachment(long sheetId, long discussionId, Comment comment, File file, String contentType) throws SmartsheetException, IOException{ String path = "sheets/" + sheetId + "/discussions/" + discussionId + "/comments"; Util.throwIfNull(sheetId, comment, file, contentType); ...
java
public Comment addCommentWithAttachment(long sheetId, long discussionId, Comment comment, File file, String contentType) throws SmartsheetException, IOException{ String path = "sheets/" + sheetId + "/discussions/" + discussionId + "/comments"; Util.throwIfNull(sheetId, comment, file, contentType); ...
[ "public", "Comment", "addCommentWithAttachment", "(", "long", "sheetId", ",", "long", "discussionId", ",", "Comment", "comment", ",", "File", "file", ",", "String", "contentType", ")", "throws", "SmartsheetException", ",", "IOException", "{", "String", "path", "="...
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 discussionId the dicussion id @param comment the comment to add @param file the file to be attached @param contentType the type of file ...
[ "Add", "a", "comment", "to", "a", "discussion", "with", "an", "attachment", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/DiscussionCommentResourcesImpl.java#L86-L91
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/DiscussionCommentResourcesImpl.java
DiscussionCommentResourcesImpl.updateComment
public Comment updateComment(long sheetId, Comment comment) throws SmartsheetException { return this.updateResource("sheets/" + sheetId + "/comments/" + comment.getId(), Comment.class, comment); }
java
public Comment updateComment(long sheetId, Comment comment) throws SmartsheetException { return this.updateResource("sheets/" + sheetId + "/comments/" + comment.getId(), Comment.class, comment); }
[ "public", "Comment", "updateComment", "(", "long", "sheetId", ",", "Comment", "comment", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "updateResource", "(", "\"sheets/\"", "+", "sheetId", "+", "\"/comments/\"", "+", "comment", ".", "getId", ...
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 InvalidRequestE...
[ "Update", "the", "specified", "comment" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/DiscussionCommentResourcesImpl.java#L112-L114
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/ImageUrlResourcesImpl.java
ImageUrlResourcesImpl.getImageUrls
public ImageUrlMap getImageUrls(List<ImageUrl> requestUrls) throws SmartsheetException { Util.throwIfNull(requestUrls); HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve("imageurls"), HttpMethod.POST); ByteArrayOutputStream baos = new ByteArrayOutputS...
java
public ImageUrlMap getImageUrls(List<ImageUrl> requestUrls) throws SmartsheetException { Util.throwIfNull(requestUrls); HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve("imageurls"), HttpMethod.POST); ByteArrayOutputStream baos = new ByteArrayOutputS...
[ "public", "ImageUrlMap", "getImageUrls", "(", "List", "<", "ImageUrl", ">", "requestUrls", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "requestUrls", ")", ";", "HttpRequest", "request", ";", "request", "=", "createHttpRequest", "(",...
Gets URLS that can be used to retieve the specified cell images. It mirrors to the following Smartsheet REST API method: POST /imageurls @param requestUrls array of requested Images ans sizes. @return the ImageUrlMap object (note that if there is no such resource, this method will throw ResourceNotFoundException rath...
[ "Gets", "URLS", "that", "can", "be", "used", "to", "retieve", "the", "specified", "cell", "images", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/ImageUrlResourcesImpl.java#L78-L115
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/WorkspaceResourcesImpl.java
WorkspaceResourcesImpl.listWorkspaces
public PagedResult<Workspace> listWorkspaces(PaginationParameters parameters) throws SmartsheetException { String path = "workspaces"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWrapper(path, Workspace.class); }
java
public PagedResult<Workspace> listWorkspaces(PaginationParameters parameters) throws SmartsheetException { String path = "workspaces"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWrapper(path, Workspace.class); }
[ "public", "PagedResult", "<", "Workspace", ">", "listWorkspaces", "(", "PaginationParameters", "parameters", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"workspaces\"", ";", "if", "(", "parameters", "!=", "null", ")", "{", "path", "+=", "...
List all workspaces. It mirrors to the following Smartsheet REST API method: GET /workspaces 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 ...
[ "List", "all", "workspaces", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/WorkspaceResourcesImpl.java#L97-L104
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/WorkspaceResourcesImpl.java
WorkspaceResourcesImpl.getWorkspace
public Workspace getWorkspace(long id, Boolean loadAll, EnumSet<SourceInclusion> includes) throws SmartsheetException { String path = "workspaces/" + id; // Add the parameters to a map and build the query string at the end HashMap<String, Object> parameters = new HashMap<String, Object>(); ...
java
public Workspace getWorkspace(long id, Boolean loadAll, EnumSet<SourceInclusion> includes) throws SmartsheetException { String path = "workspaces/" + id; // Add the parameters to a map and build the query string at the end HashMap<String, Object> parameters = new HashMap<String, Object>(); ...
[ "public", "Workspace", "getWorkspace", "(", "long", "id", ",", "Boolean", "loadAll", ",", "EnumSet", "<", "SourceInclusion", ">", "includes", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"workspaces/\"", "+", "id", ";", "// Add the parameter...
Get a workspace. It mirrors to the following Smartsheet REST API method: GET /workspace/{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 th...
[ "Get", "a", "workspace", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/WorkspaceResourcesImpl.java#L132-L146
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/WorkspaceResourcesImpl.java
WorkspaceResourcesImpl.updateWorkspace
public Workspace updateWorkspace(Workspace workspace) throws SmartsheetException { return this.updateResource("workspaces/" + workspace.getId(), Workspace.class, workspace); }
java
public Workspace updateWorkspace(Workspace workspace) throws SmartsheetException { return this.updateResource("workspaces/" + workspace.getId(), Workspace.class, workspace); }
[ "public", "Workspace", "updateWorkspace", "(", "Workspace", "workspace", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "updateResource", "(", "\"workspaces/\"", "+", "workspace", ".", "getId", "(", ")", ",", "Workspace", ".", "class", ",", "w...
Update a workspace. It mirrors to the following Smartsheet REST API method: PUT /workspace/{id} 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 authori...
[ "Update", "a", "workspace", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/WorkspaceResourcesImpl.java#L201-L203
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.listSheets
public PagedResult<Sheet> listSheets(EnumSet<SourceInclusion> includes, PaginationParameters pagination) throws SmartsheetException { return this.listSheets(includes, pagination, null); }
java
public PagedResult<Sheet> listSheets(EnumSet<SourceInclusion> includes, PaginationParameters pagination) throws SmartsheetException { return this.listSheets(includes, pagination, null); }
[ "public", "PagedResult", "<", "Sheet", ">", "listSheets", "(", "EnumSet", "<", "SourceInclusion", ">", "includes", ",", "PaginationParameters", "pagination", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "listSheets", "(", "includes", ",", "pag...
List all sheets. It mirrors to the following Smartsheet REST API method: GET /sheets @param includes the source inclusion @param pagination the object containing the pagination parameters @return A list of all sheets (note that an empty list will be returned if there are none). @throws IllegalArgumentException if any...
[ "List", "all", "sheets", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L153-L155
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.listOrganizationSheets
@Deprecated public PagedResult<Sheet> listOrganizationSheets(PaginationParameters parameters) throws SmartsheetException { String path = "users/sheets"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWrapper(path, Sheet.class...
java
@Deprecated public PagedResult<Sheet> listOrganizationSheets(PaginationParameters parameters) throws SmartsheetException { String path = "users/sheets"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWrapper(path, Sheet.class...
[ "@", "Deprecated", "public", "PagedResult", "<", "Sheet", ">", "listOrganizationSheets", "(", "PaginationParameters", "parameters", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"users/sheets\"", ";", "if", "(", "parameters", "!=", "null", ")",...
List all sheets in the organization. It mirrors to the following Smartsheet REST API method: GET /users/sheets 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) - ServiceUnavailable...
[ "List", "all", "sheets", "in", "the", "organization", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L190-L198
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.getSheet
public Sheet getSheet(long id, EnumSet<SheetInclusion> includes, EnumSet<ObjectExclusion> excludes, Set<Long> rowIds, Set<Integer> rowNumbers, Set<Long> columnIds, Integer pageSize, Integer page) throws SmartsheetException { return this.getSheet(id, includes, excludes, rowIds, rowNumbers, columnIds, pageSize, p...
java
public Sheet getSheet(long id, EnumSet<SheetInclusion> includes, EnumSet<ObjectExclusion> excludes, Set<Long> rowIds, Set<Integer> rowNumbers, Set<Long> columnIds, Integer pageSize, Integer page) throws SmartsheetException { return this.getSheet(id, includes, excludes, rowIds, rowNumbers, columnIds, pageSize, p...
[ "public", "Sheet", "getSheet", "(", "long", "id", ",", "EnumSet", "<", "SheetInclusion", ">", "includes", ",", "EnumSet", "<", "ObjectExclusion", ">", "excludes", ",", "Set", "<", "Long", ">", "rowIds", ",", "Set", "<", "Integer", ">", "rowNumbers", ",", ...
Get a sheet. It mirrors to the following Smartsheet REST API method: GET /sheet/{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 ...
[ "Get", "a", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L226-L228
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.getSheetAsPDF
public void getSheetAsPDF(long id, OutputStream outputStream, PaperSize paperSize) throws SmartsheetException { getSheetAsFile(id, paperSize, outputStream, "application/pdf"); }
java
public void getSheetAsPDF(long id, OutputStream outputStream, PaperSize paperSize) throws SmartsheetException { getSheetAsFile(id, paperSize, outputStream, "application/pdf"); }
[ "public", "void", "getSheetAsPDF", "(", "long", "id", ",", "OutputStream", "outputStream", ",", "PaperSize", "paperSize", ")", "throws", "SmartsheetException", "{", "getSheetAsFile", "(", "id", ",", "paperSize", ",", "outputStream", ",", "\"application/pdf\"", ")", ...
Get a sheet as a PDF file. It mirrors to the following Smartsheet REST API method: GET /sheet/{id} with "application/pdf" Accept HTTP header Exceptions: IllegalArgumentException : if outputStream is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is a...
[ "Get", "a", "sheet", "as", "a", "PDF", "file", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L363-L365
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.importCsv
public Sheet importCsv(String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { return importFile("sheets/import", file,"text/csv", sheetName, headerRowIndex, primaryRowIndex); }
java
public Sheet importCsv(String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { return importFile("sheets/import", file,"text/csv", sheetName, headerRowIndex, primaryRowIndex); }
[ "public", "Sheet", "importCsv", "(", "String", "file", ",", "String", "sheetName", ",", "Integer", "headerRowIndex", ",", "Integer", "primaryRowIndex", ")", "throws", "SmartsheetException", "{", "return", "importFile", "(", "\"sheets/import\"", ",", "file", ",", "...
Imports a sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/import @param file path to the CSV file @param sheetName destination sheet name @param headerRowIndex index (0 based) of row to be used for column names @param primaryRowIndex index (0 based) of primary column @return the created sh...
[ "Imports", "a", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L435-L437
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.importCsvInFolder
public Sheet importCsvInFolder(long folderId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { return importFile("folders/" + folderId + "/sheets/import", file,"text/csv", sheetName, headerRowIndex, primaryRowIndex); }
java
public Sheet importCsvInFolder(long folderId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { return importFile("folders/" + folderId + "/sheets/import", file,"text/csv", sheetName, headerRowIndex, primaryRowIndex); }
[ "public", "Sheet", "importCsvInFolder", "(", "long", "folderId", ",", "String", "file", ",", "String", "sheetName", ",", "Integer", "headerRowIndex", ",", "Integer", "primaryRowIndex", ")", "throws", "SmartsheetException", "{", "return", "importFile", "(", "\"folder...
Imports a sheet in given folder. It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets/import @param folderId the folder id @param file path to the CSV file @param sheetName destination sheet name @param headerRowIndex index (0 based) of row to be used for column names @param primary...
[ "Imports", "a", "sheet", "in", "given", "folder", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L533-L536
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.createSheetInWorkspace
public Sheet createSheetInWorkspace(long workspaceId, Sheet sheet) throws SmartsheetException { return this.createResource("workspaces/" + workspaceId + "/sheets", Sheet.class, sheet); }
java
public Sheet createSheetInWorkspace(long workspaceId, Sheet sheet) throws SmartsheetException { return this.createResource("workspaces/" + workspaceId + "/sheets", Sheet.class, sheet); }
[ "public", "Sheet", "createSheetInWorkspace", "(", "long", "workspaceId", ",", "Sheet", "sheet", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "createResource", "(", "\"workspaces/\"", "+", "workspaceId", "+", "\"/sheets\"", ",", "Sheet", ".", "...
Create a sheet in given workspace. It mirrors to the following Smartsheet REST API method: POST /workspace/{workspaceId}/sheets Exceptions: IllegalArgumentException : if any argument is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem wi...
[ "Create", "a", "sheet", "in", "given", "workspace", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L581-L583
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.importCsvInWorkspace
public Sheet importCsvInWorkspace(long workspaceId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { return importFile("workspaces/" + workspaceId + "/sheets/import", file, "text/csv", sheetName, headerRowIndex, primaryRowIndex); }
java
public Sheet importCsvInWorkspace(long workspaceId, String file, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { return importFile("workspaces/" + workspaceId + "/sheets/import", file, "text/csv", sheetName, headerRowIndex, primaryRowIndex); }
[ "public", "Sheet", "importCsvInWorkspace", "(", "long", "workspaceId", ",", "String", "file", ",", "String", "sheetName", ",", "Integer", "headerRowIndex", ",", "Integer", "primaryRowIndex", ")", "throws", "SmartsheetException", "{", "return", "importFile", "(", "\"...
Imports a sheet in given workspace. It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets/import @param workspaceId the workspace id @param file path to the CSV file @param sheetName destination sheet name @param headerRowIndex index (0 based) of row to be used for column names...
[ "Imports", "a", "sheet", "in", "given", "workspace", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L634-L637
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.updatePublishStatus
public SheetPublish updatePublishStatus(long id, SheetPublish publish) throws SmartsheetException{ return this.updateResource("sheets/" + id + "/publish", SheetPublish.class, publish); }
java
public SheetPublish updatePublishStatus(long id, SheetPublish publish) throws SmartsheetException{ return this.updateResource("sheets/" + id + "/publish", SheetPublish.class, publish); }
[ "public", "SheetPublish", "updatePublishStatus", "(", "long", "id", ",", "SheetPublish", "publish", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "updateResource", "(", "\"sheets/\"", "+", "id", "+", "\"/publish\"", ",", "SheetPublish", ".", "c...
Sets the publish status of a sheet and returns the new status, including the URLs of any enabled publishings. It mirrors to the following Smartsheet REST API method: PUT /sheet/{sheetId}/publish Exceptions: - IllegalArgumentException : if any argument is null - InvalidRequestException : if there is any problem with t...
[ "Sets", "the", "publish", "status", "of", "a", "sheet", "and", "returns", "the", "new", "status", "including", "the", "URLs", "of", "any", "enabled", "publishings", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L897-L899
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.importFile
private Sheet importFile(String path, String file, String contentType, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { Util.throwIfNull(path, file, contentType); Util.throwIfEmpty(path, file, contentType); File f = new...
java
private Sheet importFile(String path, String file, String contentType, String sheetName, Integer headerRowIndex, Integer primaryRowIndex) throws SmartsheetException { Util.throwIfNull(path, file, contentType); Util.throwIfEmpty(path, file, contentType); File f = new...
[ "private", "Sheet", "importFile", "(", "String", "path", ",", "String", "file", ",", "String", "contentType", ",", "String", "sheetName", ",", "Integer", "headerRowIndex", ",", "Integer", "primaryRowIndex", ")", "throws", "SmartsheetException", "{", "Util", ".", ...
Internal function used by all of the import routines 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 - ServiceUnavail...
[ "Internal", "function", "used", "by", "all", "of", "the", "import", "routines" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L921-L968
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java
SheetResourcesImpl.moveSheet
public Sheet moveSheet(long sheetId, ContainerDestination containerDestination) throws SmartsheetException { String path = "sheets/" + sheetId + "/move"; return this.createResource(path, Sheet.class, containerDestination); }
java
public Sheet moveSheet(long sheetId, ContainerDestination containerDestination) throws SmartsheetException { String path = "sheets/" + sheetId + "/move"; return this.createResource(path, Sheet.class, containerDestination); }
[ "public", "Sheet", "moveSheet", "(", "long", "sheetId", ",", "ContainerDestination", "containerDestination", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", "\"/move\"", ";", "return", "this", ".", "createResourc...
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 wit...
[ "Moves", "the", "specified", "Sheet", "to", "another", "location", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetResourcesImpl.java#L1092-L1096
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResources.java
DiscussionAttachmentResources.attachFile
public Attachment attachFile(long objectId, InputStream inputStream, String contentType, long contentLength, String fileName) { throw new UnsupportedOperationException("Attachments can only be attached to comments, not discussions."); }
java
public Attachment attachFile(long objectId, InputStream inputStream, String contentType, long contentLength, String fileName) { throw new UnsupportedOperationException("Attachments can only be attached to comments, not discussions."); }
[ "public", "Attachment", "attachFile", "(", "long", "objectId", ",", "InputStream", "inputStream", ",", "String", "contentType", ",", "long", "contentLength", ",", "String", "fileName", ")", "{", "throw", "new", "UnsupportedOperationException", "(", "\"Attachments can ...
Throws an UnsupportedOperationException.
[ "Throws", "an", "UnsupportedOperationException", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/DiscussionAttachmentResources.java#L76-L78
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
SheetColumnResourcesImpl.listColumns
public PagedResult<Column> listColumns(long sheetId, EnumSet<ColumnInclusion> includes, PaginationParameters pagination) throws SmartsheetException { String path = "sheets/" + sheetId + "/columns"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (pagination != null) { ...
java
public PagedResult<Column> listColumns(long sheetId, EnumSet<ColumnInclusion> includes, PaginationParameters pagination) throws SmartsheetException { String path = "sheets/" + sheetId + "/columns"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (pagination != null) { ...
[ "public", "PagedResult", "<", "Column", ">", "listColumns", "(", "long", "sheetId", ",", "EnumSet", "<", "ColumnInclusion", ">", "includes", ",", "PaginationParameters", "pagination", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", ...
List columns of a given sheet. 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) ResourceNotFoundEx...
[ "List", "columns", "of", "a", "given", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java#L72-L84
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
SheetColumnResourcesImpl.addColumns
public List<Column> addColumns(long sheetId, List<Column> columns) throws SmartsheetException { return this.postAndReceiveList("sheets/" + sheetId + "/columns", columns, Column.class); }
java
public List<Column> addColumns(long sheetId, List<Column> columns) throws SmartsheetException { return this.postAndReceiveList("sheets/" + sheetId + "/columns", columns, Column.class); }
[ "public", "List", "<", "Column", ">", "addColumns", "(", "long", "sheetId", ",", "List", "<", "Column", ">", "columns", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "postAndReceiveList", "(", "\"sheets/\"", "+", "sheetId", "+", "\"/columns...
Add column to a sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/columns 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 au...
[ "Add", "column", "to", "a", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java#L107-L109
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
SheetColumnResourcesImpl.updateColumn
public Column updateColumn(long sheetId, Column column) throws SmartsheetException { Util.throwIfNull(column); return this.updateResource("sheets/" + sheetId + "/columns/" + column.getId(), Column.class, column); }
java
public Column updateColumn(long sheetId, Column column) throws SmartsheetException { Util.throwIfNull(column); return this.updateResource("sheets/" + sheetId + "/columns/" + column.getId(), Column.class, column); }
[ "public", "Column", "updateColumn", "(", "long", "sheetId", ",", "Column", "column", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "column", ")", ";", "return", "this", ".", "updateResource", "(", "\"sheets/\"", "+", "sheetId", "+...
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 AP...
[ "Update", "a", "column", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java#L152-L155
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java
SheetColumnResourcesImpl.getColumn
public Column getColumn(long sheetId, long columnId, EnumSet<ColumnInclusion> includes) throws SmartsheetException { String path = "sheets/" + sheetId + "/columns/" + columnId; HashMap<String, Object> parameters = new HashMap<String, Object>(); parameters.put("include", QueryUtil.generateComma...
java
public Column getColumn(long sheetId, long columnId, EnumSet<ColumnInclusion> includes) throws SmartsheetException { String path = "sheets/" + sheetId + "/columns/" + columnId; HashMap<String, Object> parameters = new HashMap<String, Object>(); parameters.put("include", QueryUtil.generateComma...
[ "public", "Column", "getColumn", "(", "long", "sheetId", ",", "long", "columnId", ",", "EnumSet", "<", "ColumnInclusion", ">", "includes", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", "\"/columns/\"", "+",...
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) ...
[ "Gets", "the", "Column", "specified", "in", "the", "URL", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetColumnResourcesImpl.java#L176-L184
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.getColumnByIndex
public TColumn getColumnByIndex(int index) { if (columns == null) { return null; } TColumn result = null; for (TColumn column : columns) { if (column.getIndex() == index) { result = column; break; } } re...
java
public TColumn getColumnByIndex(int index) { if (columns == null) { return null; } TColumn result = null; for (TColumn column : columns) { if (column.getIndex() == index) { result = column; break; } } re...
[ "public", "TColumn", "getColumnByIndex", "(", "int", "index", ")", "{", "if", "(", "columns", "==", "null", ")", "{", "return", "null", ";", "}", "TColumn", "result", "=", "null", ";", "for", "(", "TColumn", "column", ":", "columns", ")", "{", "if", ...
Get a column by index. @param index the column index @return the column by index
[ "Get", "a", "column", "by", "index", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L238-L251
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.setColumns
public AbstractSheet<TRow, TColumn, TCell> setColumns(List<TColumn> columns) { this.columns = columns; return this; }
java
public AbstractSheet<TRow, TColumn, TCell> setColumns(List<TColumn> columns) { this.columns = columns; return this; }
[ "public", "AbstractSheet", "<", "TRow", ",", "TColumn", ",", "TCell", ">", "setColumns", "(", "List", "<", "TColumn", ">", "columns", ")", "{", "this", ".", "columns", "=", "columns", ";", "return", "this", ";", "}" ]
Sets the columns for the sheet. @param columns the new columns
[ "Sets", "the", "columns", "for", "the", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L309-L312
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.setRows
public AbstractSheet<TRow, TColumn, TCell> setRows(List<TRow> rows) { this.rows = rows; return this; }
java
public AbstractSheet<TRow, TColumn, TCell> setRows(List<TRow> rows) { this.rows = rows; return this; }
[ "public", "AbstractSheet", "<", "TRow", ",", "TColumn", ",", "TCell", ">", "setRows", "(", "List", "<", "TRow", ">", "rows", ")", "{", "this", ".", "rows", "=", "rows", ";", "return", "this", ";", "}" ]
Sets the rows for the sheet. @param rows the new rows
[ "Sets", "the", "rows", "for", "the", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L328-L331
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.setDiscussions
public AbstractSheet<TRow, TColumn, TCell> setDiscussions(List<Discussion> discussions) { this.discussions = discussions; return this; }
java
public AbstractSheet<TRow, TColumn, TCell> setDiscussions(List<Discussion> discussions) { this.discussions = discussions; return this; }
[ "public", "AbstractSheet", "<", "TRow", ",", "TColumn", ",", "TCell", ">", "setDiscussions", "(", "List", "<", "Discussion", ">", "discussions", ")", "{", "this", ".", "discussions", "=", "discussions", ";", "return", "this", ";", "}" ]
Sets the discussions for the sheet. @param discussions the new discussions
[ "Sets", "the", "discussions", "for", "the", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L366-L369
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.setAttachments
public AbstractSheet<TRow, TColumn, TCell> setAttachments(List<Attachment> attachments) { this.attachments = attachments; return this; }
java
public AbstractSheet<TRow, TColumn, TCell> setAttachments(List<Attachment> attachments) { this.attachments = attachments; return this; }
[ "public", "AbstractSheet", "<", "TRow", ",", "TColumn", ",", "TCell", ">", "setAttachments", "(", "List", "<", "Attachment", ">", "attachments", ")", "{", "this", ".", "attachments", "=", "attachments", ";", "return", "this", ";", "}" ]
Sets the attachments for the sheet. @param attachments the new attachments
[ "Sets", "the", "attachments", "for", "the", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L385-L388
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.setEffectiveAttachmentOptions
public AbstractSheet<TRow, TColumn, TCell> setEffectiveAttachmentOptions(EnumSet<AttachmentType> effectiveAttachmentOptions) { this.effectiveAttachmentOptions = effectiveAttachmentOptions; return this; }
java
public AbstractSheet<TRow, TColumn, TCell> setEffectiveAttachmentOptions(EnumSet<AttachmentType> effectiveAttachmentOptions) { this.effectiveAttachmentOptions = effectiveAttachmentOptions; return this; }
[ "public", "AbstractSheet", "<", "TRow", ",", "TColumn", ",", "TCell", ">", "setEffectiveAttachmentOptions", "(", "EnumSet", "<", "AttachmentType", ">", "effectiveAttachmentOptions", ")", "{", "this", ".", "effectiveAttachmentOptions", "=", "effectiveAttachmentOptions", ...
Sets the effective attachment options. @param effectiveAttachmentOptions the effective attachment options
[ "Sets", "the", "effective", "attachment", "options", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L571-L574
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.setFilters
public AbstractSheet<TRow, TColumn, TCell> setFilters(List<SheetFilter> filters) { this.filters = filters; return this; }
java
public AbstractSheet<TRow, TColumn, TCell> setFilters(List<SheetFilter> filters) { this.filters = filters; return this; }
[ "public", "AbstractSheet", "<", "TRow", ",", "TColumn", ",", "TCell", ">", "setFilters", "(", "List", "<", "SheetFilter", ">", "filters", ")", "{", "this", ".", "filters", "=", "filters", ";", "return", "this", ";", "}" ]
Sets the list of sheet filters for this sheet. @param filters the list of SheetFilters
[ "Sets", "the", "list", "of", "sheet", "filters", "for", "this", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L626-L629
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/models/AbstractSheet.java
AbstractSheet.setCrossSheetReferences
public AbstractSheet<TRow, TColumn, TCell> setCrossSheetReferences(List<CrossSheetReference> crossSheetReferences) { this.crossSheetReferences = crossSheetReferences; return this; }
java
public AbstractSheet<TRow, TColumn, TCell> setCrossSheetReferences(List<CrossSheetReference> crossSheetReferences) { this.crossSheetReferences = crossSheetReferences; return this; }
[ "public", "AbstractSheet", "<", "TRow", ",", "TColumn", ",", "TCell", ">", "setCrossSheetReferences", "(", "List", "<", "CrossSheetReference", ">", "crossSheetReferences", ")", "{", "this", ".", "crossSheetReferences", "=", "crossSheetReferences", ";", "return", "th...
Sets the list of cross sheet references used by this sheet @param crossSheetReferences the cross sheet references
[ "Sets", "the", "list", "of", "cross", "sheet", "references", "used", "by", "this", "sheet" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/models/AbstractSheet.java#L700-L703
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java
DefaultHttpClient.createApacheRequest
public HttpRequestBase createApacheRequest(HttpRequest smartsheetRequest) { HttpRequestBase apacheHttpRequest; // Create Apache HTTP request based on the smartsheetRequest request type switch (smartsheetRequest.getMethod()) { case GET: apacheHttpRequest = new HttpGet...
java
public HttpRequestBase createApacheRequest(HttpRequest smartsheetRequest) { HttpRequestBase apacheHttpRequest; // Create Apache HTTP request based on the smartsheetRequest request type switch (smartsheetRequest.getMethod()) { case GET: apacheHttpRequest = new HttpGet...
[ "public", "HttpRequestBase", "createApacheRequest", "(", "HttpRequest", "smartsheetRequest", ")", "{", "HttpRequestBase", "apacheHttpRequest", ";", "// Create Apache HTTP request based on the smartsheetRequest request type", "switch", "(", "smartsheetRequest", ".", "getMethod", "("...
Create the Apache HTTP request. Override this function to inject additional haaders in the request or use a proxy. @param smartsheetRequest (request method and base URI come from here) @return the Apache HTTP request
[ "Create", "the", "Apache", "HTTP", "request", ".", "Override", "this", "function", "to", "inject", "additional", "haaders", "in", "the", "request", "or", "use", "a", "proxy", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java#L369-L399
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java
DefaultHttpClient.calcBackoff
public long calcBackoff(int previousAttempts, long totalElapsedTimeMillis, Error error) { long backoffMillis = (long)(Math.pow(2, previousAttempts) * 1000) + new Random().nextInt(1000); if(totalElapsedTimeMillis + backoffMillis > maxRetryTimeMillis) { logger.info("Elapsed time " + totalEla...
java
public long calcBackoff(int previousAttempts, long totalElapsedTimeMillis, Error error) { long backoffMillis = (long)(Math.pow(2, previousAttempts) * 1000) + new Random().nextInt(1000); if(totalElapsedTimeMillis + backoffMillis > maxRetryTimeMillis) { logger.info("Elapsed time " + totalEla...
[ "public", "long", "calcBackoff", "(", "int", "previousAttempts", ",", "long", "totalElapsedTimeMillis", ",", "Error", "error", ")", "{", "long", "backoffMillis", "=", "(", "long", ")", "(", "Math", ".", "pow", "(", "2", ",", "previousAttempts", ")", "*", "...
The backoff calculation routine. Uses exponential backoff. If the maximum elapsed time has expired, this calculation returns -1 causing the caller to fall out of the retry loop. @param previousAttempts @param totalElapsedTimeMillis @param error @return -1 to fall out of retry loop, positive number indicates backoff ti...
[ "The", "backoff", "calculation", "routine", ".", "Uses", "exponential", "backoff", ".", "If", "the", "maximum", "elapsed", "time", "has", "expired", "this", "calculation", "returns", "-", "1", "causing", "the", "caller", "to", "fall", "out", "of", "the", "re...
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java#L419-L429
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java
DefaultHttpClient.shouldRetry
public boolean shouldRetry(int previousAttempts, long totalElapsedTimeMillis, HttpResponse response) { String contentType = response.getEntity().getContentType(); if (contentType != null && !contentType.startsWith(JSON_MIME_TYPE)) { // it's not JSON; don't even try to parse it re...
java
public boolean shouldRetry(int previousAttempts, long totalElapsedTimeMillis, HttpResponse response) { String contentType = response.getEntity().getContentType(); if (contentType != null && !contentType.startsWith(JSON_MIME_TYPE)) { // it's not JSON; don't even try to parse it re...
[ "public", "boolean", "shouldRetry", "(", "int", "previousAttempts", ",", "long", "totalElapsedTimeMillis", ",", "HttpResponse", "response", ")", "{", "String", "contentType", "=", "response", ".", "getEntity", "(", ")", ".", "getContentType", "(", ")", ";", "if"...
Called when an API request fails to determine if it can retry the request. Calls calcBackoff to determine the time to wait in between retries. @param previousAttempts number of attempts (including this one) to execute request @param totalElapsedTimeMillis total time spent in millis for all previous (and this) attempt ...
[ "Called", "when", "an", "API", "request", "fails", "to", "determine", "if", "it", "can", "retry", "the", "request", ".", "Calls", "calcBackoff", "to", "determine", "the", "time", "to", "wait", "in", "between", "retries", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java#L440-L477
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java
DefaultHttpClient.setTraces
public void setTraces(Trace... traces) { this.traces.clear(); for (Trace trace : traces) { if (!trace.addReplacements(this.traces)) { this.traces.add(trace); } } }
java
public void setTraces(Trace... traces) { this.traces.clear(); for (Trace trace : traces) { if (!trace.addReplacements(this.traces)) { this.traces.add(trace); } } }
[ "public", "void", "setTraces", "(", "Trace", "...", "traces", ")", "{", "this", ".", "traces", ".", "clear", "(", ")", ";", "for", "(", "Trace", "trace", ":", "traces", ")", "{", "if", "(", "!", "trace", ".", "addReplacements", "(", "this", ".", "t...
set the traces for this client @param traces the fields to include in trace-logging
[ "set", "the", "traces", "for", "this", "client" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/http/DefaultHttpClient.java#L508-L515
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java
RowAttachmentResourcesImpl.getAttachments
public PagedResult<Attachment> getAttachments(long sheetId, long rowId, PaginationParameters parameters) throws SmartsheetException { String path= "sheets/" + sheetId + "/rows/" + rowId + "/attachments"; if (parameters != null) { path += parameters.toQueryString(); } return t...
java
public PagedResult<Attachment> getAttachments(long sheetId, long rowId, PaginationParameters parameters) throws SmartsheetException { String path= "sheets/" + sheetId + "/rows/" + rowId + "/attachments"; if (parameters != null) { path += parameters.toQueryString(); } return t...
[ "public", "PagedResult", "<", "Attachment", ">", "getAttachments", "(", "long", "sheetId", ",", "long", "rowId", ",", "PaginationParameters", "parameters", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", "\"/ro...
Get row attachment. It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/attachments 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...
[ "Get", "row", "attachment", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java#L88-L94
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java
RowAttachmentResourcesImpl.attachFile
public Attachment attachFile(long sheetId, long rowId, InputStream inputStream, String contentType, long contentLength, String attachmentName) throws SmartsheetException { Util.throwIfNull(inputStream, contentType); return super.attachFile("sheets/" + sheetId + "/rows/" + rowId + "/attachmen...
java
public Attachment attachFile(long sheetId, long rowId, InputStream inputStream, String contentType, long contentLength, String attachmentName) throws SmartsheetException { Util.throwIfNull(inputStream, contentType); return super.attachFile("sheets/" + sheetId + "/rows/" + rowId + "/attachmen...
[ "public", "Attachment", "attachFile", "(", "long", "sheetId", ",", "long", "rowId", ",", "InputStream", "inputStream", ",", "String", "contentType", ",", "long", "contentLength", ",", "String", "attachmentName", ")", "throws", "SmartsheetException", "{", "Util", "...
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 attachmentName the name of the attachment @return the attachment @throws FileNotFoundException the file not found exception @throws SmartsheetException t...
[ "Attach", "file", "for", "simple", "upload", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/RowAttachmentResourcesImpl.java#L135-L139
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetDiscussionResourcesImpl.java
SheetDiscussionResourcesImpl.createDiscussion
public Discussion createDiscussion(long sheetId, Discussion discussion) throws SmartsheetException{ Util.throwIfNull(sheetId, discussion); return this.createResource("sheets/" + sheetId + "/discussions", Discussion.class, discussion); }
java
public Discussion createDiscussion(long sheetId, Discussion discussion) throws SmartsheetException{ Util.throwIfNull(sheetId, discussion); return this.createResource("sheets/" + sheetId + "/discussions", Discussion.class, discussion); }
[ "public", "Discussion", "createDiscussion", "(", "long", "sheetId", ",", "Discussion", "discussion", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "sheetId", ",", "discussion", ")", ";", "return", "this", ".", "createResource", "(", ...
Create a discussion on a sheet. It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions @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 InvalidRequestE...
[ "Create", "a", "discussion", "on", "a", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetDiscussionResourcesImpl.java#L71-L75
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetDiscussionResourcesImpl.java
SheetDiscussionResourcesImpl.createDiscussionWithAttachment
public Discussion createDiscussionWithAttachment(long sheetId, Discussion discussion, File file, String contentType) throws SmartsheetException, IOException{ Util.throwIfNull(discussion, file, contentType); String path = "sheets/" + sheetId + "/discussions"; return this.createDiscussionWithAtta...
java
public Discussion createDiscussionWithAttachment(long sheetId, Discussion discussion, File file, String contentType) throws SmartsheetException, IOException{ Util.throwIfNull(discussion, file, contentType); String path = "sheets/" + sheetId + "/discussions"; return this.createDiscussionWithAtta...
[ "public", "Discussion", "createDiscussionWithAttachment", "(", "long", "sheetId", ",", "Discussion", "discussion", ",", "File", "file", ",", "String", "contentType", ")", "throws", "SmartsheetException", ",", "IOException", "{", "Util", ".", "throwIfNull", "(", "dis...
Create a discussion with attachments on a sheet. 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 contentType the type of file @return the created discussion @throws Ille...
[ "Create", "a", "discussion", "with", "attachments", "on", "a", "sheet", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetDiscussionResourcesImpl.java#L95-L100
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/http/RequestAndResponseData.java
RequestAndResponseData.of
public static RequestAndResponseData of(HttpRequestBase request, HttpEntitySnapshot requestEntity, HttpResponse response, HttpEntitySnapshot responseEntity, Set<Trace> traces) throws IOException { RequestData.Bui...
java
public static RequestAndResponseData of(HttpRequestBase request, HttpEntitySnapshot requestEntity, HttpResponse response, HttpEntitySnapshot responseEntity, Set<Trace> traces) throws IOException { RequestData.Bui...
[ "public", "static", "RequestAndResponseData", "of", "(", "HttpRequestBase", "request", ",", "HttpEntitySnapshot", "requestEntity", ",", "HttpResponse", "response", ",", "HttpEntitySnapshot", "responseEntity", ",", "Set", "<", "Trace", ">", "traces", ")", "throws", "IO...
factory method for creating a RequestAndResponseData object from request and response data with the specifid trace fields
[ "factory", "method", "for", "creating", "a", "RequestAndResponseData", "object", "from", "request", "and", "response", "data", "with", "the", "specifid", "trace", "fields" ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/http/RequestAndResponseData.java#L250-L304
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.getResource
protected <T> T getResource(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); if(path.isEmpty()) { com.smartsheet.api.models.Error error = new com.smartsheet.api.models.Error(); error.setMessage("An empty path was provided."); ...
java
protected <T> T getResource(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); if(path.isEmpty()) { com.smartsheet.api.models.Error error = new com.smartsheet.api.models.Error(); error.setMessage("An empty path was provided."); ...
[ "protected", "<", "T", ">", "T", "getResource", "(", "String", "path", ",", "Class", "<", "T", ">", "objectClass", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "path", ",", "objectClass", ")", ";", "if", "(", "path", ".", ...
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 ...
[ "Get", "a", "resource", "from", "Smartsheet", "REST", "API", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L205-L251
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.listResources
protected <T> List<T> listResources(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); Util.throwIfEmpty(path); HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve(path), HttpMethod.GET); List<T> ob...
java
protected <T> List<T> listResources(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); Util.throwIfEmpty(path); HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve(path), HttpMethod.GET); List<T> ob...
[ "protected", "<", "T", ">", "List", "<", "T", ">", "listResources", "(", "String", "path", ",", "Class", "<", "T", ">", "objectClass", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "path", ",", "objectClass", ")", ";", "Util...
List resources using Smartsheet REST API. 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) ServiceUnavailable...
[ "List", "resources", "using", "Smartsheet", "REST", "API", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L444-L468
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.deleteResource
protected <T> void deleteResource(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); Util.throwIfEmpty(path); HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve(path), HttpMethod.DELETE); try { ...
java
protected <T> void deleteResource(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); Util.throwIfEmpty(path); HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve(path), HttpMethod.DELETE); try { ...
[ "protected", "<", "T", ">", "void", "deleteResource", "(", "String", "path", ",", "Class", "<", "T", ">", "objectClass", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "path", ",", "objectClass", ")", ";", "Util", ".", "throwIf...
Delete a resource from Smartsheet REST API. 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) ResourceNotFound...
[ "Delete", "a", "resource", "from", "Smartsheet", "REST", "API", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L529-L549
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.deleteListResources
protected <T> List<T> deleteListResources(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); Util.throwIfEmpty(path); Result<List<T>> obj = null; HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve(pa...
java
protected <T> List<T> deleteListResources(String path, Class<T> objectClass) throws SmartsheetException { Util.throwIfNull(path, objectClass); Util.throwIfEmpty(path); Result<List<T>> obj = null; HttpRequest request; request = createHttpRequest(smartsheet.getBaseURI().resolve(pa...
[ "protected", "<", "T", ">", "List", "<", "T", ">", "deleteListResources", "(", "String", "path", ",", "Class", "<", "T", ">", "objectClass", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "path", ",", "objectClass", ")", ";", ...
Delete resources and return a list from Smartsheet REST API. 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)...
[ "Delete", "resources", "and", "return", "a", "list", "from", "Smartsheet", "REST", "API", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L569-L590
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.postAndReceiveList
protected <T, S> List<S> postAndReceiveList(String path, T objectToPost, Class<S> objectClassToReceive) throws SmartsheetException { Util.throwIfNull(path, objectToPost, objectClassToReceive); Util.throwIfEmpty(path); HttpRequest request = createHttpRequest(smartsheet.getBaseURI().resolve(path)...
java
protected <T, S> List<S> postAndReceiveList(String path, T objectToPost, Class<S> objectClassToReceive) throws SmartsheetException { Util.throwIfNull(path, objectToPost, objectClassToReceive); Util.throwIfEmpty(path); HttpRequest request = createHttpRequest(smartsheet.getBaseURI().resolve(path)...
[ "protected", "<", "T", ",", "S", ">", "List", "<", "S", ">", "postAndReceiveList", "(", "String", "path", ",", "T", "objectToPost", ",", "Class", "<", "S", ">", "objectClassToReceive", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", ...
Post an object to Smartsheet REST API and receive a list of objects from response. 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 an...
[ "Post", "an", "object", "to", "Smartsheet", "REST", "API", "and", "receive", "a", "list", "of", "objects", "from", "response", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L616-L647
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.postAndReceiveRowObject
protected CopyOrMoveRowResult postAndReceiveRowObject(String path, CopyOrMoveRowDirective objectToPost) throws SmartsheetException { Util.throwIfNull(path, objectToPost); Util.throwIfEmpty(path); HttpRequest request = createHttpRequest(smartsheet.getBaseURI().resolve(path), HttpMethod.POST); ...
java
protected CopyOrMoveRowResult postAndReceiveRowObject(String path, CopyOrMoveRowDirective objectToPost) throws SmartsheetException { Util.throwIfNull(path, objectToPost); Util.throwIfEmpty(path); HttpRequest request = createHttpRequest(smartsheet.getBaseURI().resolve(path), HttpMethod.POST); ...
[ "protected", "CopyOrMoveRowResult", "postAndReceiveRowObject", "(", "String", "path", ",", "CopyOrMoveRowDirective", "objectToPost", ")", "throws", "SmartsheetException", "{", "Util", ".", "throwIfNull", "(", "path", ",", "objectToPost", ")", ";", "Util", ".", "throwI...
Post an object to Smartsheet REST API and receive a CopyOrMoveRowResult object from response. Parameters: - path : the relative path of the resource collections - objectToPost : the object to post - Returns: the object Exceptions: IllegalArgumentException : if any argument is null, or path is empty string InvalidReq...
[ "Post", "an", "object", "to", "Smartsheet", "REST", "API", "and", "receive", "a", "CopyOrMoveRowResult", "object", "from", "response", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L669-L700
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.attachFile
public <T> Attachment attachFile(String url, T t, String partName, InputStream inputstream, String contentType, String attachmentName) throws SmartsheetException { Util.throwIfNull(inputstream, contentType); Attachment attachment = null; final String boundary = "----" + System.curren...
java
public <T> Attachment attachFile(String url, T t, String partName, InputStream inputstream, String contentType, String attachmentName) throws SmartsheetException { Util.throwIfNull(inputstream, contentType); Attachment attachment = null; final String boundary = "----" + System.curren...
[ "public", "<", "T", ">", "Attachment", "attachFile", "(", "String", "url", ",", "T", "t", ",", "String", "partName", ",", "InputStream", "inputstream", ",", "String", "contentType", ",", "String", "attachmentName", ")", "throws", "SmartsheetException", "{", "U...
Create a multipart upload request. @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 @throws UnsupportedEncodingException the unsupported encoding exception
[ "Create", "a", "multipart", "upload", "request", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L829-L862
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/AbstractResources.java
AbstractResources.copyStream
@Deprecated // replace with StreamUtil.copyContentIntoOutputStream() private static void copyStream(InputStream input, OutputStream output) throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; int len; while ((len = input.read(buffer)) != -1) { output.write(buffer, 0, len)...
java
@Deprecated // replace with StreamUtil.copyContentIntoOutputStream() private static void copyStream(InputStream input, OutputStream output) throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; int len; while ((len = input.read(buffer)) != -1) { output.write(buffer, 0, len)...
[ "@", "Deprecated", "// replace with StreamUtil.copyContentIntoOutputStream()", "private", "static", "void", "copyStream", "(", "InputStream", "input", ",", "OutputStream", "output", ")", "throws", "IOException", "{", "byte", "[", "]", "buffer", "=", "new", "byte", "["...
Copy stream. @param input the input @param output the output @throws IOException Signals that an I/O exception has occurred.
[ "Copy", "stream", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/AbstractResources.java#L972-L979
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java
ShareResourcesImpl.listShares
public PagedResult<Share> listShares(long objectId, PaginationParameters pagination) throws SmartsheetException { return this.listShares(objectId, pagination, false); }
java
public PagedResult<Share> listShares(long objectId, PaginationParameters pagination) throws SmartsheetException { return this.listShares(objectId, pagination, false); }
[ "public", "PagedResult", "<", "Share", ">", "listShares", "(", "long", "objectId", ",", "PaginationParameters", "pagination", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "listShares", "(", "objectId", ",", "pagination", ",", "false", ")", "...
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 Exceptions: InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any pro...
[ "List", "shares", "of", "a", "given", "object", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java#L75-L77
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java
ShareResourcesImpl.getShare
public Share getShare(long objectId, String shareId) throws SmartsheetException{ return this.getResource(getMasterResourceType() + "/" + objectId + "/shares/" + shareId, Share.class); }
java
public Share getShare(long objectId, String shareId) throws SmartsheetException{ return this.getResource(getMasterResourceType() + "/" + objectId + "/shares/" + shareId, Share.class); }
[ "public", "Share", "getShare", "(", "long", "objectId", ",", "String", "shareId", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "getResource", "(", "getMasterResourceType", "(", ")", "+", "\"/\"", "+", "objectId", "+", "\"/shares/\"", "+", ...
Get a Share. 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 Exceptions: InvalidRequestException : if there is any problem with the REST API request AuthorizationEx...
[ "Get", "a", "Share", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java#L117-L119
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java
ShareResourcesImpl.shareTo
public List<Share> shareTo(long objectId, List<Share> shares, Boolean sendEmail) throws SmartsheetException { String path = getMasterResourceType() + "/" + objectId + "/shares"; if (sendEmail != null){ path += "?sendEmail=" + sendEmail; } return this.postAndReceiveList(path, ...
java
public List<Share> shareTo(long objectId, List<Share> shares, Boolean sendEmail) throws SmartsheetException { String path = getMasterResourceType() + "/" + objectId + "/shares"; if (sendEmail != null){ path += "?sendEmail=" + sendEmail; } return this.postAndReceiveList(path, ...
[ "public", "List", "<", "Share", ">", "shareTo", "(", "long", "objectId", ",", "List", "<", "Share", ">", "shares", ",", "Boolean", "sendEmail", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "getMasterResourceType", "(", ")", "+", "\"/\"",...
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 Exceptions: IllegalArgumentException : if multiShare is null InvalidRequestException : if there ...
[ "Shares", "the", "object", "with", "the", "specified", "Users", "and", "Groups", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java#L145-L151
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java
ShareResourcesImpl.deleteShare
public void deleteShare(long objectId, String shareId) throws SmartsheetException { this.deleteResource(getMasterResourceType() + "/" + objectId + "/shares/" + shareId, Share.class); }
java
public void deleteShare(long objectId, String shareId) throws SmartsheetException { this.deleteResource(getMasterResourceType() + "/" + objectId + "/shares/" + shareId, Share.class); }
[ "public", "void", "deleteShare", "(", "long", "objectId", ",", "String", "shareId", ")", "throws", "SmartsheetException", "{", "this", ".", "deleteResource", "(", "getMasterResourceType", "(", ")", "+", "\"/\"", "+", "objectId", "+", "\"/shares/\"", "+", "shareI...
Delete a share. 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} Exceptions: InvalidRequestException : if there is any problem with t...
[ "Delete", "a", "share", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/ShareResourcesImpl.java#L199-L201
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/ReportResourcesImpl.java
ReportResourcesImpl.updatePublishStatus
public ReportPublish updatePublishStatus(long id, ReportPublish reportPublish) throws SmartsheetException{ return this.updateResource("reports/" + id + "/publish", ReportPublish.class, reportPublish); }
java
public ReportPublish updatePublishStatus(long id, ReportPublish reportPublish) throws SmartsheetException{ return this.updateResource("reports/" + id + "/publish", ReportPublish.class, reportPublish); }
[ "public", "ReportPublish", "updatePublishStatus", "(", "long", "id", ",", "ReportPublish", "reportPublish", ")", "throws", "SmartsheetException", "{", "return", "this", ".", "updateResource", "(", "\"reports/\"", "+", "id", "+", "\"/publish\"", ",", "ReportPublish", ...
Sets the publish status of a report and returns the new status, including the URLs of any enabled publishing. 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 ...
[ "Sets", "the", "publish", "status", "of", "a", "report", "and", "returns", "the", "new", "status", "including", "the", "URLs", "of", "any", "enabled", "publishing", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/ReportResourcesImpl.java#L300-L302
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SheetFilterResourcesImpl.java
SheetFilterResourcesImpl.listFilters
public PagedResult<SheetFilter> listFilters(long sheetId, PaginationParameters pagination) throws SmartsheetException { String path = "sheets/" + sheetId + "/filters"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (pagination != null) { parameters = paginati...
java
public PagedResult<SheetFilter> listFilters(long sheetId, PaginationParameters pagination) throws SmartsheetException { String path = "sheets/" + sheetId + "/filters"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (pagination != null) { parameters = paginati...
[ "public", "PagedResult", "<", "SheetFilter", ">", "listFilters", "(", "long", "sheetId", ",", "PaginationParameters", "pagination", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sheets/\"", "+", "sheetId", "+", "\"/filters\"", ";", "HashMap", ...
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 authoriza...
[ "Get", "all", "filters", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SheetFilterResourcesImpl.java#L110-L120
train
smartsheet-platform/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/SightResourcesImpl.java
SightResourcesImpl.listSights
public PagedResult<Sight> listSights(PaginationParameters paging, Date modifiedSince) throws SmartsheetException { String path = "sights"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (paging != null) { parameters = paging.toHashMap(); } if ...
java
public PagedResult<Sight> listSights(PaginationParameters paging, Date modifiedSince) throws SmartsheetException { String path = "sights"; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (paging != null) { parameters = paging.toHashMap(); } if ...
[ "public", "PagedResult", "<", "Sight", ">", "listSights", "(", "PaginationParameters", "paging", ",", "Date", "modifiedSince", ")", "throws", "SmartsheetException", "{", "String", "path", "=", "\"sights\"", ";", "HashMap", "<", "String", ",", "Object", ">", "par...
Gets the list of all Sights where the User has access. It mirrors to the following Smartsheet REST API method: GET /sights @param modifiedSince @return IndexResult object containing an array of Sight objects limited to the following attributes: id, name, accessLevel, permalink, createdAt, modifiedAt. @throws IllegalA...
[ "Gets", "the", "list", "of", "all", "Sights", "where", "the", "User", "has", "access", "." ]
f60e264412076271f83b65889ef9b891fad83df8
https://github.com/smartsheet-platform/smartsheet-java-sdk/blob/f60e264412076271f83b65889ef9b891fad83df8/src/main/java/com/smartsheet/api/internal/SightResourcesImpl.java#L72-L85
train