Skip to content

Commit 28c5dce

Browse files
[TASKSCLOUD-906] - Deployed new 25.4 version
1 parent b58ec81 commit 28c5dce

12 files changed

+158
-24
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ 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.4
38+
- Enhanced Task model.
39+
- Enhanced TaskLink model.
40+
- Enhanced ProjectRecalculationResult model.
41+
3742
## Enhancements in Version 24.11
3843
- Enhanced reading data from Primavera-specific task's properties.
3944

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': '24.11'}
80+
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '25.4'}
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.11'
85+
self.user_agent = 'python sdk 25.4'
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: 24.11.0".\
267+
"SDK Package Version: 25.4.0".\
268268
format(env=sys.platform, pyversion=sys.version)

asposetaskscloud/models/project_recalculation_result.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,30 @@ class ProjectRecalculationResult(object):
4242
"""
4343
swagger_types = {
4444
'validation_state': 'ProjectValidationState',
45-
'validation_error_message': 'str'
45+
'validation_error_message': 'str',
46+
'failed_task_uid': 'int'
4647
}
4748

4849
attribute_map = {
4950
'validation_state': 'validationState',
50-
'validation_error_message': 'validationErrorMessage'
51+
'validation_error_message': 'validationErrorMessage',
52+
'failed_task_uid': 'failedTaskUid'
5153
}
5254

53-
def __init__(self, validation_state=None, validation_error_message=None): # noqa: E501
55+
def __init__(self, validation_state=None, validation_error_message=None, failed_task_uid=None): # noqa: E501
5456
"""ProjectRecalculationResult - a model defined in Swagger""" # noqa: E501
5557

5658
self._validation_state = None
5759
self._validation_error_message = None
60+
self._failed_task_uid = None
5861
self.discriminator = None
5962

6063
if validation_state is not None:
6164
self.validation_state = validation_state
6265
if validation_error_message is not None:
6366
self.validation_error_message = validation_error_message
67+
if failed_task_uid is not None:
68+
self.failed_task_uid = failed_task_uid
6469

6570
@property
6671
def validation_state(self):
@@ -102,6 +107,27 @@ def validation_error_message(self, validation_error_message):
102107
:type: str
103108
"""
104109
self._validation_error_message = validation_error_message
110+
@property
111+
def failed_task_uid(self):
112+
"""Gets the failed_task_uid of this ProjectRecalculationResult. # noqa: E501
113+
114+
Gets the task uid which caused the validation error. # noqa: E501
115+
116+
:return: The failed_task_uid of this ProjectRecalculationResult. # noqa: E501
117+
:rtype: int
118+
"""
119+
return self._failed_task_uid
120+
121+
@failed_task_uid.setter
122+
def failed_task_uid(self, failed_task_uid):
123+
"""Sets the failed_task_uid of this ProjectRecalculationResult.
124+
125+
Gets the task uid which caused the validation error. # noqa: E501
126+
127+
:param failed_task_uid: The failed_task_uid of this ProjectRecalculationResult. # noqa: E501
128+
:type: int
129+
"""
130+
self._failed_task_uid = failed_task_uid
105131
def to_dict(self):
106132
"""Returns the model properties as a dict"""
107133
result = {}

asposetaskscloud/models/task.py

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class Task(object):
6767
'constraint_type': 'ConstraintType',
6868
'contact': 'str',
6969
'cost': 'float',
70+
'outline_number': 'str',
7071
'cv': 'float',
7172
'deadline': 'datetime',
7273
'duration_variance': 'str',
@@ -155,7 +156,8 @@ class Task(object):
155156
'extended_attributes': 'list[ExtendedAttribute]',
156157
'outline_codes': 'list[OutlineCode]',
157158
'warning': 'bool',
158-
'activity_id': 'str'
159+
'activity_id': 'str',
160+
'external_uid': 'int'
159161
}
160162

161163
attribute_map = {
@@ -185,6 +187,7 @@ class Task(object):
185187
'constraint_type': 'constraintType',
186188
'contact': 'contact',
187189
'cost': 'cost',
190+
'outline_number': 'outlineNumber',
188191
'cv': 'cv',
189192
'deadline': 'deadline',
190193
'duration_variance': 'durationVariance',
@@ -273,10 +276,11 @@ class Task(object):
273276
'extended_attributes': 'extendedAttributes',
274277
'outline_codes': 'outlineCodes',
275278
'warning': 'warning',
276-
'activity_id': 'activityId'
279+
'activity_id': 'activityId',
280+
'external_uid': 'externalUid'
277281
}
278282

