Skip to content

Commit

Permalink
Remove invalid parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tspence committed Nov 17, 2023
1 parent ef4c965 commit bf64377
Show file tree
Hide file tree
Showing 69 changed files with 206 additions and 513 deletions.
101 changes: 0 additions & 101 deletions ProjectManagerClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,109 +23,8 @@
* ProjectField.RetrieveAllProjectFieldValues (GET /api/data/projects/{projectId}/fields)

Changes to existing APIs:
* ApiKey.CreateApiKey added header parameter `x-integration-name`
* ApiKey.ListApiKeys added header parameter `x-integration-name`
* ApiKey.RevokeAllApiKeys added header parameter `x-integration-name`
* ApiKey.RevokeAPIKey added header parameter `x-integration-name`
* Changeset.RetrieveChangeset added header parameter `x-integration-name`
* Changeset.RetrieveCompletedChangeset added header parameter `x-integration-name`
* Dashboard.RetrieveDashboardUserSettings added header parameter `x-integration-name`
* Dashboard.CreateorUpdateUserDashboardSettings added header parameter `x-integration-name`
* Discussion.RetrieveTaskComments added header parameter `x-integration-name`
* Discussion.CreateTaskComments added header parameter `x-integration-name`
* File.DownloadFile added header parameter `x-integration-name`
* File.UpdateFile added header parameter `x-integration-name`
* HomeFile.UploadHomeFile added header parameter `x-integration-name`
* HomeFile.UploadHomeFileToFolder added header parameter `x-integration-name`
* Integration.RetrieveIntegration added header parameter `x-integration-name`
* Integration.EnableIntegration added header parameter `x-integration-name`
* Integration.DisableIntegration added header parameter `x-integration-name`
* Integration.RetrieveAllIntegrations added header parameter `x-integration-name`
* IntegrationCategory.RetrieveProviderCategories added header parameter `x-integration-name`
* IntegrationProvider.ListProviders added header parameter `x-integration-name`
* IntegrationProvider.ActivateIntegrationProvider added header parameter `x-integration-name`
* IntegrationProvider.UpdateIntegrationProvider added header parameter `x-integration-name`
* IntegrationProvider.UpdateIntegrationProvider changed [body].Value.DataType from AuthenticationDto to AuthenticationStatusDto
* IntegrationProvider.UpdateIntegrationProvider changed [body].Value.DataTypeRef from /docs/authenticationdto to /docs/authenticationstatusdto
* IntegrationProvider.DeactivateIntegrationProvider added header parameter `x-integration-name`
* IntegrationProvider.CreateUserIntegrationProviderConnection added header parameter `x-integration-name`
* IntegrationProvider.UpdateUserIntegrationProviderConnection added header parameter `x-integration-name`
* License.RetrieveLicenses added header parameter `x-integration-name`
* License.AddLicense added header parameter `x-integration-name`
* Me.RetrieveMe added header parameter `x-integration-name`
* Project.QueryProjects added header parameter `x-integration-name`
* Project.CreateProject added header parameter `x-integration-name`
* Project.RetrieveProject added header parameter `x-integration-name`
* Project.UpdateProject added header parameter `x-integration-name`
* ProjectChargeCode.RetrieveChargeCodes added header parameter `x-integration-name`
* ProjectCustomer.RetrieveProjectCustomers added header parameter `x-integration-name`
* ProjectField.RetrieveProjectFields added header parameter `x-integration-name`
* ProjectField.CreateProjectField added header parameter `x-integration-name`
* ProjectField.DeleteProjectField added header parameter `x-integration-name`
* ProjectField.UpdateProjectField added header parameter `x-integration-name`
* ProjectFile.UploadProjectFile added header parameter `x-integration-name`
* ProjectFile.UploadProjectFileToFolder added header parameter `x-integration-name`
* ProjectFolder.RetrieveProjectFolders added header parameter `x-integration-name`
* ProjectMembers.RetrieveNewProjectMembers added header parameter `x-integration-name`
* ProjectMembers.RetrieveProjectMembers added header parameter `x-integration-name`
* ProjectMembers.RetrieveUserProjectMemberShip added header parameter `x-integration-name`
* ProjectMembers.CreateUserProjectMembership added header parameter `x-integration-name`
* ProjectMembers.UpdateUserProjectMembership added header parameter `x-integration-name`
* ProjectMembers.RemoveUserProjectMembership added header parameter `x-integration-name`
* ProjectPriority.RetrieveProjectPriorities added header parameter `x-integration-name`
* ProjectStatus.RetrieveProjectStatuses added header parameter `x-integration-name`
* ProjectTemplate.RetrieveProjectTemplates added header parameter `x-integration-name`
* ProjectTemplate.RetrieveTemplateCategories added header parameter `x-integration-name`
* Resource.CreateResource added header parameter `x-integration-name`
* Resource.QueryResources added header parameter `x-integration-name`
* Resource.UpdateResource added header parameter `x-integration-name`
* Resource.RetrieveResource added header parameter `x-integration-name`
* ResourceSkill.RetrieveResourceSkills added header parameter `x-integration-name`
* ResourceSkill.CreateResourceSkill added header parameter `x-integration-name`
* ResourceSkill.UpdateResourceSkill added header parameter `x-integration-name`
* ResourceSkill.DeleteResourceSkill added header parameter `x-integration-name`
* ResourceTeam.RetrieveResourceTeams added header parameter `x-integration-name`
* ResourceTeam.CreateResourceTeam added header parameter `x-integration-name`
* ResourceTeam.DeleteResourceTeam added header parameter `x-integration-name`
* ResourceTeam.UpdateResourceTeam added header parameter `x-integration-name`
* Tag.QueryTags added header parameter `x-integration-name`
* Tag.CreateTag added header parameter `x-integration-name`
* Tag.UpdateTag added header parameter `x-integration-name`
* Task.QueryTasks added header parameter `x-integration-name`
* Task.RetrieveTask added header parameter `x-integration-name`
* Task.UpdateTask added header parameter `x-integration-name`
* Task.DeleteTask added header parameter `x-integration-name`
* Task.CreateTask added header parameter `x-integration-name`
* Task.RetrieveTaskPriorities added header parameter `x-integration-name`
* Task.CreateManyTasks added header parameter `x-integration-name`
* Task.AddParentTask added header parameter `x-integration-name`
* Task.UpdateParentTask added header parameter `x-integration-name`
* Task.RemoveParentTask added header parameter `x-integration-name`
* TaskAssignee.ReplaceTaskAssignees added header parameter `x-integration-name`
* TaskAssignee.CreateOrUpdateTaskAssignee added header parameter `x-integration-name`
* TaskAssignee.DeleteTaskAssignees added header parameter `x-integration-name`
* TaskField.RetrieveTaskFields added header parameter `x-integration-name`
* TaskField.CreateTaskField added header parameter `x-integration-name`
* TaskField.DeleteTaskField added header parameter `x-integration-name`
* TaskField.RetrieveTaskFieldValue added header parameter `x-integration-name`
* TaskField.UpdateTaskFieldValue added header parameter `x-integration-name`
* TaskField.RetrieveAllTaskFieldValues added header parameter `x-integration-name`
* TaskFile.UploadTaskFile added header parameter `x-integration-name`
* TaskStatus.RetrieveTaskStatuses added header parameter `x-integration-name`
* TaskStatus.CreateTaskStatus added header parameter `x-integration-name`
* TaskStatus.UpdateTaskStatus added header parameter `x-integration-name`
* TaskStatus.DeleteTaskStatus added header parameter `x-integration-name`
* TaskTag.ReplaceTaskTags added header parameter `x-integration-name`
* TaskTag.AddTaskTagtoTask added header parameter `x-integration-name`
* TaskTag.RemoveTaskTagfromTask added header parameter `x-integration-name`
* Timesheet.Createtimeentry added header parameter `x-integration-name`
* Timesheet.QueryTimeSheets added header parameter `x-integration-name`
* Timesheet.Deletetimeentry added header parameter `x-integration-name`
* Timesheet.Updatetimeentry added header parameter `x-integration-name`
* Timesheet.Returnsactiveadmintasksthatareusedtoreporttime added header parameter `x-integration-name`
* UserRole.RetrieveUserRoles added header parameter `x-integration-name`
* WorkSpace.RetrieveWorkspaces added header parameter `x-integration-name`
* WorkSpace.InvitetoWorkspace added header parameter `x-integration-name`

