Skip to content

Commit 02b44d1

Browse files
[TASKSCLOUD-642] - Deployed new 22.7 version
1 parent b8183c8 commit 02b44d1

File tree

5 files changed

+232
-1
lines changed

5 files changed

+232
-1
lines changed

src/Aspose/Tasks/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class Configuration
135135
* Version of Aspose.Tasks Cloud API
136136
*
137137
*/
138-
protected $clientVersion = '22.01';
138+
protected $clientVersion = '22.7';
139139

140140
/*
141141
* Constructor

src/Aspose/Tasks/Model/ExtendedAttributeDefinition.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class ExtendedAttributeDefinition implements ArrayAccess
7171
'phonetics_alias' => 'string',
7272
'rollup_type' => '\Aspose\Tasks\Model\RollupType',
7373
'calculation_type' => '\Aspose\Tasks\Model\CalculationType',
74+
'summary_rows_calculation_type' => '\Aspose\Tasks\Model\SummaryRowsCalculationType',
7475
'formula' => 'string',
7576
'restrict_values' => 'bool',
7677
'valuelist_sort_order' => 'int',
@@ -101,6 +102,7 @@ class ExtendedAttributeDefinition implements ArrayAccess
101102
'phonetics_alias' => null,
102103
'rollup_type' => null,
103104
'calculation_type' => null,
105+
'summary_rows_calculation_type' => null,
104106
'formula' => null,
105107
'restrict_values' => null,
106108
'valuelist_sort_order' => 'int32',
@@ -152,6 +154,7 @@ public static function swaggerFormats()
152154
'phonetics_alias' => 'phoneticsAlias',
153155
'rollup_type' => 'rollupType',
154156
'calculation_type' => 'calculationType',
157+
'summary_rows_calculation_type' => 'summaryRowsCalculationType',
155158
'formula' => 'formula',
156159
'restrict_values' => 'restrictValues',
157160
'valuelist_sort_order' => 'valuelistSortOrder',
@@ -182,6 +185,7 @@ public static function swaggerFormats()
182185
'phonetics_alias' => 'setPhoneticsAlias',
183186
'rollup_type' => 'setRollupType',
184187
'calculation_type' => 'setCalculationType',
188+
'summary_rows_calculation_type' => 'setSummaryRowsCalculationType',
185189
'formula' => 'setFormula',
186190
'restrict_values' => 'setRestrictValues',
187191
'valuelist_sort_order' => 'setValuelistSortOrder',
@@ -212,6 +216,7 @@ public static function swaggerFormats()
212216
'phonetics_alias' => 'getPhoneticsAlias',
213217
'rollup_type' => 'getRollupType',
214218
'calculation_type' => 'getCalculationType',
219+
'summary_rows_calculation_type' => 'getSummaryRowsCalculationType',
215220
'formula' => 'getFormula',
216221
'restrict_values' => 'getRestrictValues',
217222
'valuelist_sort_order' => 'getValuelistSortOrder',
@@ -296,6 +301,7 @@ public function __construct(array $data = null)
296301
$this->container['phonetics_alias'] = isset($data['phonetics_alias']) ? $data['phonetics_alias'] : null;
297302
$this->container['rollup_type'] = isset($data['rollup_type']) ? $data['rollup_type'] : null;
298303
$this->container['calculation_type'] = isset($data['calculation_type']) ? $data['calculation_type'] : null;
304+
$this->container['summary_rows_calculation_type'] = isset($data['summary_rows_calculation_type']) ? $data['summary_rows_calculation_type'] : null;
299305
$this->container['formula'] = isset($data['formula']) ? $data['formula'] : null;
300306
$this->container['restrict_values'] = isset($data['restrict_values']) ? $data['restrict_values'] : null;
301307
$this->container['valuelist_sort_order'] = isset($data['valuelist_sort_order']) ? $data['valuelist_sort_order'] : null;
@@ -335,6 +341,9 @@ public function listInvalidProperties()
335341
if ($this->container['calculation_type'] === null) {
336342
$invalidProperties[] = "'calculation_type' can't be null";
337343
}
344+
if ($this->container['summary_rows_calculation_type'] === null) {
345+
$invalidProperties[] = "'summary_rows_calculation_type' can't be null";
346+
}
338347
if ($this->container['restrict_values'] === null) {
339348
$invalidProperties[] = "'restrict_values' can't be null";
340349
}
@@ -377,6 +386,9 @@ public function valid()
377386
if ($this->container['calculation_type'] === null) {
378387
return false;
379388
}
389+
if ($this->container['summary_rows_calculation_type'] === null) {
390+
return false;
391+
}
380392
if ($this->container['restrict_values'] === null) {
381393
return false;
382394
}
@@ -750,6 +762,30 @@ public function setCalculationType($calculation_type)
750762
return $this;
751763
}
752764

765+
/*
766+
* Gets summary_rows_calculation_type
767+
*
768+
* @return \Aspose\Tasks\Model\SummaryRowsCalculationType
769+
*/
770+
public function getSummaryRowsCalculationType()
771+
{
772+
return $this->container['summary_rows_calculation_type'];
773+
}
774+
775+
/*
776+
* Sets summary_rows_calculation_type
777+
*
778+
* @param \Aspose\Tasks\Model\SummaryRowsCalculationType $summary_rows_calculation_type Gets or sets the type of calculation of the custom attribute's value for summary rows.
779+
*
780+
* @return $this
781+
*/
782+
public function setSummaryRowsCalculationType($summary_rows_calculation_type)
783+
{
784+
$this->container['summary_rows_calculation_type'] = $summary_rows_calculation_type;
785+
786+
return $this;
787+
}
788+
753789
/*
754790
* Gets formula
755791
*
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?php
2+
/**
3+
* ModelInterface
4+
*
5+
* PHP version 5
6+
*
7+
* @category Class
8+
* @package Aspose\Tasks\Model
9+
* @author Swagger Codegen team
10+
* @link https://github.com/swagger-api/swagger-codegen
11+
*/
12+
13+
/**
14+
* Aspose.Tasks Cloud API Reference
15+
*
16+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17+
*
18+
* OpenAPI spec version: 3.0
19+
*
20+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
21+
* Swagger Codegen version: 2.4.11
22+
*/
23+
24+
/**
25+
* NOTE: This class is auto generated by the swagger code generator program.
26+
* https://github.com/swagger-api/swagger-codegen
27+
* Do not edit the class manually.
28+
*/
29+
30+
namespace Aspose\Tasks\Model;
31+
32+
/**
33+
* Interface abstracting model access.
34+
*
35+
* @package Aspose\Tasks\Model
36+
* @author Swagger Codegen team
37+
*/
38+
interface ModelInterface
39+
{
40+
/**
41+
* The original name of the model.
42+
*
43+
* @return string
44+
*/
45+
public function getModelName();
46+
47+
/**
48+
* Array of property to type mappings. Used for (de)serialization
49+
*
50+
* @return array
51+
*/
52+
public static function swaggerTypes();
53+
54+
/**
55+
* Array of property to format mappings. Used for (de)serialization
56+
*
57+
* @return array
58+
*/
59+
public static function swaggerFormats();
60+
61+
/**
62+
* Array of attributes where the key is the local name, and the value is the original name
63+
*
64+
* @return array
65+
*/
66+
public static function attributeMap();
67+
68+
/**
69+
* Array of attributes to setter functions (for deserialization of responses)
70+
*
71+
* @return array
72+
*/
73+
public static function setters();
74+
75+
/**
76+
* Array of attributes to getter functions (for serialization of requests)
77+
*
78+
* @return array
79+
*/
80+
public static function getters();
81+
82+
/**
83+
* Show all the invalid properties with reasons.
84+
*
85+
* @return array
86+
*/
87+
public function listInvalidProperties();
88+
89+
/**
90+
* Validate all the properties in the model
91+
* return true if all passed
92+
*
93+
* @return bool
94+
*/
95+
public function valid();
96+
}

