diff --git a/asana/models/all_of_task_template_response_created_by.py b/asana/models/all_of_task_template_response_created_by.py new file mode 100644 index 00000000..4ce34a34 --- /dev/null +++ b/asana/models/all_of_task_template_response_created_by.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AllOfTaskTemplateResponseCreatedBy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AllOfTaskTemplateResponseCreatedBy - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AllOfTaskTemplateResponseCreatedBy, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AllOfTaskTemplateResponseCreatedBy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/all_of_task_template_response_project.py b/asana/models/all_of_task_template_response_project.py new file mode 100644 index 00000000..ae53b6c6 --- /dev/null +++ b/asana/models/all_of_task_template_response_project.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AllOfTaskTemplateResponseProject(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AllOfTaskTemplateResponseProject - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AllOfTaskTemplateResponseProject, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AllOfTaskTemplateResponseProject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/all_of_task_template_response_template.py b/asana/models/all_of_task_template_response_template.py new file mode 100644 index 00000000..8981e930 --- /dev/null +++ b/asana/models/all_of_task_template_response_template.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AllOfTaskTemplateResponseTemplate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AllOfTaskTemplateResponseTemplate - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AllOfTaskTemplateResponseTemplate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AllOfTaskTemplateResponseTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/project_base_current_status.py b/asana/models/project_base_current_status.py index fb2ee748..9c509562 100644 --- a/asana/models/project_base_current_status.py +++ b/asana/models/project_base_current_status.py @@ -222,7 +222,7 @@ def color(self, color): :param color: The color of this ProjectBaseCurrentStatus. # noqa: E501 :type: str """ - allowed_values = ["green", "yellow", "red", "blue"] # noqa: E501 + allowed_values = ["green", "yellow", "red", "blue", "complete"] # noqa: E501 if color not in allowed_values: raise ValueError( "Invalid value for `color` ({0}), must be one of {1}" # noqa: E501 diff --git a/asana/models/project_status_base.py b/asana/models/project_status_base.py index 3f8a6efb..0e58fb35 100644 --- a/asana/models/project_status_base.py +++ b/asana/models/project_status_base.py @@ -202,7 +202,7 @@ def color(self, color): :param color: The color of this ProjectStatusBase. # noqa: E501 :type: str """ - allowed_values = ["green", "yellow", "red", "blue"] # noqa: E501 + allowed_values = ["green", "yellow", "red", "blue", "complete"] # noqa: E501 if color not in allowed_values: raise ValueError( "Invalid value for `color` ({0}), must be one of {1}" # noqa: E501 diff --git a/asana/models/project_status_request.py b/asana/models/project_status_request.py index 1e1780fa..fec5f214 100644 --- a/asana/models/project_status_request.py +++ b/asana/models/project_status_request.py @@ -202,7 +202,7 @@ def color(self, color): :param color: The color of this ProjectStatusRequest. # noqa: E501 :type: str """ - allowed_values = ["green", "yellow", "red", "blue"] # noqa: E501 + allowed_values = ["green", "yellow", "red", "blue", "complete"] # noqa: E501 if color not in allowed_values: raise ValueError( "Invalid value for `color` ({0}), must be one of {1}" # noqa: E501 diff --git a/asana/models/project_status_response.py b/asana/models/project_status_response.py index e30a2f65..1da46cb6 100644 --- a/asana/models/project_status_response.py +++ b/asana/models/project_status_response.py @@ -222,7 +222,7 @@ def color(self, color): :param color: The color of this ProjectStatusResponse. # noqa: E501 :type: str """ - allowed_values = ["green", "yellow", "red", "blue"] # noqa: E501 + allowed_values = ["green", "yellow", "red", "blue", "complete"] # noqa: E501 if color not in allowed_values: raise ValueError( "Invalid value for `color` ({0}), must be one of {1}" # noqa: E501 diff --git a/asana/models/tag_create_tag_for_workspace_request.py b/asana/models/tag_create_tag_for_workspace_request.py new file mode 100644 index 00000000..c18ea67f --- /dev/null +++ b/asana/models/tag_create_tag_for_workspace_request.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TagCreateTagForWorkspaceRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gid': 'str', + 'resource_type': 'str', + 'name': 'str', + 'color': 'str', + 'notes': 'str', + 'followers': 'list[str]' + } + + attribute_map = { + 'gid': 'gid', + 'resource_type': 'resource_type', + 'name': 'name', + 'color': 'color', + 'notes': 'notes', + 'followers': 'followers' + } + + def __init__(self, gid=None, resource_type=None, name=None, color=None, notes=None, followers=None): # noqa: E501 + """TagCreateTagForWorkspaceRequest - a model defined in Swagger""" # noqa: E501 + self._gid = None + self._resource_type = None + self._name = None + self._color = None + self._notes = None + self._followers = None + self.discriminator = None + if gid is not None: + self.gid = gid + if resource_type is not None: + self.resource_type = resource_type + if name is not None: + self.name = name + if color is not None: + self.color = color + if notes is not None: + self.notes = notes + if followers is not None: + self.followers = followers + + @property + def gid(self): + """Gets the gid of this TagCreateTagForWorkspaceRequest. # noqa: E501 + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :return: The gid of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :rtype: str + """ + return self._gid + + @gid.setter + def gid(self, gid): + """Sets the gid of this TagCreateTagForWorkspaceRequest. + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :param gid: The gid of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :type: str + """ + + self._gid = gid + + @property + def resource_type(self): + """Gets the resource_type of this TagCreateTagForWorkspaceRequest. # noqa: E501 + + The base type of this resource. # noqa: E501 + + :return: The resource_type of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this TagCreateTagForWorkspaceRequest. + + The base type of this resource. # noqa: E501 + + :param resource_type: The resource_type of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :type: str + """ + + self._resource_type = resource_type + + @property + def name(self): + """Gets the name of this TagCreateTagForWorkspaceRequest. # noqa: E501 + + Name of the tag. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer. # noqa: E501 + + :return: The name of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TagCreateTagForWorkspaceRequest. + + Name of the tag. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer. # noqa: E501 + + :param name: The name of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def color(self): + """Gets the color of this TagCreateTagForWorkspaceRequest. # noqa: E501 + + Color of the tag. # noqa: E501 + + :return: The color of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """Sets the color of this TagCreateTagForWorkspaceRequest. + + Color of the tag. # noqa: E501 + + :param color: The color of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :type: str + """ + allowed_values = ["dark-pink", "dark-green", "dark-blue", "dark-red", "dark-teal", "dark-brown", "dark-orange", "dark-purple", "dark-warm-gray", "light-pink", "light-green", "light-blue", "light-red", "light-teal", "light-brown", "light-orange", "light-purple", "light-warm-gray", ""] # noqa: E501 + if color not in allowed_values: + raise ValueError( + "Invalid value for `color` ({0}), must be one of {1}" # noqa: E501 + .format(color, allowed_values) + ) + + self._color = color + + @property + def notes(self): + """Gets the notes of this TagCreateTagForWorkspaceRequest. # noqa: E501 + + Free-form textual information associated with the tag (i.e. its description). # noqa: E501 + + :return: The notes of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :rtype: str + """ + return self._notes + + @notes.setter + def notes(self, notes): + """Sets the notes of this TagCreateTagForWorkspaceRequest. + + Free-form textual information associated with the tag (i.e. its description). # noqa: E501 + + :param notes: The notes of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :type: str + """ + + self._notes = notes + + @property + def followers(self): + """Gets the followers of this TagCreateTagForWorkspaceRequest. # noqa: E501 + + An array of strings identifying users. These can either be the string \"me\", an email, or the gid of a user. # noqa: E501 + + :return: The followers of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :rtype: list[str] + """ + return self._followers + + @followers.setter + def followers(self, followers): + """Sets the followers of this TagCreateTagForWorkspaceRequest. + + An array of strings identifying users. These can either be the string \"me\", an email, or the gid of a user. # noqa: E501 + + :param followers: The followers of this TagCreateTagForWorkspaceRequest. # noqa: E501 + :type: list[str] + """ + + self._followers = followers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TagCreateTagForWorkspaceRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TagCreateTagForWorkspaceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_base.py b/asana/models/task_template_base.py new file mode 100644 index 00000000..d408eb07 --- /dev/null +++ b/asana/models/task_template_base.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateBase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gid': 'str', + 'resource_type': 'str', + 'name': 'str' + } + + attribute_map = { + 'gid': 'gid', + 'resource_type': 'resource_type', + 'name': 'name' + } + + def __init__(self, gid=None, resource_type=None, name=None): # noqa: E501 + """TaskTemplateBase - a model defined in Swagger""" # noqa: E501 + self._gid = None + self._resource_type = None + self._name = None + self.discriminator = None + if gid is not None: + self.gid = gid + if resource_type is not None: + self.resource_type = resource_type + if name is not None: + self.name = name + + @property + def gid(self): + """Gets the gid of this TaskTemplateBase. # noqa: E501 + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :return: The gid of this TaskTemplateBase. # noqa: E501 + :rtype: str + """ + return self._gid + + @gid.setter + def gid(self, gid): + """Sets the gid of this TaskTemplateBase. + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :param gid: The gid of this TaskTemplateBase. # noqa: E501 + :type: str + """ + + self._gid = gid + + @property + def resource_type(self): + """Gets the resource_type of this TaskTemplateBase. # noqa: E501 + + The base type of this resource. # noqa: E501 + + :return: The resource_type of this TaskTemplateBase. # noqa: E501 + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this TaskTemplateBase. + + The base type of this resource. # noqa: E501 + + :param resource_type: The resource_type of this TaskTemplateBase. # noqa: E501 + :type: str + """ + + self._resource_type = resource_type + + @property + def name(self): + """Gets the name of this TaskTemplateBase. # noqa: E501 + + Name of the task template. # noqa: E501 + + :return: The name of this TaskTemplateBase. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateBase. + + Name of the task template. # noqa: E501 + + :param name: The name of this TaskTemplateBase. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateBase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateBase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_compact.py b/asana/models/task_template_compact.py new file mode 100644 index 00000000..65fc467d --- /dev/null +++ b/asana/models/task_template_compact.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateCompact(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gid': 'str', + 'resource_type': 'str', + 'name': 'str' + } + + attribute_map = { + 'gid': 'gid', + 'resource_type': 'resource_type', + 'name': 'name' + } + + def __init__(self, gid=None, resource_type=None, name=None): # noqa: E501 + """TaskTemplateCompact - a model defined in Swagger""" # noqa: E501 + self._gid = None + self._resource_type = None + self._name = None + self.discriminator = None + if gid is not None: + self.gid = gid + if resource_type is not None: + self.resource_type = resource_type + if name is not None: + self.name = name + + @property + def gid(self): + """Gets the gid of this TaskTemplateCompact. # noqa: E501 + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :return: The gid of this TaskTemplateCompact. # noqa: E501 + :rtype: str + """ + return self._gid + + @gid.setter + def gid(self, gid): + """Sets the gid of this TaskTemplateCompact. + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :param gid: The gid of this TaskTemplateCompact. # noqa: E501 + :type: str + """ + + self._gid = gid + + @property + def resource_type(self): + """Gets the resource_type of this TaskTemplateCompact. # noqa: E501 + + The base type of this resource. # noqa: E501 + + :return: The resource_type of this TaskTemplateCompact. # noqa: E501 + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this TaskTemplateCompact. + + The base type of this resource. # noqa: E501 + + :param resource_type: The resource_type of this TaskTemplateCompact. # noqa: E501 + :type: str + """ + + self._resource_type = resource_type + + @property + def name(self): + """Gets the name of this TaskTemplateCompact. # noqa: E501 + + Name of the task template. # noqa: E501 + + :return: The name of this TaskTemplateCompact. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateCompact. + + Name of the task template. # noqa: E501 + + :param name: The name of this TaskTemplateCompact. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateCompact, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateCompact): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_gid_instantiate_task_body.py b/asana/models/task_template_gid_instantiate_task_body.py new file mode 100644 index 00000000..6ab01d1b --- /dev/null +++ b/asana/models/task_template_gid_instantiate_task_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateGidInstantiateTaskBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TaskTemplateInstantiateTaskRequest' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): # noqa: E501 + """TaskTemplateGidInstantiateTaskBody - a model defined in Swagger""" # noqa: E501 + self._data = None + self.discriminator = None + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this TaskTemplateGidInstantiateTaskBody. # noqa: E501 + + + :return: The data of this TaskTemplateGidInstantiateTaskBody. # noqa: E501 + :rtype: TaskTemplateInstantiateTaskRequest + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this TaskTemplateGidInstantiateTaskBody. + + + :param data: The data of this TaskTemplateGidInstantiateTaskBody. # noqa: E501 + :type: TaskTemplateInstantiateTaskRequest + """ + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateGidInstantiateTaskBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateGidInstantiateTaskBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_instantiate_task_request.py b/asana/models/task_template_instantiate_task_request.py new file mode 100644 index 00000000..ae592132 --- /dev/null +++ b/asana/models/task_template_instantiate_task_request.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateInstantiateTaskRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): # noqa: E501 + """TaskTemplateInstantiateTaskRequest - a model defined in Swagger""" # noqa: E501 + self._name = None + self.discriminator = None + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this TaskTemplateInstantiateTaskRequest. # noqa: E501 + + The name of the new task. If not provided, the name of the task template will be used. # noqa: E501 + + :return: The name of this TaskTemplateInstantiateTaskRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateInstantiateTaskRequest. + + The name of the new task. If not provided, the name of the task template will be used. # noqa: E501 + + :param name: The name of this TaskTemplateInstantiateTaskRequest. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateInstantiateTaskRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateInstantiateTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_recipe.py b/asana/models/task_template_recipe.py new file mode 100644 index 00000000..8d09a833 --- /dev/null +++ b/asana/models/task_template_recipe.py @@ -0,0 +1,482 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateRecipe(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'task_resource_subtype': 'str', + 'description': 'str', + 'html_description': 'str', + 'memberships': 'list[JobBaseNewProject]', + 'relative_start_on': 'int', + 'relative_due_on': 'int', + 'due_time': 'str', + 'dependencies': 'list[TaskTemplateRecipeDependencies]', + 'dependents': 'list[TaskTemplateRecipeDependencies]', + 'followers': 'list[CustomFieldResponsePeopleValue]', + 'attachments': 'list[TaskTemplateRecipeAttachments]', + 'subtasks': 'list[TaskTemplateRecipeDependencies]', + 'custom_fields': 'list[PortfolioResponseCustomFields]' + } + + attribute_map = { + 'name': 'name', + 'task_resource_subtype': 'task_resource_subtype', + 'description': 'description', + 'html_description': 'html_description', + 'memberships': 'memberships', + 'relative_start_on': 'relative_start_on', + 'relative_due_on': 'relative_due_on', + 'due_time': 'due_time', + 'dependencies': 'dependencies', + 'dependents': 'dependents', + 'followers': 'followers', + 'attachments': 'attachments', + 'subtasks': 'subtasks', + 'custom_fields': 'custom_fields' + } + + def __init__(self, name=None, task_resource_subtype=None, description=None, html_description=None, memberships=None, relative_start_on=None, relative_due_on=None, due_time=None, dependencies=None, dependents=None, followers=None, attachments=None, subtasks=None, custom_fields=None): # noqa: E501 + """TaskTemplateRecipe - a model defined in Swagger""" # noqa: E501 + self._name = None + self._task_resource_subtype = None + self._description = None + self._html_description = None + self._memberships = None + self._relative_start_on = None + self._relative_due_on = None + self._due_time = None + self._dependencies = None + self._dependents = None + self._followers = None + self._attachments = None + self._subtasks = None + self._custom_fields = None + self.discriminator = None + if name is not None: + self.name = name + if task_resource_subtype is not None: + self.task_resource_subtype = task_resource_subtype + if description is not None: + self.description = description + if html_description is not None: + self.html_description = html_description + if memberships is not None: + self.memberships = memberships + if relative_start_on is not None: + self.relative_start_on = relative_start_on + if relative_due_on is not None: + self.relative_due_on = relative_due_on + if due_time is not None: + self.due_time = due_time + if dependencies is not None: + self.dependencies = dependencies + if dependents is not None: + self.dependents = dependents + if followers is not None: + self.followers = followers + if attachments is not None: + self.attachments = attachments + if subtasks is not None: + self.subtasks = subtasks + if custom_fields is not None: + self.custom_fields = custom_fields + + @property + def name(self): + """Gets the name of this TaskTemplateRecipe. # noqa: E501 + + Name of the task that will be created from this template. # noqa: E501 + + :return: The name of this TaskTemplateRecipe. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateRecipe. + + Name of the task that will be created from this template. # noqa: E501 + + :param name: The name of this TaskTemplateRecipe. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def task_resource_subtype(self): + """Gets the task_resource_subtype of this TaskTemplateRecipe. # noqa: E501 + + The subtype of the task that will be created from this template. # noqa: E501 + + :return: The task_resource_subtype of this TaskTemplateRecipe. # noqa: E501 + :rtype: str + """ + return self._task_resource_subtype + + @task_resource_subtype.setter + def task_resource_subtype(self, task_resource_subtype): + """Sets the task_resource_subtype of this TaskTemplateRecipe. + + The subtype of the task that will be created from this template. # noqa: E501 + + :param task_resource_subtype: The task_resource_subtype of this TaskTemplateRecipe. # noqa: E501 + :type: str + """ + allowed_values = ["default_task", "milestone_task", "approval_task"] # noqa: E501 + if task_resource_subtype not in allowed_values: + raise ValueError( + "Invalid value for `task_resource_subtype` ({0}), must be one of {1}" # noqa: E501 + .format(task_resource_subtype, allowed_values) + ) + + self._task_resource_subtype = task_resource_subtype + + @property + def description(self): + """Gets the description of this TaskTemplateRecipe. # noqa: E501 + + Description of the task that will be created from this template. # noqa: E501 + + :return: The description of this TaskTemplateRecipe. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this TaskTemplateRecipe. + + Description of the task that will be created from this template. # noqa: E501 + + :param description: The description of this TaskTemplateRecipe. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def html_description(self): + """Gets the html_description of this TaskTemplateRecipe. # noqa: E501 + + HTML description of the task that will be created from this template. # noqa: E501 + + :return: The html_description of this TaskTemplateRecipe. # noqa: E501 + :rtype: str + """ + return self._html_description + + @html_description.setter + def html_description(self, html_description): + """Sets the html_description of this TaskTemplateRecipe. + + HTML description of the task that will be created from this template. # noqa: E501 + + :param html_description: The html_description of this TaskTemplateRecipe. # noqa: E501 + :type: str + """ + + self._html_description = html_description + + @property + def memberships(self): + """Gets the memberships of this TaskTemplateRecipe. # noqa: E501 + + Array of projects that the task created from this template will be added to # noqa: E501 + + :return: The memberships of this TaskTemplateRecipe. # noqa: E501 + :rtype: list[JobBaseNewProject] + """ + return self._memberships + + @memberships.setter + def memberships(self, memberships): + """Sets the memberships of this TaskTemplateRecipe. + + Array of projects that the task created from this template will be added to # noqa: E501 + + :param memberships: The memberships of this TaskTemplateRecipe. # noqa: E501 + :type: list[JobBaseNewProject] + """ + + self._memberships = memberships + + @property + def relative_start_on(self): + """Gets the relative_start_on of this TaskTemplateRecipe. # noqa: E501 + + The number of days after the task has been instantiated on which that the task will start # noqa: E501 + + :return: The relative_start_on of this TaskTemplateRecipe. # noqa: E501 + :rtype: int + """ + return self._relative_start_on + + @relative_start_on.setter + def relative_start_on(self, relative_start_on): + """Sets the relative_start_on of this TaskTemplateRecipe. + + The number of days after the task has been instantiated on which that the task will start # noqa: E501 + + :param relative_start_on: The relative_start_on of this TaskTemplateRecipe. # noqa: E501 + :type: int + """ + + self._relative_start_on = relative_start_on + + @property + def relative_due_on(self): + """Gets the relative_due_on of this TaskTemplateRecipe. # noqa: E501 + + The number of days after the task has been instantiated on which that the task will be due # noqa: E501 + + :return: The relative_due_on of this TaskTemplateRecipe. # noqa: E501 + :rtype: int + """ + return self._relative_due_on + + @relative_due_on.setter + def relative_due_on(self, relative_due_on): + """Sets the relative_due_on of this TaskTemplateRecipe. + + The number of days after the task has been instantiated on which that the task will be due # noqa: E501 + + :param relative_due_on: The relative_due_on of this TaskTemplateRecipe. # noqa: E501 + :type: int + """ + + self._relative_due_on = relative_due_on + + @property + def due_time(self): + """Gets the due_time of this TaskTemplateRecipe. # noqa: E501 + + The time of day that the task will be due # noqa: E501 + + :return: The due_time of this TaskTemplateRecipe. # noqa: E501 + :rtype: str + """ + return self._due_time + + @due_time.setter + def due_time(self, due_time): + """Sets the due_time of this TaskTemplateRecipe. + + The time of day that the task will be due # noqa: E501 + + :param due_time: The due_time of this TaskTemplateRecipe. # noqa: E501 + :type: str + """ + + self._due_time = due_time + + @property + def dependencies(self): + """Gets the dependencies of this TaskTemplateRecipe. # noqa: E501 + + Array of task templates that the task created from this template will depend on # noqa: E501 + + :return: The dependencies of this TaskTemplateRecipe. # noqa: E501 + :rtype: list[TaskTemplateRecipeDependencies] + """ + return self._dependencies + + @dependencies.setter + def dependencies(self, dependencies): + """Sets the dependencies of this TaskTemplateRecipe. + + Array of task templates that the task created from this template will depend on # noqa: E501 + + :param dependencies: The dependencies of this TaskTemplateRecipe. # noqa: E501 + :type: list[TaskTemplateRecipeDependencies] + """ + + self._dependencies = dependencies + + @property + def dependents(self): + """Gets the dependents of this TaskTemplateRecipe. # noqa: E501 + + Array of task templates that will depend on the task created from this template # noqa: E501 + + :return: The dependents of this TaskTemplateRecipe. # noqa: E501 + :rtype: list[TaskTemplateRecipeDependencies] + """ + return self._dependents + + @dependents.setter + def dependents(self, dependents): + """Sets the dependents of this TaskTemplateRecipe. + + Array of task templates that will depend on the task created from this template # noqa: E501 + + :param dependents: The dependents of this TaskTemplateRecipe. # noqa: E501 + :type: list[TaskTemplateRecipeDependencies] + """ + + self._dependents = dependents + + @property + def followers(self): + """Gets the followers of this TaskTemplateRecipe. # noqa: E501 + + Array of users that will be added as followers to the task created from this template # noqa: E501 + + :return: The followers of this TaskTemplateRecipe. # noqa: E501 + :rtype: list[CustomFieldResponsePeopleValue] + """ + return self._followers + + @followers.setter + def followers(self, followers): + """Sets the followers of this TaskTemplateRecipe. + + Array of users that will be added as followers to the task created from this template # noqa: E501 + + :param followers: The followers of this TaskTemplateRecipe. # noqa: E501 + :type: list[CustomFieldResponsePeopleValue] + """ + + self._followers = followers + + @property + def attachments(self): + """Gets the attachments of this TaskTemplateRecipe. # noqa: E501 + + Array of attachments that will be added to the task created from this template # noqa: E501 + + :return: The attachments of this TaskTemplateRecipe. # noqa: E501 + :rtype: list[TaskTemplateRecipeAttachments] + """ + return self._attachments + + @attachments.setter + def attachments(self, attachments): + """Sets the attachments of this TaskTemplateRecipe. + + Array of attachments that will be added to the task created from this template # noqa: E501 + + :param attachments: The attachments of this TaskTemplateRecipe. # noqa: E501 + :type: list[TaskTemplateRecipeAttachments] + """ + + self._attachments = attachments + + @property + def subtasks(self): + """Gets the subtasks of this TaskTemplateRecipe. # noqa: E501 + + Array of subtasks that will be added to the task created from this template # noqa: E501 + + :return: The subtasks of this TaskTemplateRecipe. # noqa: E501 + :rtype: list[TaskTemplateRecipeDependencies] + """ + return self._subtasks + + @subtasks.setter + def subtasks(self, subtasks): + """Sets the subtasks of this TaskTemplateRecipe. + + Array of subtasks that will be added to the task created from this template # noqa: E501 + + :param subtasks: The subtasks of this TaskTemplateRecipe. # noqa: E501 + :type: list[TaskTemplateRecipeDependencies] + """ + + self._subtasks = subtasks + + @property + def custom_fields(self): + """Gets the custom_fields of this TaskTemplateRecipe. # noqa: E501 + + Array of custom fields that will be added to the task created from this template # noqa: E501 + + :return: The custom_fields of this TaskTemplateRecipe. # noqa: E501 + :rtype: list[PortfolioResponseCustomFields] + """ + return self._custom_fields + + @custom_fields.setter + def custom_fields(self, custom_fields): + """Sets the custom_fields of this TaskTemplateRecipe. + + Array of custom fields that will be added to the task created from this template # noqa: E501 + + :param custom_fields: The custom_fields of this TaskTemplateRecipe. # noqa: E501 + :type: list[PortfolioResponseCustomFields] + """ + + self._custom_fields = custom_fields + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateRecipe, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateRecipe): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_recipe_attachments.py b/asana/models/task_template_recipe_attachments.py new file mode 100644 index 00000000..fcebf04e --- /dev/null +++ b/asana/models/task_template_recipe_attachments.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateRecipeAttachments(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gid': 'str', + 'resource_type': 'str', + 'name': 'str', + 'resource_subtype': 'str' + } + + attribute_map = { + 'gid': 'gid', + 'resource_type': 'resource_type', + 'name': 'name', + 'resource_subtype': 'resource_subtype' + } + + def __init__(self, gid=None, resource_type=None, name=None, resource_subtype=None): # noqa: E501 + """TaskTemplateRecipeAttachments - a model defined in Swagger""" # noqa: E501 + self._gid = None + self._resource_type = None + self._name = None + self._resource_subtype = None + self.discriminator = None + if gid is not None: + self.gid = gid + if resource_type is not None: + self.resource_type = resource_type + if name is not None: + self.name = name + if resource_subtype is not None: + self.resource_subtype = resource_subtype + + @property + def gid(self): + """Gets the gid of this TaskTemplateRecipeAttachments. # noqa: E501 + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :return: The gid of this TaskTemplateRecipeAttachments. # noqa: E501 + :rtype: str + """ + return self._gid + + @gid.setter + def gid(self, gid): + """Sets the gid of this TaskTemplateRecipeAttachments. + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :param gid: The gid of this TaskTemplateRecipeAttachments. # noqa: E501 + :type: str + """ + + self._gid = gid + + @property + def resource_type(self): + """Gets the resource_type of this TaskTemplateRecipeAttachments. # noqa: E501 + + The base type of this resource. # noqa: E501 + + :return: The resource_type of this TaskTemplateRecipeAttachments. # noqa: E501 + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this TaskTemplateRecipeAttachments. + + The base type of this resource. # noqa: E501 + + :param resource_type: The resource_type of this TaskTemplateRecipeAttachments. # noqa: E501 + :type: str + """ + + self._resource_type = resource_type + + @property + def name(self): + """Gets the name of this TaskTemplateRecipeAttachments. # noqa: E501 + + The name of the file. # noqa: E501 + + :return: The name of this TaskTemplateRecipeAttachments. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateRecipeAttachments. + + The name of the file. # noqa: E501 + + :param name: The name of this TaskTemplateRecipeAttachments. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def resource_subtype(self): + """Gets the resource_subtype of this TaskTemplateRecipeAttachments. # noqa: E501 + + The service hosting the attachment. Valid values are `asana`, `dropbox`, `gdrive`, `onedrive`, `box`, `vimeo`, and `external`. # noqa: E501 + + :return: The resource_subtype of this TaskTemplateRecipeAttachments. # noqa: E501 + :rtype: str + """ + return self._resource_subtype + + @resource_subtype.setter + def resource_subtype(self, resource_subtype): + """Sets the resource_subtype of this TaskTemplateRecipeAttachments. + + The service hosting the attachment. Valid values are `asana`, `dropbox`, `gdrive`, `onedrive`, `box`, `vimeo`, and `external`. # noqa: E501 + + :param resource_subtype: The resource_subtype of this TaskTemplateRecipeAttachments. # noqa: E501 + :type: str + """ + + self._resource_subtype = resource_subtype + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateRecipeAttachments, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateRecipeAttachments): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_recipe_compact.py b/asana/models/task_template_recipe_compact.py new file mode 100644 index 00000000..ede50f2b --- /dev/null +++ b/asana/models/task_template_recipe_compact.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateRecipeCompact(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'task_resource_subtype': 'str' + } + + attribute_map = { + 'name': 'name', + 'task_resource_subtype': 'task_resource_subtype' + } + + def __init__(self, name=None, task_resource_subtype=None): # noqa: E501 + """TaskTemplateRecipeCompact - a model defined in Swagger""" # noqa: E501 + self._name = None + self._task_resource_subtype = None + self.discriminator = None + if name is not None: + self.name = name + if task_resource_subtype is not None: + self.task_resource_subtype = task_resource_subtype + + @property + def name(self): + """Gets the name of this TaskTemplateRecipeCompact. # noqa: E501 + + Name of the task that will be created from this template. # noqa: E501 + + :return: The name of this TaskTemplateRecipeCompact. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateRecipeCompact. + + Name of the task that will be created from this template. # noqa: E501 + + :param name: The name of this TaskTemplateRecipeCompact. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def task_resource_subtype(self): + """Gets the task_resource_subtype of this TaskTemplateRecipeCompact. # noqa: E501 + + The subtype of the task that will be created from this template. # noqa: E501 + + :return: The task_resource_subtype of this TaskTemplateRecipeCompact. # noqa: E501 + :rtype: str + """ + return self._task_resource_subtype + + @task_resource_subtype.setter + def task_resource_subtype(self, task_resource_subtype): + """Sets the task_resource_subtype of this TaskTemplateRecipeCompact. + + The subtype of the task that will be created from this template. # noqa: E501 + + :param task_resource_subtype: The task_resource_subtype of this TaskTemplateRecipeCompact. # noqa: E501 + :type: str + """ + allowed_values = ["default_task", "milestone_task", "approval_task"] # noqa: E501 + if task_resource_subtype not in allowed_values: + raise ValueError( + "Invalid value for `task_resource_subtype` ({0}), must be one of {1}" # noqa: E501 + .format(task_resource_subtype, allowed_values) + ) + + self._task_resource_subtype = task_resource_subtype + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateRecipeCompact, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateRecipeCompact): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_recipe_dependencies.py b/asana/models/task_template_recipe_dependencies.py new file mode 100644 index 00000000..6c1759cc --- /dev/null +++ b/asana/models/task_template_recipe_dependencies.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateRecipeDependencies(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'task_resource_subtype': 'str' + } + + attribute_map = { + 'name': 'name', + 'task_resource_subtype': 'task_resource_subtype' + } + + def __init__(self, name=None, task_resource_subtype=None): # noqa: E501 + """TaskTemplateRecipeDependencies - a model defined in Swagger""" # noqa: E501 + self._name = None + self._task_resource_subtype = None + self.discriminator = None + if name is not None: + self.name = name + if task_resource_subtype is not None: + self.task_resource_subtype = task_resource_subtype + + @property + def name(self): + """Gets the name of this TaskTemplateRecipeDependencies. # noqa: E501 + + Name of the task that will be created from this template. # noqa: E501 + + :return: The name of this TaskTemplateRecipeDependencies. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateRecipeDependencies. + + Name of the task that will be created from this template. # noqa: E501 + + :param name: The name of this TaskTemplateRecipeDependencies. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def task_resource_subtype(self): + """Gets the task_resource_subtype of this TaskTemplateRecipeDependencies. # noqa: E501 + + The subtype of the task that will be created from this template. # noqa: E501 + + :return: The task_resource_subtype of this TaskTemplateRecipeDependencies. # noqa: E501 + :rtype: str + """ + return self._task_resource_subtype + + @task_resource_subtype.setter + def task_resource_subtype(self, task_resource_subtype): + """Sets the task_resource_subtype of this TaskTemplateRecipeDependencies. + + The subtype of the task that will be created from this template. # noqa: E501 + + :param task_resource_subtype: The task_resource_subtype of this TaskTemplateRecipeDependencies. # noqa: E501 + :type: str + """ + allowed_values = ["default_task", "milestone_task", "approval_task"] # noqa: E501 + if task_resource_subtype not in allowed_values: + raise ValueError( + "Invalid value for `task_resource_subtype` ({0}), must be one of {1}" # noqa: E501 + .format(task_resource_subtype, allowed_values) + ) + + self._task_resource_subtype = task_resource_subtype + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateRecipeDependencies, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateRecipeDependencies): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_response.py b/asana/models/task_template_response.py new file mode 100644 index 00000000..7c646a97 --- /dev/null +++ b/asana/models/task_template_response.py @@ -0,0 +1,280 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gid': 'str', + 'resource_type': 'str', + 'name': 'str', + 'project': 'AllOfTaskTemplateResponseProject', + 'template': 'AllOfTaskTemplateResponseTemplate', + 'created_by': 'AllOfTaskTemplateResponseCreatedBy', + 'created_at': 'datetime' + } + + attribute_map = { + 'gid': 'gid', + 'resource_type': 'resource_type', + 'name': 'name', + 'project': 'project', + 'template': 'template', + 'created_by': 'created_by', + 'created_at': 'created_at' + } + + def __init__(self, gid=None, resource_type=None, name=None, project=None, template=None, created_by=None, created_at=None): # noqa: E501 + """TaskTemplateResponse - a model defined in Swagger""" # noqa: E501 + self._gid = None + self._resource_type = None + self._name = None + self._project = None + self._template = None + self._created_by = None + self._created_at = None + self.discriminator = None + if gid is not None: + self.gid = gid + if resource_type is not None: + self.resource_type = resource_type + if name is not None: + self.name = name + if project is not None: + self.project = project + if template is not None: + self.template = template + if created_by is not None: + self.created_by = created_by + if created_at is not None: + self.created_at = created_at + + @property + def gid(self): + """Gets the gid of this TaskTemplateResponse. # noqa: E501 + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :return: The gid of this TaskTemplateResponse. # noqa: E501 + :rtype: str + """ + return self._gid + + @gid.setter + def gid(self, gid): + """Sets the gid of this TaskTemplateResponse. + + Globally unique identifier of the resource, as a string. # noqa: E501 + + :param gid: The gid of this TaskTemplateResponse. # noqa: E501 + :type: str + """ + + self._gid = gid + + @property + def resource_type(self): + """Gets the resource_type of this TaskTemplateResponse. # noqa: E501 + + The base type of this resource. # noqa: E501 + + :return: The resource_type of this TaskTemplateResponse. # noqa: E501 + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this TaskTemplateResponse. + + The base type of this resource. # noqa: E501 + + :param resource_type: The resource_type of this TaskTemplateResponse. # noqa: E501 + :type: str + """ + + self._resource_type = resource_type + + @property + def name(self): + """Gets the name of this TaskTemplateResponse. # noqa: E501 + + Name of the task template. # noqa: E501 + + :return: The name of this TaskTemplateResponse. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TaskTemplateResponse. + + Name of the task template. # noqa: E501 + + :param name: The name of this TaskTemplateResponse. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def project(self): + """Gets the project of this TaskTemplateResponse. # noqa: E501 + + The project that this task template belongs to. # noqa: E501 + + :return: The project of this TaskTemplateResponse. # noqa: E501 + :rtype: AllOfTaskTemplateResponseProject + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this TaskTemplateResponse. + + The project that this task template belongs to. # noqa: E501 + + :param project: The project of this TaskTemplateResponse. # noqa: E501 + :type: AllOfTaskTemplateResponseProject + """ + + self._project = project + + @property + def template(self): + """Gets the template of this TaskTemplateResponse. # noqa: E501 + + The configuration for the task that will be created from this template. # noqa: E501 + + :return: The template of this TaskTemplateResponse. # noqa: E501 + :rtype: AllOfTaskTemplateResponseTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this TaskTemplateResponse. + + The configuration for the task that will be created from this template. # noqa: E501 + + :param template: The template of this TaskTemplateResponse. # noqa: E501 + :type: AllOfTaskTemplateResponseTemplate + """ + + self._template = template + + @property + def created_by(self): + """Gets the created_by of this TaskTemplateResponse. # noqa: E501 + + The user who created this task template. # noqa: E501 + + :return: The created_by of this TaskTemplateResponse. # noqa: E501 + :rtype: AllOfTaskTemplateResponseCreatedBy + """ + return self._created_by + + @created_by.setter + def created_by(self, created_by): + """Sets the created_by of this TaskTemplateResponse. + + The user who created this task template. # noqa: E501 + + :param created_by: The created_by of this TaskTemplateResponse. # noqa: E501 + :type: AllOfTaskTemplateResponseCreatedBy + """ + + self._created_by = created_by + + @property + def created_at(self): + """Gets the created_at of this TaskTemplateResponse. # noqa: E501 + + The time at which this task template was created. # noqa: E501 + + :return: The created_at of this TaskTemplateResponse. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this TaskTemplateResponse. + + The time at which this task template was created. # noqa: E501 + + :param created_at: The created_at of this TaskTemplateResponse. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_response_array.py b/asana/models/task_template_response_array.py new file mode 100644 index 00000000..cec9b95b --- /dev/null +++ b/asana/models/task_template_response_array.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateResponseArray(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'list[TaskTemplateResponse]', + 'next_page': 'NextPage' + } + + attribute_map = { + 'data': 'data', + 'next_page': 'next_page' + } + + def __init__(self, data=None, next_page=None): # noqa: E501 + """TaskTemplateResponseArray - a model defined in Swagger""" # noqa: E501 + self._data = None + self._next_page = None + self.discriminator = None + self.data = data + if next_page is not None: + self.next_page = next_page + + @property + def data(self): + """Gets the data of this TaskTemplateResponseArray. # noqa: E501 + + + :return: The data of this TaskTemplateResponseArray. # noqa: E501 + :rtype: list[TaskTemplateResponse] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this TaskTemplateResponseArray. + + + :param data: The data of this TaskTemplateResponseArray. # noqa: E501 + :type: list[TaskTemplateResponse] + """ + if data is None: + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + @property + def next_page(self): + """Gets the next_page of this TaskTemplateResponseArray. # noqa: E501 + + + :return: The next_page of this TaskTemplateResponseArray. # noqa: E501 + :rtype: NextPage + """ + return self._next_page + + @next_page.setter + def next_page(self, next_page): + """Sets the next_page of this TaskTemplateResponseArray. + + + :param next_page: The next_page of this TaskTemplateResponseArray. # noqa: E501 + :type: NextPage + """ + + self._next_page = next_page + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateResponseArray, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateResponseArray): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/task_template_response_data.py b/asana/models/task_template_response_data.py new file mode 100644 index 00000000..55d2de6b --- /dev/null +++ b/asana/models/task_template_response_data.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TaskTemplateResponseData(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'TaskTemplateResponse' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): # noqa: E501 + """TaskTemplateResponseData - a model defined in Swagger""" # noqa: E501 + self._data = None + self.discriminator = None + self.data = data + + @property + def data(self): + """Gets the data of this TaskTemplateResponseData. # noqa: E501 + + + :return: The data of this TaskTemplateResponseData. # noqa: E501 + :rtype: TaskTemplateResponse + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this TaskTemplateResponseData. + + + :param data: The data of this TaskTemplateResponseData. # noqa: E501 + :type: TaskTemplateResponse + """ + if data is None: + raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskTemplateResponseData, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskTemplateResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/asana/models/workspace_gid_tags_body.py b/asana/models/workspace_gid_tags_body.py index 4d2b91a0..26307cdb 100644 --- a/asana/models/workspace_gid_tags_body.py +++ b/asana/models/workspace_gid_tags_body.py @@ -28,7 +28,7 @@ class WorkspaceGidTagsBody(object): and the value is json key in definition. """ swagger_types = { - 'data': 'TagResponse' + 'data': 'TagCreateTagForWorkspaceRequest' } attribute_map = { @@ -48,7 +48,7 @@ def data(self): :return: The data of this WorkspaceGidTagsBody. # noqa: E501 - :rtype: TagResponse + :rtype: TagCreateTagForWorkspaceRequest """ return self._data @@ -58,7 +58,7 @@ def data(self, data): :param data: The data of this WorkspaceGidTagsBody. # noqa: E501 - :type: TagResponse + :type: TagCreateTagForWorkspaceRequest """ self._data = data diff --git a/docs/AllOfTaskTemplateResponseCreatedBy.md b/docs/AllOfTaskTemplateResponseCreatedBy.md new file mode 100644 index 00000000..3135f3e3 --- /dev/null +++ b/docs/AllOfTaskTemplateResponseCreatedBy.md @@ -0,0 +1,8 @@ +# AllOfTaskTemplateResponseCreatedBy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AllOfTaskTemplateResponseProject.md b/docs/AllOfTaskTemplateResponseProject.md new file mode 100644 index 00000000..cdb98ad3 --- /dev/null +++ b/docs/AllOfTaskTemplateResponseProject.md @@ -0,0 +1,8 @@ +# AllOfTaskTemplateResponseProject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AllOfTaskTemplateResponseTemplate.md b/docs/AllOfTaskTemplateResponseTemplate.md new file mode 100644 index 00000000..2749f74d --- /dev/null +++ b/docs/AllOfTaskTemplateResponseTemplate.md @@ -0,0 +1,8 @@ +# AllOfTaskTemplateResponseTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TagCreateTagForWorkspaceRequest.md b/docs/TagCreateTagForWorkspaceRequest.md new file mode 100644 index 00000000..db6f64c7 --- /dev/null +++ b/docs/TagCreateTagForWorkspaceRequest.md @@ -0,0 +1,14 @@ +# TagCreateTagForWorkspaceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **str** | Globally unique identifier of the resource, as a string. | [optional] +**resource_type** | **str** | The base type of this resource. | [optional] +**name** | **str** | Name of the tag. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer. | [optional] +**color** | **str** | Color of the tag. | [optional] +**notes** | **str** | Free-form textual information associated with the tag (i.e. its description). | [optional] +**followers** | **list[str]** | An array of strings identifying users. These can either be the string \"me\", an email, or the gid of a user. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateBase.md b/docs/TaskTemplateBase.md new file mode 100644 index 00000000..39adb3ef --- /dev/null +++ b/docs/TaskTemplateBase.md @@ -0,0 +1,11 @@ +# TaskTemplateBase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **str** | Globally unique identifier of the resource, as a string. | [optional] +**resource_type** | **str** | The base type of this resource. | [optional] +**name** | **str** | Name of the task template. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateCompact.md b/docs/TaskTemplateCompact.md new file mode 100644 index 00000000..138c254c --- /dev/null +++ b/docs/TaskTemplateCompact.md @@ -0,0 +1,11 @@ +# TaskTemplateCompact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **str** | Globally unique identifier of the resource, as a string. | [optional] +**resource_type** | **str** | The base type of this resource. | [optional] +**name** | **str** | Name of the task template. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateGidInstantiateTaskBody.md b/docs/TaskTemplateGidInstantiateTaskBody.md new file mode 100644 index 00000000..aa3f5436 --- /dev/null +++ b/docs/TaskTemplateGidInstantiateTaskBody.md @@ -0,0 +1,9 @@ +# TaskTemplateGidInstantiateTaskBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**TaskTemplateInstantiateTaskRequest**](TaskTemplateInstantiateTaskRequest.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateInstantiateTaskRequest.md b/docs/TaskTemplateInstantiateTaskRequest.md new file mode 100644 index 00000000..a721e6ff --- /dev/null +++ b/docs/TaskTemplateInstantiateTaskRequest.md @@ -0,0 +1,9 @@ +# TaskTemplateInstantiateTaskRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the new task. If not provided, the name of the task template will be used. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateRecipe.md b/docs/TaskTemplateRecipe.md new file mode 100644 index 00000000..3b88c753 --- /dev/null +++ b/docs/TaskTemplateRecipe.md @@ -0,0 +1,22 @@ +# TaskTemplateRecipe + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the task that will be created from this template. | [optional] +**task_resource_subtype** | **str** | The subtype of the task that will be created from this template. | [optional] +**description** | **str** | Description of the task that will be created from this template. | [optional] +**html_description** | **str** | HTML description of the task that will be created from this template. | [optional] +**memberships** | [**list[JobBaseNewProject]**](JobBaseNewProject.md) | Array of projects that the task created from this template will be added to | [optional] +**relative_start_on** | **int** | The number of days after the task has been instantiated on which that the task will start | [optional] +**relative_due_on** | **int** | The number of days after the task has been instantiated on which that the task will be due | [optional] +**due_time** | **str** | The time of day that the task will be due | [optional] +**dependencies** | [**list[TaskTemplateRecipeDependencies]**](TaskTemplateRecipeDependencies.md) | Array of task templates that the task created from this template will depend on | [optional] +**dependents** | [**list[TaskTemplateRecipeDependencies]**](TaskTemplateRecipeDependencies.md) | Array of task templates that will depend on the task created from this template | [optional] +**followers** | [**list[CustomFieldResponsePeopleValue]**](CustomFieldResponsePeopleValue.md) | Array of users that will be added as followers to the task created from this template | [optional] +**attachments** | [**list[TaskTemplateRecipeAttachments]**](TaskTemplateRecipeAttachments.md) | Array of attachments that will be added to the task created from this template | [optional] +**subtasks** | [**list[TaskTemplateRecipeDependencies]**](TaskTemplateRecipeDependencies.md) | Array of subtasks that will be added to the task created from this template | [optional] +**custom_fields** | [**list[PortfolioResponseCustomFields]**](PortfolioResponseCustomFields.md) | Array of custom fields that will be added to the task created from this template | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateRecipeAttachments.md b/docs/TaskTemplateRecipeAttachments.md new file mode 100644 index 00000000..f1879ad0 --- /dev/null +++ b/docs/TaskTemplateRecipeAttachments.md @@ -0,0 +1,12 @@ +# TaskTemplateRecipeAttachments + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **str** | Globally unique identifier of the resource, as a string. | [optional] +**resource_type** | **str** | The base type of this resource. | [optional] +**name** | **str** | The name of the file. | [optional] +**resource_subtype** | **str** | The service hosting the attachment. Valid values are `asana`, `dropbox`, `gdrive`, `onedrive`, `box`, `vimeo`, and `external`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateRecipeCompact.md b/docs/TaskTemplateRecipeCompact.md new file mode 100644 index 00000000..c29f4b00 --- /dev/null +++ b/docs/TaskTemplateRecipeCompact.md @@ -0,0 +1,10 @@ +# TaskTemplateRecipeCompact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the task that will be created from this template. | [optional] +**task_resource_subtype** | **str** | The subtype of the task that will be created from this template. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateRecipeDependencies.md b/docs/TaskTemplateRecipeDependencies.md new file mode 100644 index 00000000..831cc6a4 --- /dev/null +++ b/docs/TaskTemplateRecipeDependencies.md @@ -0,0 +1,10 @@ +# TaskTemplateRecipeDependencies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the task that will be created from this template. | [optional] +**task_resource_subtype** | **str** | The subtype of the task that will be created from this template. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateResponse.md b/docs/TaskTemplateResponse.md new file mode 100644 index 00000000..a365c824 --- /dev/null +++ b/docs/TaskTemplateResponse.md @@ -0,0 +1,15 @@ +# TaskTemplateResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **str** | Globally unique identifier of the resource, as a string. | [optional] +**resource_type** | **str** | The base type of this resource. | [optional] +**name** | **str** | Name of the task template. | [optional] +**project** | **AllOfTaskTemplateResponseProject** | The project that this task template belongs to. | [optional] +**template** | **AllOfTaskTemplateResponseTemplate** | The configuration for the task that will be created from this template. | [optional] +**created_by** | **AllOfTaskTemplateResponseCreatedBy** | The user who created this task template. | [optional] +**created_at** | **datetime** | The time at which this task template was created. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateResponseArray.md b/docs/TaskTemplateResponseArray.md new file mode 100644 index 00000000..4890b911 --- /dev/null +++ b/docs/TaskTemplateResponseArray.md @@ -0,0 +1,10 @@ +# TaskTemplateResponseArray + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**list[TaskTemplateResponse]**](TaskTemplateResponse.md) | | +**next_page** | [**NextPage**](NextPage.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TaskTemplateResponseData.md b/docs/TaskTemplateResponseData.md new file mode 100644 index 00000000..1a14e46e --- /dev/null +++ b/docs/TaskTemplateResponseData.md @@ -0,0 +1,9 @@ +# TaskTemplateResponseData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**TaskTemplateResponse**](TaskTemplateResponse.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WorkspaceGidTagsBody.md b/docs/WorkspaceGidTagsBody.md index bfa1b1ac..128951eb 100644 --- a/docs/WorkspaceGidTagsBody.md +++ b/docs/WorkspaceGidTagsBody.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**TagResponse**](TagResponse.md) | | [optional] +**data** | [**TagCreateTagForWorkspaceRequest**](TagCreateTagForWorkspaceRequest.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/test/test_all_of_task_template_response_created_by.py b/test/test_all_of_task_template_response_created_by.py new file mode 100644 index 00000000..c7d4d584 --- /dev/null +++ b/test/test_all_of_task_template_response_created_by.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.all_of_task_template_response_created_by import AllOfTaskTemplateResponseCreatedBy # noqa: E501 +from asana.rest import ApiException + + +class TestAllOfTaskTemplateResponseCreatedBy(unittest.TestCase): + """AllOfTaskTemplateResponseCreatedBy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAllOfTaskTemplateResponseCreatedBy(self): + """Test AllOfTaskTemplateResponseCreatedBy""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.all_of_task_template_response_created_by.AllOfTaskTemplateResponseCreatedBy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_all_of_task_template_response_project.py b/test/test_all_of_task_template_response_project.py new file mode 100644 index 00000000..3bc47644 --- /dev/null +++ b/test/test_all_of_task_template_response_project.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.all_of_task_template_response_project import AllOfTaskTemplateResponseProject # noqa: E501 +from asana.rest import ApiException + + +class TestAllOfTaskTemplateResponseProject(unittest.TestCase): + """AllOfTaskTemplateResponseProject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAllOfTaskTemplateResponseProject(self): + """Test AllOfTaskTemplateResponseProject""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.all_of_task_template_response_project.AllOfTaskTemplateResponseProject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_all_of_task_template_response_template.py b/test/test_all_of_task_template_response_template.py new file mode 100644 index 00000000..0588f8ef --- /dev/null +++ b/test/test_all_of_task_template_response_template.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.all_of_task_template_response_template import AllOfTaskTemplateResponseTemplate # noqa: E501 +from asana.rest import ApiException + + +class TestAllOfTaskTemplateResponseTemplate(unittest.TestCase): + """AllOfTaskTemplateResponseTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAllOfTaskTemplateResponseTemplate(self): + """Test AllOfTaskTemplateResponseTemplate""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.all_of_task_template_response_template.AllOfTaskTemplateResponseTemplate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tag_create_tag_for_workspace_request.py b/test/test_tag_create_tag_for_workspace_request.py new file mode 100644 index 00000000..846dec6e --- /dev/null +++ b/test/test_tag_create_tag_for_workspace_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.tag_create_tag_for_workspace_request import TagCreateTagForWorkspaceRequest # noqa: E501 +from asana.rest import ApiException + + +class TestTagCreateTagForWorkspaceRequest(unittest.TestCase): + """TagCreateTagForWorkspaceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTagCreateTagForWorkspaceRequest(self): + """Test TagCreateTagForWorkspaceRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.tag_create_tag_for_workspace_request.TagCreateTagForWorkspaceRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_base.py b/test/test_task_template_base.py new file mode 100644 index 00000000..88492bc7 --- /dev/null +++ b/test/test_task_template_base.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_base import TaskTemplateBase # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateBase(unittest.TestCase): + """TaskTemplateBase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateBase(self): + """Test TaskTemplateBase""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_base.TaskTemplateBase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_compact.py b/test/test_task_template_compact.py new file mode 100644 index 00000000..139c9e73 --- /dev/null +++ b/test/test_task_template_compact.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_compact import TaskTemplateCompact # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateCompact(unittest.TestCase): + """TaskTemplateCompact unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateCompact(self): + """Test TaskTemplateCompact""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_compact.TaskTemplateCompact() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_gid_instantiate_task_body.py b/test/test_task_template_gid_instantiate_task_body.py new file mode 100644 index 00000000..0e4b04a0 --- /dev/null +++ b/test/test_task_template_gid_instantiate_task_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_gid_instantiate_task_body import TaskTemplateGidInstantiateTaskBody # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateGidInstantiateTaskBody(unittest.TestCase): + """TaskTemplateGidInstantiateTaskBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateGidInstantiateTaskBody(self): + """Test TaskTemplateGidInstantiateTaskBody""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_gid_instantiate_task_body.TaskTemplateGidInstantiateTaskBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_instantiate_task_request.py b/test/test_task_template_instantiate_task_request.py new file mode 100644 index 00000000..dee89ff0 --- /dev/null +++ b/test/test_task_template_instantiate_task_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_instantiate_task_request import TaskTemplateInstantiateTaskRequest # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateInstantiateTaskRequest(unittest.TestCase): + """TaskTemplateInstantiateTaskRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateInstantiateTaskRequest(self): + """Test TaskTemplateInstantiateTaskRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_instantiate_task_request.TaskTemplateInstantiateTaskRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_recipe.py b/test/test_task_template_recipe.py new file mode 100644 index 00000000..146ea294 --- /dev/null +++ b/test/test_task_template_recipe.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_recipe import TaskTemplateRecipe # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateRecipe(unittest.TestCase): + """TaskTemplateRecipe unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateRecipe(self): + """Test TaskTemplateRecipe""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_recipe.TaskTemplateRecipe() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_recipe_attachments.py b/test/test_task_template_recipe_attachments.py new file mode 100644 index 00000000..8be2604f --- /dev/null +++ b/test/test_task_template_recipe_attachments.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_recipe_attachments import TaskTemplateRecipeAttachments # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateRecipeAttachments(unittest.TestCase): + """TaskTemplateRecipeAttachments unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateRecipeAttachments(self): + """Test TaskTemplateRecipeAttachments""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_recipe_attachments.TaskTemplateRecipeAttachments() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_recipe_compact.py b/test/test_task_template_recipe_compact.py new file mode 100644 index 00000000..2c384e2f --- /dev/null +++ b/test/test_task_template_recipe_compact.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_recipe_compact import TaskTemplateRecipeCompact # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateRecipeCompact(unittest.TestCase): + """TaskTemplateRecipeCompact unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateRecipeCompact(self): + """Test TaskTemplateRecipeCompact""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_recipe_compact.TaskTemplateRecipeCompact() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_recipe_dependencies.py b/test/test_task_template_recipe_dependencies.py new file mode 100644 index 00000000..2460ace4 --- /dev/null +++ b/test/test_task_template_recipe_dependencies.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_recipe_dependencies import TaskTemplateRecipeDependencies # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateRecipeDependencies(unittest.TestCase): + """TaskTemplateRecipeDependencies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateRecipeDependencies(self): + """Test TaskTemplateRecipeDependencies""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_recipe_dependencies.TaskTemplateRecipeDependencies() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_response.py b/test/test_task_template_response.py new file mode 100644 index 00000000..1cc1746d --- /dev/null +++ b/test/test_task_template_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_response import TaskTemplateResponse # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateResponse(unittest.TestCase): + """TaskTemplateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateResponse(self): + """Test TaskTemplateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_response.TaskTemplateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_response_array.py b/test/test_task_template_response_array.py new file mode 100644 index 00000000..99bb1e33 --- /dev/null +++ b/test/test_task_template_response_array.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_response_array import TaskTemplateResponseArray # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateResponseArray(unittest.TestCase): + """TaskTemplateResponseArray unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateResponseArray(self): + """Test TaskTemplateResponseArray""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_response_array.TaskTemplateResponseArray() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_template_response_data.py b/test/test_task_template_response_data.py new file mode 100644 index 00000000..eeded579 --- /dev/null +++ b/test/test_task_template_response_data.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Asana + + This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml). # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import asana +from asana.models.task_template_response_data import TaskTemplateResponseData # noqa: E501 +from asana.rest import ApiException + + +class TestTaskTemplateResponseData(unittest.TestCase): + """TaskTemplateResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTemplateResponseData(self): + """Test TaskTemplateResponseData""" + # FIXME: construct object with mandatory attributes with example values + # model = asana.models.task_template_response_data.TaskTemplateResponseData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()