Skip to content

Commit bff06ec

Browse files
[TASKSCLOUD-967] - Deployed new 25.11 version
1 parent 51cba34 commit bff06ec

File tree

10 files changed

+245
-7
lines changed

10 files changed

+245
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
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 25.11
38+
- Enhanced reading data from Primavera-specific task's properties.
39+
3740
## Enhancements in Version 25.8
3841
- Added new ability to level tasks for the resources.
3942
- Provided the ability to clear leveling delay that was previously added to the tasks during resource leveling.

asposetaskscloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
from asposetaskscloud.models.page_size import PageSize
6565
from asposetaskscloud.models.presentation_format import PresentationFormat
6666
from asposetaskscloud.models.primavera_activity_type import PrimaveraActivityType
67+
from asposetaskscloud.models.primavera_constraint_type import PrimaveraConstraintType
6768
from asposetaskscloud.models.primavera_duration_type import PrimaveraDurationType
6869
from asposetaskscloud.models.primavera_percent_complete_type import PrimaveraPercentCompleteType
6970
from asposetaskscloud.models.primavera_task_properties import PrimaveraTaskProperties

asposetaskscloud/api_client.py

Lines changed: 2 additions & 2 deletions
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': '25.8'}
80+
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '25.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 25.8'
85+
self.user_agent = 'python sdk 25.11'
8686

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

asposetaskscloud/configuration.py

Lines changed: 1 addition & 1 deletion
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: 25.8.0".\
267+
"SDK Package Version: 25.11.0".\
268268
format(env=sys.platform, pyversion=sys.version)

asposetaskscloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
from asposetaskscloud.models.page_size import PageSize
5858
from asposetaskscloud.models.presentation_format import PresentationFormat
5959
from asposetaskscloud.models.primavera_activity_type import PrimaveraActivityType
60+
from asposetaskscloud.models.primavera_constraint_type import PrimaveraConstraintType
6061
from asposetaskscloud.models.primavera_duration_type import PrimaveraDurationType
6162
from asposetaskscloud.models.primavera_percent_complete_type import PrimaveraPercentCompleteType
6263
from asposetaskscloud.models.primavera_task_properties import PrimaveraTaskProperties
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# coding: utf-8
2+
# -----------------------------------------------------------------------------------
3+
# <copyright company="Aspose" file="PrimaveraConstraintType.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 PrimaveraConstraintType(object):
33+
"""Specifies a type of activity&#39;s constraint.
34+
"""
35+
36+
"""
37+
allowed enum values
38+
"""
39+
NONE = "None"
40+
FINISHON = "FinishOn"
41+
FINISHONORAFTER = "FinishOnOrAfter"
42+
FINISHONORBEFORE = "FinishOnOrBefore"
43+
MANDATORYFINISH = "MandatoryFinish"
44+
MANDATORYSTART = "MandatoryStart"
45+
STARTON = "StartOn"
46+
STARTONORAFTER = "StartOnOrAfter"
47+
STARTONORBEFORE = "StartOnOrBefore"
48+
ASLATEASPOSSIBLE = "AsLateAsPossible"
49+
50+
"""
51+
Attributes:
52+
swagger_types (dict): The key is attribute name
53+
and the value is attribute type.
54+
attribute_map (dict): The key is attribute name
55+
and the value is json key in definition.
56+
"""
57+
swagger_types = {
58+
}
59+
60+
attribute_map = {
61+
}
62+
63+
def __init__(self): # noqa: E501
64+
"""PrimaveraConstraintType - a model defined in Swagger""" # noqa: E501
65+
self.discriminator = None
66+
67+
def to_dict(self):
68+
"""Returns the model properties as a dict"""
69+
result = {}
70+
71+
for attr, _ in six.iteritems(self.swagger_types):
72+
value = getattr(self, attr)
73+
if isinstance(value, list):
74+
result[attr] = list(map(
75+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76+
value
77+
))
78+
elif hasattr(value, "to_dict"):
79+
result[attr] = value.to_dict()
80+
elif isinstance(value, dict):
81+
result[attr] = dict(map(
82+
lambda item: (item[0], item[1].to_dict())
83+
if hasattr(item[1], "to_dict") else item,
84+
value.items()
85+
))
86+
else:
87+
result[attr] = value
88+
89+
return result
90+
91+
def to_str(self):
92+
"""Returns the string representation of the model"""
93+
return pprint.pformat(self.to_dict())
94+
95+
def __repr__(self):
96+
"""For `print` and `pprint`"""
97+
return self.to_str()
98+
99+
def __eq__(self, other):
100+
"""Returns true if both objects are equal"""
101+
if not isinstance(other, PrimaveraConstraintType):
102+
return False
103+
104+
return self.__dict__ == other.__dict__
105+
106+
def __ne__(self, other):
107+
"""Returns true if both objects are not equal"""
108+
return not self == other

