Skip to content

Commit aae0e1b

Browse files
[TASKSCLOUD-641] - Deployed new 22.7 version.
1 parent 492a538 commit aae0e1b

11 files changed

+176
-6
lines changed

asposetaskscloud/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
from asposetaskscloud.models.rollup_type import RollupType
7878
from asposetaskscloud.models.storage_exist import StorageExist
7979
from asposetaskscloud.models.storage_file import StorageFile
80+
from asposetaskscloud.models.summary_rows_calculation_type import SummaryRowsCalculationType
8081
from asposetaskscloud.models.task import Task
8182
from asposetaskscloud.models.task_creation_request import TaskCreationRequest
8283
from asposetaskscloud.models.task_item import TaskItem

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

asposetaskscloud/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
from asposetaskscloud.models.rollup_type import RollupType
7171
from asposetaskscloud.models.storage_exist import StorageExist
7272
from asposetaskscloud.models.storage_file import StorageFile
73+
from asposetaskscloud.models.summary_rows_calculation_type import SummaryRowsCalculationType
7374
from asposetaskscloud.models.task import Task
7475
from asposetaskscloud.models.task_creation_request import TaskCreationRequest
7576
from asposetaskscloud.models.task_item import TaskItem

asposetaskscloud/models/extended_attribute_definition.py

+29-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class ExtendedAttributeDefinition(object):
5656
'phonetics_alias': 'str',
5757
'rollup_type': 'RollupType',
5858
'calculation_type': 'CalculationType',
59+
'summary_rows_calculation_type': 'SummaryRowsCalculationType',
5960
'formula': 'str',
6061
'restrict_values': 'bool',
6162
'valuelist_sort_order': 'int',
@@ -81,6 +82,7 @@ class ExtendedAttributeDefinition(object):
8182
'phonetics_alias': 'phoneticsAlias',
8283
'rollup_type': 'rollupType',
8384
'calculation_type': 'calculationType',
85+
'summary_rows_calculation_type': 'summaryRowsCalculationType',
8486
'formula': 'formula',
8587
'restrict_values': 'restrictValues',
8688
'valuelist_sort_order': 'valuelistSortOrder',
@@ -90,7 +92,7 @@ class ExtendedAttributeDefinition(object):
9092
'secondary_guid': 'secondaryGuid'
9193
}
9294

93-
def __init__(self, field_id=None, field_name=None, cf_type=None, guid=None, element_type=None, max_multi_values=None, user_def=None, alias=None, secondary_pid=None, auto_roll_down=None, default_guid=None, lookup_uid=None, phonetics_alias=None, rollup_type=None, calculation_type=None, formula=None, restrict_values=None, valuelist_sort_order=None, append_new_values=None, default=None, value_list=None, secondary_guid=None): # noqa: E501
95+
def __init__(self, field_id=None, field_name=None, cf_type=None, guid=None, element_type=None, max_multi_values=None, user_def=None, alias=None, secondary_pid=None, auto_roll_down=None, default_guid=None, lookup_uid=None, phonetics_alias=None, rollup_type=None, calculation_type=None, summary_rows_calculation_type=None, formula=None, restrict_values=None, valuelist_sort_order=None, append_new_values=None, default=None, value_list=None, secondary_guid=None): # noqa: E501
9496
"""ExtendedAttributeDefinition - a model defined in Swagger""" # noqa: E501
9597

