Skip to content

Commit

Permalink
[TASKSCLOUD-867] - Deployed new 24.11 version.
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanAndreychikov committed Nov 6, 2024
1 parent 259fb10 commit b58ec81
Show file tree
Hide file tree
Showing 20 changed files with 999 additions and 12 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG


## Enhancements in Version 24.11
- Enhanced reading data from Primavera-specific task's properties.

## Enhancements in Version 24.4
- Added new ability to get views information
- Possibility to modify table text styles for Gantt Chart views.
Expand Down
3 changes: 3 additions & 0 deletions asposetaskscloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
from asposetaskscloud.models.outline_value_type import OutlineValueType
from asposetaskscloud.models.page_size import PageSize
from asposetaskscloud.models.presentation_format import PresentationFormat
from asposetaskscloud.models.primavera_activity_type import PrimaveraActivityType
from asposetaskscloud.models.primavera_duration_type import PrimaveraDurationType
from asposetaskscloud.models.primavera_percent_complete_type import PrimaveraPercentCompleteType
from asposetaskscloud.models.primavera_task_properties import PrimaveraTaskProperties
from asposetaskscloud.models.probability_distribution_type import ProbabilityDistributionType
from asposetaskscloud.models.project_database_type import ProjectDatabaseType
Expand Down
4 changes: 2 additions & 2 deletions asposetaskscloud/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None,

self.pool = ThreadPool()
self.rest_client = rest.RESTClientObject(configuration)
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '24.4'}
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '24.11'}
if header_name is not None:
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'python sdk 24.4'
self.user_agent = 'python sdk 24.11'

def __del__(self):
self.pool.close()
Expand Down
2 changes: 1 addition & 1 deletion asposetaskscloud/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,5 +264,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 3.0\n"\
"SDK Package Version: 24.4.0".\
"SDK Package Version: 24.11.0".\
format(env=sys.platform, pyversion=sys.version)
3 changes: 3 additions & 0 deletions asposetaskscloud/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
from asposetaskscloud.models.outline_value_type import OutlineValueType
from asposetaskscloud.models.page_size import PageSize
from asposetaskscloud.models.presentation_format import PresentationFormat
from asposetaskscloud.models.primavera_activity_type import PrimaveraActivityType
from asposetaskscloud.models.primavera_duration_type import PrimaveraDurationType
from asposetaskscloud.models.primavera_percent_complete_type import PrimaveraPercentCompleteType
from asposetaskscloud.models.primavera_task_properties import PrimaveraTaskProperties
from asposetaskscloud.models.probability_distribution_type import ProbabilityDistributionType
from asposetaskscloud.models.project_database_type import ProjectDatabaseType
Expand Down
28 changes: 27 additions & 1 deletion asposetaskscloud/models/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Calendar(object):
and the value is json key in definition.
"""
swagger_types = {
'guid': 'str',
'name': 'str',
'uid': 'int',
'days': 'list[WeekDay]',
Expand All @@ -50,6 +51,7 @@ class Calendar(object):
}

attribute_map = {
'guid': 'guid',
'name': 'name',
'uid': 'uid',
'days': 'days',
Expand All @@ -58,9 +60,10 @@ class Calendar(object):
'is_baseline_calendar': 'isBaselineCalendar'
}

def __init__(self, name=None, uid=None, days=None, is_base_calendar=None, base_calendar=None, is_baseline_calendar=None): # noqa: E501
def __init__(self, guid=None, name=None, uid=None, days=None, is_base_calendar=None, base_calendar=None, is_baseline_calendar=None): # noqa: E501
"""Calendar - a model defined in Swagger""" # noqa: E501

self._guid = None
self._name = None
self._uid = None
self._days = None
Expand All @@ -69,6 +72,8 @@ def __init__(self, name=None, uid=None, days=None, is_base_calendar=None, base_c
self._is_baseline_calendar = None
self.discriminator = None

if guid is not None:
self.guid = guid
if name is not None:
self.name = name
if uid is not None:
Expand All @@ -83,6 +88,27 @@ def __init__(self, name=None, uid=None, days=None, is_base_calendar=None, base_c
self.is_baseline_calendar = is_baseline_calendar

@property
def guid(self):
"""Gets the guid of this Calendar. # noqa: E501
Gets calendar's Guid. # noqa: E501
:return: The guid of this Calendar. # noqa: E501
:rtype: str
"""
return self._guid

@guid.setter
def guid(self, guid):
"""Sets the guid of this Calendar.
Gets calendar's Guid. # noqa: E501
:param guid: The guid of this Calendar. # noqa: E501
:type: str
"""
self._guid = guid
@property
def name(self):
"""Gets the name of this Calendar. # noqa: E501
Expand Down
105 changes: 105 additions & 0 deletions asposetaskscloud/models/primavera_activity_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="PrimaveraActivityType.py">
# Copyright (c) 2020 Aspose.Tasks Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# </summary>
# -----------------------------------------------------------------------------------
import pprint
import re # noqa: F401

import six


class PrimaveraActivityType(object):
"""Specifies type of Primavera activity.
"""

"""
allowed enum values
"""
NONE = "None"
STARTMILESTONE = "StartMilestone"
FINISHMILESTONE = "FinishMilestone"
TASKDEPENDENT = "TaskDependent"
RESOURCEDEPENDENT = "ResourceDependent"
LEVELOFEFFORT = "LevelOfEffort"
WBSSUMMARY = "WbsSummary"

"""
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
"""PrimaveraActivityType - 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

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, PrimaveraActivityType):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
103 changes: 103 additions & 0 deletions asposetaskscloud/models/primavera_duration_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="PrimaveraDurationType.py">
# Copyright (c) 2020 Aspose.Tasks Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# </summary>
# -----------------------------------------------------------------------------------
import pprint
import re # noqa: F401

import six


class PrimaveraDurationType(object):
"""Specifies duration type of Primavera activity.
"""

"""
allowed enum values
"""
NONE = "None"
FIXEDDURATIONUNITS = "FixedDurationUnits"
FIXEDDURATIONUNITSTIME = "FixedDurationUnitsTime"
FIXEDUNITS = "FixedUnits"
FIXEDUNITSTIME = "FixedUnitsTime"

"""
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
"""PrimaveraDurationType - 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

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, PrimaveraDurationType):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
Loading

0 comments on commit b58ec81

Please sign in to comment.