@alicloud/sae20190506 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +135 -0
- package/dist/client.js +196 -12
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +272 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -15551,6 +15551,33 @@ export class StopApplicationResponseBodyData extends $dara.Model {
|
|
|
15551
15551
|
}
|
|
15552
15552
|
}
|
|
15553
15553
|
|
|
15554
|
+
export class UnbindNlbResponseBodyData extends $dara.Model {
|
|
15555
|
+
/**
|
|
15556
|
+
* @example
|
|
15557
|
+
* ba386059-69b1-4e65-b1e5-0682d9fa****
|
|
15558
|
+
*/
|
|
15559
|
+
changeOrderId?: string;
|
|
15560
|
+
static names(): { [key: string]: string } {
|
|
15561
|
+
return {
|
|
15562
|
+
changeOrderId: 'ChangeOrderId',
|
|
15563
|
+
};
|
|
15564
|
+
}
|
|
15565
|
+
|
|
15566
|
+
static types(): { [key: string]: any } {
|
|
15567
|
+
return {
|
|
15568
|
+
changeOrderId: 'string',
|
|
15569
|
+
};
|
|
15570
|
+
}
|
|
15571
|
+
|
|
15572
|
+
validate() {
|
|
15573
|
+
super.validate();
|
|
15574
|
+
}
|
|
15575
|
+
|
|
15576
|
+
constructor(map?: { [key: string]: any }) {
|
|
15577
|
+
super(map);
|
|
15578
|
+
}
|
|
15579
|
+
}
|
|
15580
|
+
|
|
15554
15581
|
export class UnbindSlbResponseBodyData extends $dara.Model {
|
|
15555
15582
|
/**
|
|
15556
15583
|
* @remarks
|
|
@@ -24143,6 +24170,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
24143
24170
|
*/
|
|
24144
24171
|
microRegistration?: string;
|
|
24145
24172
|
microRegistrationConfig?: string;
|
|
24173
|
+
microserviceEngineConfig?: string;
|
|
24146
24174
|
/**
|
|
24147
24175
|
* @remarks
|
|
24148
24176
|
* [{mountPath: "/tmp", nasPath: "/"}]
|
|
@@ -24180,6 +24208,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
24180
24208
|
* KSAK****
|
|
24181
24209
|
*/
|
|
24182
24210
|
nasId?: string;
|
|
24211
|
+
newSaeVersion?: string;
|
|
24183
24212
|
oidcRoleName?: string;
|
|
24184
24213
|
/**
|
|
24185
24214
|
* @remarks
|
|
@@ -24425,11 +24454,13 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
24425
24454
|
memory: 'Memory',
|
|
24426
24455
|
microRegistration: 'MicroRegistration',
|
|
24427
24456
|
microRegistrationConfig: 'MicroRegistrationConfig',
|
|
24457
|
+
microserviceEngineConfig: 'MicroserviceEngineConfig',
|
|
24428
24458
|
mountDesc: 'MountDesc',
|
|
24429
24459
|
mountHost: 'MountHost',
|
|
24430
24460
|
namespaceId: 'NamespaceId',
|
|
24431
24461
|
nasConfigs: 'NasConfigs',
|
|
24432
24462
|
nasId: 'NasId',
|
|
24463
|
+
newSaeVersion: 'NewSaeVersion',
|
|
24433
24464
|
oidcRoleName: 'OidcRoleName',
|
|
24434
24465
|
ossAkId: 'OssAkId',
|
|
24435
24466
|
ossAkSecret: 'OssAkSecret',
|
|
@@ -24500,11 +24531,13 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
24500
24531
|
memory: 'number',
|
|
24501
24532
|
microRegistration: 'string',
|
|
24502
24533
|
microRegistrationConfig: 'string',
|
|
24534
|
+
microserviceEngineConfig: 'string',
|
|
24503
24535
|
mountDesc: 'string',
|
|
24504
24536
|
mountHost: 'string',
|
|
24505
24537
|
namespaceId: 'string',
|
|
24506
24538
|
nasConfigs: 'string',
|
|
24507
24539
|
nasId: 'string',
|
|
24540
|
+
newSaeVersion: 'string',
|
|
24508
24541
|
oidcRoleName: 'string',
|
|
24509
24542
|
ossAkId: 'string',
|
|
24510
24543
|
ossAkSecret: 'string',
|
|
@@ -24740,6 +24773,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
24740
24773
|
*/
|
|
24741
24774
|
microRegistration?: string;
|
|
24742
24775
|
microRegistrationConfig?: string;
|
|
24776
|
+
microserviceEngineConfig?: string;
|
|
24743
24777
|
/**
|
|
24744
24778
|
* @remarks
|
|
24745
24779
|
* [{mountPath: "/tmp", nasPath: "/"}]
|
|
@@ -24777,6 +24811,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
24777
24811
|
* KSAK****
|
|
24778
24812
|
*/
|
|
24779
24813
|
nasId?: string;
|
|
24814
|
+
newSaeVersion?: string;
|
|
24780
24815
|
oidcRoleName?: string;
|
|
24781
24816
|
/**
|
|
24782
24817
|
* @remarks
|
|
@@ -25022,11 +25057,13 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
25022
25057
|
memory: 'Memory',
|
|
25023
25058
|
microRegistration: 'MicroRegistration',
|
|
25024
25059
|
microRegistrationConfig: 'MicroRegistrationConfig',
|
|
25060
|
+
microserviceEngineConfig: 'MicroserviceEngineConfig',
|
|
25025
25061
|
mountDesc: 'MountDesc',
|
|
25026
25062
|
mountHost: 'MountHost',
|
|
25027
25063
|
namespaceId: 'NamespaceId',
|
|
25028
25064
|
nasConfigs: 'NasConfigs',
|
|
25029
25065
|
nasId: 'NasId',
|
|
25066
|
+
newSaeVersion: 'NewSaeVersion',
|
|
25030
25067
|
oidcRoleName: 'OidcRoleName',
|
|
25031
25068
|
ossAkId: 'OssAkId',
|
|
25032
25069
|
ossAkSecret: 'OssAkSecret',
|
|
@@ -25097,11 +25134,13 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
25097
25134
|
memory: 'number',
|
|
25098
25135
|
microRegistration: 'string',
|
|
25099
25136
|
microRegistrationConfig: 'string',
|
|
25137
|
+
microserviceEngineConfig: 'string',
|
|
25100
25138
|
mountDesc: 'string',
|
|
25101
25139
|
mountHost: 'string',
|
|
25102
25140
|
namespaceId: 'string',
|
|
25103
25141
|
nasConfigs: 'string',
|
|
25104
25142
|
nasId: 'string',
|
|
25143
|
+
newSaeVersion: 'string',
|
|
25105
25144
|
oidcRoleName: 'string',
|
|
25106
25145
|
ossAkId: 'string',
|
|
25107
25146
|
ossAkSecret: 'string',
|
|
@@ -29562,6 +29601,7 @@ export class DeployApplicationRequest extends $dara.Model {
|
|
|
29562
29601
|
* {\\"instanceId\\":\\"mse-cn-zvp2bh6h70r\\",\\"namespace\\":\\"4c0aa74f-57cb-423c-b6af-5d9f2d0e3dbd\\"}
|
|
29563
29602
|
*/
|
|
29564
29603
|
microRegistrationConfig?: string;
|
|
29604
|
+
microserviceEngineConfig?: string;
|
|
29565
29605
|
/**
|
|
29566
29606
|
* @remarks
|
|
29567
29607
|
* The percentage of the minimum number of available instances. Take note of the following rules:
|
|
@@ -29922,6 +29962,7 @@ export class DeployApplicationRequest extends $dara.Model {
|
|
|
29922
29962
|
memory: 'Memory',
|
|
29923
29963
|
microRegistration: 'MicroRegistration',
|
|
29924
29964
|
microRegistrationConfig: 'MicroRegistrationConfig',
|
|
29965
|
+
microserviceEngineConfig: 'MicroserviceEngineConfig',
|
|
29925
29966
|
minReadyInstanceRatio: 'MinReadyInstanceRatio',
|
|
29926
29967
|
minReadyInstances: 'MinReadyInstances',
|
|
29927
29968
|
mountDesc: 'MountDesc',
|
|
@@ -29996,6 +30037,7 @@ export class DeployApplicationRequest extends $dara.Model {
|
|
|
29996
30037
|
memory: 'number',
|
|
29997
30038
|
microRegistration: 'string',
|
|
29998
30039
|
microRegistrationConfig: 'string',
|
|
30040
|
+
microserviceEngineConfig: 'string',
|
|
29999
30041
|
minReadyInstanceRatio: 'number',
|
|
30000
30042
|
minReadyInstances: 'number',
|
|
30001
30043
|
mountDesc: 'string',
|
|
@@ -30347,6 +30389,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
|
|
|
30347
30389
|
* {\\"instanceId\\":\\"mse-cn-zvp2bh6h70r\\",\\"namespace\\":\\"4c0aa74f-57cb-423c-b6af-5d9f2d0e3dbd\\"}
|
|
30348
30390
|
*/
|
|
30349
30391
|
microRegistrationConfig?: string;
|
|
30392
|
+
microserviceEngineConfig?: string;
|
|
30350
30393
|
/**
|
|
30351
30394
|
* @remarks
|
|
30352
30395
|
* The percentage of the minimum number of available instances. Take note of the following rules:
|
|
@@ -30707,6 +30750,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
|
|
|
30707
30750
|
memory: 'Memory',
|
|
30708
30751
|
microRegistration: 'MicroRegistration',
|
|
30709
30752
|
microRegistrationConfig: 'MicroRegistrationConfig',
|
|
30753
|
+
microserviceEngineConfig: 'MicroserviceEngineConfig',
|
|
30710
30754
|
minReadyInstanceRatio: 'MinReadyInstanceRatio',
|
|
30711
30755
|
minReadyInstances: 'MinReadyInstances',
|
|
30712
30756
|
mountDesc: 'MountDesc',
|
|
@@ -30781,6 +30825,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
|
|
|
30781
30825
|
memory: 'number',
|
|
30782
30826
|
microRegistration: 'string',
|
|
30783
30827
|
microRegistrationConfig: 'string',
|
|
30828
|
+
microserviceEngineConfig: 'string',
|
|
30784
30829
|
minReadyInstanceRatio: 'number',
|
|
30785
30830
|
minReadyInstances: 'number',
|
|
30786
30831
|
mountDesc: 'string',
|
|
@@ -43957,6 +44002,159 @@ export class TagResourcesResponse extends $dara.Model {
|
|
|
43957
44002
|
}
|
|
43958
44003
|
}
|
|
43959
44004
|
|
|
44005
|
+
export class UnbindNlbRequest extends $dara.Model {
|
|
44006
|
+
/**
|
|
44007
|
+
* @remarks
|
|
44008
|
+
* A short description of struct
|
|
44009
|
+
*
|
|
44010
|
+
* @example
|
|
44011
|
+
* 7171a6ca-d1cd-4928-8642-7d5cfe69****
|
|
44012
|
+
*/
|
|
44013
|
+
appId?: string;
|
|
44014
|
+
/**
|
|
44015
|
+
* @example
|
|
44016
|
+
* nlb-7z7jjbzz44d82c9***
|
|
44017
|
+
*/
|
|
44018
|
+
nlbId?: string;
|
|
44019
|
+
/**
|
|
44020
|
+
* @example
|
|
44021
|
+
* 3306
|
|
44022
|
+
*/
|
|
44023
|
+
port?: number;
|
|
44024
|
+
/**
|
|
44025
|
+
* @example
|
|
44026
|
+
* TCP
|
|
44027
|
+
*/
|
|
44028
|
+
protocol?: string;
|
|
44029
|
+
static names(): { [key: string]: string } {
|
|
44030
|
+
return {
|
|
44031
|
+
appId: 'AppId',
|
|
44032
|
+
nlbId: 'NlbId',
|
|
44033
|
+
port: 'Port',
|
|
44034
|
+
protocol: 'Protocol',
|
|
44035
|
+
};
|
|
44036
|
+
}
|
|
44037
|
+
|
|
44038
|
+
static types(): { [key: string]: any } {
|
|
44039
|
+
return {
|
|
44040
|
+
appId: 'string',
|
|
44041
|
+
nlbId: 'string',
|
|
44042
|
+
port: 'number',
|
|
44043
|
+
protocol: 'string',
|
|
44044
|
+
};
|
|
44045
|
+
}
|
|
44046
|
+
|
|
44047
|
+
validate() {
|
|
44048
|
+
super.validate();
|
|
44049
|
+
}
|
|
44050
|
+
|
|
44051
|
+
constructor(map?: { [key: string]: any }) {
|
|
44052
|
+
super(map);
|
|
44053
|
+
}
|
|
44054
|
+
}
|
|
44055
|
+
|
|
44056
|
+
export class UnbindNlbResponseBody extends $dara.Model {
|
|
44057
|
+
/**
|
|
44058
|
+
* @example
|
|
44059
|
+
* 200
|
|
44060
|
+
*/
|
|
44061
|
+
code?: string;
|
|
44062
|
+
data?: UnbindNlbResponseBodyData;
|
|
44063
|
+
errorCode?: string;
|
|
44064
|
+
/**
|
|
44065
|
+
* @example
|
|
44066
|
+
* success
|
|
44067
|
+
*/
|
|
44068
|
+
message?: string;
|
|
44069
|
+
/**
|
|
44070
|
+
* @remarks
|
|
44071
|
+
* Id of the request
|
|
44072
|
+
*
|
|
44073
|
+
* @example
|
|
44074
|
+
* 91F93257-7A4A-4BD3-9A7E-2F6EAE6D****
|
|
44075
|
+
*/
|
|
44076
|
+
requestId?: string;
|
|
44077
|
+
/**
|
|
44078
|
+
* @example
|
|
44079
|
+
* true
|
|
44080
|
+
*/
|
|
44081
|
+
success?: boolean;
|
|
44082
|
+
/**
|
|
44083
|
+
* @example
|
|
44084
|
+
* 0a981dd515966966104121683d****
|
|
44085
|
+
*/
|
|
44086
|
+
traceId?: string;
|
|
44087
|
+
static names(): { [key: string]: string } {
|
|
44088
|
+
return {
|
|
44089
|
+
code: 'Code',
|
|
44090
|
+
data: 'Data',
|
|
44091
|
+
errorCode: 'ErrorCode',
|
|
44092
|
+
message: 'Message',
|
|
44093
|
+
requestId: 'RequestId',
|
|
44094
|
+
success: 'Success',
|
|
44095
|
+
traceId: 'TraceId',
|
|
44096
|
+
};
|
|
44097
|
+
}
|
|
44098
|
+
|
|
44099
|
+
static types(): { [key: string]: any } {
|
|
44100
|
+
return {
|
|
44101
|
+
code: 'string',
|
|
44102
|
+
data: UnbindNlbResponseBodyData,
|
|
44103
|
+
errorCode: 'string',
|
|
44104
|
+
message: 'string',
|
|
44105
|
+
requestId: 'string',
|
|
44106
|
+
success: 'boolean',
|
|
44107
|
+
traceId: 'string',
|
|
44108
|
+
};
|
|
44109
|
+
}
|
|
44110
|
+
|
|
44111
|
+
validate() {
|
|
44112
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
44113
|
+
(this.data as any).validate();
|
|
44114
|
+
}
|
|
44115
|
+
super.validate();
|
|
44116
|
+
}
|
|
44117
|
+
|
|
44118
|
+
constructor(map?: { [key: string]: any }) {
|
|
44119
|
+
super(map);
|
|
44120
|
+
}
|
|
44121
|
+
}
|
|
44122
|
+
|
|
44123
|
+
export class UnbindNlbResponse extends $dara.Model {
|
|
44124
|
+
headers?: { [key: string]: string };
|
|
44125
|
+
statusCode?: number;
|
|
44126
|
+
body?: UnbindNlbResponseBody;
|
|
44127
|
+
static names(): { [key: string]: string } {
|
|
44128
|
+
return {
|
|
44129
|
+
headers: 'headers',
|
|
44130
|
+
statusCode: 'statusCode',
|
|
44131
|
+
body: 'body',
|
|
44132
|
+
};
|
|
44133
|
+
}
|
|
44134
|
+
|
|
44135
|
+
static types(): { [key: string]: any } {
|
|
44136
|
+
return {
|
|
44137
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
44138
|
+
statusCode: 'number',
|
|
44139
|
+
body: UnbindNlbResponseBody,
|
|
44140
|
+
};
|
|
44141
|
+
}
|
|
44142
|
+
|
|
44143
|
+
validate() {
|
|
44144
|
+
if(this.headers) {
|
|
44145
|
+
$dara.Model.validateMap(this.headers);
|
|
44146
|
+
}
|
|
44147
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
44148
|
+
(this.body as any).validate();
|
|
44149
|
+
}
|
|
44150
|
+
super.validate();
|
|
44151
|
+
}
|
|
44152
|
+
|
|
44153
|
+
constructor(map?: { [key: string]: any }) {
|
|
44154
|
+
super(map);
|
|
44155
|
+
}
|
|
44156
|
+
}
|
|
44157
|
+
|
|
43960
44158
|
export class UnbindSlbRequest extends $dara.Model {
|
|
43961
44159
|
/**
|
|
43962
44160
|
* @remarks
|
|
@@ -47930,6 +48128,10 @@ export default class Client extends OpenApi {
|
|
|
47930
48128
|
query["MicroRegistration"] = request.microRegistration;
|
|
47931
48129
|
}
|
|
47932
48130
|
|
|
48131
|
+
if (!$dara.isNull(request.microserviceEngineConfig)) {
|
|
48132
|
+
query["MicroserviceEngineConfig"] = request.microserviceEngineConfig;
|
|
48133
|
+
}
|
|
48134
|
+
|
|
47933
48135
|
if (!$dara.isNull(request.mountDesc)) {
|
|
47934
48136
|
query["MountDesc"] = request.mountDesc;
|
|
47935
48137
|
}
|
|
@@ -47950,6 +48152,10 @@ export default class Client extends OpenApi {
|
|
|
47950
48152
|
query["NasId"] = request.nasId;
|
|
47951
48153
|
}
|
|
47952
48154
|
|
|
48155
|
+
if (!$dara.isNull(request.newSaeVersion)) {
|
|
48156
|
+
query["NewSaeVersion"] = request.newSaeVersion;
|
|
48157
|
+
}
|
|
48158
|
+
|
|
47953
48159
|
if (!$dara.isNull(request.oidcRoleName)) {
|
|
47954
48160
|
query["OidcRoleName"] = request.oidcRoleName;
|
|
47955
48161
|
}
|
|
@@ -49734,6 +49940,10 @@ export default class Client extends OpenApi {
|
|
|
49734
49940
|
query["MicroRegistration"] = request.microRegistration;
|
|
49735
49941
|
}
|
|
49736
49942
|
|
|
49943
|
+
if (!$dara.isNull(request.microserviceEngineConfig)) {
|
|
49944
|
+
query["MicroserviceEngineConfig"] = request.microserviceEngineConfig;
|
|
49945
|
+
}
|
|
49946
|
+
|
|
49737
49947
|
if (!$dara.isNull(request.minReadyInstanceRatio)) {
|
|
49738
49948
|
query["MinReadyInstanceRatio"] = request.minReadyInstanceRatio;
|
|
49739
49949
|
}
|
|
@@ -54566,6 +54776,68 @@ export default class Client extends OpenApi {
|
|
|
54566
54776
|
return await this.tagResourcesWithOptions(request, headers, runtime);
|
|
54567
54777
|
}
|
|
54568
54778
|
|
|
54779
|
+
/**
|
|
54780
|
+
* 应用访问删除NLB监听
|
|
54781
|
+
*
|
|
54782
|
+
* @param request - UnbindNlbRequest
|
|
54783
|
+
* @param headers - map
|
|
54784
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
54785
|
+
* @returns UnbindNlbResponse
|
|
54786
|
+
*/
|
|
54787
|
+
async unbindNlbWithOptions(request: UnbindNlbRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<UnbindNlbResponse> {
|
|
54788
|
+
request.validate();
|
|
54789
|
+
let query : {[key: string ]: any} = { };
|
|
54790
|
+
if (!$dara.isNull(request.appId)) {
|
|
54791
|
+
query["AppId"] = request.appId;
|
|
54792
|
+
}
|
|
54793
|
+
|
|
54794
|
+
if (!$dara.isNull(request.nlbId)) {
|
|
54795
|
+
query["NlbId"] = request.nlbId;
|
|
54796
|
+
}
|
|
54797
|
+
|
|
54798
|
+
if (!$dara.isNull(request.port)) {
|
|
54799
|
+
query["Port"] = request.port;
|
|
54800
|
+
}
|
|
54801
|
+
|
|
54802
|
+
if (!$dara.isNull(request.protocol)) {
|
|
54803
|
+
query["Protocol"] = request.protocol;
|
|
54804
|
+
}
|
|
54805
|
+
|
|
54806
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
54807
|
+
headers: headers,
|
|
54808
|
+
query: OpenApiUtil.query(query),
|
|
54809
|
+
});
|
|
54810
|
+
let params = new $OpenApiUtil.Params({
|
|
54811
|
+
action: "UnbindNlb",
|
|
54812
|
+
version: "2019-05-06",
|
|
54813
|
+
protocol: "HTTPS",
|
|
54814
|
+
pathname: `/pop/v1/sam/app/nlb`,
|
|
54815
|
+
method: "DELETE",
|
|
54816
|
+
authType: "AK",
|
|
54817
|
+
style: "ROA",
|
|
54818
|
+
reqBodyType: "json",
|
|
54819
|
+
bodyType: "json",
|
|
54820
|
+
});
|
|
54821
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
54822
|
+
return $dara.cast<UnbindNlbResponse>(await this.callApi(params, req, runtime), new UnbindNlbResponse({}));
|
|
54823
|
+
} else {
|
|
54824
|
+
return $dara.cast<UnbindNlbResponse>(await this.execute(params, req, runtime), new UnbindNlbResponse({}));
|
|
54825
|
+
}
|
|
54826
|
+
|
|
54827
|
+
}
|
|
54828
|
+
|
|
54829
|
+
/**
|
|
54830
|
+
* 应用访问删除NLB监听
|
|
54831
|
+
*
|
|
54832
|
+
* @param request - UnbindNlbRequest
|
|
54833
|
+
* @returns UnbindNlbResponse
|
|
54834
|
+
*/
|
|
54835
|
+
async unbindNlb(request: UnbindNlbRequest): Promise<UnbindNlbResponse> {
|
|
54836
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
54837
|
+
let headers : {[key: string ]: string} = { };
|
|
54838
|
+
return await this.unbindNlbWithOptions(request, headers, runtime);
|
|
54839
|
+
}
|
|
54840
|
+
|
|
54569
54841
|
/**
|
|
54570
54842
|
* 0099b7be-5f5b-4512-a7fc-56049ef1\\*\\*\\*\\*
|
|
54571
54843
|
*
|