From 4d7656030a01e78d702ff81eaf7f3f68949cdb01 Mon Sep 17 00:00:00 2001 From: Ross Grambo Date: Fri, 17 Apr 2020 13:34:18 -0700 Subject: [PATCH] Fixed some comments in gen-ed files --- src/main/java/com/asana/Client.java | 2 +- .../asana/resources/gen/AttachmentsBase.java | 6 +- .../com/asana/resources/gen/BatchApiBase.java | 2 +- .../gen/CustomFieldSettingsBase.java | 4 +- .../asana/resources/gen/CustomFieldsBase.java | 16 ++--- .../com/asana/resources/gen/EventsBase.java | 2 +- .../com/asana/resources/gen/JobsBase.java | 2 +- .../gen/OrganizationExportsBase.java | 4 +- .../gen/PortfolioMembershipsBase.java | 6 +- .../asana/resources/gen/PortfoliosBase.java | 24 ++++---- .../resources/gen/ProjectMembershipsBase.java | 4 +- .../resources/gen/ProjectStatusesBase.java | 8 +-- .../com/asana/resources/gen/ProjectsBase.java | 36 ++++++------ .../com/asana/resources/gen/SectionsBase.java | 14 ++--- .../com/asana/resources/gen/StoriesBase.java | 10 ++-- .../com/asana/resources/gen/TagsBase.java | 24 ++++---- .../com/asana/resources/gen/TasksBase.java | 58 +++++++++---------- .../resources/gen/TeamMembershipsBase.java | 8 +-- .../com/asana/resources/gen/TeamsBase.java | 10 ++-- .../asana/resources/gen/TypeaheadBase.java | 2 +- .../resources/gen/UserTaskListsBase.java | 4 +- .../com/asana/resources/gen/UsersBase.java | 10 ++-- .../com/asana/resources/gen/WebhooksBase.java | 10 ++-- .../gen/WorkspaceMembershipsBase.java | 6 +- .../asana/resources/gen/WorkspacesBase.java | 10 ++-- swagger_templates/api.mustache | 2 +- 26 files changed, 141 insertions(+), 143 deletions(-) diff --git a/src/main/java/com/asana/Client.java b/src/main/java/com/asana/Client.java index 1c40fef..56c667c 100644 --- a/src/main/java/com/asana/Client.java +++ b/src/main/java/com/asana/Client.java @@ -136,7 +136,7 @@ public Client(Dispatcher dispatcher, Map options, Map + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteAttachment(String attachmentGid, List optFields, Boolean optPretty) throws IOException { @@ -47,7 +47,7 @@ public ItemRequest deleteAttachment(String attachmentGid) throws IO * @param attachmentGid Globally unique identifier for the attachment. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Attachment) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getAttachment(String attachmentGid, List optFields, Boolean optPretty) throws IOException { @@ -71,7 +71,7 @@ public ItemRequest getAttachment(String attachmentGid) throws IOExce * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Attachment) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getAttachmentsForTask(String taskGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/BatchApiBase.java b/src/main/java/com/asana/resources/gen/BatchApiBase.java index 30f1eb0..f674d3e 100644 --- a/src/main/java/com/asana/resources/gen/BatchApiBase.java +++ b/src/main/java/com/asana/resources/gen/BatchApiBase.java @@ -23,7 +23,7 @@ public class BatchApiBase extends Resource { * Make multiple requests in parallel to Asana's API. * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest createBatchRequest(List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/CustomFieldSettingsBase.java b/src/main/java/com/asana/resources/gen/CustomFieldSettingsBase.java index 9bc4652..7104415 100644 --- a/src/main/java/com/asana/resources/gen/CustomFieldSettingsBase.java +++ b/src/main/java/com/asana/resources/gen/CustomFieldSettingsBase.java @@ -26,7 +26,7 @@ public class CustomFieldSettingsBase extends Resource { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(CustomFieldSetting) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getCustomFieldSettingsForPortfolio(String portfolioGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -52,7 +52,7 @@ public CollectionRequest getCustomFieldSettingsForPortfolio( * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(CustomFieldSetting) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getCustomFieldSettingsForProject(String projectGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/CustomFieldsBase.java b/src/main/java/com/asana/resources/gen/CustomFieldsBase.java index 44d7b3f..874ad43 100644 --- a/src/main/java/com/asana/resources/gen/CustomFieldsBase.java +++ b/src/main/java/com/asana/resources/gen/CustomFieldsBase.java @@ -25,7 +25,7 @@ public class CustomFieldsBase extends Resource { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(CustomField) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createCustomField(String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -51,7 +51,7 @@ public ItemRequest createCustomField() throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createEnumOptionForCustomField(String customFieldGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -75,7 +75,7 @@ public ItemRequest createEnumOptionForCustomField(String customFiel * @param customFieldGid Globally unique identifier for the custom field. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteCustomField(String customFieldGid, List optFields, Boolean optPretty) throws IOException { @@ -97,7 +97,7 @@ public ItemRequest deleteCustomField(String customFieldGid) throws * @param customFieldGid Globally unique identifier for the custom field. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(CustomField) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getCustomField(String customFieldGid, List optFields, Boolean optPretty) throws IOException { @@ -121,7 +121,7 @@ public ItemRequest getCustomField(String customFieldGid) throws IOE * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(CustomField) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getCustomFieldsForWorkspace(String workspaceGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -145,7 +145,7 @@ public CollectionRequest getCustomFieldsForWorkspace(String workspa * @param customFieldGid Globally unique identifier for the custom field. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest insertEnumOptionForCustomField(String customFieldGid, List optFields, Boolean optPretty) throws IOException { @@ -167,7 +167,7 @@ public ItemRequest insertEnumOptionForCustomField(String customFiel * @param customFieldGid Globally unique identifier for the custom field. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(CustomField) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updateCustomField(String customFieldGid, List optFields, Boolean optPretty) throws IOException { @@ -189,7 +189,7 @@ public ItemRequest updateCustomField(String customFieldGid) throws * @param enumOptionGid Globally unique identifier for the enum option. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updateEnumOption(String enumOptionGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/EventsBase.java b/src/main/java/com/asana/resources/gen/EventsBase.java index f732a75..3514019 100644 --- a/src/main/java/com/asana/resources/gen/EventsBase.java +++ b/src/main/java/com/asana/resources/gen/EventsBase.java @@ -25,7 +25,7 @@ public class EventsBase extends Resource { * @param resource A resource ID to subscribe to. The resource can be a task or project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getEvents(String sync, String resource, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/JobsBase.java b/src/main/java/com/asana/resources/gen/JobsBase.java index 9bb5513..9ef2af1 100644 --- a/src/main/java/com/asana/resources/gen/JobsBase.java +++ b/src/main/java/com/asana/resources/gen/JobsBase.java @@ -24,7 +24,7 @@ public class JobsBase extends Resource { * @param jobGid Globally unique identifier for the job. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Job) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getJob(String jobGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/OrganizationExportsBase.java b/src/main/java/com/asana/resources/gen/OrganizationExportsBase.java index 61d1683..4e78997 100644 --- a/src/main/java/com/asana/resources/gen/OrganizationExportsBase.java +++ b/src/main/java/com/asana/resources/gen/OrganizationExportsBase.java @@ -25,7 +25,7 @@ public class OrganizationExportsBase extends Resource { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(OrganizationExport) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createOrganizationExport(String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -49,7 +49,7 @@ public ItemRequest createOrganizationExport() throws IOExcep * @param organizationExportGid Globally unique identifier for the organization export. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(OrganizationExport) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getOrganizationExport(String organizationExportGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/PortfolioMembershipsBase.java b/src/main/java/com/asana/resources/gen/PortfolioMembershipsBase.java index 89d3c32..f33fc6a 100644 --- a/src/main/java/com/asana/resources/gen/PortfolioMembershipsBase.java +++ b/src/main/java/com/asana/resources/gen/PortfolioMembershipsBase.java @@ -24,7 +24,7 @@ public class PortfolioMembershipsBase extends Resource { * @param portfolioMembershipGid (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(PortfolioMembership) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getPortfolioMembership(String portfolioMembershipGid, List optFields, Boolean optPretty) throws IOException { @@ -50,7 +50,7 @@ public ItemRequest getPortfolioMembership(String portfolioM * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(PortfolioMembership) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getPortfolioMemberships(String user, String workspace, String portfolio, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -80,7 +80,7 @@ public CollectionRequest getPortfolioMemberships(String use * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(PortfolioMembership) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getPortfolioMembershipsForPortfolio(String portfolioGid, String user, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/PortfoliosBase.java b/src/main/java/com/asana/resources/gen/PortfoliosBase.java index 66349bf..ee44c6b 100644 --- a/src/main/java/com/asana/resources/gen/PortfoliosBase.java +++ b/src/main/java/com/asana/resources/gen/PortfoliosBase.java @@ -23,7 +23,7 @@ public class PortfoliosBase extends Resource { * Custom fields are associated with portfolios by way of custom field settings. This method creates a setting for the portfolio. * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addCustomFieldSettingForPortfolio(String portfolioGid, Boolean optPretty) throws IOException { @@ -44,7 +44,7 @@ public ItemRequest addCustomFieldSettingForPortfolio(String portfol * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addItemForPortfolio(String portfolioGid, List optFields, Boolean optPretty) throws IOException { @@ -66,7 +66,7 @@ public ItemRequest addItemForPortfolio(String portfolioGid) throws * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addMembersForPortfolio(String portfolioGid, List optFields, Boolean optPretty) throws IOException { @@ -87,7 +87,7 @@ public ItemRequest addMembersForPortfolio(String portfolioGid) thro * Creates a new portfolio in the given workspace with the supplied name. Note that portfolios created in the Asana UI may have some state (like the “Priority” custom field) which is automatically added to the portfolio when it is created. Portfolios created via our API will *not* be created with the same initial state to allow integrations to create their own starting state on a portfolio. * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Portfolio) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createPortfolio(List optFields, Boolean optPretty) throws IOException { @@ -109,7 +109,7 @@ public ItemRequest createPortfolio() throws IOException { * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deletePortfolio(String portfolioGid, List optFields, Boolean optPretty) throws IOException { @@ -133,7 +133,7 @@ public ItemRequest deletePortfolio(String portfolioGid) throws IOEx * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getItemsForPortfolio(String portfolioGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -157,7 +157,7 @@ public CollectionRequest getItemsForPortfolio(String portfolioGid) thro * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Portfolio) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getPortfolio(String portfolioGid, List optFields, Boolean optPretty) throws IOException { @@ -182,7 +182,7 @@ public ItemRequest getPortfolio(String portfolioGid) throws IOExcepti * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Portfolio) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getPortfolios(String owner, String workspace, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -207,7 +207,7 @@ public CollectionRequest getPortfolios(String owner, String workspace * Removes a custom field setting from a portfolio. * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeCustomFieldSettingForPortfolio(String portfolioGid, Boolean optPretty) throws IOException { @@ -228,7 +228,7 @@ public ItemRequest removeCustomFieldSettingForPortfolio(String port * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeItemForPortfolio(String portfolioGid, List optFields, Boolean optPretty) throws IOException { @@ -250,7 +250,7 @@ public ItemRequest removeItemForPortfolio(String portfolioGid) thro * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeMembersForPortfolio(String portfolioGid, List optFields, Boolean optPretty) throws IOException { @@ -272,7 +272,7 @@ public ItemRequest removeMembersForPortfolio(String portfolioGid) t * @param portfolioGid Globally unique identifier for the portfolio. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Portfolio) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updatePortfolio(String portfolioGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/ProjectMembershipsBase.java b/src/main/java/com/asana/resources/gen/ProjectMembershipsBase.java index 8a6d793..1bf7bd6 100644 --- a/src/main/java/com/asana/resources/gen/ProjectMembershipsBase.java +++ b/src/main/java/com/asana/resources/gen/ProjectMembershipsBase.java @@ -24,7 +24,7 @@ public class ProjectMembershipsBase extends Resource { * @param projectMembershipGid (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(ProjectMembership) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getProjectMembership(String projectMembershipGid, List optFields, Boolean optPretty) throws IOException { @@ -49,7 +49,7 @@ public ItemRequest getProjectMembership(String projectMembers * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(ProjectMembership) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getProjectMembershipsForProject(String projectGid, String user, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/ProjectStatusesBase.java b/src/main/java/com/asana/resources/gen/ProjectStatusesBase.java index 34de7a4..3ba38d1 100644 --- a/src/main/java/com/asana/resources/gen/ProjectStatusesBase.java +++ b/src/main/java/com/asana/resources/gen/ProjectStatusesBase.java @@ -24,7 +24,7 @@ public class ProjectStatusesBase extends Resource { * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(ProjectStatus) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createProjectStatusForProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -46,7 +46,7 @@ public ItemRequest createProjectStatusForProject(String projectGi * @param projectStatusGid The project status update to get. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteProjectStatus(String projectStatusGid, List optFields, Boolean optPretty) throws IOException { @@ -68,7 +68,7 @@ public ItemRequest deleteProjectStatus(String projectStatusGid) thr * @param projectStatusGid The project status update to get. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(ProjectStatus) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getProjectStatus(String projectStatusGid, List optFields, Boolean optPretty) throws IOException { @@ -92,7 +92,7 @@ public ItemRequest getProjectStatus(String projectStatusGid) thro * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(ProjectStatus) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getProjectStatusesForProject(String projectGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/ProjectsBase.java b/src/main/java/com/asana/resources/gen/ProjectsBase.java index d0aa7b4..d6ad20d 100644 --- a/src/main/java/com/asana/resources/gen/ProjectsBase.java +++ b/src/main/java/com/asana/resources/gen/ProjectsBase.java @@ -23,7 +23,7 @@ public class ProjectsBase extends Resource { * Custom fields are associated with projects by way of custom field settings. This method creates a setting for the project. * @param projectGid Globally unique identifier for the project. (required) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addCustomFieldSettingForProject(String projectGid, Boolean optPretty) throws IOException { @@ -44,7 +44,7 @@ public ItemRequest addCustomFieldSettingForProject(String projectGi * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addFollowersForProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -66,7 +66,7 @@ public ItemRequest addFollowersForProject(String projectGid) throws * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addMembersForProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -87,7 +87,7 @@ public ItemRequest addMembersForProject(String projectGid) throws I * Create a new project in a workspace or team. Every project is required to be created in a specific workspace or organization, and this cannot be changed once set. Note that you can use the `workspace` parameter regardless of whether or not it is an organization. If the workspace for your project is an organization, you must also supply a `team` to share the project with. Returns the full record of the newly created project. * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createProject(List optFields, Boolean optPretty) throws IOException { @@ -109,7 +109,7 @@ public ItemRequest createProject() throws IOException { * @param teamGid Globally unique identifier for the team. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createProjectForTeam(String teamGid, List optFields, Boolean optPretty) throws IOException { @@ -131,7 +131,7 @@ public ItemRequest createProjectForTeam(String teamGid) throws IOExcept * @param workspaceGid Globally unique identifier for the workspace or organization. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createProjectForWorkspace(String workspaceGid, List optFields, Boolean optPretty) throws IOException { @@ -153,7 +153,7 @@ public ItemRequest createProjectForWorkspace(String workspaceGid) throw * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -175,7 +175,7 @@ public ItemRequest deleteProject(String projectGid) throws IOExcept * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Job) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest duplicateProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -197,7 +197,7 @@ public ItemRequest duplicateProject(String projectGid) throws IOException { * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -223,7 +223,7 @@ public ItemRequest getProject(String projectGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getProjects(Boolean archived, String team, String workspace, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -252,7 +252,7 @@ public CollectionRequest getProjects(Boolean archived, String team, Str * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getProjectsForTask(String taskGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -279,7 +279,7 @@ public CollectionRequest getProjectsForTask(String taskGid) throws IOEx * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getProjectsForTeam(String teamGid, Boolean archived, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -307,7 +307,7 @@ public CollectionRequest getProjectsForTeam(String teamGid, Boolean arc * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getProjectsForWorkspace(String workspaceGid, Boolean archived, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -334,7 +334,7 @@ public CollectionRequest getProjectsForWorkspace(String workspaceGid, B * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getTaskCountsForProject(String projectGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -357,7 +357,7 @@ public ItemRequest getTaskCountsForProject(String projectGid) throw * Removes a custom field setting from a project. * @param projectGid Globally unique identifier for the project. (required) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeCustomFieldSettingForProject(String projectGid, Boolean optPretty) throws IOException { @@ -378,7 +378,7 @@ public ItemRequest removeCustomFieldSettingForProject(String projec * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeFollowersForProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -400,7 +400,7 @@ public ItemRequest removeFollowersForProject(String projectGid) thr * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeMembersForProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -422,7 +422,7 @@ public ItemRequest removeMembersForProject(String projectGid) throw * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Project) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updateProject(String projectGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/SectionsBase.java b/src/main/java/com/asana/resources/gen/SectionsBase.java index 51597e2..39a5a61 100644 --- a/src/main/java/com/asana/resources/gen/SectionsBase.java +++ b/src/main/java/com/asana/resources/gen/SectionsBase.java @@ -24,7 +24,7 @@ public class SectionsBase extends Resource { * @param sectionGid The globally unique identifier for the section. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addTaskForSection(String sectionGid, List optFields, Boolean optPretty) throws IOException { @@ -46,7 +46,7 @@ public ItemRequest addTaskForSection(String sectionGid) throws IOEx * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest
+ * @return ItemRequest(Section) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest
createSectionForProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -68,7 +68,7 @@ public ItemRequest
createSectionForProject(String projectGid) throws IO * @param sectionGid The globally unique identifier for the section. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteSection(String sectionGid, List optFields, Boolean optPretty) throws IOException { @@ -90,7 +90,7 @@ public ItemRequest deleteSection(String sectionGid) throws IOExcept * @param sectionGid The globally unique identifier for the section. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest
+ * @return ItemRequest(Section) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest
getSection(String sectionGid, List optFields, Boolean optPretty) throws IOException { @@ -114,7 +114,7 @@ public ItemRequest
getSection(String sectionGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest
+ * @return CollectionRequest(Section) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest
getSectionsForProject(String projectGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -138,7 +138,7 @@ public CollectionRequest
getSectionsForProject(String projectGid) throw * @param projectGid Globally unique identifier for the project. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest insertSectionForProject(String projectGid, List optFields, Boolean optPretty) throws IOException { @@ -160,7 +160,7 @@ public ItemRequest insertSectionForProject(String projectGid) throw * @param sectionGid The globally unique identifier for the section. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest
+ * @return ItemRequest(Section) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest
updateSection(String sectionGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/StoriesBase.java b/src/main/java/com/asana/resources/gen/StoriesBase.java index 4f87769..b00d31c 100644 --- a/src/main/java/com/asana/resources/gen/StoriesBase.java +++ b/src/main/java/com/asana/resources/gen/StoriesBase.java @@ -24,7 +24,7 @@ public class StoriesBase extends Resource { * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Story) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createStoryForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -46,7 +46,7 @@ public ItemRequest createStoryForTask(String taskGid) throws IOException * @param storyGid Globally unique identifier for the story. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteStory(String storyGid, List optFields, Boolean optPretty) throws IOException { @@ -70,7 +70,7 @@ public ItemRequest deleteStory(String storyGid) throws IOException * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Story) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getStoriesForTask(String taskGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -96,7 +96,7 @@ public CollectionRequest getStoriesForTask(String taskGid) throws IOExcep * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Story) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getStory(String storyGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -120,7 +120,7 @@ public ItemRequest getStory(String storyGid) throws IOException { * @param storyGid Globally unique identifier for the story. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Story) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updateStory(String storyGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/TagsBase.java b/src/main/java/com/asana/resources/gen/TagsBase.java index dc80518..7dd0518 100644 --- a/src/main/java/com/asana/resources/gen/TagsBase.java +++ b/src/main/java/com/asana/resources/gen/TagsBase.java @@ -23,7 +23,7 @@ public class TagsBase extends Resource { * Creates a new tag in a workspace or organization. Every tag is required to be created in a specific workspace or organization, and this cannot be changed once set. Note that you can use the workspace parameter regardless of whether or not it is an organization. Returns the full record of the newly created tag. * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Tag) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createTag(List optFields, Boolean optPretty) throws IOException { @@ -45,7 +45,7 @@ public ItemRequest createTag() throws IOException { * @param workspaceGid Globally unique identifier for the workspace or organization. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Tag) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createTagForWorkspace(String workspaceGid, List optFields, Boolean optPretty) throws IOException { @@ -69,7 +69,7 @@ public ItemRequest createTagForWorkspace(String workspaceGid) throws IOExce * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Tag) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getTag(String tagGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -90,16 +90,15 @@ public ItemRequest getTag(String tagGid) throws IOException { /** * Get multiple tags * Returns the compact tag records for some filtered set of tags. Use one or more of the parameters provided to filter the tags returned. - * @param archived Only return tags whose `archived` field takes on the value of this parameter. (optional) * @param workspace The workspace to filter tags on. (optional) * @param offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.' (optional) * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Tag) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ - public CollectionRequest getTags(Boolean archived, String workspace, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { + public CollectionRequest getTags(String workspace, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { String path = "/tags"; CollectionRequest req = new CollectionRequest(this, Tag.class, path, "GET") @@ -107,14 +106,13 @@ public CollectionRequest getTags(Boolean archived, String workspace, String .query("opt_fields", optFields) .query("limit", limit) .query("offset", offset) - .query("workspace", workspace) - .query("archived", archived); + .query("workspace", workspace); return req; } - public CollectionRequest getTags(Boolean archived, String workspace) throws IOException { - return getTags(archived, workspace, null, (int)Client.DEFAULTS.get("page_size"), null, false); + public CollectionRequest getTags(String workspace) throws IOException { + return getTags(workspace, null, (int)Client.DEFAULTS.get("page_size"), null, false); } /** * Get a task's tags @@ -124,7 +122,7 @@ public CollectionRequest getTags(Boolean archived, String workspace) throws * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Tag) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTagsForTask(String taskGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -150,7 +148,7 @@ public CollectionRequest getTagsForTask(String taskGid) throws IOException * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Tag) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTagsForWorkspace(String workspaceGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -176,7 +174,7 @@ public CollectionRequest getTagsForWorkspace(String workspaceGid) throws IO * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Tag) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updateTag(String tagGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/TasksBase.java b/src/main/java/com/asana/resources/gen/TasksBase.java index 199f409..48bb5f9 100644 --- a/src/main/java/com/asana/resources/gen/TasksBase.java +++ b/src/main/java/com/asana/resources/gen/TasksBase.java @@ -24,20 +24,20 @@ public class TasksBase extends Resource { * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ - public CollectionRequest addDependenciesForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { + public ItemRequest addDependenciesForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { String path = "/tasks/{task_gid}/addDependencies".replace("{task_gid}", taskGid); - CollectionRequest req = new CollectionRequest(this, Task.class, path, "POST") + ItemRequest req = new ItemRequest(this, JsonElement.class, path, "POST") .query("opt_pretty", optPretty) .query("opt_fields", optFields); return req; } - public CollectionRequest addDependenciesForTask(String taskGid) throws IOException { + public ItemRequest addDependenciesForTask(String taskGid) throws IOException { return addDependenciesForTask(taskGid, null, false); } /** @@ -46,7 +46,7 @@ public CollectionRequest addDependenciesForTask(String taskGid) throws IOE * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest addDependentsForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -68,7 +68,7 @@ public CollectionRequest addDependentsForTask(String taskGid) throws IOExc * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addFollowersForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -90,7 +90,7 @@ public ItemRequest addFollowersForTask(String taskGid) throws IOExc * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addProjectForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -112,7 +112,7 @@ public ItemRequest addProjectForTask(String taskGid) throws IOExcep * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addTagForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -134,7 +134,7 @@ public ItemRequest addTagForTask(String taskGid) throws IOException * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createSubtaskForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -155,7 +155,7 @@ public ItemRequest createSubtaskForTask(String taskGid) throws IOException * Creating a new task is as easy as POSTing to the `/tasks` endpoint with a data block containing the fields you’d like to set on the task. Any unspecified fields will take on default values. Every task is required to be created in a specific workspace, and this workspace cannot be changed once set. The workspace need not be set explicitly if you specify `projects` or a `parent` task instead. * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createTask(List optFields, Boolean optPretty) throws IOException { @@ -177,7 +177,7 @@ public ItemRequest createTask() throws IOException { * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -199,7 +199,7 @@ public ItemRequest deleteTask(String taskGid) throws IOException { * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Job) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest duplicateTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -223,7 +223,7 @@ public ItemRequest duplicateTask(String taskGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getDependenciesForTask(String taskGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -249,7 +249,7 @@ public CollectionRequest getDependenciesForTask(String taskGid) throws IOE * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getDependentsForTask(String taskGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -275,7 +275,7 @@ public CollectionRequest getDependentsForTask(String taskGid) throws IOExc * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getSubtasksForTask(String taskGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -299,7 +299,7 @@ public CollectionRequest getSubtasksForTask(String taskGid) throws IOExcep * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -328,7 +328,7 @@ public ItemRequest getTask(String taskGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTasks(OffsetDateTime modifiedSince, OffsetDateTime completedSince, String workspace, String section, String project, String assignee, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -360,7 +360,7 @@ public CollectionRequest getTasks(OffsetDateTime modifiedSince, OffsetDate * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTasksForProject(String projectGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -386,7 +386,7 @@ public CollectionRequest getTasksForProject(String projectGid) throws IOEx * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTasksForSection(String sectionGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -412,7 +412,7 @@ public CollectionRequest getTasksForSection(String sectionGid) throws IOEx * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTasksForTag(String tagGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -439,7 +439,7 @@ public CollectionRequest getTasksForTag(String tagGid) throws IOException * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTasksForUserTaskList(String userTaskListGid, String completedSince, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -464,7 +464,7 @@ public CollectionRequest getTasksForUserTaskList(String userTaskListGid, S * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest removeDependenciesForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -486,7 +486,7 @@ public CollectionRequest removeDependenciesForTask(String taskGid) * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest removeDependentsForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -508,7 +508,7 @@ public CollectionRequest removeDependentsForTask(String taskGid) th * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeFollowerForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -530,7 +530,7 @@ public ItemRequest removeFollowerForTask(String taskGid) throws IOE * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeProjectForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -552,7 +552,7 @@ public ItemRequest removeProjectForTask(String taskGid) throws IOEx * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeTagForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -629,7 +629,7 @@ public ItemRequest removeTagForTask(String taskGid) throws IOExcept * @param text Performs full-text search on both task name and description (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest searchTasksForWorkspace(String workspaceGid, Boolean sortAscending, String sortBy, Boolean isSubtask, Boolean completed, Boolean hasAttachment, Boolean isBlocked, Boolean isBlocking, OffsetDateTime modifiedAtAfter, OffsetDateTime modifiedAtBefore, LocalDate dueOnBefore, LocalDate modifiedOn, LocalDate modifiedOnAfter, LocalDate modifiedOnBefore, OffsetDateTime completedAtAfter, OffsetDateTime completedAtBefore, LocalDate completedOn, LocalDate completedOnAfter, LocalDate completedOnBefore, OffsetDateTime createdAtAfter, String commentedOnByNot, OffsetDateTime createdAtBefore, LocalDate createdOn, LocalDate createdOnAfter, LocalDate createdOnBefore, LocalDate startOn, LocalDate startOnAfter, LocalDate startOnBefore, OffsetDateTime dueAtAfter, OffsetDateTime dueAtBefore, LocalDate dueOn, String commentedOnByAny, LocalDate dueOnAfter, String likedByNot, String likedByAny, String assignedByNot, String assignedByAny, String createdByNot, String createdByAny, String followersNot, String followersAny, String teamsAny, String tagsAll, String tagsNot, String tagsAny, String sectionsAll, String sectionsNot, String sectionsAny, String projectsAll, String projectsNot, String projectsAny, String assigneeStatus, String assigneeNot, String assigneeAny, String resourceSubtype, String text, List optFields, Boolean optPretty) throws IOException { @@ -706,7 +706,7 @@ public CollectionRequest searchTasksForWorkspace(String workspaceGid, Bool * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest setParentForTask(String taskGid, List optFields, Boolean optPretty) throws IOException { @@ -728,7 +728,7 @@ public ItemRequest setParentForTask(String taskGid) throws IOException { * @param taskGid The task to operate on. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Task) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updateTask(String taskGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/TeamMembershipsBase.java b/src/main/java/com/asana/resources/gen/TeamMembershipsBase.java index dfa2003..0ac8175 100644 --- a/src/main/java/com/asana/resources/gen/TeamMembershipsBase.java +++ b/src/main/java/com/asana/resources/gen/TeamMembershipsBase.java @@ -24,7 +24,7 @@ public class TeamMembershipsBase extends Resource { * @param teamMembershipGid (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getTeamMembership(String teamMembershipGid, List optFields, Boolean optPretty) throws IOException { @@ -50,7 +50,7 @@ public ItemRequest getTeamMembership(String teamMembershipGid) thro * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTeamMemberships(String workspace, String user, String team, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -79,7 +79,7 @@ public CollectionRequest getTeamMemberships(String workspace, Strin * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTeamMembershipsForTeam(String teamGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -106,7 +106,7 @@ public CollectionRequest getTeamMembershipsForTeam(String teamGid) * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTeamMembershipsForUser(String userGid, String workspace, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/TeamsBase.java b/src/main/java/com/asana/resources/gen/TeamsBase.java index 77a1856..8c66b85 100644 --- a/src/main/java/com/asana/resources/gen/TeamsBase.java +++ b/src/main/java/com/asana/resources/gen/TeamsBase.java @@ -24,7 +24,7 @@ public class TeamsBase extends Resource { * @param teamGid Globally unique identifier for the team. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(User) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addUserForTeam(String teamGid, List optFields, Boolean optPretty) throws IOException { @@ -48,7 +48,7 @@ public ItemRequest addUserForTeam(String teamGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Team) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getTeam(String teamGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -74,7 +74,7 @@ public ItemRequest getTeam(String teamGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Team) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTeamsForOrganization(String workspaceGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -101,7 +101,7 @@ public CollectionRequest getTeamsForOrganization(String workspaceGid) thro * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Team) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getTeamsForUser(String userGid, String organization, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -126,7 +126,7 @@ public CollectionRequest getTeamsForUser(String userGid, String organizati * @param teamGid Globally unique identifier for the team. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeUserForTeam(String teamGid, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/TypeaheadBase.java b/src/main/java/com/asana/resources/gen/TypeaheadBase.java index 23746ff..1449cbf 100644 --- a/src/main/java/com/asana/resources/gen/TypeaheadBase.java +++ b/src/main/java/com/asana/resources/gen/TypeaheadBase.java @@ -28,7 +28,7 @@ public class TypeaheadBase extends Resource { * @param resourceType The type of values the typeahead should return. You can choose from one of the following: `custom_field`, `project`, `portfolio`, `tag`, `task`, and `user`. Note that unlike in the names of endpoints, the types listed here are in singular form (e.g. `task`). Using multiple types is not yet supported. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest typeaheadForWorkspace(String workspaceGid, Integer count, String query, String type, String resourceType, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/UserTaskListsBase.java b/src/main/java/com/asana/resources/gen/UserTaskListsBase.java index bf29522..307995c 100644 --- a/src/main/java/com/asana/resources/gen/UserTaskListsBase.java +++ b/src/main/java/com/asana/resources/gen/UserTaskListsBase.java @@ -24,7 +24,7 @@ public class UserTaskListsBase extends Resource { * @param userTaskListGid Globally unique identifier for the user task list. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(UserTaskList) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getUserTaskList(String userTaskListGid, List optFields, Boolean optPretty) throws IOException { @@ -47,7 +47,7 @@ public ItemRequest getUserTaskList(String userTaskListGid) throws * @param workspace The workspace in which to get the user task list. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(UserTaskList) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getUserTaskListForUser(String userGid, String workspace, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/UsersBase.java b/src/main/java/com/asana/resources/gen/UsersBase.java index 0f0a557..3440cd0 100644 --- a/src/main/java/com/asana/resources/gen/UsersBase.java +++ b/src/main/java/com/asana/resources/gen/UsersBase.java @@ -26,7 +26,7 @@ public class UsersBase extends Resource { * @param resourceType The resource type of favorites to be returned. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getFavoritesForUser(String userGid, String workspace, String resourceType, List optFields, Boolean optPretty) throws IOException { @@ -50,7 +50,7 @@ public CollectionRequest getFavoritesForUser(String userGid, String * @param userGid A string identifying a user. This can either be the string \"me\", an email, or the gid of a user. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(User) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getUser(String userGid, List optFields, Boolean optPretty) throws IOException { @@ -74,7 +74,7 @@ public ItemRequest getUser(String userGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(User) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getUsers(String workspace, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -101,7 +101,7 @@ public CollectionRequest getUsers(String workspace) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(User) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getUsersForTeam(String teamGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -127,7 +127,7 @@ public CollectionRequest getUsersForTeam(String teamGid) throws IOExceptio * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(User) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getUsersForWorkspace(String workspaceGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/WebhooksBase.java b/src/main/java/com/asana/resources/gen/WebhooksBase.java index c7dd5d9..ba6cb62 100644 --- a/src/main/java/com/asana/resources/gen/WebhooksBase.java +++ b/src/main/java/com/asana/resources/gen/WebhooksBase.java @@ -20,10 +20,10 @@ public class WebhooksBase extends Resource { /** * Establish a webhook - * Establishing a webhook is a two-part process. First, a simple HTTP POST similar to any other resource creation. Since you could have multiple webhooks we recommend specifying a unique local id for each target. Next comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an `X-Hook-Secret` header as described in the [Resthooks Security documentation](http://resthooks.org/docs/security/). The target must respond with a `200 OK` and a matching `X-Hook-Secret` header to confirm that this webhook subscription is indeed expected. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight. ``` # Request curl -H \"Authorization: Bearer <personal_access_token>\" \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \"resource=8675309\" \\ -d \"target=https://example.com/receive-webhook/7654\" ``` ``` # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 ``` ``` # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 ``` ``` # Response HTTP/1.1 201 { \"data\": { \"gid\": \"43214\", \"resource\": { \"gid\": \"8675309\", \"name\": \"Bugs\" }, \"target\": \"https://example.com/receive-webhook/7654\", \"active\": false, \"last_success_at\": null, \"last_failure_at\": null, \"last_failure_content\": null } } ``` + * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an `X-Hook-Secret` header. The target must respond with a `200 OK` or `204 No Content` and a matching `X-Hook-Secret` header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). ``` # Request curl -H \"Authorization: Bearer <personal_access_token>\" \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \"resource=8675309\" \\ -d \"target=https://example.com/receive-webhook/7654\" ``` ``` # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 ``` ``` # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 ``` ``` # Response HTTP/1.1 201 { \"data\": { \"gid\": \"43214\", \"resource\": { \"gid\": \"8675309\", \"name\": \"Bugs\" }, \"target\": \"https://example.com/receive-webhook/7654\", \"active\": false, \"last_success_at\": null, \"last_failure_at\": null, \"last_failure_content\": null } } ``` * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Webhook) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest createWebhook(List optFields, Boolean optPretty) throws IOException { @@ -45,7 +45,7 @@ public ItemRequest createWebhook() throws IOException { * @param webhookGid Globally unique identifier for the webhook. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest deleteWebhook(String webhookGid, List optFields, Boolean optPretty) throws IOException { @@ -67,7 +67,7 @@ public ItemRequest deleteWebhook(String webhookGid) throws IOExcept * @param webhookGid Globally unique identifier for the webhook. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Webhook) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getWebhook(String webhookGid, List optFields, Boolean optPretty) throws IOException { @@ -92,7 +92,7 @@ public ItemRequest getWebhook(String webhookGid) throws IOException { * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Webhook) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getWebhooks(String resource, String workspace, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/WorkspaceMembershipsBase.java b/src/main/java/com/asana/resources/gen/WorkspaceMembershipsBase.java index 17eba0f..95ac385 100644 --- a/src/main/java/com/asana/resources/gen/WorkspaceMembershipsBase.java +++ b/src/main/java/com/asana/resources/gen/WorkspaceMembershipsBase.java @@ -24,7 +24,7 @@ public class WorkspaceMembershipsBase extends Resource { * @param workspaceMembershipGid (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getWorkspaceMembership(String workspaceMembershipGid, List optFields, Boolean optPretty) throws IOException { @@ -48,7 +48,7 @@ public ItemRequest getWorkspaceMembership(String workspaceMembershi * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getWorkspaceMembershipsForUser(String userGid, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -75,7 +75,7 @@ public CollectionRequest getWorkspaceMembershipsForUser(String user * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getWorkspaceMembershipsForWorkspace(String workspaceGid, String user, String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { diff --git a/src/main/java/com/asana/resources/gen/WorkspacesBase.java b/src/main/java/com/asana/resources/gen/WorkspacesBase.java index 65f6c95..9fac2a9 100644 --- a/src/main/java/com/asana/resources/gen/WorkspacesBase.java +++ b/src/main/java/com/asana/resources/gen/WorkspacesBase.java @@ -24,7 +24,7 @@ public class WorkspacesBase extends Resource { * @param workspaceGid Globally unique identifier for the workspace or organization. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(User) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest addUserForWorkspace(String workspaceGid, List optFields, Boolean optPretty) throws IOException { @@ -46,7 +46,7 @@ public ItemRequest addUserForWorkspace(String workspaceGid) throws IOExcep * @param workspaceGid Globally unique identifier for the workspace or organization. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Workspace) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest getWorkspace(String workspaceGid, List optFields, Boolean optPretty) throws IOException { @@ -69,7 +69,7 @@ public ItemRequest getWorkspace(String workspaceGid) throws IOExcepti * @param limit Results per page. The number of objects to return per page. The value must be between 1 and 100. (optional) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return CollectionRequest + * @return CollectionRequest(Workspace) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public CollectionRequest getWorkspaces(String offset, Integer limit, List optFields, Boolean optPretty) throws IOException { @@ -93,7 +93,7 @@ public CollectionRequest getWorkspaces() throws IOException { * @param workspaceGid Globally unique identifier for the workspace or organization. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(JsonElement) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest removeUserForWorkspace(String workspaceGid, List optFields, Boolean optPretty) throws IOException { @@ -115,7 +115,7 @@ public ItemRequest removeUserForWorkspace(String workspaceGid) thro * @param workspaceGid Globally unique identifier for the workspace or organization. (required) * @param optFields Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. (optional) * @param optPretty Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. (optional) - * @return ItemRequest + * @return ItemRequest(Workspace) * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body */ public ItemRequest updateWorkspace(String workspaceGid, List optFields, Boolean optPretty) throws IOException { diff --git a/swagger_templates/api.mustache b/swagger_templates/api.mustache index 63ae4be..63ae758 100644 --- a/swagger_templates/api.mustache +++ b/swagger_templates/api.mustache @@ -28,7 +28,7 @@ import java.util.List; * {{summary}} * {{notes}}{{#allParams}} * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{/allParams}} - * @return {{#returnContainer}}{{returnContainer}}<{{/returnContainer}}{{#if (firstClassResponseObject returnType)}}{{firstClassResponseObject returnType}}{{else}}JsonElement{{/if}}{{#returnContainer}}>{{/returnContainer}} + * @return {{#returnContainer}}{{returnContainer}}({{/returnContainer}}{{#if (firstClassResponseObject returnType)}}{{firstClassResponseObject returnType}}{{else}}JsonElement{{/if}}{{#returnContainer}}){{/returnContainer}} * @throws IOException If we fail to call the API, e.g. server error or cannot deserialize the response body {{#externalDocs}} * {{description}}