11<?php
2- /*
2+ /**
33 * --------------------------------------------------------------------------------------------------------------------
44 * <copyright company="Aspose" file="Configuration.php">
5- * Copyright (c) 2018 Aspose.Tasks Cloud
5+ * Copyright (c) 2021 Aspose.Tasks Cloud
66 * </copyright>
77 * <summary>
88 * Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -95,21 +95,13 @@ class Configuration
9595 * @var string
9696 */
9797 protected $ host = 'https://api.aspose.cloud ' ;
98-
99-
98+
10099 /*
101- * The auth url
102- *
100+ * Version of API to use, possible values are v1, v1.1, v2, v3.0
101+ * default value is v3.0
103102 * @var string
104103 */
105- protected $ authUrl = '' ;
106-
107- /*
108- * The version
109- *
110- * @var string
111- */
112- protected $ version = 'v3.0 ' ;
104+ protected $ base_path = "v3.0 " ;
113105
114106 /*
115107 * User agent of the HTTP request, set to "PHP-Swagger" by default
@@ -143,14 +135,15 @@ class Configuration
143135 * Version of Aspose.Tasks Cloud API
144136 *
145137 */
146- protected $ clientVersion = '21.10 ' ;
138+ protected $ clientVersion = '22.01 ' ;
147139
148140 /*
149141 * Constructor
150142 */
151143 public function __construct ()
152144 {
153145 $ this ->tempFolderPath = sys_get_temp_dir ();
146+ date_default_timezone_set ('UTC ' );
154147 }
155148
156149 /*
@@ -363,19 +356,6 @@ public function setHost($host)
363356 return $ this ;
364357 }
365358
366- /*
367- * Sets the auth url
368- *
369- * @param string $authUrl auth url
370- *
371- * @return $this
372- */
373- public function setAuthUrl ($ authUrl )
374- {
375- $ this ->authUrl = $ authUrl ;
376- return $ this ;
377- }
378-
379359 /*
380360 * Gets the host
381361 *
@@ -385,25 +365,28 @@ public function getHost()
385365 {
386366 return $ this ->host ;
387367 }
388-
368+
389369 /*
390- * Gets the auth url
370+ * Sets the base_path
371+ *
372+ * @param string $base_path api version
391373 *
392- * @return string url
374+ * @return $this
393375 */
394- public function getAuthUrl ( )
376+ public function setBasePath ( $ base_path )
395377 {
396- return $ this ->authUrl ;
378+ $ this ->base_path = $ base_path ;
379+ return $ this ;
397380 }
398381
399382 /*
400- * Gets the API version
383+ * Gets the base_path
401384 *
402- * @return string Version
385+ * @return string base_path
403386 */
404- public function getVersion ()
387+ public function getBasePath ()
405388 {
406- return $ this ->version ;
389+ return $ this ->base_path ;
407390 }
408391
409392 /*
@@ -539,7 +522,7 @@ public static function toDebugReport()
539522 $ report = 'PHP SDK (Aspose\Tasks) Debug Report: ' . PHP_EOL ;
540523 $ report .= ' OS: ' . php_uname () . PHP_EOL ;
541524 $ report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL ;
542- $ report .= ' OpenAPI Spec Version: 1 .0 ' . PHP_EOL ;
525+ $ report .= ' OpenAPI Spec Version: 3 .0 ' . PHP_EOL ;
543526 $ report .= ' Temp Folder Path: ' . self ::getDefaultConfiguration ()->getTempFolderPath () . PHP_EOL ;
544527
545528 return $ report ;
0 commit comments