279-
def __init__(self, uid=None, id=None, name=None, duration_text=None, duration=None, start=None, finish=None, start_text=None, finish_text=None, percent_complete=None, percent_work_complete=None, is_active=True, actual_cost=None, actual_duration=None, actual_finish=None, actual_overtime_cost=None, actual_overtime_work=None, actual_work_protected=None, actual_overtime_work_protected=None, actual_start=None, budget_work=None, budget_cost=None, constraint_date=None, constraint_type=None, contact=None, cost=None, cv=None, deadline=None, duration_variance=None, early_finish=None, early_start=None, is_effort_driven=None, is_external_task=None, external_task_project=None, external_id=None, finish_slack=None, finish_variance=None, fixed_cost=None, fixed_cost_accrual=None, free_slack=None, guid=None, has_overallocated_resource=None, hide_bar=None, ignore_resource_calendar=None, late_finish=None, late_start=None, is_level_assignments=True, can_leveling_split=True, leveling_delay=None, is_marked=None, is_milestone=None, is_critical=None, is_subproject=None, is_subproject_read_only=None, subproject_name=None, is_summary=None, subtasks_uids=None, outline_level=None, is_over_allocated=None, is_estimated=None, overtime_cost=None, overtime_work=None, physical_percent_complete=None, pre_leveled_finish=None, pre_leveled_start=None, is_recurring=None, regular_work=None, remaining_cost=None, remaining_duration=None, remaining_overtime_cost=None, remaining_overtime_work=None, remaining_work=None, resume=None, is_resume_valid=None, stop=None, is_rollup=None, start_slack=None, start_variance=None, calendar_uid=-1, is_manual=None, manual_start=None, manual_finish=None, manual_duration=None, total_slack=None, type=None, wbs=None, priority=None, work=None, work_variance=None, notes_text=None, notes_rtf=None, acwp=None, bcws=None, bcwp=None, leveling_delay_format=None, predecessors=None, successors=None, ignore_warnings=False, is_expanded=None, display_on_timeline=None, display_as_summary=None, hyperlink=None, hyperlink_address=None, hyperlink_sub_address=None, earned_value_method=None, is_published=True, status_manager=None, commitment_start=None, commitment_finish=None, commitment_type=None, baselines=None, extended_attributes=None, outline_codes=None, warning=False, activity_id=None): # noqa: E501
283+
def __init__(self, uid=None, id=None, name=None, duration_text=None, duration=None, start=None, finish=None, start_text=None, finish_text=None, percent_complete=None, percent_work_complete=None, is_active=True, actual_cost=None, actual_duration=None, actual_finish=None, actual_overtime_cost=None, actual_overtime_work=None, actual_work_protected=None, actual_overtime_work_protected=None, actual_start=None, budget_work=None, budget_cost=None, constraint_date=None, constraint_type=None, contact=None, cost=None, outline_number=None, cv=None, deadline=None, duration_variance=None, early_finish=None, early_start=None, is_effort_driven=None, is_external_task=None, external_task_project=None, external_id=None, finish_slack=None, finish_variance=None, fixed_cost=None, fixed_cost_accrual=None, free_slack=None, guid=None, has_overallocated_resource=None, hide_bar=None, ignore_resource_calendar=None, late_finish=None, late_start=None, is_level_assignments=True, can_leveling_split=True, leveling_delay=None, is_marked=None, is_milestone=None, is_critical=None, is_subproject=None, is_subproject_read_only=None, subproject_name=None, is_summary=None, subtasks_uids=None, outline_level=None, is_over_allocated=None, is_estimated=None, overtime_cost=None, overtime_work=None, physical_percent_complete=None, pre_leveled_finish=None, pre_leveled_start=None, is_recurring=None, regular_work=None, remaining_cost=None, remaining_duration=None, remaining_overtime_cost=None, remaining_overtime_work=None, remaining_work=None, resume=None, is_resume_valid=None, stop=None, is_rollup=None, start_slack=None, start_variance=None, calendar_uid=-1, is_manual=None, manual_start=None, manual_finish=None, manual_duration=None, total_slack=None, type=None, wbs=None, priority=None, work=None, work_variance=None, notes_text=None, notes_rtf=None, acwp=None, bcws=None, bcwp=None, leveling_delay_format=None, predecessors=None, successors=None, ignore_warnings=False, is_expanded=None, display_on_timeline=None, display_as_summary=None, hyperlink=None, hyperlink_address=None, hyperlink_sub_address=None, earned_value_method=None, is_published=True, status_manager=None, commitment_start=None, commitment_finish=None, commitment_type=None, baselines=None, extended_attributes=None, outline_codes=None, warning=False, activity_id=None, external_uid=None): # noqa: E501
280284
"""Task - a model defined in Swagger""" # noqa: E501
281285

