Skip to content

Commit b58ec81

Browse files
[TASKSCLOUD-867] - Deployed new 24.11 version.
1 parent 259fb10 commit b58ec81

20 files changed

+999
-12
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
3434
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
3535

3636

37+
## Enhancements in Version 24.11
38+
- Enhanced reading data from Primavera-specific task's properties.
39+
3740
## Enhancements in Version 24.4
3841
- Added new ability to get views information
3942
- Possibility to modify table text styles for Gantt Chart views.

asposetaskscloud/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
from asposetaskscloud.models.outline_value_type import OutlineValueType
6262
from asposetaskscloud.models.page_size import PageSize
6363
from asposetaskscloud.models.presentation_format import PresentationFormat
64+
from asposetaskscloud.models.primavera_activity_type import PrimaveraActivityType
65+
from asposetaskscloud.models.primavera_duration_type import PrimaveraDurationType
66+
from asposetaskscloud.models.primavera_percent_complete_type import PrimaveraPercentCompleteType
6467
from asposetaskscloud.models.primavera_task_properties import PrimaveraTaskProperties
6568
from asposetaskscloud.models.probability_distribution_type import ProbabilityDistributionType
6669
from asposetaskscloud.models.project_database_type import ProjectDatabaseType

asposetaskscloud/api_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777

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

8787
def __del__(self):
8888
self.pool.close()

asposetaskscloud/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,5 @@ def to_debug_report(self):
264264
"OS: {env}\n"\
265265
"Python Version: {pyversion}\n"\
266266
"Version of the API: 3.0\n"\
267-
"SDK Package Version: 24.4.0".\
267+
"SDK Package Version: 24.11.0".\
268268
format(env=sys.platform, pyversion=sys.version)

asposetaskscloud/models/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
from asposetaskscloud.models.outline_value_type import OutlineValueType
5555
from asposetaskscloud.models.page_size import PageSize
5656
from asposetaskscloud.models.presentation_format import PresentationFormat
57+
from asposetaskscloud.models.primavera_activity_type import PrimaveraActivityType
58+
from asposetaskscloud.models.primavera_duration_type import PrimaveraDurationType
59+
from asposetaskscloud.models.primavera_percent_complete_type import PrimaveraPercentCompleteType
5760
from asposetaskscloud.models.primavera_task_properties import PrimaveraTaskProperties
5861
from asposetaskscloud.models.probability_distribution_type import ProbabilityDistributionType
5962
from asposetaskscloud.models.project_database_type import ProjectDatabaseType

asposetaskscloud/models/calendar.py

