Skip to content

Commit 40e3b76

Browse files
committed
Update API StartUserAppAsyncEnhanceInMsa: add request parameters NewShieldConfig.
1 parent 18fe882 commit 40e3b76

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed

mpaas-20201028/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-11-19 Version: 2.2.1
2+
- Update API StartUserAppAsyncEnhanceInMsa: add request parameters NewShieldConfig.
3+
- Update API StartUserAppAsyncEnhanceInMsa: add request parameters UseYShield.
4+
- Update API UploadUserAppToMsa: add request parameters UseYShield.
5+
6+
17
2025-11-06 Version: 2.2.0
28
- Support API DeleteMdsCubeTemplate.
39

mpaas-20201028/src/MPaaS.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8499,6 +8499,11 @@ public function saveMgsApirest($request)
84998499
public function startUserAppAsyncEnhanceInMsaWithOptions($request, $runtime)
85008500
{
85018501
$request->validate();
8502+
$query = [];
8503+
if (null !== $request->newShieldConfig) {
8504+
@$query['NewShieldConfig'] = $request->newShieldConfig;
8505+
}
8506+
85028507
$body = [];
85038508
if (null !== $request->apkProtector) {
85048509
@$body['ApkProtector'] = $request->apkProtector;
@@ -8576,11 +8581,16 @@ public function startUserAppAsyncEnhanceInMsaWithOptions($request, $runtime)
85768581
@$body['UseAShield'] = $request->useAShield;
85778582
}
85788583

8584+
if (null !== $request->useYShield) {
8585+
@$body['UseYShield'] = $request->useYShield;
8586+
}
8587+
85798588
if (null !== $request->workspaceId) {
85808589
@$body['WorkspaceId'] = $request->workspaceId;
85818590
}
85828591

85838592
$req = new OpenApiRequest([
8593+
'query' => Utils::query($query),
85848594
'body' => Utils::parseToMap($body),
85858595
]);
85868596
$params = new Params([
@@ -9252,6 +9262,10 @@ public function uploadUserAppToMsaWithOptions($request, $runtime)
92529262
@$body['TenantId'] = $request->tenantId;
92539263
}
92549264

9265+
if (null !== $request->useYShield) {
9266+
@$body['UseYShield'] = $request->useYShield;
9267+
}
9268+
92559269
if (null !== $request->workspaceId) {
92569270
@$body['WorkspaceId'] = $request->workspaceId;
92579271
}

mpaas-20201028/src/Models/StartUserAppAsyncEnhanceInMsaRequest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ class StartUserAppAsyncEnhanceInMsaRequest extends Model
6363
*/
6464
public $nativeHook;
6565

66+
/**
67+
* @var string
68+
*/
69+
public $newShieldConfig;
70+
6671
/**
6772
* @var int
6873
*/
@@ -103,6 +108,11 @@ class StartUserAppAsyncEnhanceInMsaRequest extends Model
103108
*/
104109
public $useAShield;
105110

111+
/**
112+
* @var bool
113+
*/
114+
public $useYShield;
115+
106116
/**
107117
* @var string
108118
*/
@@ -119,6 +129,7 @@ class StartUserAppAsyncEnhanceInMsaRequest extends Model
119129
'memoryDump' => 'MemoryDump',
120130
'nativeDebugger' => 'NativeDebugger',
121131
'nativeHook' => 'NativeHook',
132+
'newShieldConfig' => 'NewShieldConfig',
122133
'packageTampered' => 'PackageTampered',
123134
'root' => 'Root',
124135
'runMode' => 'RunMode',
@@ -127,6 +138,7 @@ class StartUserAppAsyncEnhanceInMsaRequest extends Model
127138
'tenantId' => 'TenantId',
128139
'totalSwitch' => 'TotalSwitch',
129140
'useAShield' => 'UseAShield',
141+
'useYShield' => 'UseYShield',
130142
'workspaceId' => 'WorkspaceId',
131143
];
132144

@@ -182,6 +194,10 @@ public function toArray($noStream = false)
182194
$res['NativeHook'] = $this->nativeHook;
183195
}
184196

197+
if (null !== $this->newShieldConfig) {
198+
$res['NewShieldConfig'] = $this->newShieldConfig;
199+
}
200+
185201
if (null !== $this->packageTampered) {
186202
$res['PackageTampered'] = $this->packageTampered;
187203
}
@@ -214,6 +230,10 @@ public function toArray($noStream = false)
214230
$res['UseAShield'] = $this->useAShield;
215231
}
216232

233+
if (null !== $this->useYShield) {
234+
$res['UseYShield'] = $this->useYShield;
235+
}
236+
217237
if (null !== $this->workspaceId) {
218238
$res['WorkspaceId'] = $this->workspaceId;
219239
}
@@ -273,6 +293,10 @@ public static function fromMap($map = [])
273293
$model->nativeHook = $map['NativeHook'];
274294
}
275295

296+
if (isset($map['NewShieldConfig'])) {
297+
$model->newShieldConfig = $map['NewShieldConfig'];
298+
}
299+
276300
if (isset($map['PackageTampered'])) {
277301
$model->packageTampered = $map['PackageTampered'];
278302
}
@@ -305,6 +329,10 @@ public static function fromMap($map = [])
305329
$model->useAShield = $map['UseAShield'];
306330
}
307331

332+
if (isset($map['UseYShield'])) {
333+
$model->useYShield = $map['UseYShield'];
334+
}
335+
308336
if (isset($map['WorkspaceId'])) {
309337
$model->workspaceId = $map['WorkspaceId'];
310338
}

mpaas-20201028/src/Models/UploadUserAppToMsaRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ class UploadUserAppToMsaRequest extends Model
2828
*/
2929
public $tenantId;
3030

31+
/**
32+
* @var bool
33+
*/
34+
public $useYShield;
35+
3136
/**
3237
* @var string
3338
*/
@@ -37,6 +42,7 @@ class UploadUserAppToMsaRequest extends Model
3742
'fileName' => 'FileName',
3843
'fileUrl' => 'FileUrl',
3944
'tenantId' => 'TenantId',
45+
'useYShield' => 'UseYShield',
4046
'workspaceId' => 'WorkspaceId',
4147
];
4248

@@ -64,6 +70,10 @@ public function toArray($noStream = false)
6470
$res['TenantId'] = $this->tenantId;
6571
}
6672

73+
if (null !== $this->useYShield) {
74+
$res['UseYShield'] = $this->useYShield;
75+
}
76+
6777
if (null !== $this->workspaceId) {
6878
$res['WorkspaceId'] = $this->workspaceId;
6979
}
@@ -95,6 +105,10 @@ public static function fromMap($map = [])
95105
$model->tenantId = $map['TenantId'];
96106
}
97107

108+
if (isset($map['UseYShield'])) {
109+
$model->useYShield = $map['UseYShield'];
110+
}
111+
98112
if (isset($map['WorkspaceId'])) {
99113
$model->workspaceId = $map['WorkspaceId'];
100114
}

0 commit comments

Comments
 (0)