282286
self._uid = None
@@ -305,6 +309,7 @@ def __init__(self, uid=None, id=None, name=None, duration_text=None, duration=No
305309
self._constraint_type = None
306310
self._contact = None
307311
self._cost = None
312+
self._outline_number = None
308313
self._cv = None
309314
self._deadline = None
310315
self._duration_variance = None
@@ -394,6 +399,7 @@ def __init__(self, uid=None, id=None, name=None, duration_text=None, duration=No
394399
self._outline_codes = None
395400
self._warning = None
396401
self._activity_id = None
402+
self._external_uid = None
397403
self.discriminator = None
398404

399405
if uid is not None:
@@ -448,6 +454,8 @@ def __init__(self, uid=None, id=None, name=None, duration_text=None, duration=No
448454
self.contact = contact
449455
if cost is not None:
450456
self.cost = cost
457+
if outline_number is not None:
458+
self.outline_number = outline_number
451459
if cv is not None:
452460
self.cv = cv
453461
if deadline is not None:
@@ -626,6 +634,8 @@ def __init__(self, uid=None, id=None, name=None, duration_text=None, duration=No
626634
self.warning = warning
627635
if activity_id is not None:
628636
self.activity_id = activity_id
637+
if external_uid is not None:
638+
self.external_uid = external_uid
629639

630640
@property
631641
def uid(self):
@@ -1216,6 +1226,27 @@ def cost(self, cost):
12161226
raise ValueError("Invalid value for `cost`, must not be `None`") # noqa: E501
12171227
self._cost = cost
12181228
@property
1229+
def outline_number(self):
1230+
"""Gets the outline_number of this Task. # noqa: E501
1231+
1232+
Gets or sets a value of OutlineNumber. # noqa: E501
1233+
1234+
:return: The outline_number of this Task. # noqa: E501
1235+
:rtype: str
1236+
"""
1237+
return self._outline_number
1238+
1239+
@outline_number.setter
1240+
def outline_number(self, outline_number):
1241+
"""Sets the outline_number of this Task.
1242+
1243+
Gets or sets a value of OutlineNumber. # noqa: E501
1244+
1245+
:param outline_number: The outline_number of this Task. # noqa: E501
1246+
:type: str
1247+
"""
1248+
self._outline_number = outline_number
1249+
@property
12191250
def cv(self):
12201251
"""Gets the cv of this Task. # noqa: E501
12211252
@@ -3208,6 +3239,29 @@ def activity_id(self, activity_id):
32083239
:type: str
32093240
"""
32103241
self._activity_id = activity_id
3242+
@property
3243+
def external_uid(self):
3244+
"""Gets the external_uid of this Task. # noqa: E501
3245+
3246+
Contains the external task's Unique identifier when the task is external. # noqa: E501
3247+
3248+
:return: The external_uid of this Task. # noqa: E501
3249+
:rtype: int
3250+
"""
3251+
return self._external_uid
3252+
3253+
@external_uid.setter
3254+
def external_uid(self, external_uid):
3255+
"""Sets the external_uid of this Task.
3256+
3257+
Contains the external task's Unique identifier when the task is external. # noqa: E501
3258+
3259+
:param external_uid: The external_uid of this Task. # noqa: E501
3260+
:type: int
3261+
"""
3262+
if external_uid is None:
3263+
raise ValueError("Invalid value for `external_uid`, must not be `None`") # noqa: E501
3264+
self._external_uid = external_uid
32113265
def to_dict(self):
32123266
"""Returns the model properties as a dict"""
32133267
result = {}

asposetaskscloud/models/task_link.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class TaskLink(object):
4747
'successor_uid': 'int',
4848
'link_type': 'TaskLinkType',
4949
'lag': 'int',
50-
'lag_format': 'TimeUnitType'
50+
'lag_format': 'TimeUnitType',
51+
'link_lag_time_span': 'str'
5152
}
5253

5354
attribute_map = {
@@ -57,10 +58,11 @@ class TaskLink(object):
5758
'successor_uid': 'successorUid',
5859
'link_type': 'linkType',
5960
'lag': 'lag',
60-
'lag_format': 'lagFormat'
61+
'lag_format': 'lagFormat',
62+
'link_lag_time_span': 'linkLagTimeSpan'
6163
}
6264

63-
def __init__(self, link=None, index=None, predecessor_uid=None, successor_uid=None, link_type=None, lag=None, lag_format=None): # noqa: E501
65+
def __init__(self, link=None, index=None, predecessor_uid=None, successor_uid=None, link_type=None, lag=None, lag_format=None, link_lag_time_span=None): # noqa: E501
6466
"""TaskLink - a model defined in Swagger""" # noqa: E501
6567

6668
self._link = None
@@ -70,6 +72,7 @@ def __init__(self, link=None, index=None, predecessor_uid=None, successor_uid=No
7072
self._link_type = None
7173
self._lag = None
7274
self._lag_format = None
75+
self._link_lag_time_span = None
7376
self.discriminator = None
7477

7578
if link is not None:
@@ -86,6 +89,8 @@ def __init__(self, link=None, index=None, predecessor_uid=None, successor_uid=No
8689
self.lag = lag
8790
if lag_format is not None:
8891
self.lag_format = lag_format
92+
if link_lag_time_span is not None:
93+
self.link_lag_time_span = link_lag_time_span
8994

9095
@property
9196
def link(self):
@@ -232,6 +237,29 @@ def lag_format(self, lag_format):
232237
if lag_format is None:
233238
raise ValueError("Invalid value for `lag_format`, must not be `None`") # noqa: E501
234239
self._lag_format = lag_format
240+
@property
241+
def link_lag_time_span(self):
242+
"""Gets the link_lag_time_span of this TaskLink. # noqa: E501
243+
244+
Gets or sets lag duration, depending on LagFormat. # noqa: E501
245+
246+
:return: The link_lag_time_span of this TaskLink. # noqa: E501
247+
:rtype: str
248+
"""
249+
return self._link_lag_time_span
250+
251+
@link_lag_time_span.setter
252+
def link_lag_time_span(self, link_lag_time_span):
253+
"""Sets the link_lag_time_span of this TaskLink.
254+
255+
Gets or sets lag duration, depending on LagFormat. # noqa: E501
256+
257+
:param link_lag_time_span: The link_lag_time_span of this TaskLink. # noqa: E501
258+
:type: str
259+
"""
260+
if link_lag_time_span is None:
261+
raise ValueError("Invalid value for `link_lag_time_span`, must not be `None`") # noqa: E501
262+
self._link_lag_time_span = link_lag_time_span
235263
def to_dict(self):
236264
"""Returns the model properties as a dict"""
237265
result = {}

docs/ProjectRecalculationResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**validation_state** | [**ProjectValidationState**](ProjectValidationState.md) | |
77
**validation_error_message** | **str** | | [optional]
8+
**failed_task_uid** | **int** | Gets the task uid which caused the validation error. | [optional]
89

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

docs/Task.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Name | Type | Description | Notes
2929
**constraint_type** | [**ConstraintType**](ConstraintType.md) | Provides choices for the type of constraint that can be applied for scheduling a task. |
3030
**contact** | **str** | The contact person for a task. | [optional]
3131
**cost** | **float** | The projected or scheduled cost of a task. |
32+
**outline_number** | **str** | Gets or sets a value of OutlineNumber. | [optional]
3233
**cv** | **float** | The difference between the baseline cost and total cost for a task. |
3334
**deadline** | **datetime** | The deadline for a task to be completed. |
3435
**duration_variance** | **str** | Contains the difference between the total duration of a task and the baseline duration of a task. |
@@ -118,6 +119,7 @@ Name | Type | Description | Notes
118119
**outline_codes** | [**list[OutlineCode]**](OutlineCode.md) | Task outline codes. | [optional]
119120
**warning** | **bool** | Represents the flag which indicates that task has schedule discrepancies. | [default to False]
120121
**activity_id** | **str** | Represents activity id field - a task's unique identifier used by Primavera (only applicable to Primavera projects). | [optional]
122+
**external_uid** | **int** | Contains the external task's Unique identifier when the task is external. |
121123

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

docs/TaskLink.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**link_type** | [**TaskLinkType**](TaskLinkType.md) | |
1111
**lag** | **int** | |
1212
**lag_format** | [**TimeUnitType**](TimeUnitType.md) | |
13+
**link_lag_time_span** | **str** | Gets or sets lag duration, depending on LagFormat. |
1314

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

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 = "24.11.0"
7+
VERSION = "25.4.0"
88
# To install the library, run the following
99
#
1010
# python setup.py install

0 commit comments

Comments
 (0)