asposetaskscloud/models/primavera_task_properties.py

Lines changed: 115 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ class PrimaveraTaskProperties(object):
7171
'budgeted_labor_cost': 'float',
7272
'budgeted_nonlabor_cost': 'float',
7373
'budgeted_material_cost': 'float',
74-
'budgeted_expense_cost': 'float'
74+
'budgeted_expense_cost': 'float',
75+
'primary_constraint_type': 'PrimaveraConstraintType',
76+
'primary_constraint_date': 'datetime',
77+
'secondary_constraint_type': 'PrimaveraConstraintType',
78+
'secondary_constraint_date': 'datetime'
7579
}
7680

7781
attribute_map = {
@@ -105,10 +109,14 @@ class PrimaveraTaskProperties(object):
105109
'budgeted_labor_cost': 'budgetedLaborCost',
106110
'budgeted_nonlabor_cost': 'budgetedNonlaborCost',
107111
'budgeted_material_cost': 'budgetedMaterialCost',
108-
'budgeted_expense_cost': 'budgetedExpenseCost'
112+
'budgeted_expense_cost': 'budgetedExpenseCost',
113+
'primary_constraint_type': 'primaryConstraintType',
114+
'primary_constraint_date': 'primaryConstraintDate',
115+
'secondary_constraint_type': 'secondaryConstraintType',
116+
'secondary_constraint_date': 'secondaryConstraintDate'
109117
}
110118

111-
def __init__(self, sequence_number=None, activity_id=None, remaining_early_finish=None, remaining_early_start=None, remaining_late_start=None, remaining_late_finish=None, raw_duration_type=None, raw_activity_type=None, raw_complete_percent_type=None, raw_status=None, duration_percent_complete=None, physical_percent_complete=None, actual_non_labor_units=None, actual_labor_units=None, units_percent_complete=None, remaining_labor_units=None, remaining_non_labor_units=None, duration_type=None, activity_type=None, percent_complete_type=None, actual_labor_cost=None, actual_nonlabor_cost=None, actual_material_cost=None, actual_expense_cost=None, remaining_expense_cost=None, actual_total_cost=None, budgeted_total_cost=None, budgeted_labor_cost=None, budgeted_nonlabor_cost=None, budgeted_material_cost=None, budgeted_expense_cost=None): # noqa: E501
119+
def __init__(self, sequence_number=None, activity_id=None, remaining_early_finish=None, remaining_early_start=None, remaining_late_start=None, remaining_late_finish=None, raw_duration_type=None, raw_activity_type=None, raw_complete_percent_type=None, raw_status=None, duration_percent_complete=None, physical_percent_complete=None, actual_non_labor_units=None, actual_labor_units=None, units_percent_complete=None, remaining_labor_units=None, remaining_non_labor_units=None, duration_type=None, activity_type=None, percent_complete_type=None, actual_labor_cost=None, actual_nonlabor_cost=None, actual_material_cost=None, actual_expense_cost=None, remaining_expense_cost=None, actual_total_cost=None, budgeted_total_cost=None, budgeted_labor_cost=None, budgeted_nonlabor_cost=None, budgeted_material_cost=None, budgeted_expense_cost=None, primary_constraint_type=None, primary_constraint_date=None, secondary_constraint_type=None, secondary_constraint_date=None): # noqa: E501
112120
"""PrimaveraTaskProperties - a model defined in Swagger""" # noqa: E501
113121