Deprecated 2 old APIs:
* Integration.AddIntegrationInstance
Expand Down
12 changes: 4 additions & 8 deletions src/Clients/ApiKeyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ public ApiKeyClient(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.
///
/// </summary>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
/// <param name="body">Options for the API key to create</param>
public async Task<AstroResult<ApiKeyDto>> CreateApiKey(ApiKeyCreateDto body, string xintegrationname = null)
public async Task<AstroResult<ApiKeyDto>> CreateApiKey(ApiKeyCreateDto body)
{
var url = $"/api/data/api-keys";
return await _client.Request<ApiKeyDto>(HttpMethod.Post, url, null, body, null);
Expand All @@ -62,8 +61,7 @@ public async Task<AstroResult<ApiKeyDto>> CreateApiKey(ApiKeyCreateDto body, str
/// 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&#39;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.
///
/// </summary>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<ApiKeyDto[]>> ListApiKeys(string xintegrationname = null)
public async Task<AstroResult<ApiKeyDto[]>> ListApiKeys()
{
var url = $"/api/data/api-keys";
return await _client.Request<ApiKeyDto[]>(HttpMethod.Get, url, null, null, null);
Expand All @@ -77,8 +75,7 @@ public async Task<AstroResult<ApiKeyDto[]>> ListApiKeys(string xintegrationname
/// 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&#39;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.
///
/// </summary>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<string>> RevokeAllApiKeys(string xintegrationname = null)
public async Task<AstroResult<string>> RevokeAllApiKeys()
{
var url = $"/api/data/api-keys/revoke-all";
return await _client.Request<string>(HttpMethod.Delete, url, null, null, null);
Expand All @@ -93,8 +90,7 @@ public async Task<AstroResult<string>> RevokeAllApiKeys(string xintegrationname
///
/// </summary>
/// <param name="id">The unique identifier of the API key to revoke</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<string>> RevokeAPIKey(Guid id, string xintegrationname = null)
public async Task<AstroResult<string>> RevokeAPIKey(Guid id)
{
var url = $"/api/data/api-keys/{id}/revoke";
return await _client.Request<string>(HttpMethod.Delete, url, null, null, null);
Expand Down
6 changes: 2 additions & 4 deletions src/Clients/ChangesetClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public ChangesetClient(ProjectManagerClient client)
///
/// </summary>
/// <param name="changeSetId">The unique ID number of the Changeset to retrieve</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<ChangesetGetResponseDto>> RetrieveChangeset(Guid changeSetId, string xintegrationname = null)
public async Task<AstroResult<ChangesetGetResponseDto>> RetrieveChangeset(Guid changeSetId)
{
var url = $"/api/data/changesets/{changeSetId}";
return await _client.Request<ChangesetGetResponseDto>(HttpMethod.Get, url, null, null, null);
Expand All @@ -65,8 +64,7 @@ public async Task<AstroResult<ChangesetGetResponseDto>> RetrieveChangeset(Guid c
///
/// </summary>
/// <param name="changeSetId">The unique ID number of the Changeset to retrieve</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<ChangesetGetResponseDto>> RetrieveCompletedChangeset(Guid changeSetId, string xintegrationname = null)
public async Task<AstroResult<ChangesetGetResponseDto>> RetrieveCompletedChangeset(Guid changeSetId)
{
var url = $"/api/data/changesets/{changeSetId}/poll";
return await _client.Request<ChangesetGetResponseDto>(HttpMethod.Get, url, null, null, null);
Expand Down
6 changes: 2 additions & 4 deletions src/Clients/DashboardClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public DashboardClient(ProjectManagerClient client)
///
/// </summary>
/// <param name="type">The dashboard type that is not custom. For a list of values, see `DashboardTypeValues`.</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<DashboardSettingDto>> RetrieveDashboardUserSettings(string type, string xintegrationname = null)
public async Task<AstroResult<DashboardSettingDto>> RetrieveDashboardUserSettings(string type)
{
var url = $"/api/data/dashboards/settings/{type}";
return await _client.Request<DashboardSettingDto>(HttpMethod.Get, url, null, null, null);
Expand All @@ -54,9 +53,8 @@ public async Task<AstroResult<DashboardSettingDto>> RetrieveDashboardUserSetting
/// Create or Update User Dashboard Settings
///
/// </summary>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
/// <param name="body">User dashboard settings object</param>
public async Task<AstroResult<DashboardSettingDto>> CreateorUpdateUserDashboardSettings(DashboardSettingCreateDto body, string xintegrationname = null)
public async Task<AstroResult<DashboardSettingDto>> CreateorUpdateUserDashboardSettings(DashboardSettingCreateDto body)
{
var url = $"/api/data/dashboards/settings";
return await _client.Request<DashboardSettingDto>(HttpMethod.Post, url, null, body, null);
Expand Down
6 changes: 2 additions & 4 deletions src/Clients/DiscussionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public DiscussionClient(ProjectManagerClient client)
///
/// </summary>
/// <param name="taskId">The unique ID number of the task to retrieve comments</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<DiscussionDto[]>> RetrieveTaskComments(Guid taskId, string xintegrationname = null)
public async Task<AstroResult<DiscussionDto[]>> RetrieveTaskComments(Guid taskId)
{
var url = $"/api/data/tasks/{taskId}/discussions";
return await _client.Request<DiscussionDto[]>(HttpMethod.Get, url, null, null, null);
Expand All @@ -57,9 +56,8 @@ public async Task<AstroResult<DiscussionDto[]>> RetrieveTaskComments(Guid taskId
///
/// </summary>
/// <param name="taskId">The unique ID number of the task being commented upon</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
/// <param name="body">The Markdown-formatted text of the comment</param>
public async Task<AstroResult<DiscussionCreateResponseDto>> CreateTaskComments(Guid taskId, DiscussionCreateDto body, string xintegrationname = null)
public async Task<AstroResult<DiscussionCreateResponseDto>> CreateTaskComments(Guid taskId, DiscussionCreateDto body)
{
var url = $"/api/data/tasks/{taskId}/discussions";
return await _client.Request<DiscussionCreateResponseDto>(HttpMethod.Post, url, null, body, null);
Expand Down
6 changes: 2 additions & 4 deletions src/Clients/FileClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public FileClient(ProjectManagerClient client)
/// </summary>
/// <param name="documentId">The unique identifier of the document to download</param>
/// <param name="type">If you specify a type of `html`, processes the file using text encoding, otherwise binary</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
public async Task<AstroResult<string>> DownloadFile(Guid documentId, string type = null, string xintegrationname = null)
public async Task<AstroResult<string>> DownloadFile(Guid documentId, string type = null)
{
var url = $"/api/data/files/{documentId}/download";
var options = new Dictionary<string, object>();
Expand All @@ -66,9 +65,8 @@ public async Task<AstroResult<string>> DownloadFile(Guid documentId, string type
///
/// </summary>
/// <param name="fileId">The unique identifier of the File to update</param>
/// <param name="xintegrationname">The name of the calling system passed along as a header parameter</param>
/// <param name="body">Information to change about the File and its location</param>
public async Task<AstroResult<string>> UpdateFile(Guid fileId, UpdateRequestDto body, string xintegrationname = null)
public async Task<AstroResult<string>> UpdateFile(Guid fileId, UpdateRequestDto body)
{
var url = $"/api/data/files/{fileId}";
return await _client.Request<string>(HttpMethod.Put, url, null, body, null);
Expand Down
Loading

0 comments on commit bf64377

Please sign in to comment.