From faeb8a83a5d85bb1a817facd5f2cafaf3d2fddb1 Mon Sep 17 00:00:00 2001 From: wenzuochao Date: Fri, 27 Dec 2019 10:05:25 +0800 Subject: [PATCH] update --- baseclient/go/go.mod | 10 +- ccppath-sdk/go/go.mod | 8 +- osspath-sdk/go/client/client.go | 48 +- osspath-sdk/go/go.mod | 8 +- .../models/OSSDeleteFileRequest.java | 2 +- osspath-sdk/oss.tea | 2 +- osspath-sdk/ts/src/client.ts | 962 ++++++++++-------- 7 files changed, 567 insertions(+), 473 deletions(-) diff --git a/baseclient/go/go.mod b/baseclient/go/go.mod index cdcc0593..eeb6a6da 100644 --- a/baseclient/go/go.mod +++ b/baseclient/go/go.mod @@ -4,21 +4,21 @@ go 1.12 require ( github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 // indirect - github.com/alibabacloud-go/tea v0.0.0-20191213065341-8da7978c8dcd + github.com/alibabacloud-go/tea v0.0.0-20191219084903-1b923fea9df6 github.com/aliyun/credentials-go v0.0.0-20190906110604-c03d72db9395 github.com/gopherjs/gopherjs v0.0.0-20191106031601-ce3c9ade29de // indirect github.com/smartystreets/assertions v1.0.1 // indirect github.com/smartystreets/goconvey v1.6.4 // indirect github.com/stretchr/objx v0.2.0 // indirect github.com/stretchr/testify v1.4.0 // indirect - golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 // indirect + golang.org/x/crypto v0.0.0-20191219195013-becbf705a915 // indirect golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 // indirect golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect - golang.org/x/sys v0.0.0-20191210023423-ac6580df4449 // indirect + golang.org/x/sys v0.0.0-20191224085550-c709ea063b76 // indirect golang.org/x/text v0.3.2 // indirect - golang.org/x/tools v0.0.0-20191213032237-7093a17b0467 // indirect + golang.org/x/tools v0.0.0-20191226230302-065ed046f11a // indirect golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect - gopkg.in/ini.v1 v1.51.0 // indirect + gopkg.in/ini.v1 v1.51.1 // indirect gopkg.in/yaml.v2 v2.2.7 // indirect ) diff --git a/ccppath-sdk/go/go.mod b/ccppath-sdk/go/go.mod index 01b5c954..161d0e50 100644 --- a/ccppath-sdk/go/go.mod +++ b/ccppath-sdk/go/go.mod @@ -1,6 +1,10 @@ module github.com/aliyun/aliyun-ccp/ccppath-sdk/go require ( - github.com/alibabacloud-go/tea v0.0.0-20191213065341-8da7978c8dcd - github.com/aliyun/aliyun-ccp/baseclient/go v0.0.0-20191213071845-2042a6f46edc + github.com/alibabacloud-go/tea v0.0.0-20191219084903-1b923fea9df6 + github.com/aliyun/aliyun-ccp/baseclient/go v0.0.0-20191220074130-7b0e7972ebd1 + golang.org/x/crypto v0.0.0-20191219195013-becbf705a915 // indirect + golang.org/x/sys v0.0.0-20191224085550-c709ea063b76 // indirect + golang.org/x/tools v0.0.0-20191226230302-065ed046f11a // indirect + gopkg.in/ini.v1 v1.51.1 // indirect ) diff --git a/osspath-sdk/go/client/client.go b/osspath-sdk/go/client/client.go index 8fcb5f4b..d09a1c87 100644 --- a/osspath-sdk/go/client/client.go +++ b/osspath-sdk/go/client/client.go @@ -8211,7 +8211,7 @@ func (s *OSSCreateFileRequest) SetShareId(v string) *OSSCreateFileRequest { type OSSDeleteFileRequest struct { DriveId *string `json:"drive_id" xml:"drive_id" require:"true" pattern:"[0-9]+"` - FilePath *string `json:"file_path" xml:"file_path" require:"true" maxLength:"50" pattern:"[a-z0-9.-_]{1,50}"` + FilePath *string `json:"file_path" xml:"file_path" require:"true" maxLength:"1000" pattern:"[a-z0-9.-_]{1,1000}"` Permanently *bool `json:"permanently" xml:"permanently"` ShareId *string `json:"share_id" xml:"share_id" pattern:"[0-9a-zA-z-]+"` } @@ -9391,6 +9391,7 @@ func NewClient(config *Config) (*Client, error) { } return client, nil } + func (client *Client) CancelLink(request *CancelLinkRequest, runtime *RuntimeOptions) (*AccountAccessTokenResponse, error) { err := tea.Validate(request) if err != nil { @@ -9470,7 +9471,6 @@ func (client *Client) CancelLink(request *CancelLinkRequest, runtime *RuntimeOpt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -9597,7 +9597,6 @@ func (client *Client) ConfirmLink(request *ConfirmLinkRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -9723,7 +9722,6 @@ func (client *Client) ChangePassword(request *DefaultChangePasswordRequest, runt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 204) { return nil } @@ -9840,7 +9838,6 @@ func (client *Client) SetPassword(request *DefaultSetPasswordRequest, runtime *R } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 204) { return nil } @@ -9958,7 +9955,6 @@ func (client *Client) GetAccessTokenByLinkInfo(request *GetAccessTokenByLinkInfo } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10085,7 +10081,6 @@ func (client *Client) GetCaptcha(request *GetCaptchaRequest, runtime *RuntimeOpt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10212,7 +10207,6 @@ func (client *Client) GetLinkInfo(request *GetByLinkInfoRequest, runtime *Runtim } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10339,7 +10333,6 @@ func (client *Client) GetLinkInfoByUserId(request *GetLinkInfoByUserIDRequest, r } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10466,7 +10459,6 @@ func (client *Client) Link(request *AccountLinkRequest, runtime *RuntimeOptions) } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10593,7 +10585,6 @@ func (client *Client) CheckExist(request *MobileCheckExistRequest, runtime *Runt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10720,7 +10711,6 @@ func (client *Client) Login(request *MobileLoginRequest, runtime *RuntimeOptions } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10847,7 +10837,6 @@ func (client *Client) Register(request *MobileRegisterRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -10974,7 +10963,6 @@ func (client *Client) MobileSendSmsCode(request *MobileSendSmsCodeRequest, runti } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -11101,7 +11089,6 @@ func (client *Client) Token(request *TokenRequest, runtime *RuntimeOptions) (*Ac } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -11228,7 +11215,6 @@ func (client *Client) AdminListStores(request *AdminListStoresRequest, runtime * } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -11355,7 +11341,6 @@ func (client *Client) GetUserAccessToken(request *GetUserAccessTokenRequest, run } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -11482,7 +11467,6 @@ func (client *Client) CreateDrive(request *CreateDriveRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 201) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -11608,7 +11592,6 @@ func (client *Client) DeleteDrive(request *DeleteDriveRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 204) { return nil } @@ -11726,7 +11709,6 @@ func (client *Client) GetDrive(request *GetDriveRequest, runtime *RuntimeOptions } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -11853,7 +11835,6 @@ func (client *Client) GetDefaultDrive(request *GetDefaultDriveRequest, runtime * } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -11980,7 +11961,6 @@ func (client *Client) ListDrives(request *ListDriveRequest, runtime *RuntimeOpti } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -12107,7 +12087,6 @@ func (client *Client) ListMyDrives(request *ListMyDriveRequest, runtime *Runtime } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -12234,7 +12213,6 @@ func (client *Client) UpdateDrive(request *UpdateDriveRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -12361,7 +12339,6 @@ func (client *Client) CompleteFile(request *OSSCompleteFileRequest, runtime *Run } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -12488,7 +12465,6 @@ func (client *Client) CopyFile(request *OSSCopyFileRequest, runtime *RuntimeOpti } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 201) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -12615,7 +12591,6 @@ func (client *Client) CreateFile(request *OSSCreateFileRequest, runtime *Runtime } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 201) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -12741,7 +12716,6 @@ func (client *Client) DeleteFile(request *OSSDeleteFileRequest, runtime *Runtime } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 204) { return nil } @@ -12859,7 +12833,6 @@ func (client *Client) GetFile(request *OSSGetFileRequest, runtime *RuntimeOption } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -12986,7 +12959,6 @@ func (client *Client) GetDownloadUrl(request *OSSGetDownloadUrlRequest, runtime } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -13113,7 +13085,6 @@ func (client *Client) GetUploadUrl(request *OSSGetUploadUrlRequest, runtime *Run } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -13240,7 +13211,6 @@ func (client *Client) ListFile(request *OSSListFileRequest, runtime *RuntimeOpti } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -13367,7 +13337,6 @@ func (client *Client) ListUploadedParts(request *OSSListUploadedPartRequest, run } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -13494,7 +13463,6 @@ func (client *Client) MoveFile(request *OSSMoveFileRequest, runtime *RuntimeOpti } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -13621,7 +13589,6 @@ func (client *Client) CreateShare(request *CreateShareRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 201) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -13747,7 +13714,6 @@ func (client *Client) DeleteShare(request *DeleteShareRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 204) { return nil } @@ -13865,7 +13831,6 @@ func (client *Client) GetShare(request *GetShareRequest, runtime *RuntimeOptions } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -13992,7 +13957,6 @@ func (client *Client) ListShare(request *ListShareRequest, runtime *RuntimeOptio } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -14119,7 +14083,6 @@ func (client *Client) UpdateShare(request *UpdateShareRequest, runtime *RuntimeO } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -14246,7 +14209,6 @@ func (client *Client) ListStorefile(request *ListStoreFileRequest, runtime *Runt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -14373,7 +14335,6 @@ func (client *Client) CreateUser(request *CreateUserRequest, runtime *RuntimeOpt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 201) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -14499,7 +14460,6 @@ func (client *Client) DeleteUser(request *DeleteUserRequest, runtime *RuntimeOpt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 204) { return nil } @@ -14617,7 +14577,6 @@ func (client *Client) GetUser(request *GetUserRequest, runtime *RuntimeOptions) } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -14744,7 +14703,6 @@ func (client *Client) ListUsers(request *ListUserRequest, runtime *RuntimeOption } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -14871,7 +14829,6 @@ func (client *Client) SearchUser(request *SearchUserRequest, runtime *RuntimeOpt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { @@ -14998,7 +14955,6 @@ func (client *Client) UpdateUser(request *UpdateUserRequest, runtime *RuntimeOpt } respMap := make(map[string]interface{}) - if client.IsStatusCode(response_, 200) { respMap, err = client.ReadAsJSON(response_) if err != nil { diff --git a/osspath-sdk/go/go.mod b/osspath-sdk/go/go.mod index ddc82ca6..a6b52f05 100644 --- a/osspath-sdk/go/go.mod +++ b/osspath-sdk/go/go.mod @@ -3,6 +3,10 @@ module github.com/aliyun/aliyun-ccp/osspath-sdk/go go 1.12 require ( - github.com/alibabacloud-go/tea v0.0.0-20191213065341-8da7978c8dcd - github.com/aliyun/aliyun-ccp/baseclient/go v0.0.0-20191213071845-2042a6f46edc + github.com/alibabacloud-go/tea v0.0.0-20191219084903-1b923fea9df6 + github.com/aliyun/aliyun-ccp/baseclient/go v0.0.0-20191220074130-7b0e7972ebd1 + golang.org/x/crypto v0.0.0-20191219195013-becbf705a915 // indirect + golang.org/x/sys v0.0.0-20191224085550-c709ea063b76 // indirect + golang.org/x/tools v0.0.0-20191226230302-065ed046f11a // indirect + gopkg.in/ini.v1 v1.51.1 // indirect ) diff --git a/osspath-sdk/java/src/main/java/com/aliyun/ccp/ossclient/models/OSSDeleteFileRequest.java b/osspath-sdk/java/src/main/java/com/aliyun/ccp/ossclient/models/OSSDeleteFileRequest.java index e099e88e..23a1cf35 100644 --- a/osspath-sdk/java/src/main/java/com/aliyun/ccp/ossclient/models/OSSDeleteFileRequest.java +++ b/osspath-sdk/java/src/main/java/com/aliyun/ccp/ossclient/models/OSSDeleteFileRequest.java @@ -9,7 +9,7 @@ public class OSSDeleteFileRequest extends TeaModel { public String driveId; @NameInMap("file_path") - @Validation(required = true, pattern = "[a-z0-9.-_]{1,50}") + @Validation(required = true, pattern = "[a-z0-9.-_]{1,1000}") public String filePath; @NameInMap("permanently") diff --git a/osspath-sdk/oss.tea b/osspath-sdk/oss.tea index b3eac861..e4628738 100644 --- a/osspath-sdk/oss.tea +++ b/osspath-sdk/oss.tea @@ -2044,7 +2044,7 @@ type: boolean'), */ model OSSDeleteFileRequest { driveId: string(name='drive_id', description='drive_id', example='1', pattern='[0-9]+'), - filePath: string(name='file_path', description='file_path', maxLength=50, minLength=40, pattern='[a-z0-9.-_]{1,50}'), + filePath: string(name='file_path', description='file_path', maxLength=1000, minLength=1, pattern='[a-z0-9.-_]{1,1000}'), permanently?: boolean(name='permanently', description='permanently type: false', example=false), shareId?: string(name='share_id', description='share_id', example='3d336314-63c8-4d96-bce0-17aefb6833b6', pattern='[0-9a-zA-z-]+'), diff --git a/osspath-sdk/ts/src/client.ts b/osspath-sdk/ts/src/client.ts index f14f83e9..2c36abc4 100644 --- a/osspath-sdk/ts/src/client.ts +++ b/osspath-sdk/ts/src/client.ts @@ -1,4 +1,5 @@ // This file is auto-generated, don't edit it +import { Readable } from 'stream'; import * as $tea from '@alicloud/tea-typescript'; import BaseClient from '@alicloud/ccp-baseclient'; @@ -55,7 +56,7 @@ export class RuntimeOptions extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -110,7 +111,7 @@ export class Config extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -171,7 +172,7 @@ export class AccountAccessTokenResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -202,7 +203,7 @@ export class AccountLinkRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -239,7 +240,7 @@ export class AddStoreRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -261,7 +262,7 @@ export class AppAccessStrategy extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -292,7 +293,7 @@ export class AuthConfig extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -392,7 +393,7 @@ export class BaseCCPFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -447,7 +448,7 @@ export class BaseDriveResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -532,7 +533,7 @@ export class BaseOSSFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -593,14 +594,14 @@ export class BaseShareResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } export class BatchSubResponse extends $tea.Model { requestId?: string; - body?: object; + body?: {[key: string]: any}; id?: string; status?: number; static names(): { [key: string]: string } { @@ -615,13 +616,13 @@ export class BatchSubResponse extends $tea.Model { static types(): { [key: string]: any } { return { requestId: 'string', - body: 'object', + body: '{[key: string]: any}', id: 'string', status: 'number', }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -643,7 +644,7 @@ export class CCPBatchResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -746,7 +747,7 @@ export class CCPCompleteFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -777,7 +778,7 @@ export class CCPCopyFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -820,7 +821,7 @@ export class CCPCreateFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -851,7 +852,7 @@ export class CCPDeleteFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -879,7 +880,7 @@ export class CCPDeleteFilesResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -907,7 +908,7 @@ export class CCPGetAsyncTaskResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -935,7 +936,7 @@ export class CCPGetDownloadUrlResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1035,7 +1036,7 @@ export class CCPGetFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1072,7 +1073,7 @@ export class CCPGetUploadUrlResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1097,7 +1098,7 @@ export class CCPListFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1128,7 +1129,7 @@ export class CCPListUploadedPartResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1159,7 +1160,7 @@ export class CCPMoveFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1184,7 +1185,7 @@ export class CCPSearchFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1284,7 +1285,7 @@ export class CCPUpdateFileMetaResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1303,7 +1304,7 @@ export class CancelLinkRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1328,7 +1329,7 @@ export class Captcha extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1347,7 +1348,7 @@ export class ConfirmLinkRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1378,7 +1379,7 @@ export class CorsRule extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1415,7 +1416,7 @@ export class CreateAppRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1424,7 +1425,7 @@ export class CreateDomainRequest extends $tea.Model { authAlipayAppId?: string; authAlipayEnbale?: boolean; authAlipayPrivateKey?: string; - authConfig?: object; + authConfig?: {[key: string]: any}; authDingdingAppId?: string; authDingdingAppSecret?: string; authDingdingEnable?: boolean; @@ -1483,7 +1484,7 @@ export class CreateDomainRequest extends $tea.Model { authAlipayAppId: 'string', authAlipayEnbale: 'boolean', authAlipayPrivateKey: 'string', - authConfig: 'object', + authConfig: '{[key: string]: any}', authDingdingAppId: 'string', authDingdingAppSecret: 'string', authDingdingEnable: 'boolean', @@ -1509,7 +1510,7 @@ export class CreateDomainRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1534,7 +1535,7 @@ export class CreateDriveResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1559,7 +1560,7 @@ export class CreateShareResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1590,7 +1591,7 @@ export class DefaultChangePasswordRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1615,7 +1616,7 @@ export class DefaultSetPasswordRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1634,7 +1635,7 @@ export class DeleteAppRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1653,7 +1654,7 @@ export class DeleteDomainRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1672,7 +1673,7 @@ export class DeleteDriveResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1694,7 +1695,7 @@ export class GetAccessTokenByLinkInfoRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1713,7 +1714,7 @@ export class GetAppRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1735,7 +1736,7 @@ export class GetByLinkInfoRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1754,7 +1755,7 @@ export class GetCaptchaRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1773,7 +1774,7 @@ export class GetDomainRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1828,7 +1829,7 @@ export class GetDriveResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1847,7 +1848,7 @@ export class GetLinkInfoByUserIDRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1908,7 +1909,7 @@ export class GetShareResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1936,7 +1937,7 @@ export class ImageMediaResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1958,7 +1959,7 @@ export class LinkInfo extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -1980,7 +1981,7 @@ export class LinkInfoListResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2020,7 +2021,7 @@ export class LinkInfoResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2042,7 +2043,7 @@ export class ListAppsRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2064,7 +2065,7 @@ export class ListDomainsRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2089,7 +2090,7 @@ export class ListDriveResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2114,7 +2115,7 @@ export class ListShareResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2139,7 +2140,7 @@ export class ListStoreFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2161,7 +2162,7 @@ export class ListStoreResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2180,7 +2181,7 @@ export class ListStoresRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2208,7 +2209,7 @@ export class LoginByCodeRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2230,7 +2231,7 @@ export class MobileCheckExistRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2255,7 +2256,7 @@ export class MobileCheckExistResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2295,7 +2296,7 @@ export class MobileLoginRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2323,7 +2324,7 @@ export class MobileRegisterRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2354,7 +2355,7 @@ export class MobileSendSmsCodeRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2376,7 +2377,7 @@ export class MobileSendSmsCodeResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2464,7 +2465,7 @@ export class OSSCompleteFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2498,7 +2499,7 @@ export class OSSCopyFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2538,7 +2539,7 @@ export class OSSCreateFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2572,7 +2573,7 @@ export class OSSDeleteFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2603,7 +2604,7 @@ export class OSSDeleteFilesResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2631,7 +2632,7 @@ export class OSSGetDownloadUrlResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2716,7 +2717,7 @@ export class OSSGetFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2753,7 +2754,7 @@ export class OSSGetUploadUrlResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2778,7 +2779,7 @@ export class OSSListFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2809,7 +2810,7 @@ export class OSSListUploadedPartResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2843,7 +2844,7 @@ export class OSSMoveFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2868,7 +2869,7 @@ export class OSSSearchFileResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2953,7 +2954,7 @@ export class OSSUpdateFileMetaResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -2987,7 +2988,7 @@ export class PreHashCheckSuccessResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3009,7 +3010,7 @@ export class RemoveStoreRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3034,7 +3035,7 @@ export class SetStoreCorsRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3065,7 +3066,7 @@ export class StoreFile extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3120,7 +3121,7 @@ export class StoreItemResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3145,7 +3146,7 @@ export class TokenRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3185,7 +3186,7 @@ export class UpdateAppRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3194,7 +3195,7 @@ export class UpdateDomainRequest extends $tea.Model { authAlipayAppId?: string; authAlipayEnbale?: boolean; authAlipayPrivateKey?: string; - authConfig?: object; + authConfig?: {[key: string]: any}; authDingdingAppId?: string; authDingdingAppSecret?: string; authDingdingEnable?: boolean; @@ -3251,7 +3252,7 @@ export class UpdateDomainRequest extends $tea.Model { authAlipayAppId: 'string', authAlipayEnbale: 'boolean', authAlipayPrivateKey: 'string', - authConfig: 'object', + authConfig: '{[key: string]: any}', authDingdingAppId: 'string', authDingdingAppSecret: 'string', authDingdingEnable: 'boolean', @@ -3276,7 +3277,7 @@ export class UpdateDomainRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3331,7 +3332,7 @@ export class UpdateDriveResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3392,7 +3393,7 @@ export class UpdateShareResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3420,7 +3421,7 @@ export class UploadPartInfo extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3460,7 +3461,7 @@ export class UserAuthentication extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3497,7 +3498,7 @@ export class AccessTokenResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3552,7 +3553,7 @@ export class AddStoreResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3568,7 +3569,7 @@ export class AdminListStoresRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3578,7 +3579,7 @@ export class BaseDomainResponse extends $tea.Model { authAlipayAppId?: string; authAlipayEnable?: boolean; authAlipayPrivateKey?: string; - authConfig?: object; + authConfig?: {[key: string]: any}; authDingdingAppId?: string; authDingdingAppSecret?: string; authDingdingEnable?: boolean; @@ -3647,7 +3648,7 @@ export class BaseDomainResponse extends $tea.Model { authAlipayAppId: 'string', authAlipayEnable: 'boolean', authAlipayPrivateKey: 'string', - authConfig: 'object', + authConfig: '{[key: string]: any}', authDingdingAppId: 'string', authDingdingAppSecret: 'string', authDingdingEnable: 'boolean', @@ -3677,7 +3678,7 @@ export class BaseDomainResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3687,7 +3688,7 @@ export class CreateDomainResponse extends $tea.Model { authAlipayAppId?: string; authAlipayEnable?: boolean; authAlipayPrivateKey?: string; - authConfig?: object; + authConfig?: {[key: string]: any}; authDingdingAppId?: string; authDingdingAppSecret?: string; authDingdingEnable?: boolean; @@ -3756,7 +3757,7 @@ export class CreateDomainResponse extends $tea.Model { authAlipayAppId: 'string', authAlipayEnable: 'boolean', authAlipayPrivateKey: 'string', - authConfig: 'object', + authConfig: '{[key: string]: any}', authDingdingAppId: 'string', authDingdingAppSecret: 'string', authDingdingEnable: 'boolean', @@ -3786,7 +3787,7 @@ export class CreateDomainResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3847,7 +3848,7 @@ export class GetAppResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3857,7 +3858,7 @@ export class GetDomainResponse extends $tea.Model { authAlipayAppId?: string; authAlipayEnable?: boolean; authAlipayPrivateKey?: string; - authConfig?: object; + authConfig?: {[key: string]: any}; authDingdingAppId?: string; authDingdingAppSecret?: string; authDingdingEnable?: boolean; @@ -3926,7 +3927,7 @@ export class GetDomainResponse extends $tea.Model { authAlipayAppId: 'string', authAlipayEnable: 'boolean', authAlipayPrivateKey: 'string', - authConfig: 'object', + authConfig: '{[key: string]: any}', authDingdingAppId: 'string', authDingdingAppSecret: 'string', authDingdingEnable: 'boolean', @@ -3956,7 +3957,7 @@ export class GetDomainResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -3978,7 +3979,7 @@ export class GetUserAccessTokenRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4003,7 +4004,7 @@ export class ListAppsResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4028,7 +4029,7 @@ export class ListDomainsResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4050,7 +4051,7 @@ export class ListStoresResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4099,7 +4100,7 @@ export class Store extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4109,7 +4110,7 @@ export class UpdateDomainResponse extends $tea.Model { authAlipayAppId?: string; authAlipayEnable?: boolean; authAlipayPrivateKey?: string; - authConfig?: object; + authConfig?: {[key: string]: any}; authDingdingAppId?: string; authDingdingAppSecret?: string; authDingdingEnable?: boolean; @@ -4178,7 +4179,7 @@ export class UpdateDomainResponse extends $tea.Model { authAlipayAppId: 'string', authAlipayEnable: 'boolean', authAlipayPrivateKey: 'string', - authConfig: 'object', + authConfig: '{[key: string]: any}', authDingdingAppId: 'string', authDingdingAppSecret: 'string', authDingdingEnable: 'boolean', @@ -4208,7 +4209,7 @@ export class UpdateDomainResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4233,7 +4234,7 @@ export class BaseCompleteFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4267,7 +4268,7 @@ export class BaseCreateFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4295,7 +4296,7 @@ export class BaseGetUploadUrlRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4326,7 +4327,7 @@ export class BaseListFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4351,14 +4352,14 @@ export class BaseMoveFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } export class BatchSubRequest extends $tea.Model { - body?: object; - headers?: object; + body?: {[key: string]: any}; + headers?: {[key: string]: any}; id: string; method: string; url: string; @@ -4374,15 +4375,15 @@ export class BatchSubRequest extends $tea.Model { static types(): { [key: string]: any } { return { - body: 'object', - headers: 'object', + body: '{[key: string]: any}', + headers: '{[key: string]: any}', id: 'string', method: 'string', url: 'string', }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4404,7 +4405,7 @@ export class CCPBatchRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4432,7 +4433,7 @@ export class CCPCompleteFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4466,7 +4467,7 @@ export class CCPCopyFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4533,7 +4534,7 @@ export class CCPCreateFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4558,7 +4559,7 @@ export class CCPDeleteFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4580,7 +4581,7 @@ export class CCPDeleteFilesRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4599,7 +4600,7 @@ export class CCPGetAsyncTaskRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4627,7 +4628,7 @@ export class CCPGetDownloadUrlRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4655,7 +4656,7 @@ export class CCPGetFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4686,7 +4687,7 @@ export class CCPGetUploadUrlRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4744,7 +4745,7 @@ export class CCPListFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4775,7 +4776,7 @@ export class CCPListUploadedPartRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4806,7 +4807,7 @@ export class CCPMoveFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4843,7 +4844,7 @@ export class CCPSearchFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4886,7 +4887,7 @@ export class CCPUpdateFileMetaRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4920,7 +4921,7 @@ export class CompleteFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -4960,7 +4961,7 @@ export class CopyFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5003,7 +5004,7 @@ export class CreateDriveRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5024,7 +5025,7 @@ export class CreateFileRequest extends $tea.Model { preHash?: string; shareId?: string; size: number; - tags?: object; + tags?: {[key: string]: any}; type: string; static names(): { [key: string]: string } { return { @@ -5065,12 +5066,12 @@ export class CreateFileRequest extends $tea.Model { preHash: 'string', shareId: 'string', size: 'number', - tags: 'object', + tags: '{[key: string]: any}', type: 'string', }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5110,7 +5111,7 @@ export class CreateShareRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5129,7 +5130,7 @@ export class DeleteDriveRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5160,7 +5161,7 @@ export class DeleteFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5179,7 +5180,7 @@ export class DeleteShareRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5207,7 +5208,7 @@ export class DownloadRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5226,7 +5227,7 @@ export class GetAsyncTaskRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5245,7 +5246,7 @@ export class GetDefaultDriveRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5279,7 +5280,7 @@ export class GetDownloadUrlRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5298,7 +5299,7 @@ export class GetDriveRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5332,7 +5333,7 @@ export class GetFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5351,7 +5352,7 @@ export class GetShareRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5388,7 +5389,7 @@ export class GetUploadUrlRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5413,7 +5414,7 @@ export class ListDriveRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5459,7 +5460,7 @@ export class ListFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5481,7 +5482,7 @@ export class ListMyDriveRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5509,7 +5510,7 @@ export class ListShareRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5540,7 +5541,7 @@ export class ListStoreFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5559,7 +5560,7 @@ export class ListStoreRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5590,7 +5591,7 @@ export class OSSCompleteFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5630,7 +5631,7 @@ export class OSSCopyFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5673,7 +5674,7 @@ export class OSSCreateFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5701,7 +5702,7 @@ export class OSSDeleteFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5732,7 +5733,7 @@ export class OSSGetDownloadUrlRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5763,7 +5764,7 @@ export class OSSGetFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5797,7 +5798,7 @@ export class OSSGetUploadUrlRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5834,7 +5835,7 @@ export class OSSListFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5868,7 +5869,7 @@ export class OSSListUploadedPartRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5902,7 +5903,7 @@ export class OSSMoveFileRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5921,7 +5922,7 @@ export class UCGetObjectInfoByObjectKeyRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5940,7 +5941,7 @@ export class UCGetObjectInfoBySha1Request extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5971,7 +5972,7 @@ export class UpdateDriveRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -5985,7 +5986,7 @@ export class UpdateFileMetaRequest extends $tea.Model { name: string; shareId?: string; starred?: boolean; - tags?: object; + tags?: {[key: string]: any}; static names(): { [key: string]: string } { return { description: 'description', @@ -6010,11 +6011,11 @@ export class UpdateFileMetaRequest extends $tea.Model { name: 'string', shareId: 'string', starred: 'boolean', - tags: 'object', + tags: '{[key: string]: any}', }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6048,7 +6049,7 @@ export class UpdateShareRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6106,7 +6107,7 @@ export class BaseUserResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6149,7 +6150,7 @@ export class CreateUserRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6207,7 +6208,7 @@ export class CreateUserResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6226,7 +6227,7 @@ export class DeleteUserRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6245,7 +6246,7 @@ export class DeleteUserResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6264,7 +6265,7 @@ export class GetUserRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6322,7 +6323,7 @@ export class GetUserResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6344,7 +6345,7 @@ export class ListUserRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6369,7 +6370,7 @@ export class ListUserResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6409,7 +6410,7 @@ export class SearchUserRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6449,7 +6450,7 @@ export class UpdateUserRequest extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6507,7 +6508,7 @@ export class UpdateUserResponse extends $tea.Model { }; } - constructor(map: { [key: string]: any }) { + constructor(map?: { [key: string]: any }) { super(map); } } @@ -6515,11 +6516,11 @@ export class UpdateUserResponse extends $tea.Model { export default class Client extends BaseClient { constructor(config: Config) { - super(config.toMap()); + super($tea.toMap(config)); } - async cancelLink(request: CancelLinkRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async cancelLink(request: CancelLinkRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -6575,14 +6576,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccountAccessTokenResponse({})); } @@ -6597,13 +6600,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -6616,8 +6620,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async confirmLink(request: ConfirmLinkRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async confirmLink(request: ConfirmLinkRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -6673,14 +6677,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccountAccessTokenResponse({})); } @@ -6695,13 +6701,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -6714,8 +6721,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async changePassword(request: DefaultChangePasswordRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async changePassword(request: DefaultChangePasswordRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -6771,10 +6778,11 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 204)) { return ; } @@ -6790,13 +6798,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -6809,8 +6818,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async setPassword(request: DefaultSetPasswordRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async setPassword(request: DefaultSetPasswordRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -6866,10 +6875,11 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 204)) { return ; } @@ -6885,13 +6895,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -6904,8 +6915,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getAccessTokenByLinkInfo(request: GetAccessTokenByLinkInfoRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getAccessTokenByLinkInfo(request: GetAccessTokenByLinkInfoRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -6961,14 +6972,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccountAccessTokenResponse({})); } @@ -6983,13 +6996,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7002,8 +7016,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getCaptcha(request: GetCaptchaRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getCaptcha(request: GetCaptchaRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7059,14 +7073,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new Captcha({})); } @@ -7081,13 +7097,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7100,8 +7117,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getLinkInfo(request: GetByLinkInfoRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getLinkInfo(request: GetByLinkInfoRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7157,14 +7174,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new LinkInfoResponse({})); } @@ -7179,13 +7198,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7198,8 +7218,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getLinkInfoByUserId(request: GetLinkInfoByUserIDRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getLinkInfoByUserId(request: GetLinkInfoByUserIDRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7255,14 +7275,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new LinkInfoListResponse({})); } @@ -7277,13 +7299,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7296,8 +7319,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async link(request: AccountLinkRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async link(request: AccountLinkRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7353,14 +7376,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccountAccessTokenResponse({})); } @@ -7375,13 +7400,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7394,8 +7420,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async checkExist(request: MobileCheckExistRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async checkExist(request: MobileCheckExistRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7451,14 +7477,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new MobileCheckExistResponse({})); } @@ -7473,13 +7501,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7492,8 +7521,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async login(request: MobileLoginRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async login(request: MobileLoginRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7549,14 +7578,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccountAccessTokenResponse({})); } @@ -7571,13 +7602,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7590,8 +7622,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async register(request: MobileRegisterRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async register(request: MobileRegisterRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7647,14 +7679,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccountAccessTokenResponse({})); } @@ -7669,13 +7703,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7688,8 +7723,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async mobileSendSmsCode(request: MobileSendSmsCodeRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async mobileSendSmsCode(request: MobileSendSmsCodeRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7745,14 +7780,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new MobileSendSmsCodeResponse({})); } @@ -7767,13 +7804,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7786,8 +7824,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async token(request: TokenRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async token(request: TokenRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7843,14 +7881,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccountAccessTokenResponse({})); } @@ -7865,13 +7905,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7884,8 +7925,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async adminListStores(request: AdminListStoresRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async adminListStores(request: AdminListStoresRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -7941,14 +7982,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new ListStoresResponse({})); } @@ -7963,13 +8006,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -7982,8 +8026,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getUserAccessToken(request: GetUserAccessTokenRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getUserAccessToken(request: GetUserAccessTokenRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8039,14 +8083,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new AccessTokenResponse({})); } @@ -8061,13 +8107,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8080,8 +8127,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async createDrive(request: CreateDriveRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async createDrive(request: CreateDriveRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8137,14 +8184,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 201)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new CreateDriveResponse({})); } @@ -8159,13 +8208,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8178,8 +8228,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async deleteDrive(request: DeleteDriveRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async deleteDrive(request: DeleteDriveRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8235,10 +8285,11 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 204)) { return ; } @@ -8254,13 +8305,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8273,8 +8325,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getDrive(request: GetDriveRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getDrive(request: GetDriveRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8330,14 +8382,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new GetDriveResponse({})); } @@ -8352,13 +8406,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8371,8 +8426,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getDefaultDrive(request: GetDefaultDriveRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getDefaultDrive(request: GetDefaultDriveRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8428,14 +8483,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new GetDriveResponse({})); } @@ -8450,13 +8507,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8469,8 +8527,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async listDrives(request: ListDriveRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async listDrives(request: ListDriveRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8526,14 +8584,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new ListDriveResponse({})); } @@ -8548,13 +8608,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8567,8 +8628,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async listMyDrives(request: ListMyDriveRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async listMyDrives(request: ListMyDriveRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8624,14 +8685,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new ListDriveResponse({})); } @@ -8646,13 +8709,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8665,8 +8729,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async updateDrive(request: UpdateDriveRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async updateDrive(request: UpdateDriveRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8722,14 +8786,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new UpdateDriveResponse({})); } @@ -8744,13 +8810,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8763,8 +8830,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async completeFile(request: OSSCompleteFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async completeFile(request: OSSCompleteFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8820,14 +8887,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSCompleteFileResponse({})); } @@ -8842,13 +8911,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8861,8 +8931,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async copyFile(request: OSSCopyFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async copyFile(request: OSSCopyFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -8918,14 +8988,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 201)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSCopyFileResponse({})); } @@ -8940,13 +9012,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -8959,8 +9032,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async createFile(request: OSSCreateFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async createFile(request: OSSCreateFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9016,14 +9089,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 201)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSCreateFileResponse({})); } @@ -9038,13 +9113,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9057,8 +9133,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async deleteFile(request: OSSDeleteFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async deleteFile(request: OSSDeleteFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9114,10 +9190,11 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 204)) { return ; } @@ -9133,13 +9210,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9152,8 +9230,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getFile(request: OSSGetFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getFile(request: OSSGetFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9209,14 +9287,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSGetFileResponse({})); } @@ -9231,13 +9311,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9250,8 +9331,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getDownloadUrl(request: OSSGetDownloadUrlRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getDownloadUrl(request: OSSGetDownloadUrlRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9307,14 +9388,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSGetDownloadUrlResponse({})); } @@ -9329,13 +9412,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9348,8 +9432,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getUploadUrl(request: OSSGetUploadUrlRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getUploadUrl(request: OSSGetUploadUrlRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9405,14 +9489,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSGetUploadUrlResponse({})); } @@ -9427,13 +9513,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9446,8 +9533,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async listFile(request: OSSListFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async listFile(request: OSSListFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9503,14 +9590,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSListFileResponse({})); } @@ -9525,13 +9614,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9544,8 +9634,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async listUploadedParts(request: OSSListUploadedPartRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async listUploadedParts(request: OSSListUploadedPartRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9601,14 +9691,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSListUploadedPartResponse({})); } @@ -9623,13 +9715,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9642,8 +9735,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async moveFile(request: OSSMoveFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async moveFile(request: OSSMoveFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9699,14 +9792,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new OSSMoveFileResponse({})); } @@ -9721,13 +9816,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9740,8 +9836,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async createShare(request: CreateShareRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async createShare(request: CreateShareRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9797,14 +9893,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 201)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new CreateShareResponse({})); } @@ -9819,13 +9917,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9838,8 +9937,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async deleteShare(request: DeleteShareRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async deleteShare(request: DeleteShareRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9895,10 +9994,11 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 204)) { return ; } @@ -9914,13 +10014,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -9933,8 +10034,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getShare(request: GetShareRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getShare(request: GetShareRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -9990,14 +10091,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new GetShareResponse({})); } @@ -10012,13 +10115,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10031,8 +10135,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async listShare(request: ListShareRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async listShare(request: ListShareRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10088,14 +10192,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new ListShareResponse({})); } @@ -10110,13 +10216,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10129,8 +10236,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async updateShare(request: UpdateShareRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async updateShare(request: UpdateShareRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10186,14 +10293,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new UpdateShareResponse({})); } @@ -10208,13 +10317,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10227,8 +10337,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async listStorefile(request: ListStoreFileRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async listStorefile(request: ListStoreFileRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10284,14 +10394,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new ListStoreFileResponse({})); } @@ -10306,13 +10418,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10325,8 +10438,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async createUser(request: CreateUserRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async createUser(request: CreateUserRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10382,14 +10495,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 201)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new CreateUserResponse({})); } @@ -10404,13 +10519,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10423,8 +10539,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async deleteUser(request: DeleteUserRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async deleteUser(request: DeleteUserRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10480,10 +10596,11 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 204)) { return ; } @@ -10499,13 +10616,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10518,8 +10636,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async getUser(request: GetUserRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async getUser(request: GetUserRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10575,14 +10693,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new GetUserResponse({})); } @@ -10597,13 +10717,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10616,8 +10737,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async listUsers(request: ListUserRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async listUsers(request: ListUserRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10673,14 +10794,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new ListUserResponse({})); } @@ -10695,13 +10818,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10714,8 +10838,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async searchUser(request: SearchUserRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async searchUser(request: SearchUserRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10771,14 +10895,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new ListUserResponse({})); } @@ -10793,13 +10919,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) { @@ -10812,8 +10939,8 @@ export default class Client extends BaseClient { throw $tea.newUnretryableError(_lastRequest); } - async updateUser(request: UpdateUserRequest, runtime: RuntimeOptions): Promise { - let _runtime : {[key: string]: any} = { + async updateUser(request: UpdateUserRequest, runtime: RuntimeOptions): Promise { + let _runtime: { [key: string]: any } = { timeouted: "retry", readTimeout: runtime.readTimeout, connectTimeout: runtime.connectTimeout, @@ -10869,14 +10996,16 @@ export default class Client extends BaseClient { request_.headers["x-acs-signature-version"] = "1.0"; request_.headers["authorization"] = `acs ${accesskeyId}:${this._getSignature(request_)}`; } - request_.body = new $tea.BytesReadable(this._toJSONString(request.toMap())); + request_.body = new $tea.BytesReadable(this._toJSONString($tea.toMap(request))); _lastRequest = request_; let response_ = await $tea.doAction(request_, _runtime); + let respMap : {[key: string]: any} = null; if (this._isStatusCode(response_, 200)) { + respMap = await this._readAsJSON(response_); return $tea.cast({ requestId: response_.headers["x-ca-request-id"], - ...await this._readAsJSON(response_), + ...respMap, }, new UpdateUserResponse({})); } @@ -10891,13 +11020,14 @@ export default class Client extends BaseClient { }); } + respMap = await this._readAsJSON(response_); throw $tea.newError({ data: { requestId: response_.headers["x-ca-request-id"], statusCode: response_.statusCode, statusMessage: response_.statusMessage, }, - ...await this._readAsJSON(response_), + ...respMap, }); } catch (ex) { if ($tea.isRetryable(ex)) {