+27-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Calendar(object):
4141
and the value is json key in definition.
4242
"""
4343
swagger_types = {
44+
'guid': 'str',
4445
'name': 'str',
4546
'uid': 'int',
4647
'days': 'list[WeekDay]',
@@ -50,6 +51,7 @@ class Calendar(object):
5051
}
5152

5253
attribute_map = {
54+
'guid': 'guid',
5355
'name': 'name',
5456
'uid': 'uid',
5557
'days': 'days',
@@ -58,9 +60,10 @@ class Calendar(object):
5860
'is_baseline_calendar': 'isBaselineCalendar'
5961
}
6062

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

66+
self._guid = None
6467
self._name = None
6568
self._uid = None
6669
self._days = None
@@ -69,6 +72,8 @@ def __init__(self, name=None, uid=None, days=None, is_base_calendar=None, base_c
6972
self._is_baseline_calendar = None
7073
self.discriminator = None
7174

75+
if guid is not None:
76+
self.guid = guid
7277
if name is not None:
7378
self.name = name
7479
if uid is not None:
@@ -83,6 +88,27 @@ def __init__(self, name=None, uid=None, days=None, is_base_calendar=None, base_c
8388
self.is_baseline_calendar = is_baseline_calendar
8489

8590
@property
91+
def guid(self):
92+
"""Gets the guid of this Calendar. # noqa: E501
93+
94+
Gets calendar's Guid. # noqa: E501
95+
96+
:return: The guid of this Calendar. # noqa: E501
97+
:rtype: str
98+
"""
99+
return self._guid
100+
101+
@guid.setter
102+
def guid(self, guid):
103+
"""Sets the guid of this Calendar.
104+
105+
Gets calendar's Guid. # noqa: E501
106+
107+
:param guid: The guid of this Calendar. # noqa: E501
108+
:type: str
109+
"""
110+
self._guid = guid
111+
@property
86112
def name(self):
87113
"""Gets the name of this Calendar. # noqa: E501
88114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# coding: utf-8
2+
# -----------------------------------------------------------------------------------
3+
# <copyright company="Aspose" file="PrimaveraActivityType.py">
4+
# Copyright (c) 2020 Aspose.Tasks Cloud
5+
# </copyright>
6+
# <summary>
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy
8+
# of this software and associated documentation files (the "Software"), to deal
9+
# in the Software without restriction, including without limitation the rights
10+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
# copies of the Software, and to permit persons to whom the Software is
12+
# furnished to do so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in all
15+
# copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
# SOFTWARE.
24+
# </summary>
25+
# -----------------------------------------------------------------------------------
26+
import pprint
27+
import re # noqa: F401
28+
29+
import six
30+
31+
32+
class PrimaveraActivityType(object):
33+
"""Specifies type of Primavera activity.
34+
"""
35+
36+
"""
37+
allowed enum values
38+
"""
39+
NONE = "None"
40+
STARTMILESTONE = "StartMilestone"
41+
FINISHMILESTONE = "FinishMilestone"
42+
TASKDEPENDENT = "TaskDependent"
43+
RESOURCEDEPENDENT = "ResourceDependent"
44+
LEVELOFEFFORT = "LevelOfEffort"
45+
WBSSUMMARY = "WbsSummary"
46+
47+
"""
48+
Attributes:
49+
swagger_types (dict): The key is attribute name
50+
and the value is attribute type.
51+
attribute_map (dict): The key is attribute name
52+
and the value is json key in definition.
53+
"""
54+
swagger_types = {
55+
}
56+
57+
attribute_map = {
58+
}
59+
60+
def __init__(self): # noqa: E501
61+
"""PrimaveraActivityType - a model defined in Swagger""" # noqa: E501
62+
self.discriminator = None
63+
64+
def to_dict(self):
65+
"""Returns the model properties as a dict"""
66+
result = {}
67+
68+
for attr, _ in six.iteritems(self.swagger_types):
69+
value = getattr(self, attr)
70+
if isinstance(value, list):
71+
result[attr] = list(map(
72+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
73+
value
74+
))
75+
elif hasattr(value, "to_dict"):
76+
result[attr] = value.to_dict()
77+
elif isinstance(value, dict):
78+
result[attr] = dict(map(
79+
lambda item: (item[0], item[1].to_dict())
80+
if hasattr(item[1], "to_dict") else item,
81+
value.items()
82+
))
83+
else:
84+
result[attr] = value
85+
86+
return result
87+
88+
def to_str(self):
89+
"""Returns the string representation of the model"""
90+
return pprint.pformat(self.to_dict())
91+
92+
def __repr__(self):
93+
"""For `print` and `pprint`"""
94+
return self.to_str()
95+
96+
def __eq__(self, other):
97+
"""Returns true if both objects are equal"""
98+
if not isinstance(other, PrimaveraActivityType):
99+
return False
100+
101+
return self.__dict__ == other.__dict__
102+
103+
def __ne__(self, other):
104+
"""Returns true if both objects are not equal"""
105+
return not self == other
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# coding: utf-8
2+
# -----------------------------------------------------------------------------------
3+
# <copyright company="Aspose" file="PrimaveraDurationType.py">
4+
# Copyright (c) 2020 Aspose.Tasks Cloud
5+
# </copyright>
6+
# <summary>
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy
8+
# of this software and associated documentation files (the "Software"), to deal
9+
# in the Software without restriction, including without limitation the rights
10+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
# copies of the Software, and to permit persons to whom the Software is
12+
# furnished to do so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in all
15+
# copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
# SOFTWARE.
24+
# </summary>
25+
# -----------------------------------------------------------------------------------
26+
import pprint
27+
import re # noqa: F401
28+
29+
import six
30+
31+
32+
class PrimaveraDurationType(object):
33+
"""Specifies duration type of Primavera activity.
34+
"""
35+
36+
"""
37+
allowed enum values
38+
"""
39+
NONE = "None"
40+
FIXEDDURATIONUNITS = "FixedDurationUnits"
41+
FIXEDDURATIONUNITSTIME = "FixedDurationUnitsTime"
42+
FIXEDUNITS = "FixedUnits"
43+
FIXEDUNITSTIME = "FixedUnitsTime"
44+
45+
"""
46+
Attributes:
47+
swagger_types (dict): The key is attribute name
48+
and the value is attribute type.
49+
attribute_map (dict): The key is attribute name
50+
and the value is json key in definition.
51+
"""
52+
swagger_types = {
53+
}
54+
55+
attribute_map = {
56+
}
57+
58+
def __init__(self): # noqa: E501
59+
"""PrimaveraDurationType - a model defined in Swagger""" # noqa: E501
60+
self.discriminator = None
61+
62+
def to_dict(self):
63+
"""Returns the model properties as a dict"""
64+
result = {}
65+
66+
for attr, _ in six.iteritems(self.swagger_types):
67+
value = getattr(self, attr)
68+
if isinstance(value, list):
69+
result[attr] = list(map(
70+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71+
value
72+
))
73+
elif hasattr(value, "to_dict"):
74+
result[attr] = value.to_dict()
75+
elif isinstance(value, dict):
76+
result[attr] = dict(map(
77+
lambda item: (item[0], item[1].to_dict())
78+
if hasattr(item[1], "to_dict") else item,
79+
value.items()
80+
))
81+
else:
82+
result[attr] = value
83+
84+
return result
85+
86+
def to_str(self):
87+
"""Returns the string representation of the model"""
88+
return pprint.pformat(self.to_dict())
89+
90+
def __repr__(self):
91+
"""For `print` and `pprint`"""
92+
return self.to_str()
93+
94+
def __eq__(self, other):
95+
"""Returns true if both objects are equal"""
96+
if not isinstance(other, PrimaveraDurationType):
97+
return False
98+
99+
return self.__dict__ == other.__dict__
100+
101+
def __ne__(self, other):
102+
"""Returns true if both objects are not equal"""
103+
return not self == other

0 commit comments

Comments
 (0)