Skip to content

Commit 9d754da

Browse files
committed
Update API StartUserAppAsyncEnhanceInMsa: add request parameters NewShieldConfig.
1 parent ff550e0 commit 9d754da

File tree

5 files changed

+73
-3
lines changed

5 files changed

+73
-3
lines changed

ChangeLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-11-19 Version: v2.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: v2.2.0
28
- Support API DeleteMdsCubeTemplate.
39

client/client.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8425,6 +8425,11 @@ func (client *Client) StartUserAppAsyncEnhanceInMsaWithOptions(request *StartUse
84258425
return _result, _err
84268426
}
84278427
}
8428+
query := map[string]interface{}{}
8429+
if !dara.IsNil(request.NewShieldConfig) {
8430+
query["NewShieldConfig"] = request.NewShieldConfig
8431+
}
8432+
84288433
body := map[string]interface{}{}
84298434
if !dara.IsNil(request.ApkProtector) {
84308435
body["ApkProtector"] = request.ApkProtector
@@ -8502,12 +8507,17 @@ func (client *Client) StartUserAppAsyncEnhanceInMsaWithOptions(request *StartUse
85028507
body["UseAShield"] = request.UseAShield
85038508
}
85048509

8510+
if !dara.IsNil(request.UseYShield) {
8511+
body["UseYShield"] = request.UseYShield
8512+
}
8513+
85058514
if !dara.IsNil(request.WorkspaceId) {
85068515
body["WorkspaceId"] = request.WorkspaceId
85078516
}
85088517

85098518
req := &openapiutil.OpenApiRequest{
8510-
Body: openapiutil.ParseToMap(body),
8519+
Query: openapiutil.Query(query),
8520+
Body: openapiutil.ParseToMap(body),
85118521
}
85128522
params := &openapiutil.Params{
85138523
Action: dara.String("StartUserAppAsyncEnhanceInMsa"),
@@ -9194,6 +9204,10 @@ func (client *Client) UploadUserAppToMsaWithOptions(request *UploadUserAppToMsaR
91949204
body["TenantId"] = request.TenantId
91959205
}
91969206

9207+
if !dara.IsNil(request.UseYShield) {
9208+
body["UseYShield"] = request.UseYShield
9209+
}
9210+
91979211
if !dara.IsNil(request.WorkspaceId) {
91989212
body["WorkspaceId"] = request.WorkspaceId
91999213
}

client/client_context_func.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6759,6 +6759,11 @@ func (client *Client) StartUserAppAsyncEnhanceInMsaWithContext(ctx context.Conte
67596759
return _result, _err
67606760
}
67616761
}
6762+
query := map[string]interface{}{}
6763+
if !dara.IsNil(request.NewShieldConfig) {
6764+
query["NewShieldConfig"] = request.NewShieldConfig
6765+
}
6766+
67626767
body := map[string]interface{}{}
67636768
if !dara.IsNil(request.ApkProtector) {
67646769
body["ApkProtector"] = request.ApkProtector
@@ -6836,12 +6841,17 @@ func (client *Client) StartUserAppAsyncEnhanceInMsaWithContext(ctx context.Conte
68366841
body["UseAShield"] = request.UseAShield
68376842
}
68386843

6844+
if !dara.IsNil(request.UseYShield) {
6845+
body["UseYShield"] = request.UseYShield
6846+
}
6847+
68396848
if !dara.IsNil(request.WorkspaceId) {
68406849
body["WorkspaceId"] = request.WorkspaceId
68416850
}
68426851

68436852
req := &openapiutil.OpenApiRequest{
6844-
Body: openapiutil.ParseToMap(body),
6853+
Query: openapiutil.Query(query),
6854+
Body: openapiutil.ParseToMap(body),
68456855
}
68466856
params := &openapiutil.Params{
68476857
Action: dara.String("StartUserAppAsyncEnhanceInMsa"),
@@ -7408,6 +7418,10 @@ func (client *Client) UploadUserAppToMsaWithContext(ctx context.Context, request
74087418
body["TenantId"] = request.TenantId
74097419
}
74107420

7421+
if !dara.IsNil(request.UseYShield) {
7422+
body["UseYShield"] = request.UseYShield
7423+
}
7424+
74117425
if !dara.IsNil(request.WorkspaceId) {
74127426
body["WorkspaceId"] = request.WorkspaceId
74137427
}

client/start_user_app_async_enhance_in_msa_request_model.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ type iStartUserAppAsyncEnhanceInMsaRequest interface {
3131
GetNativeDebugger() *int32
3232
SetNativeHook(v int32) *StartUserAppAsyncEnhanceInMsaRequest
3333
GetNativeHook() *int32
34+
SetNewShieldConfig(v string) *StartUserAppAsyncEnhanceInMsaRequest
35+
GetNewShieldConfig() *string
3436
SetPackageTampered(v int32) *StartUserAppAsyncEnhanceInMsaRequest
3537
GetPackageTampered() *int32
3638
SetRoot(v int32) *StartUserAppAsyncEnhanceInMsaRequest
@@ -47,6 +49,8 @@ type iStartUserAppAsyncEnhanceInMsaRequest interface {
4749
GetTotalSwitch() *bool
4850
SetUseAShield(v bool) *StartUserAppAsyncEnhanceInMsaRequest
4951
GetUseAShield() *bool
52+
SetUseYShield(v bool) *StartUserAppAsyncEnhanceInMsaRequest
53+
GetUseYShield() *bool
5054
SetWorkspaceId(v string) *StartUserAppAsyncEnhanceInMsaRequest
5155
GetWorkspaceId() *string
5256
}
@@ -65,6 +69,7 @@ type StartUserAppAsyncEnhanceInMsaRequest struct {
6569
MemoryDump *int32 `json:"MemoryDump,omitempty" xml:"MemoryDump,omitempty"`
6670
NativeDebugger *int32 `json:"NativeDebugger,omitempty" xml:"NativeDebugger,omitempty"`
6771
NativeHook *int32 `json:"NativeHook,omitempty" xml:"NativeHook,omitempty"`
72+
NewShieldConfig *string `json:"NewShieldConfig,omitempty" xml:"NewShieldConfig,omitempty"`
6873
PackageTampered *int32 `json:"PackageTampered,omitempty" xml:"PackageTampered,omitempty"`
6974
Root *int32 `json:"Root,omitempty" xml:"Root,omitempty"`
7075
RunMode *string `json:"RunMode,omitempty" xml:"RunMode,omitempty"`
@@ -74,6 +79,7 @@ type StartUserAppAsyncEnhanceInMsaRequest struct {
7479
TenantId *string `json:"TenantId,omitempty" xml:"TenantId,omitempty"`
7580
TotalSwitch *bool `json:"TotalSwitch,omitempty" xml:"TotalSwitch,omitempty"`
7681
UseAShield *bool `json:"UseAShield,omitempty" xml:"UseAShield,omitempty"`
82+
UseYShield *bool `json:"UseYShield,omitempty" xml:"UseYShield,omitempty"`
7783
// This parameter is required.
7884
WorkspaceId *string `json:"WorkspaceId,omitempty" xml:"WorkspaceId,omitempty"`
7985
}
@@ -130,6 +136,10 @@ func (s *StartUserAppAsyncEnhanceInMsaRequest) GetNativeHook() *int32 {
130136
return s.NativeHook
131137
}
132138

139+
func (s *StartUserAppAsyncEnhanceInMsaRequest) GetNewShieldConfig() *string {
140+
return s.NewShieldConfig
141+
}
142+
133143
func (s *StartUserAppAsyncEnhanceInMsaRequest) GetPackageTampered() *int32 {
134144
return s.PackageTampered
135145
}
@@ -162,6 +172,10 @@ func (s *StartUserAppAsyncEnhanceInMsaRequest) GetUseAShield() *bool {
162172
return s.UseAShield
163173
}
164174

175+
func (s *StartUserAppAsyncEnhanceInMsaRequest) GetUseYShield() *bool {
176+
return s.UseYShield
177+
}
178+
165179
func (s *StartUserAppAsyncEnhanceInMsaRequest) GetWorkspaceId() *string {
166180
return s.WorkspaceId
167181
}
@@ -221,6 +235,11 @@ func (s *StartUserAppAsyncEnhanceInMsaRequest) SetNativeHook(v int32) *StartUser
221235
return s
222236
}
223237

238+
func (s *StartUserAppAsyncEnhanceInMsaRequest) SetNewShieldConfig(v string) *StartUserAppAsyncEnhanceInMsaRequest {
239+
s.NewShieldConfig = &v
240+
return s
241+
}
242+
224243
func (s *StartUserAppAsyncEnhanceInMsaRequest) SetPackageTampered(v int32) *StartUserAppAsyncEnhanceInMsaRequest {
225244
s.PackageTampered = &v
226245
return s
@@ -261,6 +280,11 @@ func (s *StartUserAppAsyncEnhanceInMsaRequest) SetUseAShield(v bool) *StartUserA
261280
return s
262281
}
263282

283+
func (s *StartUserAppAsyncEnhanceInMsaRequest) SetUseYShield(v bool) *StartUserAppAsyncEnhanceInMsaRequest {
284+
s.UseYShield = &v
285+
return s
286+
}
287+
264288
func (s *StartUserAppAsyncEnhanceInMsaRequest) SetWorkspaceId(v string) *StartUserAppAsyncEnhanceInMsaRequest {
265289
s.WorkspaceId = &v
266290
return s

client/upload_user_app_to_msa_request_model.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ type iUploadUserAppToMsaRequest interface {
1717
GetFileUrl() *string
1818
SetTenantId(v string) *UploadUserAppToMsaRequest
1919
GetTenantId() *string
20+
SetUseYShield(v bool) *UploadUserAppToMsaRequest
21+
GetUseYShield() *bool
2022
SetWorkspaceId(v string) *UploadUserAppToMsaRequest
2123
GetWorkspaceId() *string
2224
}
@@ -27,7 +29,8 @@ type UploadUserAppToMsaRequest struct {
2729
FileName *string `json:"FileName,omitempty" xml:"FileName,omitempty"`
2830
FileUrl *string `json:"FileUrl,omitempty" xml:"FileUrl,omitempty"`
2931
// This parameter is required.
30-
TenantId *string `json:"TenantId,omitempty" xml:"TenantId,omitempty"`
32+
TenantId *string `json:"TenantId,omitempty" xml:"TenantId,omitempty"`
33+
UseYShield *bool `json:"UseYShield,omitempty" xml:"UseYShield,omitempty"`
3134
// This parameter is required.
3235
WorkspaceId *string `json:"WorkspaceId,omitempty" xml:"WorkspaceId,omitempty"`
3336
}
@@ -56,6 +59,10 @@ func (s *UploadUserAppToMsaRequest) GetTenantId() *string {
5659
return s.TenantId
5760
}
5861

62+
func (s *UploadUserAppToMsaRequest) GetUseYShield() *bool {
63+
return s.UseYShield
64+
}
65+
5966
func (s *UploadUserAppToMsaRequest) GetWorkspaceId() *string {
6067
return s.WorkspaceId
6168
}
@@ -80,6 +87,11 @@ func (s *UploadUserAppToMsaRequest) SetTenantId(v string) *UploadUserAppToMsaReq
8087
return s
8188
}
8289

90+
func (s *UploadUserAppToMsaRequest) SetUseYShield(v bool) *UploadUserAppToMsaRequest {
91+
s.UseYShield = &v
92+
return s
93+
}
94+
8395
func (s *UploadUserAppToMsaRequest) SetWorkspaceId(v string) *UploadUserAppToMsaRequest {
8496
s.WorkspaceId = &v
8597
return s

0 commit comments

Comments
 (0)