114122
self._sequence_number = None
@@ -142,6 +150,10 @@ def __init__(self, sequence_number=None, activity_id=None, remaining_early_finis
142150
self._budgeted_nonlabor_cost = None
143151
self._budgeted_material_cost = None
144152
self._budgeted_expense_cost = None
153+
self._primary_constraint_type = None
154+
self._primary_constraint_date = None
155+
self._secondary_constraint_type = None
156+
self._secondary_constraint_date = None
145157
self.discriminator = None
146158

147159
if sequence_number is not None:
@@ -206,6 +218,14 @@ def __init__(self, sequence_number=None, activity_id=None, remaining_early_finis
206218
self.budgeted_material_cost = budgeted_material_cost
207219
if budgeted_expense_cost is not None:
208220
self.budgeted_expense_cost = budgeted_expense_cost
221+
if primary_constraint_type is not None:
222+
self.primary_constraint_type = primary_constraint_type
223+
if primary_constraint_date is not None:
224+
self.primary_constraint_date = primary_constraint_date
225+
if secondary_constraint_type is not None:
226+
self.secondary_constraint_type = secondary_constraint_type
227+
if secondary_constraint_date is not None:
228+
self.secondary_constraint_date = secondary_constraint_date
209229

210230
@property
211231
def sequence_number(self):
@@ -910,6 +930,98 @@ def budgeted_expense_cost(self, budgeted_expense_cost):
910930
if budgeted_expense_cost is None:
911931
raise ValueError("Invalid value for `budgeted_expense_cost`, must not be `None`") # noqa: E501
912932
self._budgeted_expense_cost = budgeted_expense_cost
933+
@property
934+
def primary_constraint_type(self):
935+
"""Gets the primary_constraint_type of this PrimaveraTaskProperties. # noqa: E501
936+
937+
Gets a type of primary constraint. # noqa: E501
938+
939+
:return: The primary_constraint_type of this PrimaveraTaskProperties. # noqa: E501
940+
:rtype: PrimaveraConstraintType
941+
"""
942+
return self._primary_constraint_type
943+
944+
@primary_constraint_type.setter
945+
def primary_constraint_type(self, primary_constraint_type):
946+
"""Sets the primary_constraint_type of this PrimaveraTaskProperties.
947+
948+
Gets a type of primary constraint. # noqa: E501
949+
950+
:param primary_constraint_type: The primary_constraint_type of this PrimaveraTaskProperties. # noqa: E501
951+
:type: PrimaveraConstraintType
952+
"""
953+
if primary_constraint_type is None:
954+
raise ValueError("Invalid value for `primary_constraint_type`, must not be `None`") # noqa: E501
955+
self._primary_constraint_type = primary_constraint_type
956+
@property
957+
def primary_constraint_date(self):
958+
"""Gets the primary_constraint_date of this PrimaveraTaskProperties. # noqa: E501
959+
960+
Gets the date of primary constraint. # noqa: E501
961+
962+
:return: The primary_constraint_date of this PrimaveraTaskProperties. # noqa: E501
963+
:rtype: datetime
964+
"""
965+
return self._primary_constraint_date
966+
967+
@primary_constraint_date.setter
968+
def primary_constraint_date(self, primary_constraint_date):
969+
"""Sets the primary_constraint_date of this PrimaveraTaskProperties.
970+
971+
Gets the date of primary constraint. # noqa: E501
972+
973+
:param primary_constraint_date: The primary_constraint_date of this PrimaveraTaskProperties. # noqa: E501
974+
:type: datetime
975+
"""
976+
if primary_constraint_date is None:
977+
raise ValueError("Invalid value for `primary_constraint_date`, must not be `None`") # noqa: E501
978+
self._primary_constraint_date = primary_constraint_date
979+
@property
980+
def secondary_constraint_type(self):
981+
"""Gets the secondary_constraint_type of this PrimaveraTaskProperties. # noqa: E501
982+
983+
Gets a type of secondary constraint. # noqa: E501
984+
985+
:return: The secondary_constraint_type of this PrimaveraTaskProperties. # noqa: E501
986+
:rtype: PrimaveraConstraintType
987+
"""
988+
return self._secondary_constraint_type
989+
990+
@secondary_constraint_type.setter
991+
def secondary_constraint_type(self, secondary_constraint_type):
992+
"""Sets the secondary_constraint_type of this PrimaveraTaskProperties.
993+
994+
Gets a type of secondary constraint. # noqa: E501
995+
996+
:param secondary_constraint_type: The secondary_constraint_type of this PrimaveraTaskProperties. # noqa: E501
997+
:type: PrimaveraConstraintType
998+
"""
999+
if secondary_constraint_type is None:
1000+
raise ValueError("Invalid value for `secondary_constraint_type`, must not be `None`") # noqa: E501
1001+
self._secondary_constraint_type = secondary_constraint_type
1002+
@property
1003+
def secondary_constraint_date(self):
1004+
"""Gets the secondary_constraint_date of this PrimaveraTaskProperties. # noqa: E501
1005+
1006+
Gets the date of secondary constraint. # noqa: E501
1007+
1008+
:return: The secondary_constraint_date of this PrimaveraTaskProperties. # noqa: E501
1009+
:rtype: datetime
1010+
"""
1011+
return self._secondary_constraint_date
1012+
1013+
@secondary_constraint_date.setter
1014+
def secondary_constraint_date(self, secondary_constraint_date):
1015+
"""Sets the secondary_constraint_date of this PrimaveraTaskProperties.
1016+
1017+
Gets the date of secondary constraint. # noqa: E501
1018+
1019+
:param secondary_constraint_date: The secondary_constraint_date of this PrimaveraTaskProperties. # noqa: E501
1020+
:type: datetime
1021+
"""
1022+
if secondary_constraint_date is None:
1023+
raise ValueError("Invalid value for `secondary_constraint_date`, must not be `None`") # noqa: E501
1024+
self._secondary_constraint_date = secondary_constraint_date
9131025
def to_dict(self):
9141026
"""Returns the model properties as a dict"""
9151027
result = {}

docs/PrimaveraConstraintType.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PrimaveraConstraintType
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

docs/PrimaveraTaskProperties.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ Name | Type | Description | Notes
3434
**budgeted_nonlabor_cost** | **float** | Gets the value of budgeted (or planned) non labor cost. |
3535
**budgeted_material_cost** | **float** | Gets the value of of budgeted (or planned) material cost. |
3636
**budgeted_expense_cost** | **float** | Gets the value of budgeted (or planned) expense cost. |
37+
**primary_constraint_type** | [**PrimaveraConstraintType**](PrimaveraConstraintType.md) | Gets a type of primary constraint. |
38+
**primary_constraint_date** | **datetime** | Gets the date of primary constraint. |
39+
**secondary_constraint_type** | [**PrimaveraConstraintType**](PrimaveraConstraintType.md) | Gets a type of secondary constraint. |
40+
**secondary_constraint_date** | **datetime** | Gets the date of secondary constraint. |
3741

3842
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3943

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages # noqa: H301
55

66
NAME = "aspose-tasks-cloud"
7-
VERSION = "25.8.0"
7+
VERSION = "25.11.0"
88
# To install the library, run the following
99
#
1010
# python setup.py install

0 commit comments

Comments
 (0)