Skip to content

Commit a0a00ff

Browse files
[TASKSCLOUD-1052] - Deployed new 26.6 version
1 parent bff06ec commit a0a00ff

9 files changed

Lines changed: 45 additions & 15 deletions

File tree

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 26.6
38+
- Added new property to TaskItem.
39+
3740
## Enhancements in Version 25.11
3841
- Enhanced reading data from Primavera-specific task's properties.
3942

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

asposetaskscloud/models/resource.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def available_to(self, available_to):
963963
def start(self):
964964
"""Gets the start of this Resource. # noqa: E501
965965
966-
The scheduled start date of a resource. # noqa: E501
966+
The scheduled start date of a resource. This property is calculated on demand and cannot be set directly. # noqa: E501
967967
968968
:return: The start of this Resource. # noqa: E501
969969
:rtype: datetime
@@ -974,7 +974,7 @@ def start(self):
974974
def start(self, start):
975975
"""Sets the start of this Resource.
976976
977-
The scheduled start date of a resource. # noqa: E501
977+
The scheduled start date of a resource. This property is calculated on demand and cannot be set directly. # noqa: E501
978978
979979
:param start: The start of this Resource. # noqa: E501
980980
:type: datetime
@@ -986,7 +986,7 @@ def start(self, start):
986986
def finish(self):
987987
"""Gets the finish of this Resource. # noqa: E501
988988
989-
The scheduled finish date of a resource. # noqa: E501
989+
The scheduled finish date of a resource. This property is calculated on demand and cannot be set directly. # noqa: E501
990990
991991
:return: The finish of this Resource. # noqa: E501
992992
:rtype: datetime
@@ -997,7 +997,7 @@ def finish(self):
997997
def finish(self, finish):
998998
"""Sets the finish of this Resource.
999999
1000-
The scheduled finish date of a resource. # noqa: E501
1000+
The scheduled finish date of a resource. This property is calculated on demand and cannot be set directly. # noqa: E501
10011001
10021002
:param finish: The finish of this Resource. # noqa: E501
10031003
:type: datetime

asposetaskscloud/models/task_item.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class TaskItem(object):
4747
'name': 'str',
4848
'start': 'datetime',
4949
'finish': 'datetime',
50-
'duration': 'str'
50+
'duration': 'str',
51+
'activity_id': 'str'
5152
}
5253

5354
attribute_map = {
@@ -57,10 +58,11 @@ class TaskItem(object):
5758
'name': 'name',
5859
'start': 'start',
5960
'finish': 'finish',
60-
'duration': 'duration'
61+
'duration': 'duration',
62+
'activity_id': 'activityId'
6163
}
6264

63-
def __init__(self, link=None, uid=None, id=None, name=None, start=None, finish=None, duration=None): # noqa: E501
65+
def __init__(self, link=None, uid=None, id=None, name=None, start=None, finish=None, duration=None, activity_id=None): # noqa: E501
6466
"""TaskItem - a model defined in Swagger""" # noqa: E501
6567

6668
self._link = None
@@ -70,6 +72,7 @@ def __init__(self, link=None, uid=None, id=None, name=None, start=None, finish=N
7072
self._start = None
7173
self._finish = None
7274
self._duration = None
75+
self._activity_id = None
7376
self.discriminator = None
7477

7578
if link is not None:
@@ -86,6 +89,8 @@ def __init__(self, link=None, uid=None, id=None, name=None, start=None, finish=N
8689
self.finish = finish
8790
if duration is not None:
8891
self.duration = duration
92+
if activity_id is not None:
93+
self.activity_id = activity_id
8994

9095
@property
9196
def link(self):
@@ -232,6 +237,27 @@ def duration(self, duration):
232237
if duration is None:
233238
raise ValueError("Invalid value for `duration`, must not be `None`") # noqa: E501
234239
self._duration = duration
240+
@property
241+
def activity_id(self):
242+
"""Gets the activity_id of this TaskItem. # noqa: E501
243+
244+
Represents activity id field - a task's unique identifier used by Primavera. (only applicable to Primavera projects) # noqa: E501
245+
246+
:return: The activity_id of this TaskItem. # noqa: E501
247+
:rtype: str
248+
"""
249+
return self._activity_id
250+
251+
@activity_id.setter
252+
def activity_id(self, activity_id):
253+
"""Sets the activity_id of this TaskItem.
254+
255+
Represents activity id field - a task's unique identifier used by Primavera. (only applicable to Primavera projects) # noqa: E501
256+
257+
:param activity_id: The activity_id of this TaskItem. # noqa: E501
258+
:type: str
259+
"""
260+
self._activity_id = activity_id
235261
def to_dict(self):
236262
"""Returns the model properties as a dict"""
237263
result = {}

docs/Resource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
2727
**over_allocated** | **bool** | |
2828
**available_from** | **datetime** | The first date when a resource is available. |
2929
**available_to** | **datetime** | The last date when a resource is available. |
30-
**start** | **datetime** | The scheduled start date of a resource. |
31-
**finish** | **datetime** | The scheduled finish date of a resource. |
30+
**start** | **datetime** | The scheduled start date of a resource. This property is calculated on demand and cannot be set directly. |
31+
**finish** | **datetime** | The scheduled finish date of a resource. This property is calculated on demand and cannot be set directly. |
3232
**can_level** | **bool** | Determines whether a resource can be leveled. | [default to True]
3333
**accrue_at** | [**CostAccrualType**](CostAccrualType.md) | Determines how cost is accrued against the resource. |
3434
**work** | **str** | The total work assigned to a resource across all assigned tasks. |

docs/TaskItem.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**start** | **datetime** | |
1111
**finish** | **datetime** | |
1212
**duration** | **str** | The duration of a task. |
13+
**activity_id** | **str** | Represents activity id field - a task's unique identifier used by Primavera. (only applicable to Primavera projects) | [optional]
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 = "25.11.0"
7+
VERSION = "26.6.0"
88
# To install the library, run the following
99
#
1010
# python setup.py install

test/test_resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def test_put_resource(self):
104104
self.assertEqual(BaselineType.BASELINE1, put_result.resource.baselines[0].baseline_number)
105105
self.assertEqual(44, put_result.resource.baselines[0].cost)
106106
self.assertEqual(resource.standard_rate, put_result.resource.standard_rate)
107-
self.assertEqual(resource.start.date(), put_result.resource.start.date())
107+
self.assertNotEqual(resource.start.date(), put_result.resource.start.date())
108108
self.assertEqual(resource.work, put_result.resource.work)
109-
self.assertEqual(resource.finish.date(), put_result.resource.finish.date())
109+
self.assertNotEqual(resource.finish.date(), put_result.resource.finish.date())
110110
self.assertEqual(resource.overtime_work, put_result.resource.overtime_work)
111111
self.assertEqual(resource.cost, put_result.resource.cost)
112112

0 commit comments

Comments
 (0)