Skip to content

Commit

Permalink
Remove invalid parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tspence committed Nov 17, 2023
1 parent 3bce80f commit 03186ca
Show file tree
Hide file tree
Showing 34 changed files with 103 additions and 206 deletions.
12 changes: 4 additions & 8 deletions src/main/java/com/projectmanager/clients/ApiKeyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ public ApiKeyClient(@NotNull ProjectManagerClient client) {
*
* Some best practices for working with API keys: * An API key is valid for a two year period after it is created. We encourage you to rotate your API keys regularly according to your company's security policies. * You should create separate API keys for each system that works with your API. If that API key is exposed or if that program needs to be shut down, you can revoke that one key and reissue it. * An API key is tied to the workspace that created it. A single API key can only interact with one workspace.
*
* @param xintegrationname The name of the calling system passed along as a header parameter
* @param body Options for the API key to create
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<ApiKeyDto> createApiKey(@Nullable Object xintegrationname, @NotNull ApiKeyCreateDto body)
public @NotNull AstroResult<ApiKeyDto> createApiKey(@NotNull ApiKeyCreateDto body)
{
RestRequest<ApiKeyDto> r = new RestRequest<ApiKeyDto>(this.client, "POST", "/api/data/api-keys");
if (body != null) { r.AddBody(body); }
Expand All @@ -67,10 +66,9 @@ public ApiKeyClient(@NotNull ProjectManagerClient client) {
*
* Some best practices for working with API keys: * An API key is valid for a two year period after it is created. We encourage you to rotate your API keys regularly according to your company's security policies. * You should create separate API keys for each system that works with your API. If that API key is exposed or if that program needs to be shut down, you can revoke that one key and reissue it. * An API key is tied to the workspace that created it. A single API key can only interact with one workspace.
*
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<ApiKeyDto[]> listApiKeys(@Nullable Object xintegrationname)
public @NotNull AstroResult<ApiKeyDto[]> listApiKeys()
{
RestRequest<ApiKeyDto[]> r = new RestRequest<ApiKeyDto[]>(this.client, "GET", "/api/data/api-keys");
return r.Call(new TypeToken<AstroResult<ApiKeyDto[]>>() {}.getType());
Expand All @@ -83,10 +81,9 @@ public ApiKeyClient(@NotNull ProjectManagerClient client) {
*
* Some best practices for working with API keys: * An API key is valid for a two year period after it is created. We encourage you to rotate your API keys regularly according to your company's security policies. * You should create separate API keys for each system that works with your API. If that API key is exposed or if that program needs to be shut down, you can revoke that one key and reissue it. * An API key is tied to the workspace that created it. A single API key can only interact with one workspace.
*
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<Object> revokeAllApiKeys(@Nullable Object xintegrationname)
public @NotNull AstroResult<Object> revokeAllApiKeys()
{
RestRequest<Object> r = new RestRequest<Object>(this.client, "DELETE", "/api/data/api-keys/revoke-all");
return r.Call(new TypeToken<AstroResult<Object>>() {}.getType());
Expand All @@ -100,10 +97,9 @@ public ApiKeyClient(@NotNull ProjectManagerClient client) {
* Some best practices for working with API keys: * An API key is valid for a two year period after it is created. We encourage you to rotate your API keys regularly according to your company's security policies. * You should create separate API keys for each system that works with your API. If that API key is exposed or if that program needs to be shut down, you can revoke that one key and reissue it. * An API key is tied to the workspace that created it. A single API key can only interact with one workspace.
*
* @param id The unique identifier of the API key to revoke
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<Object> revokeAPIKey(@NotNull String id, @Nullable Object xintegrationname)
public @NotNull AstroResult<Object> revokeAPIKey(@NotNull String id)
{
RestRequest<Object> r = new RestRequest<Object>(this.client, "DELETE", "/api/data/api-keys/{id}/revoke");
r.AddPath("{id}", id == null ? "" : id.toString());
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/com/projectmanager/clients/ChangesetClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ public ChangesetClient(@NotNull ProjectManagerClient client) {
* When checking the status of a Changeset, you can call either RetrieveChangeset or RetrieveCompletedChangeset. Using RetrieveChangeset will give you the immediate status of the Changeset. Using RetrieveCompletedChangeset will delay the response until the Changeset has finished processing.
*
* @param changeSetId The unique ID number of the Changeset to retrieve
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<ChangesetGetResponseDto> retrieveChangeset(@NotNull String changeSetId, @Nullable Object xintegrationname)
public @NotNull AstroResult<ChangesetGetResponseDto> retrieveChangeset(@NotNull String changeSetId)
{
RestRequest<ChangesetGetResponseDto> r = new RestRequest<ChangesetGetResponseDto>(this.client, "GET", "/api/data/changesets/{changeSetId}");
r.AddPath("{changeSetId}", changeSetId == null ? "" : changeSetId.toString());
Expand All @@ -69,10 +68,9 @@ public ChangesetClient(@NotNull ProjectManagerClient client) {
* Although most Changesets complete instantly, some Changesets may need additional time to complete. If the Changeset cannot be processed within a reasonable length of time, this API call may fail. If this API fails, it will return a status error indicating the Changeset is still being processed.
*
* @param changeSetId The unique ID number of the Changeset to retrieve
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<ChangesetGetResponseDto> retrieveCompletedChangeset(@NotNull String changeSetId, @Nullable Object xintegrationname)
public @NotNull AstroResult<ChangesetGetResponseDto> retrieveCompletedChangeset(@NotNull String changeSetId)
{
RestRequest<ChangesetGetResponseDto> r = new RestRequest<ChangesetGetResponseDto>(this.client, "GET", "/api/data/changesets/{changeSetId}/poll");
r.AddPath("{changeSetId}", changeSetId == null ? "" : changeSetId.toString());
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/com/projectmanager/clients/DashboardClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ public DashboardClient(@NotNull ProjectManagerClient client) {
* Returns user dashboard settings
*
* @param type The dashboard type that is not custom
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<DashboardSettingDto> retrieveDashboardUserSettings(@NotNull String type, @Nullable Object xintegrationname)
public @NotNull AstroResult<DashboardSettingDto> retrieveDashboardUserSettings(@NotNull String type)
{
RestRequest<DashboardSettingDto> r = new RestRequest<DashboardSettingDto>(this.client, "GET", "/api/data/dashboards/settings/{type}");
r.AddPath("{type}", type == null ? "" : type.toString());
Expand All @@ -58,11 +57,10 @@ public DashboardClient(@NotNull ProjectManagerClient client) {
/**
* Create or Update User Dashboard Settings
*
* @param xintegrationname The name of the calling system passed along as a header parameter
* @param body User dashboard settings object
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<DashboardSettingDto> createorUpdateUserDashboardSettings(@Nullable Object xintegrationname, @NotNull DashboardSettingCreateDto body)
public @NotNull AstroResult<DashboardSettingDto> createorUpdateUserDashboardSettings(@NotNull DashboardSettingCreateDto body)
{
RestRequest<DashboardSettingDto> r = new RestRequest<DashboardSettingDto>(this.client, "POST", "/api/data/dashboards/settings");
if (body != null) { r.AddBody(body); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ public DiscussionClient(@NotNull ProjectManagerClient client) {
* Retrieve all comments written about a task
*
* @param taskId The unique ID number of the task to retrieve comments
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<DiscussionDto[]> retrieveTaskComments(@NotNull String taskId, @Nullable Object xintegrationname)
public @NotNull AstroResult<DiscussionDto[]> retrieveTaskComments(@NotNull String taskId)
{
RestRequest<DiscussionDto[]> r = new RestRequest<DiscussionDto[]>(this.client, "GET", "/api/data/tasks/{taskId}/discussions");
r.AddPath("{taskId}", taskId == null ? "" : taskId.toString());
Expand All @@ -63,11 +62,10 @@ public DiscussionClient(@NotNull ProjectManagerClient client) {
* Tasks can have discussions attached to them. These discussions can include text with simple formatting. Discussion comments are formatted using [Markdown](https://www.markdownguide.org/) and users should be aware that HTML embedding is not permitted due to the risk of cross-site attacks and other embedding challenges.
*
* @param taskId The unique ID number of the task being commented upon
* @param xintegrationname The name of the calling system passed along as a header parameter
* @param body The Markdown-formatted text of the comment
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<DiscussionCreateResponseDto> createTaskComments(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull DiscussionCreateDto body)
public @NotNull AstroResult<DiscussionCreateResponseDto> createTaskComments(@NotNull String taskId, @NotNull DiscussionCreateDto body)
{
RestRequest<DiscussionCreateResponseDto> r = new RestRequest<DiscussionCreateResponseDto>(this.client, "POST", "/api/data/tasks/{taskId}/discussions");
r.AddPath("{taskId}", taskId == null ? "" : taskId.toString());
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/com/projectmanager/clients/FileClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ public FileClient(@NotNull ProjectManagerClient client) {
*
* @param documentId The unique identifier of the document to download
* @param type If you specify a type of `html`, processes the file using text encoding, otherwise binary
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<Object> downloadFile(@NotNull String documentId, @Nullable String type, @Nullable Object xintegrationname)
public @NotNull AstroResult<Object> downloadFile(@NotNull String documentId, @Nullable String type)
{
RestRequest<Object> r = new RestRequest<Object>(this.client, "GET", "/api/data/files/{documentId}/download");
r.AddPath("{documentId}", documentId == null ? "" : documentId.toString());
Expand All @@ -69,11 +68,10 @@ public FileClient(@NotNull ProjectManagerClient client) {
* When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API.
*
* @param fileId The unique identifier of the File to update
* @param xintegrationname The name of the calling system passed along as a header parameter
* @param body Information to change about the File and its location
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<Object> updateFile(@NotNull String fileId, @Nullable Object xintegrationname, @NotNull UpdateRequestDto body)
public @NotNull AstroResult<Object> updateFile(@NotNull String fileId, @NotNull UpdateRequestDto body)
{
RestRequest<Object> r = new RestRequest<Object>(this.client, "PUT", "/api/data/files/{fileId}");
r.AddPath("{fileId}", fileId == null ? "" : fileId.toString());
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/com/projectmanager/clients/HomeFileClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ public HomeFileClient(@NotNull ProjectManagerClient client) {
*
* When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API.
*
* @param xintegrationname The name of the calling system passed along as a header parameter
* @param filename The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadHomeFile(@Nullable Object xintegrationname, @NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadHomeFile(@NotNull byte[] filename)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/home/files");
return r.Call(new TypeToken<AstroResult<FileDto>>() {}.getType());
Expand All @@ -68,11 +67,10 @@ public HomeFileClient(@NotNull ProjectManagerClient client) {
* When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API.
*
* @param folderId The reference to the sub folder to put the file into
* @param xintegrationname The name of the calling system passed along as a header parameter
* @param filename The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadHomeFileToFolder(@NotNull String folderId, @Nullable Object xintegrationname, @NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadHomeFileToFolder(@NotNull String folderId, @NotNull byte[] filename)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/home/folders/{folderId}/files");
r.AddPath("{folderId}", folderId == null ? "" : folderId.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ public IntegrationCategoryClient(@NotNull ProjectManagerClient client) {
*
* An IntegrationProvider is the name of an external application or service that can be connected to ProjectManager.com. The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API.
*
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<IntegrationCategoryDto[]> retrieveProviderCategories(@Nullable Object xintegrationname)
public @NotNull AstroResult<IntegrationCategoryDto[]> retrieveProviderCategories()
{
RestRequest<IntegrationCategoryDto[]> r = new RestRequest<IntegrationCategoryDto[]>(this.client, "GET", "/api/data/integrations/categories");
return r.Call(new TypeToken<AstroResult<IntegrationCategoryDto[]>>() {}.getType());
Expand Down
12 changes: 4 additions & 8 deletions src/main/java/com/projectmanager/clients/IntegrationClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ public IntegrationClient(@NotNull ProjectManagerClient client) {
* The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API.
*
* @param integrationId The unique identifier of this Integration
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<IntegrationDto> retrieveIntegration(@NotNull String integrationId, @Nullable Object xintegrationname)
public @NotNull AstroResult<IntegrationDto> retrieveIntegration(@NotNull String integrationId)
{
RestRequest<IntegrationDto> r = new RestRequest<IntegrationDto>(this.client, "GET", "/api/data/integrations/{integrationId}");
r.AddPath("{integrationId}", integrationId == null ? "" : integrationId.toString());
Expand All @@ -63,10 +62,9 @@ public IntegrationClient(@NotNull ProjectManagerClient client) {
* The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API.
*
* @param integrationId The unique identifier of the Integration to enable
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<IntegrationDto> enableIntegration(@NotNull String integrationId, @Nullable Object xintegrationname)
public @NotNull AstroResult<IntegrationDto> enableIntegration(@NotNull String integrationId)
{
RestRequest<IntegrationDto> r = new RestRequest<IntegrationDto>(this.client, "POST", "/api/data/integrations/{integrationId}");
r.AddPath("{integrationId}", integrationId == null ? "" : integrationId.toString());
Expand All @@ -79,10 +77,9 @@ public IntegrationClient(@NotNull ProjectManagerClient client) {
* The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API.
*
* @param integrationId The unique identifier of the Integration to disable
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<Object> disableIntegration(@NotNull String integrationId, @Nullable Object xintegrationname)
public @NotNull AstroResult<Object> disableIntegration(@NotNull String integrationId)
{
RestRequest<Object> r = new RestRequest<Object>(this.client, "DELETE", "/api/data/integrations/{integrationId}");
r.AddPath("{integrationId}", integrationId == null ? "" : integrationId.toString());
Expand All @@ -94,10 +91,9 @@ public IntegrationClient(@NotNull ProjectManagerClient client) {
*
* The Integrations API is intended for use by ProjectManager and its business development partners. Please contact ProjectManager's sales team to request use of this API.
*
* @param xintegrationname The name of the calling system passed along as a header parameter
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<IntegrationDto[]> retrieveAllIntegrations(@Nullable Object xintegrationname)
public @NotNull AstroResult<IntegrationDto[]> retrieveAllIntegrations()
{
RestRequest<IntegrationDto[]> r = new RestRequest<IntegrationDto[]>(this.client, "GET", "/api/data/integrations");
return r.Call(new TypeToken<AstroResult<IntegrationDto[]>>() {}.getType());
Expand Down
Loading

0 comments on commit 03186ca

Please sign in to comment.