src/Aspose/Tasks/Model/Resource.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class Resource implements ArrayAccess
5656
* @var string[]
5757
*/
5858
protected static $swaggerTypes = [
59+
'is_root' => 'bool',
5960
'name' => 'string',
6061
'uid' => 'int',
6162
'id' => 'int',
@@ -140,6 +141,7 @@ class Resource implements ArrayAccess
140141
* @var string[]
141142
*/
142143
protected static $swaggerFormats = [
144+
'is_root' => null,
143145
'name' => null,
144146
'uid' => 'int32',
145147
'id' => 'int32',
@@ -245,6 +247,7 @@ public static function swaggerFormats()
245247
* @var string[]
246248
*/
247249
protected static $attributeMap = [
250+
'is_root' => 'isRoot',
248251
'name' => 'name',
249252
'uid' => 'uid',
250253
'id' => 'id',
@@ -329,6 +332,7 @@ public static function swaggerFormats()
329332
* @var string[]
330333
*/
331334
protected static $setters = [
335+
'is_root' => 'setIsRoot',
332336
'name' => 'setName',
333337
'uid' => 'setUid',
334338
'id' => 'setId',
@@ -413,6 +417,7 @@ public static function swaggerFormats()
413417
* @var string[]
414418
*/
415419
protected static $getters = [
420+
'is_root' => 'getIsRoot',
416421
'name' => 'getName',
417422
'uid' => 'getUid',
418423
'id' => 'getId',
@@ -551,6 +556,7 @@ public function getModelName()
551556
*/
552557
public function __construct(array $data = null)
553558
{
559+
$this->container['is_root'] = isset($data['is_root']) ? $data['is_root'] : null;
554560
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
555561
$this->container['uid'] = isset($data['uid']) ? $data['uid'] : null;
556562
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
@@ -638,6 +644,9 @@ public function listInvalidProperties()
638644
{
639645
$invalidProperties = [];
640646

647+
if ($this->container['is_root'] === null) {
648+
$invalidProperties[] = "'is_root' can't be null";
649+
}
641650
if ($this->container['uid'] === null) {
642651
$invalidProperties[] = "'uid' can't be null";
643652
}
@@ -809,6 +818,9 @@ public function listInvalidProperties()
809818
public function valid()
810819
{
811820

821+
if ($this->container['is_root'] === null) {
822+
return false;
823+
}
812824
if ($this->container['uid'] === null) {
813825
return false;
814826
}
@@ -972,6 +984,30 @@ public function valid()
972984
}
973985

974986

987+
/*
988+
* Gets is_root
989+
*
990+
* @return bool
991+
*/
992+
public function getIsRoot()
993+
{
994+
return $this->container['is_root'];
995+
}
996+
997+
/*
998+
* Sets is_root
999+
*
1000+
* @param bool $is_root 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.
1001+
*
1002+
* @return $this
1003+
*/
1004+
public function setIsRoot($is_root)
1005+
{
1006+
$this->container['is_root'] = $is_root;
1007+
1008+
return $this;
1009+
}
1010+
9751011
/*
9761012
* Gets name
9771013
*
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php
2+
/**
3+
* --------------------------------------------------------------------------------------------------------------------
4+
* <copyright company="Aspose" file="SummaryRowsCalculationType.php">
5+
* Copyright (c) 2021 Aspose.Tasks Cloud
6+
* </copyright>
7+
* <summary>
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in all
16+
* copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
* SOFTWARE.
25+
* </summary>
26+
* --------------------------------------------------------------------------------------------------------------------
27+
*/
28+
/*
29+
* SummaryRowsCalculationType
30+
*/
31+
32+
namespace Aspose\Tasks\Model;
33+
use \Aspose\Tasks\ObjectSerializer;
34+
35+
/*
36+
* SummaryRowsCalculationType
37+
*
38+
* @description Specifies the type of a calculation of the custom attribute&#39;s value for summary rows.
39+
*/
40+
class SummaryRowsCalculationType
41+
{
42+
/*
43+
* Possible values of this enum
44+
*/
45+
const NONE = 'None';
46+
const ROLLUP = 'Rollup';
47+
const USE_FORMULA = 'UseFormula';
48+
49+
/*
50+
* Gets allowable values of the enum
51+
* @return string[]
52+
*/
53+
public static function getAllowableEnumValues()
54+
{
55+
return [
56+
self::NONE,
57+
self::ROLLUP,
58+
self::USE_FORMULA,
59+
];
60+
}
61+
}
62+
63+

0 commit comments

Comments
 (0)