From 03186ca4ce88a3c2b1f817ecb526c7b45cbbb002 Mon Sep 17 00:00:00 2001 From: Ted Spence Date: Fri, 17 Nov 2023 09:49:44 -0800 Subject: [PATCH] Remove invalid parameter --- .../projectmanager/clients/ApiKeyClient.java | 12 +++----- .../clients/ChangesetClient.java | 6 ++-- .../clients/DashboardClient.java | 6 ++-- .../clients/DiscussionClient.java | 6 ++-- .../projectmanager/clients/FileClient.java | 6 ++-- .../clients/HomeFileClient.java | 6 ++-- .../clients/IntegrationCategoryClient.java | 3 +- .../clients/IntegrationClient.java | 12 +++----- .../clients/IntegrationProviderClient.java | 18 ++++------- .../projectmanager/clients/LicenseClient.java | 6 ++-- .../com/projectmanager/clients/MeClient.java | 3 +- .../clients/ProjectChargeCodeClient.java | 3 +- .../projectmanager/clients/ProjectClient.java | 12 +++----- .../clients/ProjectCustomerClient.java | 3 +- .../clients/ProjectFieldClient.java | 18 ++++------- .../clients/ProjectFileClient.java | 6 ++-- .../clients/ProjectFolderClient.java | 3 +- .../clients/ProjectMembersClient.java | 18 ++++------- .../clients/ProjectPriorityClient.java | 3 +- .../clients/ProjectStatusClient.java | 3 +- .../clients/ProjectTemplateClient.java | 6 ++-- .../clients/ResourceClient.java | 12 +++----- .../clients/ResourceSkillClient.java | 12 +++----- .../clients/ResourceTeamClient.java | 12 +++----- .../com/projectmanager/clients/TagClient.java | 9 ++---- .../clients/TaskAssigneeClient.java | 9 ++---- .../projectmanager/clients/TaskClient.java | 30 +++++++------------ .../clients/TaskFieldClient.java | 18 ++++------- .../clients/TaskFileClient.java | 3 +- .../clients/TaskStatusClient.java | 12 +++----- .../projectmanager/clients/TaskTagClient.java | 9 ++---- .../clients/TimesheetClient.java | 15 ++++------ .../clients/UserRoleClient.java | 3 +- .../clients/WorkSpaceClient.java | 6 ++-- 34 files changed, 103 insertions(+), 206 deletions(-) diff --git a/src/main/java/com/projectmanager/clients/ApiKeyClient.java b/src/main/java/com/projectmanager/clients/ApiKeyClient.java index c6a39da..2bd44bc 100644 --- a/src/main/java/com/projectmanager/clients/ApiKeyClient.java +++ b/src/main/java/com/projectmanager/clients/ApiKeyClient.java @@ -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 createApiKey(@Nullable Object xintegrationname, @NotNull ApiKeyCreateDto body) + public @NotNull AstroResult createApiKey(@NotNull ApiKeyCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/api-keys"); if (body != null) { r.AddBody(body); } @@ -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 listApiKeys(@Nullable Object xintegrationname) + public @NotNull AstroResult listApiKeys() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/api-keys"); return r.Call(new TypeToken>() {}.getType()); @@ -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 revokeAllApiKeys(@Nullable Object xintegrationname) + public @NotNull AstroResult revokeAllApiKeys() { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/api-keys/revoke-all"); return r.Call(new TypeToken>() {}.getType()); @@ -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 revokeAPIKey(@NotNull String id, @Nullable Object xintegrationname) + public @NotNull AstroResult revokeAPIKey(@NotNull String id) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/api-keys/{id}/revoke"); r.AddPath("{id}", id == null ? "" : id.toString()); diff --git a/src/main/java/com/projectmanager/clients/ChangesetClient.java b/src/main/java/com/projectmanager/clients/ChangesetClient.java index bde2b07..276b3ec 100644 --- a/src/main/java/com/projectmanager/clients/ChangesetClient.java +++ b/src/main/java/com/projectmanager/clients/ChangesetClient.java @@ -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 retrieveChangeset(@NotNull String changeSetId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveChangeset(@NotNull String changeSetId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/changesets/{changeSetId}"); r.AddPath("{changeSetId}", changeSetId == null ? "" : changeSetId.toString()); @@ -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 retrieveCompletedChangeset(@NotNull String changeSetId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveCompletedChangeset(@NotNull String changeSetId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/changesets/{changeSetId}/poll"); r.AddPath("{changeSetId}", changeSetId == null ? "" : changeSetId.toString()); diff --git a/src/main/java/com/projectmanager/clients/DashboardClient.java b/src/main/java/com/projectmanager/clients/DashboardClient.java index 2a0e9f1..aff0645 100644 --- a/src/main/java/com/projectmanager/clients/DashboardClient.java +++ b/src/main/java/com/projectmanager/clients/DashboardClient.java @@ -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 retrieveDashboardUserSettings(@NotNull String type, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveDashboardUserSettings(@NotNull String type) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/dashboards/settings/{type}"); r.AddPath("{type}", type == null ? "" : type.toString()); @@ -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 createorUpdateUserDashboardSettings(@Nullable Object xintegrationname, @NotNull DashboardSettingCreateDto body) + public @NotNull AstroResult createorUpdateUserDashboardSettings(@NotNull DashboardSettingCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/dashboards/settings"); if (body != null) { r.AddBody(body); } diff --git a/src/main/java/com/projectmanager/clients/DiscussionClient.java b/src/main/java/com/projectmanager/clients/DiscussionClient.java index 40077bf..fdb2468 100644 --- a/src/main/java/com/projectmanager/clients/DiscussionClient.java +++ b/src/main/java/com/projectmanager/clients/DiscussionClient.java @@ -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 retrieveTaskComments(@NotNull String taskId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveTaskComments(@NotNull String taskId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/{taskId}/discussions"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -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 createTaskComments(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull DiscussionCreateDto body) + public @NotNull AstroResult createTaskComments(@NotNull String taskId, @NotNull DiscussionCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/tasks/{taskId}/discussions"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); diff --git a/src/main/java/com/projectmanager/clients/FileClient.java b/src/main/java/com/projectmanager/clients/FileClient.java index c80fd72..9137661 100644 --- a/src/main/java/com/projectmanager/clients/FileClient.java +++ b/src/main/java/com/projectmanager/clients/FileClient.java @@ -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 downloadFile(@NotNull String documentId, @Nullable String type, @Nullable Object xintegrationname) + public @NotNull AstroResult downloadFile(@NotNull String documentId, @Nullable String type) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/files/{documentId}/download"); r.AddPath("{documentId}", documentId == null ? "" : documentId.toString()); @@ -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 updateFile(@NotNull String fileId, @Nullable Object xintegrationname, @NotNull UpdateRequestDto body) + public @NotNull AstroResult updateFile(@NotNull String fileId, @NotNull UpdateRequestDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/files/{fileId}"); r.AddPath("{fileId}", fileId == null ? "" : fileId.toString()); diff --git a/src/main/java/com/projectmanager/clients/HomeFileClient.java b/src/main/java/com/projectmanager/clients/HomeFileClient.java index a30fad3..c19276f 100644 --- a/src/main/java/com/projectmanager/clients/HomeFileClient.java +++ b/src/main/java/com/projectmanager/clients/HomeFileClient.java @@ -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 uploadHomeFile(@Nullable Object xintegrationname, @NotNull byte[] filename) + public @NotNull AstroResult uploadHomeFile(@NotNull byte[] filename) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/home/files"); return r.Call(new TypeToken>() {}.getType()); @@ -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 uploadHomeFileToFolder(@NotNull String folderId, @Nullable Object xintegrationname, @NotNull byte[] filename) + public @NotNull AstroResult uploadHomeFileToFolder(@NotNull String folderId, @NotNull byte[] filename) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/home/folders/{folderId}/files"); r.AddPath("{folderId}", folderId == null ? "" : folderId.toString()); diff --git a/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java b/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java index 1f7d2bc..5999cd3 100644 --- a/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java +++ b/src/main/java/com/projectmanager/clients/IntegrationCategoryClient.java @@ -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 retrieveProviderCategories(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProviderCategories() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/integrations/categories"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/IntegrationClient.java b/src/main/java/com/projectmanager/clients/IntegrationClient.java index 4d90a0c..ce13c80 100644 --- a/src/main/java/com/projectmanager/clients/IntegrationClient.java +++ b/src/main/java/com/projectmanager/clients/IntegrationClient.java @@ -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 retrieveIntegration(@NotNull String integrationId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveIntegration(@NotNull String integrationId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/integrations/{integrationId}"); r.AddPath("{integrationId}", integrationId == null ? "" : integrationId.toString()); @@ -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 enableIntegration(@NotNull String integrationId, @Nullable Object xintegrationname) + public @NotNull AstroResult enableIntegration(@NotNull String integrationId) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/integrations/{integrationId}"); r.AddPath("{integrationId}", integrationId == null ? "" : integrationId.toString()); @@ -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 disableIntegration(@NotNull String integrationId, @Nullable Object xintegrationname) + public @NotNull AstroResult disableIntegration(@NotNull String integrationId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/integrations/{integrationId}"); r.AddPath("{integrationId}", integrationId == null ? "" : integrationId.toString()); @@ -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 retrieveAllIntegrations(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveAllIntegrations() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/integrations"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java b/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java index 1f23a1e..5155b81 100644 --- a/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java +++ b/src/main/java/com/projectmanager/clients/IntegrationProviderClient.java @@ -50,10 +50,9 @@ public IntegrationProviderClient(@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 listProviders(@Nullable Object xintegrationname) + public @NotNull AstroResult listProviders() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/integrations/providers"); return r.Call(new TypeToken>() {}.getType()); @@ -65,10 +64,9 @@ public IntegrationProviderClient(@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 providerId The unique identifier of the IntegrationProvider for which you are requesting authentication information - * @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 activateIntegrationProvider(@NotNull String providerId, @Nullable Object xintegrationname) + public @NotNull AstroResult activateIntegrationProvider(@NotNull String providerId) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/integrations/providers/{providerId}"); r.AddPath("{providerId}", providerId == null ? "" : providerId.toString()); @@ -79,11 +77,10 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { * Allows you to update the auth status of the provider specific connection. * * @param providerId The identifier to the provider - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Specify the auth status * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateIntegrationProvider(@NotNull String providerId, @Nullable Object xintegrationname, @NotNull AuthenticationDto body) + public @NotNull AstroResult updateIntegrationProvider(@NotNull String providerId, @NotNull AuthenticationDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/integrations/providers/{providerId}"); r.AddPath("{providerId}", providerId == null ? "" : providerId.toString()); @@ -95,10 +92,9 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { * Allows you to deactivate an integration provider * * @param providerId The identifier to the provider - * @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 deactivateIntegrationProvider(@NotNull String providerId, @Nullable Object xintegrationname) + public @NotNull AstroResult deactivateIntegrationProvider(@NotNull String providerId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/integrations/providers/{providerId}"); r.AddPath("{providerId}", providerId == null ? "" : providerId.toString()); @@ -111,10 +107,9 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { * This connection can be used for requests to Providers that require specific user data. * * @param providerId The unique identifier of the IntegrationProvider for which you are requesting authentication information - * @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 createUserIntegrationProviderConnection(@NotNull String providerId, @Nullable Object xintegrationname) + public @NotNull AstroResult createUserIntegrationProviderConnection(@NotNull String providerId) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/integrations/providers/{providerId}/user-connection"); r.AddPath("{providerId}", providerId == null ? "" : providerId.toString()); @@ -125,11 +120,10 @@ public IntegrationProviderClient(@NotNull ProjectManagerClient client) { * Allows you to update the auth status of the provider specific user connection. * * @param providerId The identifier to the provider - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Specify the auth status * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateUserIntegrationProviderConnection(@NotNull String providerId, @Nullable Object xintegrationname, @NotNull AuthenticationStatusDto body) + public @NotNull AstroResult updateUserIntegrationProviderConnection(@NotNull String providerId, @NotNull AuthenticationStatusDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/integrations/providers/{providerId}/user-connection"); r.AddPath("{providerId}", providerId == null ? "" : providerId.toString()); diff --git a/src/main/java/com/projectmanager/clients/LicenseClient.java b/src/main/java/com/projectmanager/clients/LicenseClient.java index 1a18f0b..f331650 100644 --- a/src/main/java/com/projectmanager/clients/LicenseClient.java +++ b/src/main/java/com/projectmanager/clients/LicenseClient.java @@ -46,10 +46,9 @@ public LicenseClient(@NotNull ProjectManagerClient client) { * * Licenses contain information about your current subscription level and features that have been enabled on your Workspace. To modify the License information, please log on to the ProjectManager.com application and use the Account | Editions screen to review or update your Licenses. * - * @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 retrieveLicenses(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveLicenses() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/license"); return r.Call(new TypeToken>() {}.getType()); @@ -61,10 +60,9 @@ public LicenseClient(@NotNull ProjectManagerClient client) { * Licenses contain information about your current subscription level and features that have been enabled on your Workspace. To modify the License information, please log on to the ProjectManager.com application and use the Account | Editions screen to review or update your Licenses. * * @param bundleSku Information about the SKU you wish to add to your 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 addLicense(@NotNull String bundleSku, @Nullable Object xintegrationname) + public @NotNull AstroResult addLicense(@NotNull String bundleSku) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/license/{bundleSku}/try"); r.AddPath("{bundleSku}", bundleSku == null ? "" : bundleSku.toString()); diff --git a/src/main/java/com/projectmanager/clients/MeClient.java b/src/main/java/com/projectmanager/clients/MeClient.java index 9fcae35..ec439ca 100644 --- a/src/main/java/com/projectmanager/clients/MeClient.java +++ b/src/main/java/com/projectmanager/clients/MeClient.java @@ -45,10 +45,9 @@ public MeClient(@NotNull ProjectManagerClient client) { * * This API call will always succeed with a 200 OK if called with valid authentication information. If the authentication information provided is not valid, calling this API will return a 401 Authentication Failed error message. If successful, this API returns information about the user including its home URL, email address, user name, and workspace name. * - * @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 retrieveMe(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveMe() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/me"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java b/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java index 0c81c52..7f3dc8a 100644 --- a/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectChargeCodeClient.java @@ -45,10 +45,9 @@ public ProjectChargeCodeClient(@NotNull ProjectManagerClient client) { * * A ChargeCode is a code used to identify costs within your Projects. Each ChargeCode has a name and a unique identifier. ChargeCodes are defined per Workspace and are shared among Projects. * - * @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 retrieveChargeCodes(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveChargeCodes() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/chargecodes"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ProjectClient.java b/src/main/java/com/projectmanager/clients/ProjectClient.java index 7cc01b4..283f573 100644 --- a/src/main/java/com/projectmanager/clients/ProjectClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectClient.java @@ -48,7 +48,6 @@ public ProjectClient(@NotNull ProjectManagerClient client) { * * A Project is a collection of Tasks that contributes towards a goal. Within a Project, Tasks represent individual items of work that team members must complete. The sum total of Tasks within a Project represents the work to be completed for that Project. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries @@ -57,7 +56,7 @@ public ProjectClient(@NotNull ProjectManagerClient client) { * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryProjects(@Nullable Object xintegrationname, @Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryProjects(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects"); if (top != null) { r.AddQuery("$top", top.toString()); } @@ -74,11 +73,10 @@ public ProjectClient(@NotNull ProjectManagerClient client) { * * A Project is a collection of Tasks that contributes towards a goal. Within a Project, Tasks represent individual items of work that team members must complete. The sum total of Tasks within a Project represents the work to be completed for that Project. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Information about the Project you wish to create * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createProject(@Nullable Object xintegrationname, @NotNull ProjectCreateDto body) + public @NotNull AstroResult createProject(@NotNull ProjectCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects"); if (body != null) { r.AddBody(body); } @@ -91,10 +89,9 @@ public ProjectClient(@NotNull ProjectManagerClient client) { * A Project is a collection of Tasks that contributes towards a goal. Within a Project, Tasks represent individual items of work that team members must complete. The sum total of Tasks within a Project represents the work to be completed for that Project. * * @param projectId The unique identifier of the Project 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 retrieveProject(@NotNull String projectId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProject(@NotNull String projectId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -109,11 +106,10 @@ public ProjectClient(@NotNull ProjectManagerClient client) { * Multiple users can be working on data at the same time. When you call an API to update an object, this call is converted into a Changeset that is then applied sequentially. You can use RetrieveChangeset to see the status of an individual Changeset. * * @param projectId The unique identifier of the Project to update - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body All non-null fields in this object will replace previous data within the Project * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateProject(@NotNull String projectId, @Nullable Object xintegrationname, @NotNull ProjectUpdateDto body) + public @NotNull AstroResult updateProject(@NotNull String projectId, @NotNull ProjectUpdateDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/projects/{projectId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); diff --git a/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java b/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java index 04a0a93..0a0740c 100644 --- a/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectCustomerClient.java @@ -45,10 +45,9 @@ public ProjectCustomerClient(@NotNull ProjectManagerClient client) { * * A ProjectCustomer is a code used to identify costs within your Projects. Each ProjectCustomer has a name and a unique identifier. ProjectCustomers are defined per Workspace and are shared among Projects. * - * @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 retrieveProjectCustomers(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectCustomers() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/customers"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ProjectFieldClient.java b/src/main/java/com/projectmanager/clients/ProjectFieldClient.java index f109e11..400783c 100644 --- a/src/main/java/com/projectmanager/clients/ProjectFieldClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectFieldClient.java @@ -51,10 +51,9 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * * A ProjectField is a custom field defined within your Workspace. You can define ProjectFields for any integration purpose that is important to your business. Each ProjectField has a data type as well as options in how it is handled. ProjectFields can be edited for each Project within your 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 retrieveProjectFields(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectFields() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/fields"); return r.Call(new TypeToken>() {}.getType()); @@ -65,11 +64,10 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * * A ProjectField is a custom field defined within your Workspace. You can define ProjectFields for any integration purpose that is important to your business. Each ProjectField has a data type as well as options in how it is handled. ProjectFields can be edited for each Project within your Workspace. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Information about the ProjectField to create * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createProjectField(@Nullable Object xintegrationname, @NotNull CreateProjectFieldDto body) + public @NotNull AstroResult createProjectField(@NotNull CreateProjectFieldDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/fields"); if (body != null) { r.AddBody(body); } @@ -81,11 +79,10 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * * A ProjectField is a custom field defined within your Workspace. You can define ProjectFields for any integration purpose that is important to your business. Each ProjectField has a data type as well as options in how it is handled. ProjectFields can be edited for each Project within your Workspace. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The identity of the ProjectField to delete * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult deleteProjectField(@Nullable Object xintegrationname, @NotNull DeleteProjectFieldDto body) + public @NotNull AstroResult deleteProjectField(@NotNull DeleteProjectFieldDto body) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/projects/fields"); if (body != null) { r.AddBody(body); } @@ -99,11 +96,10 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * * @param projectId The unique identifier of the Project that contains this ProjectField * @param fieldId The unique identifier of this ProjectField - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The new information for this ProjectField * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateProjectField(@NotNull String projectId, @NotNull String fieldId, @Nullable Object xintegrationname, @NotNull UpdateProjectFieldValueDto body) + public @NotNull AstroResult updateProjectField(@NotNull String projectId, @NotNull String fieldId, @NotNull UpdateProjectFieldValueDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/projects/{projectId}/fields/{fieldId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -117,10 +113,9 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * * @param projectId The unique identifier of the Project of the value to retrieve * @param fieldId The unique identifier of the ProjectField of the value 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 retrieveProjectFieldValue(@NotNull String projectId, @NotNull String fieldId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectFieldValue(@NotNull String projectId, @NotNull String fieldId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/fields/{fieldId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -132,10 +127,9 @@ public ProjectFieldClient(@NotNull ProjectManagerClient client) { * Retrieves all ProjectField values for a particular Project. * * @param projectId The unique identifier of the Project for which we want ProjectField values - * @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 retrieveAllProjectFieldValues(@NotNull String projectId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveAllProjectFieldValues(@NotNull String projectId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/fields"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); diff --git a/src/main/java/com/projectmanager/clients/ProjectFileClient.java b/src/main/java/com/projectmanager/clients/ProjectFileClient.java index 456bbf4..83a36ca 100644 --- a/src/main/java/com/projectmanager/clients/ProjectFileClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectFileClient.java @@ -49,11 +49,10 @@ public ProjectFileClient(@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 projectId The reference to the project - * @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 uploadProjectFile(@NotNull String projectId, @Nullable Object xintegrationname, @NotNull byte[] filename) + public @NotNull AstroResult uploadProjectFile(@NotNull String projectId, @NotNull byte[] filename) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/{projectId}/files"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -71,11 +70,10 @@ public ProjectFileClient(@NotNull ProjectManagerClient client) { * * @param projectId The reference to the project * @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 uploadProjectFileToFolder(@NotNull String projectId, @NotNull String folderId, @Nullable Object xintegrationname, @NotNull byte[] filename) + public @NotNull AstroResult uploadProjectFileToFolder(@NotNull String projectId, @NotNull String folderId, @NotNull byte[] filename) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/{projectId}/folders/{folderId}/files"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); diff --git a/src/main/java/com/projectmanager/clients/ProjectFolderClient.java b/src/main/java/com/projectmanager/clients/ProjectFolderClient.java index fe638d9..87c985c 100644 --- a/src/main/java/com/projectmanager/clients/ProjectFolderClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectFolderClient.java @@ -45,10 +45,9 @@ public ProjectFolderClient(@NotNull ProjectManagerClient client) { * * A ProjectFolder is a named storage location that can contain Projects. * - * @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 retrieveProjectFolders(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectFolders() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/project-folders"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ProjectMembersClient.java b/src/main/java/com/projectmanager/clients/ProjectMembersClient.java index 90d2e99..4030a2d 100644 --- a/src/main/java/com/projectmanager/clients/ProjectMembersClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectMembersClient.java @@ -45,10 +45,9 @@ public ProjectMembersClient(@NotNull ProjectManagerClient client) { /** * Returns a list of membership options for new projects. * - * @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 retrieveNewProjectMembers(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveNewProjectMembers() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/members"); return r.Call(new TypeToken>() {}.getType()); @@ -59,10 +58,9 @@ public ProjectMembersClient(@NotNull ProjectManagerClient client) { * * @param projectId Reference to the project * @param includeAllUsers Set to true to include all users in the 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 retrieveProjectMembers(@NotNull String projectId, @Nullable Boolean includeAllUsers, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectMembers(@NotNull String projectId, @Nullable Boolean includeAllUsers) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/members"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -75,10 +73,9 @@ public ProjectMembersClient(@NotNull ProjectManagerClient client) { * * @param projectId Reference of Project * @param userId Reference of User - * @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 retrieveUserProjectMemberShip(@NotNull String projectId, @NotNull String userId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveUserProjectMemberShip(@NotNull String projectId, @NotNull String userId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/members/{userId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -91,11 +88,10 @@ public ProjectMembersClient(@NotNull ProjectManagerClient client) { * * @param projectId Reference to Project * @param userId Reference to User - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The permission to set * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createUserProjectMembership(@NotNull String projectId, @NotNull String userId, @Nullable Object xintegrationname, @NotNull ProjectMemberRoleDto body) + public @NotNull AstroResult createUserProjectMembership(@NotNull String projectId, @NotNull String userId, @NotNull ProjectMemberRoleDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/{projectId}/members/{userId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -109,11 +105,10 @@ public ProjectMembersClient(@NotNull ProjectManagerClient client) { * * @param projectId Reference to Project * @param userId Reference to User - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The permission to update * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateUserProjectMembership(@NotNull String projectId, @NotNull String userId, @Nullable Object xintegrationname, @NotNull ProjectMemberRoleDto body) + public @NotNull AstroResult updateUserProjectMembership(@NotNull String projectId, @NotNull String userId, @NotNull ProjectMemberRoleDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/projects/{projectId}/members/{userId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -127,10 +122,9 @@ public ProjectMembersClient(@NotNull ProjectManagerClient client) { * * @param projectId Reference to Project * @param userId Reference to User - * @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 removeUserProjectMembership(@NotNull String projectId, @NotNull String userId, @Nullable Object xintegrationname) + public @NotNull AstroResult removeUserProjectMembership(@NotNull String projectId, @NotNull String userId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/projects/{projectId}/members/{userId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); diff --git a/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java b/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java index c640378..e59a7e9 100644 --- a/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectPriorityClient.java @@ -47,10 +47,9 @@ public ProjectPriorityClient(@NotNull ProjectManagerClient client) { * * Note that TaskPriority and ProjectPriority are different classes of priority levels. Even if they may have similar names, they are different objects and must be tracked separately. * - * @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 retrieveProjectPriorities(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectPriorities() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/priorities"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ProjectStatusClient.java b/src/main/java/com/projectmanager/clients/ProjectStatusClient.java index aed9b43..bb389e0 100644 --- a/src/main/java/com/projectmanager/clients/ProjectStatusClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectStatusClient.java @@ -45,10 +45,9 @@ public ProjectStatusClient(@NotNull ProjectManagerClient client) { * * A ProjectStatus is a named condition used by your business to categorize the completion level of Tasks and Projects within your Workspace. You can name your ProjectStatus levels anything you like and you can reorganize the order of the ProjectPriority levels at any time. * - * @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 retrieveProjectStatuses(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectStatuses() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/statuses"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java b/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java index dd449d0..61626cf 100644 --- a/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java +++ b/src/main/java/com/projectmanager/clients/ProjectTemplateClient.java @@ -46,10 +46,9 @@ public ProjectTemplateClient(@NotNull ProjectManagerClient client) { * * A ProjectTemplate is a definition of default project related data (eg. Tasks) that can be applied to a new project when it is created. ProjectTemplates are categorized using the TemplateCategory system. * - * @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 retrieveProjectTemplates(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveProjectTemplates() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/templates"); return r.Call(new TypeToken>() {}.getType()); @@ -60,10 +59,9 @@ public ProjectTemplateClient(@NotNull ProjectManagerClient client) { * * A ProjectTemplate is a definition of default project related data (eg. Tasks) that can be applied to a new project when it is created. ProjectTemplates are categorized using the TemplateCategory system. * - * @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 retrieveTemplateCategories(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveTemplateCategories() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/templates/categories"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/ResourceClient.java b/src/main/java/com/projectmanager/clients/ResourceClient.java index 36b6ebf..474f9a2 100644 --- a/src/main/java/com/projectmanager/clients/ResourceClient.java +++ b/src/main/java/com/projectmanager/clients/ResourceClient.java @@ -48,11 +48,10 @@ public ResourceClient(@NotNull ProjectManagerClient client) { * * A Resource represents a person, material, or tool that is used within your Projects. When you attach a Resources to more than one Task, the software will schedule the usage of your Resource so that it is not allocated to more than one Task at the same time. The users in your Workspace are also considered Resources. To invite a new User to your Workspace, create a new Resource for that user. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The details for the new Resource to create * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createResource(@Nullable Object xintegrationname, @NotNull ResourceCreateDto body) + public @NotNull AstroResult createResource(@NotNull ResourceCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/resources"); if (body != null) { r.AddBody(body); } @@ -64,7 +63,6 @@ public ResourceClient(@NotNull ProjectManagerClient client) { * * A Resource represents a person, material, or tool that is used within your Projects. When you attach a Resources to more than one Task, the software will schedule the usage of your Resource so that it is not allocated to more than one Task at the same time. The users in your Workspace are also considered Resources. To invite a new User to your Workspace, create a new Resource for that user. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries @@ -73,7 +71,7 @@ public ResourceClient(@NotNull ProjectManagerClient client) { * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryResources(@Nullable Object xintegrationname, @Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryResources(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/resources"); if (top != null) { r.AddQuery("$top", top.toString()); } @@ -91,11 +89,10 @@ public ResourceClient(@NotNull ProjectManagerClient client) { * A Resource represents a person, material, or tool that is used within your Projects. When you attach a Resources to more than one Task, the software will schedule the usage of your Resource so that it is not allocated to more than one Task at the same time. The users in your Workspace are also considered Resources. To invite a new User to your Workspace, create a new Resource for that user. * * @param resourceId The id of the resource - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The information to update the resource * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateResource(@NotNull String resourceId, @Nullable Object xintegrationname, @NotNull ResourceUpdateDto body) + public @NotNull AstroResult updateResource(@NotNull String resourceId, @NotNull ResourceUpdateDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/resources/{resourceId}"); r.AddPath("{resourceId}", resourceId == null ? "" : resourceId.toString()); @@ -109,10 +106,9 @@ public ResourceClient(@NotNull ProjectManagerClient client) { * A Resource represents a person, material, or tool that is used within your Projects. When you attach a Resources to more than one Task, the software will schedule the usage of your Resource so that it is not allocated to more than one Task at the same time. The users in your Workspace are also considered Resources. To invite a new User to your Workspace, create a new Resource for that user. * * @param resourceId The id of the Resource - * @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 retrieveResource(@NotNull String resourceId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveResource(@NotNull String resourceId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/resources/{resourceId}"); r.AddPath("{resourceId}", resourceId == null ? "" : resourceId.toString()); diff --git a/src/main/java/com/projectmanager/clients/ResourceSkillClient.java b/src/main/java/com/projectmanager/clients/ResourceSkillClient.java index db6ca5e..eda66c1 100644 --- a/src/main/java/com/projectmanager/clients/ResourceSkillClient.java +++ b/src/main/java/com/projectmanager/clients/ResourceSkillClient.java @@ -48,7 +48,6 @@ public ResourceSkillClient(@NotNull ProjectManagerClient client) { * * A ResourceSkill is a capability possessed by a Resource that can be used to distinguish different classes of Resources suitable for use by a Task. You can specify that a Task requires a Resource with a particular set of ResourceSkills and then allocate Resources based on whether or not they have the suitable ResourceSkills. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries @@ -57,7 +56,7 @@ public ResourceSkillClient(@NotNull ProjectManagerClient client) { * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult retrieveResourceSkills(@Nullable Object xintegrationname, @Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult retrieveResourceSkills(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/resources/skills"); if (top != null) { r.AddQuery("$top", top.toString()); } @@ -72,11 +71,10 @@ public ResourceSkillClient(@NotNull ProjectManagerClient client) { /** * Create a Resource Skill. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The name of the skill to create. * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createResourceSkill(@Nullable Object xintegrationname, @NotNull CreateResourceSkillDto body) + public @NotNull AstroResult createResourceSkill(@NotNull CreateResourceSkillDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/resources/skills"); if (body != null) { r.AddBody(body); } @@ -87,11 +85,10 @@ public ResourceSkillClient(@NotNull ProjectManagerClient client) { * Update a Resource Skill. * * @param skillId The id of the skill to update. - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The data of the skill to update. * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateResourceSkill(@NotNull String skillId, @Nullable Object xintegrationname, @NotNull UpdateResourceSkillDto body) + public @NotNull AstroResult updateResourceSkill(@NotNull String skillId, @NotNull UpdateResourceSkillDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/resources/skills/{skillId}"); r.AddPath("{skillId}", skillId == null ? "" : skillId.toString()); @@ -103,10 +100,9 @@ public ResourceSkillClient(@NotNull ProjectManagerClient client) { * The endpoint is used to delete a resource skill. Users assigned to this skill will no longer be assigned thereafter. * * @param resourceSkillId The Id of the skill to be removed. - * @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 deleteResourceSkill(@NotNull String resourceSkillId, @Nullable Object xintegrationname) + public @NotNull AstroResult deleteResourceSkill(@NotNull String resourceSkillId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/resources/skills/{resourceSkillId}"); r.AddPath("{resourceSkillId}", resourceSkillId == null ? "" : resourceSkillId.toString()); diff --git a/src/main/java/com/projectmanager/clients/ResourceTeamClient.java b/src/main/java/com/projectmanager/clients/ResourceTeamClient.java index a0c1048..1e5f010 100644 --- a/src/main/java/com/projectmanager/clients/ResourceTeamClient.java +++ b/src/main/java/com/projectmanager/clients/ResourceTeamClient.java @@ -48,7 +48,6 @@ public ResourceTeamClient(@NotNull ProjectManagerClient client) { * * A ResourceTeam is a grouping of Resources that allows you to keep track of assignments in a manner consistent with your business needs. You can assign Resources to be members of zero, one, or many ResourceTeams. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries @@ -57,7 +56,7 @@ public ResourceTeamClient(@NotNull ProjectManagerClient client) { * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult retrieveResourceTeams(@Nullable Object xintegrationname, @Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult retrieveResourceTeams(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/resources/teams"); if (top != null) { r.AddQuery("$top", top.toString()); } @@ -72,11 +71,10 @@ public ResourceTeamClient(@NotNull ProjectManagerClient client) { /** * Create a Resource Team. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The name of the team to create. * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createResourceTeam(@Nullable Object xintegrationname, @NotNull CreateResourceTeamDto body) + public @NotNull AstroResult createResourceTeam(@NotNull CreateResourceTeamDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/resources/teams"); if (body != null) { r.AddBody(body); } @@ -87,10 +85,9 @@ public ResourceTeamClient(@NotNull ProjectManagerClient client) { * The endpoint is used to delete a resource team. Users assigned to this team will no longer be assigned thereafter. * * @param resourceTeamId The Id of the team to be removed. - * @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 deleteResourceTeam(@NotNull String resourceTeamId, @Nullable Object xintegrationname) + public @NotNull AstroResult deleteResourceTeam(@NotNull String resourceTeamId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/resources/teams/{resourceTeamId}"); r.AddPath("{resourceTeamId}", resourceTeamId == null ? "" : resourceTeamId.toString()); @@ -101,11 +98,10 @@ public ResourceTeamClient(@NotNull ProjectManagerClient client) { * Update a Resource Team. * * @param teamresourceId The id of the resource team - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The name of the team to Update. * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateResourceTeam(@NotNull String teamresourceId, @Nullable Object xintegrationname, @NotNull UpdateResourceTeamDto body) + public @NotNull AstroResult updateResourceTeam(@NotNull String teamresourceId, @NotNull UpdateResourceTeamDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/resources/teams/{teamresourceId}"); r.AddPath("{teamresourceId}", teamresourceId == null ? "" : teamresourceId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TagClient.java b/src/main/java/com/projectmanager/clients/TagClient.java index 19128d7..c6d00ee 100644 --- a/src/main/java/com/projectmanager/clients/TagClient.java +++ b/src/main/java/com/projectmanager/clients/TagClient.java @@ -48,7 +48,6 @@ public TagClient(@NotNull ProjectManagerClient client) { * * A Tag is a named categorization you can use to distinguish objects from each other. Tags each have a unique identifier, a name, and a color. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries @@ -57,7 +56,7 @@ public TagClient(@NotNull ProjectManagerClient client) { * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTags(@Nullable Object xintegrationname, @Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTags(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tags"); if (top != null) { r.AddQuery("$top", top.toString()); } @@ -74,11 +73,10 @@ public TagClient(@NotNull ProjectManagerClient client) { * * A Tag is a named categorization you can use to distinguish objects from each other. Tags each have a unique identifier, a name, and a color. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The information for the new Tag to create * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createTag(@Nullable Object xintegrationname, @NotNull TagCreateDto body) + public @NotNull AstroResult createTag(@NotNull TagCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/tags"); if (body != null) { r.AddBody(body); } @@ -91,11 +89,10 @@ public TagClient(@NotNull ProjectManagerClient client) { * A Tag is a named categorization you can use to distinguish objects from each other. Tags each have a unique identifier, a name, and a color. * * @param tagId The id of the tag - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The information to update the tag * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateTag(@NotNull String tagId, @Nullable Object xintegrationname, @NotNull TagUpdateDto body) + public @NotNull AstroResult updateTag(@NotNull String tagId, @NotNull TagUpdateDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/tags/{tagId}"); r.AddPath("{tagId}", tagId == null ? "" : tagId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java b/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java index 5c8f0c4..196bce2 100644 --- a/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java +++ b/src/main/java/com/projectmanager/clients/TaskAssigneeClient.java @@ -49,11 +49,10 @@ public TaskAssigneeClient(@NotNull ProjectManagerClient client) { * A TaskAssignee is an assignment of a Resource to a Task. You can assign multiple Resources to a Task and designate what proportion of their time will be allocated to this Task. * * @param taskId The unique identifier of the Task whose TaskAssignees will be replaced - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The new list of TaskAssignees for this Task * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult replaceTaskAssignees(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull AssigneeUpsertDto[] body) + public @NotNull AstroResult replaceTaskAssignees(@NotNull String taskId, @NotNull AssigneeUpsertDto[] body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/tasks/{taskId}/assignees"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -67,11 +66,10 @@ public TaskAssigneeClient(@NotNull ProjectManagerClient client) { * A TaskAssignee is an assignment of a Resource to a Task. You can assign multiple Resources to a Task and designate what proportion of their time will be allocated to this Task. * * @param taskId The unique identifier of the Task to add or update an assignment - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body List of Assignee data * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createOrUpdateTaskAssignee(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull AssigneeUpsertDto[] body) + public @NotNull AstroResult createOrUpdateTaskAssignee(@NotNull String taskId, @NotNull AssigneeUpsertDto[] body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/tasks/{taskId}/assignees"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -85,11 +83,10 @@ public TaskAssigneeClient(@NotNull ProjectManagerClient client) { * A TaskAssignee is an assignment of a Resource to a Task. You can assign multiple Resources to a Task and designate what proportion of their time will be allocated to this Task. * * @param taskId The unique identifier of the Task whose TaskAssignee will be removed - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body List of TaskAssignee records to remove * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult deleteTaskAssignees(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull IdDto[] body) + public @NotNull AstroResult deleteTaskAssignees(@NotNull String taskId, @NotNull IdDto[] body) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/tasks/{taskId}/assignees"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TaskClient.java b/src/main/java/com/projectmanager/clients/TaskClient.java index efbf047..f817ba2 100644 --- a/src/main/java/com/projectmanager/clients/TaskClient.java +++ b/src/main/java/com/projectmanager/clients/TaskClient.java @@ -51,7 +51,6 @@ public TaskClient(@NotNull ProjectManagerClient client) { * * A Task is an individual element of work that must be performed to complete a Project. A Task can have one or more Resources assigned to it. Tasks can be linked to other Tasks to indicate whether they have a dependency or a connection. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries @@ -60,7 +59,7 @@ public TaskClient(@NotNull ProjectManagerClient client) { * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTasks(@Nullable Object xintegrationname, @Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTasks(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks"); if (top != null) { r.AddQuery("$top", top.toString()); } @@ -78,10 +77,9 @@ public TaskClient(@NotNull ProjectManagerClient client) { * A Task is an individual element of work that must be performed to complete a Project. A Task can have one or more Resources assigned to it. Tasks can be linked to other Tasks to indicate whether they have a dependency or a connection. * * @param taskId The unique identifier or short ID of the Task 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 retrieveTask(@NotNull String taskId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveTask(@NotNull String taskId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/{taskId}"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -98,11 +96,10 @@ public TaskClient(@NotNull ProjectManagerClient client) { * Known Issues: This API returns an error if your Update call includes too many changes in a single API call. Please restrict usage to one change per API request. This API will be deprecated and replaced with an improved API call in a future release. * * @param taskId The unique identifier of the Task to update - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body All non-null fields in this object will replace existing data in the Task * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateTask(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull TaskUpdateDto body) + public @NotNull AstroResult updateTask(@NotNull String taskId, @NotNull TaskUpdateDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/tasks/{taskId}"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -118,10 +115,9 @@ public TaskClient(@NotNull ProjectManagerClient client) { * Multiple users can be working on data at the same time. When you call an API to update an object, this call is converted into a Changeset that is then applied sequentially. You can use RetrieveChangeset to see the status of an individual Changeset. * * @param taskId Unique identifier of the Task to delete - * @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 deleteTask(@NotNull String taskId, @Nullable Object xintegrationname) + public @NotNull AstroResult deleteTask(@NotNull String taskId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/tasks/{taskId}"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -134,11 +130,10 @@ public TaskClient(@NotNull ProjectManagerClient client) { * A Task is an individual element of work that must be performed to complete a Project. A Task can have one or more Resources assigned to it. Tasks can be linked to other Tasks to indicate whether they have a dependency or a connection. * * @param projectId The unique identifier of the Project that will contain this Task - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The new Task to create * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createTask(@NotNull String projectId, @Nullable Object xintegrationname, @NotNull TaskCreateDto body) + public @NotNull AstroResult createTask(@NotNull String projectId, @NotNull TaskCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/{projectId}/tasks"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -153,10 +148,9 @@ public TaskClient(@NotNull ProjectManagerClient client) { * * Note that TaskPriority and ProjectPriority are different classes of priority levels. Even if they may have similar names, they are different objects and must be tracked separately. * - * @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 retrieveTaskPriorities(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveTaskPriorities() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/priorities"); return r.Call(new TypeToken>() {}.getType()); @@ -168,11 +162,10 @@ public TaskClient(@NotNull ProjectManagerClient client) { * A Task is an individual element of work that must be performed to complete a Project. A Task can have one or more Resources assigned to it. Tasks can be linked to other Tasks to indicate whether they have a dependency or a connection. * * @param projectId The unique identifier of the Project that will contain these Tasks - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The list of new Tasks to create * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createManyTasks(@NotNull String projectId, @Nullable Object xintegrationname, @NotNull TaskCreateDto[] body) + public @NotNull AstroResult createManyTasks(@NotNull String projectId, @NotNull TaskCreateDto[] body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/{projectId}/tasks/bulk"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -185,10 +178,9 @@ public TaskClient(@NotNull ProjectManagerClient client) { * * @param taskId The task that will become the child * @param parentTaskId The parent task - * @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 addParentTask(@NotNull String taskId, @NotNull String parentTaskId, @Nullable Object xintegrationname) + public @NotNull AstroResult addParentTask(@NotNull String taskId, @NotNull String parentTaskId) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/tasks/{taskId}/parent/{parentTaskId}"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -201,10 +193,9 @@ public TaskClient(@NotNull ProjectManagerClient client) { * * @param taskId The task that will become the child * @param parentTaskId The parent task - * @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 updateParentTask(@NotNull String taskId, @NotNull String parentTaskId, @Nullable Object xintegrationname) + public @NotNull AstroResult updateParentTask(@NotNull String taskId, @NotNull String parentTaskId) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/tasks/{taskId}/parent/{parentTaskId}"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -216,10 +207,9 @@ public TaskClient(@NotNull ProjectManagerClient client) { * Removes a task parent relationship completely * * @param taskId The child task - * @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 removeParentTask(@NotNull String taskId, @Nullable Object xintegrationname) + public @NotNull AstroResult removeParentTask(@NotNull String taskId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/tasks/{taskId}/parent"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TaskFieldClient.java b/src/main/java/com/projectmanager/clients/TaskFieldClient.java index 2f7f5c7..56f4722 100644 --- a/src/main/java/com/projectmanager/clients/TaskFieldClient.java +++ b/src/main/java/com/projectmanager/clients/TaskFieldClient.java @@ -51,10 +51,9 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * A TaskField is a custom field defined within your Workspace for a specific Project. You can define TaskFields for any integration purpose that is important to your business. Each TaskField has a data type as well as options in how it is handled. TaskFields can be edited for each Task inside this Project. * * @param projectId The unique identifier of the Project to retrieve TaskFields - * @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 retrieveTaskFields(@NotNull String projectId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveTaskFields(@NotNull String projectId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/tasks/fields"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -67,11 +66,10 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * A TaskField is a custom field defined within your Workspace for a specific Project. You can define TaskFields for any integration purpose that is important to your business. Each TaskField has a data type as well as options in how it is handled. TaskFields can be edited for each Task inside this Project. * * @param projectId The unique identifier of the Project within which to create this TaskField - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Information about the TaskField to create * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createTaskField(@NotNull String projectId, @Nullable Object xintegrationname, @NotNull CreateTaskFieldRequestDto body) + public @NotNull AstroResult createTaskField(@NotNull String projectId, @NotNull CreateTaskFieldRequestDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/{projectId}/tasks/fields"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -86,10 +84,9 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * * @param projectId The unique identifier of the Project that contains this TaskField * @param fieldId The unique identifier of the TaskField to delete - * @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 deleteTaskField(@NotNull String projectId, @NotNull String fieldId, @Nullable Object xintegrationname) + public @NotNull AstroResult deleteTaskField(@NotNull String projectId, @NotNull String fieldId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/projects/{projectId}/tasks/fields/{fieldId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -104,10 +101,9 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * * @param taskId The unique identifier of the Task of the value to retrieve * @param fieldId The unique identifier of the TaskField of the value 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 retrieveTaskFieldValue(@NotNull String taskId, @NotNull String fieldId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveTaskFieldValue(@NotNull String taskId, @NotNull String fieldId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/{taskId}/fields/{fieldId}"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -122,11 +118,10 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * * @param taskId The unique identifier of the Task whose value you wish to update * @param fieldId The unique identifier of the TaskField whose value you wish to update - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The new value for this TaskField for this Task * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateTaskFieldValue(@NotNull String taskId, @NotNull String fieldId, @Nullable Object xintegrationname, @NotNull UpdateTaskFieldValueDto body) + public @NotNull AstroResult updateTaskFieldValue(@NotNull String taskId, @NotNull String fieldId, @NotNull UpdateTaskFieldValueDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/tasks/{taskId}/fields/{fieldId}"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -141,10 +136,9 @@ public TaskFieldClient(@NotNull ProjectManagerClient client) { * A TaskField is a custom field defined within your Workspace for a specific Project. You can define TaskFields for any integration purpose that is important to your business. Each TaskField has a data type as well as options in how it is handled. TaskFields can be edited for each Task inside this Project. * * @param taskId The unique identifier of the Task for which we want TaskField values - * @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 retrieveAllTaskFieldValues(@NotNull String taskId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveAllTaskFieldValues(@NotNull String taskId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/tasks/{taskId}/fields"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TaskFileClient.java b/src/main/java/com/projectmanager/clients/TaskFileClient.java index 7c1c90e..30dc548 100644 --- a/src/main/java/com/projectmanager/clients/TaskFileClient.java +++ b/src/main/java/com/projectmanager/clients/TaskFileClient.java @@ -49,11 +49,10 @@ public TaskFileClient(@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 taskId The reference to the task - * @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 uploadTaskFile(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull byte[] filename) + public @NotNull AstroResult uploadTaskFile(@NotNull String taskId, @NotNull byte[] filename) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/tasks/{taskId}/files"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TaskStatusClient.java b/src/main/java/com/projectmanager/clients/TaskStatusClient.java index 0a59bb9..a185b5c 100644 --- a/src/main/java/com/projectmanager/clients/TaskStatusClient.java +++ b/src/main/java/com/projectmanager/clients/TaskStatusClient.java @@ -49,10 +49,9 @@ public TaskStatusClient(@NotNull ProjectManagerClient client) { * A TaskStatus is a named status level used by your business to determine how to measure the progress of Tasks. You can define your own named status levels that are appropriate for your business and determine which status levels are considered done. * * @param projectId The unique identifier of the Project to retrieve TaskStatuses - * @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 retrieveTaskStatuses(@NotNull String projectId, @Nullable Object xintegrationname) + public @NotNull AstroResult retrieveTaskStatuses(@NotNull String projectId) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/projects/{projectId}/tasks/statuses"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -65,11 +64,10 @@ public TaskStatusClient(@NotNull ProjectManagerClient client) { * A TaskStatus is a named status level used by your business to determine how to measure the progress of Tasks. You can define your own named status levels that are appropriate for your business. * * @param projectId The unique identifier of the Project for the new TaskStatus - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Information about the new TaskStatus level to create within this Project * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createTaskStatus(@NotNull String projectId, @Nullable Object xintegrationname, @NotNull TaskStatusCreateDto body) + public @NotNull AstroResult createTaskStatus(@NotNull String projectId, @NotNull TaskStatusCreateDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/projects/{projectId}/tasks/statuses"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -83,11 +81,10 @@ public TaskStatusClient(@NotNull ProjectManagerClient client) { * A TaskStatus is a named status level used by your business to determine how to measure the progress of Tasks. You can define your own named status levels that are appropriate for your business. * * @param projectId The unique identifier of the Project for the new TaskStatus - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Information about the existing TaskStatus level to update within this Project * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updateTaskStatus(@NotNull String projectId, @Nullable Object xintegrationname, @NotNull TaskStatusUpdateDto body) + public @NotNull AstroResult updateTaskStatus(@NotNull String projectId, @NotNull TaskStatusUpdateDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/projects/{projectId}/tasks/statuses"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); @@ -102,10 +99,9 @@ public TaskStatusClient(@NotNull ProjectManagerClient client) { * * @param projectId The unique identifier of the Project for the TaskStatus level to delete * @param taskStatusId The Id of the TaskStatus level to be removed. - * @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 deleteTaskStatus(@NotNull String projectId, @NotNull String taskStatusId, @Nullable Object xintegrationname) + public @NotNull AstroResult deleteTaskStatus(@NotNull String projectId, @NotNull String taskStatusId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/projects/{projectId}/tasks/statuses/{taskStatusId}"); r.AddPath("{projectId}", projectId == null ? "" : projectId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TaskTagClient.java b/src/main/java/com/projectmanager/clients/TaskTagClient.java index 745c631..7363f55 100644 --- a/src/main/java/com/projectmanager/clients/TaskTagClient.java +++ b/src/main/java/com/projectmanager/clients/TaskTagClient.java @@ -48,11 +48,10 @@ public TaskTagClient(@NotNull ProjectManagerClient client) { * A TaskTag is a connection between a Task and a Tag. Each Task can have zero, one or many TaskTags associated with it. TaskTags can be assigned and removed from the Task to help you classify your Tasks and prioritize work. * * @param taskId The unique identifier of the Task for which we will replace TaskTags - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The replacement list of TaskTags for this Task * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult replaceTaskTags(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull NameDto[] body) + public @NotNull AstroResult replaceTaskTags(@NotNull String taskId, @NotNull NameDto[] body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/tasks/{taskId}/tags"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -66,11 +65,10 @@ public TaskTagClient(@NotNull ProjectManagerClient client) { * A TaskTag is a connection between a Task and a Tag. Each Task can have zero, one or many TaskTags associated with it. TaskTags can be assigned and removed from the Task to help you classify your Tasks and prioritize work. * * @param taskId The unique identifier of the Task for which we will add TaskTags - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The new TaskTags to add to this Task * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult addTaskTagtoTask(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull NameDto[] body) + public @NotNull AstroResult addTaskTagtoTask(@NotNull String taskId, @NotNull NameDto[] body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/tasks/{taskId}/tags"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); @@ -84,11 +82,10 @@ public TaskTagClient(@NotNull ProjectManagerClient client) { * A TaskTag is a connection between a Task and a Tag. Each Task can have zero, one or many TaskTags associated with it. TaskTags can be assigned and removed from the Task to help you classify your Tasks and prioritize work. * * @param taskId The unique identifier of the Task for which we will remove existing TaskTags - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body The TaskTags to remove from this Task * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult removeTaskTagfromTask(@NotNull String taskId, @Nullable Object xintegrationname, @NotNull NameDto[] body) + public @NotNull AstroResult removeTaskTagfromTask(@NotNull String taskId, @NotNull NameDto[] body) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/tasks/{taskId}/tags"); r.AddPath("{taskId}", taskId == null ? "" : taskId.toString()); diff --git a/src/main/java/com/projectmanager/clients/TimesheetClient.java b/src/main/java/com/projectmanager/clients/TimesheetClient.java index 48dd1f2..47573d4 100644 --- a/src/main/java/com/projectmanager/clients/TimesheetClient.java +++ b/src/main/java/com/projectmanager/clients/TimesheetClient.java @@ -48,11 +48,10 @@ public TimesheetClient(@NotNull ProjectManagerClient client) { /** * Creates new time entry for given resource on given day. * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Payload * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult createtimeentry(@Nullable Object xintegrationname, @NotNull TimesheetCreateRequestDto body) + public @NotNull AstroResult createtimeentry(@NotNull TimesheetCreateRequestDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/timesheets"); if (body != null) { r.AddBody(body); } @@ -64,7 +63,6 @@ public TimesheetClient(@NotNull ProjectManagerClient client) { * * Time Sheets is a list of times per task * - * @param xintegrationname The name of the calling system passed along as a header parameter * @param top The number of records to return * @param skip Skips the given number of records and then returns $top records * @param filter Filter the expression according to oData queries @@ -73,7 +71,7 @@ public TimesheetClient(@NotNull ProjectManagerClient client) { * @param expand Include related data in the response * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult queryTimeSheets(@Nullable Object xintegrationname, @Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) + public @NotNull AstroResult queryTimeSheets(@Nullable Integer top, @Nullable Integer skip, @Nullable String filter, @Nullable String select, @Nullable String orderby, @Nullable String expand) { RestRequest r = new RestRequest(this.client, "GET", "/api/data/timesheets"); if (top != null) { r.AddQuery("$top", top.toString()); } @@ -89,10 +87,9 @@ public TimesheetClient(@NotNull ProjectManagerClient client) { * Delete time entry by id. * * @param timesheetId time entry id - * @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 deletetimeentry(@NotNull String timesheetId, @Nullable Object xintegrationname) + public @NotNull AstroResult deletetimeentry(@NotNull String timesheetId) { RestRequest r = new RestRequest(this.client, "DELETE", "/api/data/timesheets/{timesheetId}"); r.AddPath("{timesheetId}", timesheetId == null ? "" : timesheetId.toString()); @@ -103,11 +100,10 @@ public TimesheetClient(@NotNull ProjectManagerClient client) { * Updates a time entry by its unique identifier. * * @param timesheetId time entry id - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body payload * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult updatetimeentry(@NotNull String timesheetId, @Nullable Object xintegrationname, @NotNull TimesheetUpdateRequestDto body) + public @NotNull AstroResult updatetimeentry(@NotNull String timesheetId, @NotNull TimesheetUpdateRequestDto body) { RestRequest r = new RestRequest(this.client, "PUT", "/api/data/timesheets/{timesheetId}"); r.AddPath("{timesheetId}", timesheetId == null ? "" : timesheetId.toString()); @@ -118,10 +114,9 @@ public TimesheetClient(@NotNull ProjectManagerClient client) { /** * Returns active admin tasks that are used to report time not related to work on projects. I.e. annual/sick leave etc * - * @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 returnsactiveadmintasksthatareusedtoreporttime(@Nullable Object xintegrationname) + public @NotNull AstroResult returnsactiveadmintasksthatareusedtoreporttime() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/timesheets/admin-tasks"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/UserRoleClient.java b/src/main/java/com/projectmanager/clients/UserRoleClient.java index 10e3e05..a898a0d 100644 --- a/src/main/java/com/projectmanager/clients/UserRoleClient.java +++ b/src/main/java/com/projectmanager/clients/UserRoleClient.java @@ -45,10 +45,9 @@ public UserRoleClient(@NotNull ProjectManagerClient client) { * * A UserRole is a name for a privilege level granted to a specific User. The 'Global Admin' UserRole is granted to the owner of the Workspace, and this UserRole cannot be changed. You can choose which UserRole applies to a User within your 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 retrieveUserRoles(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveUserRoles() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/users/roles"); return r.Call(new TypeToken>() {}.getType()); diff --git a/src/main/java/com/projectmanager/clients/WorkSpaceClient.java b/src/main/java/com/projectmanager/clients/WorkSpaceClient.java index afaccc1..79a8c6d 100644 --- a/src/main/java/com/projectmanager/clients/WorkSpaceClient.java +++ b/src/main/java/com/projectmanager/clients/WorkSpaceClient.java @@ -47,10 +47,9 @@ public WorkSpaceClient(@NotNull ProjectManagerClient client) { * * A single User may have access to multiple Workspaces, although they can only be logged on to one Workspace at a time. This API lists all Workspaces to which the currently logged on user is entitled to access. To determine which Workspace a user is currently logged on use the `/api/data/me` endpoint. * - * @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 retrieveWorkspaces(@Nullable Object xintegrationname) + public @NotNull AstroResult retrieveWorkspaces() { RestRequest r = new RestRequest(this.client, "GET", "/api/data/workspaces"); return r.Call(new TypeToken>() {}.getType()); @@ -64,11 +63,10 @@ public WorkSpaceClient(@NotNull ProjectManagerClient client) { * This API allows you to invite a specific an invitation to join a specific Workspace. * * @param organizationId The unique identifier of the Organization that you are inviting a User to joi - * @param xintegrationname The name of the calling system passed along as a header parameter * @param body Information about the user which will receive the invitation * @return A {@link com.projectmanager.AstroResult} containing the results */ - public @NotNull AstroResult invitetoWorkspace(@NotNull String organizationId, @Nullable Object xintegrationname, @NotNull WorkSpaceJoinDto body) + public @NotNull AstroResult invitetoWorkspace(@NotNull String organizationId, @NotNull WorkSpaceJoinDto body) { RestRequest r = new RestRequest(this.client, "POST", "/api/data/workspaces/{organizationId}/join"); r.AddPath("{organizationId}", organizationId == null ? "" : organizationId.toString());