Skip to content

Commit 1315981

Browse files
committed
Update API GetLoginToken: add request parameters AreaSite.
1 parent 0369da4 commit 1315981

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

appstream-center-20210220/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-11-18 Version: 1.2.5
2+
- Update API GetLoginToken: add request parameters AreaSite.
3+
4+
15
2025-09-17 Version: 1.2.4
26
- Update API GetLoginToken: add request parameters Channel.
37

appstream-center-20210220/src/Appstreamcenter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ public function getLoginTokenWithOptions($tmpReq, $runtime)
174174
}
175175

176176
$query = [];
177+
if (null !== $request->areaSite) {
178+
@$query['AreaSite'] = $request->areaSite;
179+
}
180+
177181
if (null !== $request->authenticationCode) {
178182
@$query['AuthenticationCode'] = $request->authenticationCode;
179183
}

appstream-center-20210220/src/Models/GetLoginTokenRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
class GetLoginTokenRequest extends Model
1010
{
11+
/**
12+
* @var string
13+
*/
14+
public $areaSite;
15+
1116
/**
1217
* @var string
1318
*/
@@ -193,6 +198,7 @@ class GetLoginTokenRequest extends Model
193198
*/
194199
public $uuid;
195200
protected $_name = [
201+
'areaSite' => 'AreaSite',
196202
'authenticationCode' => 'AuthenticationCode',
197203
'availableFeatures' => 'AvailableFeatures',
198204
'channel' => 'Channel',
@@ -243,6 +249,10 @@ public function validate()
243249
public function toArray($noStream = false)
244250
{
245251
$res = [];
252+
if (null !== $this->areaSite) {
253+
$res['AreaSite'] = $this->areaSite;
254+
}
255+
246256
if (null !== $this->authenticationCode) {
247257
$res['AuthenticationCode'] = $this->authenticationCode;
248258
}
@@ -407,6 +417,10 @@ public function toMap($noStream = false)
407417
public static function fromMap($map = [])
408418
{
409419
$model = new self();
420+
if (isset($map['AreaSite'])) {
421+
$model->areaSite = $map['AreaSite'];
422+
}
423+
410424
if (isset($map['AuthenticationCode'])) {
411425
$model->authenticationCode = $map['AuthenticationCode'];
412426
}

appstream-center-20210220/src/Models/GetLoginTokenShrinkRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
class GetLoginTokenShrinkRequest extends Model
1010
{
11+
/**
12+
* @var string
13+
*/
14+
public $areaSite;
15+
1116
/**
1217
* @var string
1318
*/
@@ -193,6 +198,7 @@ class GetLoginTokenShrinkRequest extends Model
193198
*/
194199
public $uuid;
195200
protected $_name = [
201+
'areaSite' => 'AreaSite',
196202
'authenticationCode' => 'AuthenticationCode',
197203
'availableFeaturesShrink' => 'AvailableFeatures',
198204
'channel' => 'Channel',
@@ -240,6 +246,10 @@ public function validate()
240246
public function toArray($noStream = false)
241247
{
242248
$res = [];
249+
if (null !== $this->areaSite) {
250+
$res['AreaSite'] = $this->areaSite;
251+
}
252+
243253
if (null !== $this->authenticationCode) {
244254
$res['AuthenticationCode'] = $this->authenticationCode;
245255
}
@@ -399,6 +409,10 @@ public function toMap($noStream = false)
399409
public static function fromMap($map = [])
400410
{
401411
$model = new self();
412+
if (isset($map['AreaSite'])) {
413+
$model->areaSite = $map['AreaSite'];
414+
}
415+
402416
if (isset($map['AuthenticationCode'])) {
403417
$model->authenticationCode = $map['AuthenticationCode'];
404418
}

0 commit comments

Comments
 (0)