9698
self._field_id = None
@@ -108,6 +110,7 @@ def __init__(self, field_id=None, field_name=None, cf_type=None, guid=None, elem
108110
self._phonetics_alias = None
109111
self._rollup_type = None
110112
self._calculation_type = None
113+
self._summary_rows_calculation_type = None
111114
self._formula = None
112115
self._restrict_values = None
113116
self._valuelist_sort_order = None
@@ -147,6 +150,8 @@ def __init__(self, field_id=None, field_name=None, cf_type=None, guid=None, elem
147150
self.rollup_type = rollup_type
148151
if calculation_type is not None:
149152
self.calculation_type = calculation_type
153+
if summary_rows_calculation_type is not None:
154+
self.summary_rows_calculation_type = summary_rows_calculation_type
150155
if formula is not None:
151156
self.formula = formula
152157
if restrict_values is not None:
@@ -492,6 +497,29 @@ def calculation_type(self, calculation_type):
492497
raise ValueError("Invalid value for `calculation_type`, must not be `None`") # noqa: E501
493498
self._calculation_type = calculation_type
494499
@property
500+
def summary_rows_calculation_type(self):
501+
"""Gets the summary_rows_calculation_type of this ExtendedAttributeDefinition. # noqa: E501
502+
503+
Gets or sets the type of calculation of the custom attribute's value for summary rows. # noqa: E501
504+
505+
:return: The summary_rows_calculation_type of this ExtendedAttributeDefinition. # noqa: E501
506+
:rtype: SummaryRowsCalculationType
507+
"""
508+
return self._summary_rows_calculation_type
509+
510+
@summary_rows_calculation_type.setter
511+
def summary_rows_calculation_type(self, summary_rows_calculation_type):
512+
"""Sets the summary_rows_calculation_type of this ExtendedAttributeDefinition.
513+
514+
Gets or sets the type of calculation of the custom attribute's value for summary rows. # noqa: E501
515+
516+
:param summary_rows_calculation_type: The summary_rows_calculation_type of this ExtendedAttributeDefinition. # noqa: E501
517+
:type: SummaryRowsCalculationType
518+
"""
519+
if summary_rows_calculation_type is None:
520+
raise ValueError("Invalid value for `summary_rows_calculation_type`, must not be `None`") # noqa: E501
521+
self._summary_rows_calculation_type = summary_rows_calculation_type
522+
@property
495523
def formula(self):
496524
"""Gets the formula of this ExtendedAttributeDefinition. # noqa: E501
497525

asposetaskscloud/models/resource.py

+29-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Resource(object):
4141
and the value is json key in definition.
4242
"""
4343
swagger_types = {
44+
'is_root': 'bool',
4445
'name': 'str',
4546
'uid': 'int',
4647
'id': 'int',
@@ -120,6 +121,7 @@ class Resource(object):
120121
}
121122

122123
attribute_map = {
124+
'is_root': 'isRoot',
123125
'name': 'name',
124126
'uid': 'uid',
125127
'id': 'id',
@@ -198,9 +200,10 @@ class Resource(object):
198200
'outline_codes': 'outlineCodes'
199201
}
200202

201-
def __init__(self, name=None, uid=None, id=None, guid=None, type=None, is_null=None, initials=None, phonetics=None, nt_account=None, windows_user_account=None, workgroup=None, material_label=None, code=None, group=None, email_address=None, hyperlink=None, hyperlink_address=None, hyperlink_sub_address=None, max_units=1.0, peak_units=None, over_allocated=None, available_from=None, available_to=None, start=None, finish=None, can_level=True, accrue_at=None, work=None, regular_work=None, overtime_work=None, actual_work=None, remaining_work=None, actual_overtime_work=None, remaining_overtime_work=None, percent_work_complete=None, standard_rate=None, standard_rate_format=None, cost=None, overtime_rate_format=None, overtime_cost=None, cost_per_use=None, actual_cost=None, actual_overtime_cost=None, remaining_cost=None, remaining_overtime_cost=None, work_variance=None, cost_variance=None, sv=None, cv=None, acwp=None, calendar_uid=None, notes_text=None, notes=None, notes_rtf=None, bcws=None, bcwp=None, is_generic=None, is_inactive=None, is_enterprise=None, booking_type=None, actual_work_protected=None, actual_overtime_work_protected=None, active_directory_guid=None, creation_date=None, cost_center=None, is_cost_resource=None, team_assignment_pool=None, assignment_owner=None, assignment_owner_guid=None, is_budget=None, budget_work=None, budget_cost=None, overtime_rate=None, baselines=None, extended_attributes=None, outline_codes=None): # noqa: E501
203+
def __init__(self, is_root=None, name=None, uid=None, id=None, guid=None, type=None, is_null=None, initials=None, phonetics=None, nt_account=None, windows_user_account=None, workgroup=None, material_label=None, code=None, group=None, email_address=None, hyperlink=None, hyperlink_address=None, hyperlink_sub_address=None, max_units=1.0, peak_units=None, over_allocated=None, available_from=None, available_to=None, start=None, finish=None, can_level=True, accrue_at=None, work=None, regular_work=None, overtime_work=None, actual_work=None, remaining_work=None, actual_overtime_work=None, remaining_overtime_work=None, percent_work_complete=None, standard_rate=None, standard_rate_format=None, cost=None, overtime_rate_format=None, overtime_cost=None, cost_per_use=None, actual_cost=None, actual_overtime_cost=None, remaining_cost=None, remaining_overtime_cost=None, work_variance=None, cost_variance=None, sv=None, cv=None, acwp=None, calendar_uid=None, notes_text=None, notes=None, notes_rtf=None, bcws=None, bcwp=None, is_generic=None, is_inactive=None, is_enterprise=None, booking_type=None, actual_work_protected=None, actual_overtime_work_protected=None, active_directory_guid=None, creation_date=None, cost_center=None, is_cost_resource=None, team_assignment_pool=None, assignment_owner=None, assignment_owner_guid=None, is_budget=None, budget_work=None, budget_cost=None, overtime_rate=None, baselines=None, extended_attributes=None, outline_codes=None): # noqa: E501
202204
"""Resource - a model defined in Swagger""" # noqa: E501
203205

206+
self._is_root = None
204207
self._name = None
205208
self._uid = None
206209
self._id = None
@@ -279,6 +282,8 @@ def __init__(self, name=None, uid=None, id=None, guid=None, type=None, is_null=N
279282
self._outline_codes = None
280283
self.discriminator = None
281284

285+
if is_root is not None:
286+
self.is_root = is_root
282287
if name is not None:
283288
self.name = name
284289
if uid is not None:
@@ -433,6 +438,29 @@ def __init__(self, name=None, uid=None, id=None, guid=None, type=None, is_null=N
433438
self.outline_codes = outline_codes
434439

435440
@property
441+
def is_root(self):
442+
"""Gets the is_root of this Resource. # noqa: E501
443+
444+
Gets the flag indicating whether resource is a root resource. Root resource is a special resource which is intended to support internals of MS Project's formats and is not intended to be used directly from the user's code. # noqa: E501
445+
446+
:return: The is_root of this Resource. # noqa: E501
447+
:rtype: bool
448+
"""
449+
return self._is_root
450+
451+
@is_root.setter
452+
def is_root(self, is_root):
453+
"""Sets the is_root of this Resource.
454+
455+
Gets the flag indicating whether resource is a root resource. Root resource is a special resource which is intended to support internals of MS Project's formats and is not intended to be used directly from the user's code. # noqa: E501
456+
457+
:param is_root: The is_root of this Resource. # noqa: E501
458+
:type: bool
459+
"""
460+
if is_root is None:
461+
raise ValueError("Invalid value for `is_root`, must not be `None`") # noqa: E501
462+
self._is_root = is_root
463+
@property
436464
def name(self):
437465
"""Gets the name of this Resource. # noqa: E501
438466
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# coding: utf-8
2+
# -----------------------------------------------------------------------------------
3+
# <copyright company="Aspose" file="SummaryRowsCalculationType.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 SummaryRowsCalculationType(object):
33+
"""Specifies the type of a calculation of the custom attribute&#39;s value for summary rows.
34+
"""
35+
36+
"""
37+
allowed enum values
38+
"""
39+
NONE = "None"
40+
ROLLUP = "Rollup"
41+
USEFORMULA = "UseFormula"
42+
43+
"""
44+
Attributes:
45+
swagger_types (dict): The key is attribute name
46+
and the value is attribute type.
47+
attribute_map (dict): The key is attribute name
48+
and the value is json key in definition.
49+
"""
50+
swagger_types = {
51+
}
52+
53+
attribute_map = {
54+
}
55+
56+
def __init__(self): # noqa: E501
57+
"""SummaryRowsCalculationType - a model defined in Swagger""" # noqa: E501
58+
self.discriminator = None
59+
60+
def to_dict(self):
61+
"""Returns the model properties as a dict"""
62+
result = {}
63+
64+
for attr, _ in six.iteritems(self.swagger_types):
65+
value = getattr(self, attr)
66+
if isinstance(value, list):
67+
result[attr] = list(map(
68+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
69+
value
70+
))
71+
elif hasattr(value, "to_dict"):
72+
result[attr] = value.to_dict()
73+
elif isinstance(value, dict):
74+
result[attr] = dict(map(
75+
lambda item: (item[0], item[1].to_dict())
76+
if hasattr(item[1], "to_dict") else item,
77+
value.items()
78+
))
79+
else:
80+
result[attr] = value
81+
82+
return result
83+
84+
def to_str(self):
85+
"""Returns the string representation of the model"""
86+
return pprint.pformat(self.to_dict())
87+
88+
def __repr__(self):
89+
"""For `print` and `pprint`"""
90+
return self.to_str()
91+
92+
def __eq__(self, other):
93+
"""Returns true if both objects are equal"""
94+
if not isinstance(other, SummaryRowsCalculationType):
95+
return False
96+
97+
return self.__dict__ == other.__dict__
98+
99+
def __ne__(self, other):
100+
"""Returns true if both objects are not equal"""
101+
return not self == other

docs/ExtendedAttributeDefinition.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**phonetics_alias** | **str** | The phonetic pronunciation of the alias of a custom field. | [optional]
1919
**rollup_type** | [**RollupType**](RollupType.md) | The way rollups are calculated. |
2020
**calculation_type** | [**CalculationType**](CalculationType.md) | Determines whether rollups are calculated for a task and group summary rows. |
21+
**summary_rows_calculation_type** | [**SummaryRowsCalculationType**](SummaryRowsCalculationType.md) | Gets or sets the type of calculation of the custom attribute&#39;s value for summary rows. |
2122
**formula** | **str** | The formula that Microsoft Project uses to populate a custom task field. | [optional]
2223
**restrict_values** | **bool** | Determines whether only values in the list are allowed in a file. |
2324
**valuelist_sort_order** | **int** | The way value lists are sorted. Values are: 0&#x3D;Descending, 1&#x3D;Ascending. |

docs/Resource.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**is_root** | **bool** | Gets the flag indicating whether resource is a root resource. Root resource is a special resource which is intended to support internals of MS Project&#39;s formats and is not intended to be used directly from the user&#39;s code. |
67
**name** | **str** | The name of a resource. | [optional]
78
**uid** | **int** | The unique identifier of a resource. |
89
**id** | **int** | The position identifier of a resource within the list of resources. |

docs/SummaryRowsCalculationType.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SummaryRowsCalculationType
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+

setup.py

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

0 commit comments

Comments
 (0)