@alicloud/sae20190506 2.0.3 → 2.0.4
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 +57 -0
- package/dist/client.js +132 -15
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +151 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -3138,6 +3138,79 @@ export class DescribeApplicationConfigResponseBodyDataConfigMapMountDesc extends
|
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
3140
|
|
|
3141
|
+
export class DescribeApplicationConfigResponseBodyDataInitContainersConfigConfigMapMountDesc extends $dara.Model {
|
|
3142
|
+
configMapId?: number;
|
|
3143
|
+
configMapName?: string;
|
|
3144
|
+
key?: string;
|
|
3145
|
+
mountPath?: string;
|
|
3146
|
+
static names(): { [key: string]: string } {
|
|
3147
|
+
return {
|
|
3148
|
+
configMapId: 'ConfigMapId',
|
|
3149
|
+
configMapName: 'ConfigMapName',
|
|
3150
|
+
key: 'Key',
|
|
3151
|
+
mountPath: 'MountPath',
|
|
3152
|
+
};
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
static types(): { [key: string]: any } {
|
|
3156
|
+
return {
|
|
3157
|
+
configMapId: 'number',
|
|
3158
|
+
configMapName: 'string',
|
|
3159
|
+
key: 'string',
|
|
3160
|
+
mountPath: 'string',
|
|
3161
|
+
};
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
validate() {
|
|
3165
|
+
super.validate();
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
constructor(map?: { [key: string]: any }) {
|
|
3169
|
+
super(map);
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
export class DescribeApplicationConfigResponseBodyDataInitContainersConfig extends $dara.Model {
|
|
3174
|
+
command?: string;
|
|
3175
|
+
commandArgs?: string;
|
|
3176
|
+
configMapMountDesc?: DescribeApplicationConfigResponseBodyDataInitContainersConfigConfigMapMountDesc[];
|
|
3177
|
+
envs?: string;
|
|
3178
|
+
imageUrl?: string;
|
|
3179
|
+
name?: string;
|
|
3180
|
+
static names(): { [key: string]: string } {
|
|
3181
|
+
return {
|
|
3182
|
+
command: 'Command',
|
|
3183
|
+
commandArgs: 'CommandArgs',
|
|
3184
|
+
configMapMountDesc: 'ConfigMapMountDesc',
|
|
3185
|
+
envs: 'Envs',
|
|
3186
|
+
imageUrl: 'ImageUrl',
|
|
3187
|
+
name: 'Name',
|
|
3188
|
+
};
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
static types(): { [key: string]: any } {
|
|
3192
|
+
return {
|
|
3193
|
+
command: 'string',
|
|
3194
|
+
commandArgs: 'string',
|
|
3195
|
+
configMapMountDesc: { 'type': 'array', 'itemType': DescribeApplicationConfigResponseBodyDataInitContainersConfigConfigMapMountDesc },
|
|
3196
|
+
envs: 'string',
|
|
3197
|
+
imageUrl: 'string',
|
|
3198
|
+
name: 'string',
|
|
3199
|
+
};
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
validate() {
|
|
3203
|
+
if(Array.isArray(this.configMapMountDesc)) {
|
|
3204
|
+
$dara.Model.validateArray(this.configMapMountDesc);
|
|
3205
|
+
}
|
|
3206
|
+
super.validate();
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
constructor(map?: { [key: string]: any }) {
|
|
3210
|
+
super(map);
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
|
|
3141
3214
|
export class DescribeApplicationConfigResponseBodyDataMountDesc extends $dara.Model {
|
|
3142
3215
|
/**
|
|
3143
3216
|
* @remarks
|
|
@@ -3621,6 +3694,7 @@ export class DescribeApplicationConfigResponseBodyData extends $dara.Model {
|
|
|
3621
3694
|
* docker.io/library/nginx:1.14.2
|
|
3622
3695
|
*/
|
|
3623
3696
|
imageUrl?: string;
|
|
3697
|
+
initContainersConfig?: DescribeApplicationConfigResponseBodyDataInitContainersConfig[];
|
|
3624
3698
|
/**
|
|
3625
3699
|
* @remarks
|
|
3626
3700
|
* The arguments in the JAR package. The arguments are used to start the application container. The default startup command is `$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs`.
|
|
@@ -4130,6 +4204,7 @@ export class DescribeApplicationConfigResponseBodyData extends $dara.Model {
|
|
|
4130
4204
|
envs: 'Envs',
|
|
4131
4205
|
imagePullSecrets: 'ImagePullSecrets',
|
|
4132
4206
|
imageUrl: 'ImageUrl',
|
|
4207
|
+
initContainersConfig: 'InitContainersConfig',
|
|
4133
4208
|
jarStartArgs: 'JarStartArgs',
|
|
4134
4209
|
jarStartOptions: 'JarStartOptions',
|
|
4135
4210
|
jdk: 'Jdk',
|
|
@@ -4217,6 +4292,7 @@ export class DescribeApplicationConfigResponseBodyData extends $dara.Model {
|
|
|
4217
4292
|
envs: 'string',
|
|
4218
4293
|
imagePullSecrets: 'string',
|
|
4219
4294
|
imageUrl: 'string',
|
|
4295
|
+
initContainersConfig: { 'type': 'array', 'itemType': DescribeApplicationConfigResponseBodyDataInitContainersConfig },
|
|
4220
4296
|
jarStartArgs: 'string',
|
|
4221
4297
|
jarStartOptions: 'string',
|
|
4222
4298
|
jdk: 'string',
|
|
@@ -4279,6 +4355,9 @@ export class DescribeApplicationConfigResponseBodyData extends $dara.Model {
|
|
|
4279
4355
|
if(Array.isArray(this.configMapMountDesc)) {
|
|
4280
4356
|
$dara.Model.validateArray(this.configMapMountDesc);
|
|
4281
4357
|
}
|
|
4358
|
+
if(Array.isArray(this.initContainersConfig)) {
|
|
4359
|
+
$dara.Model.validateArray(this.initContainersConfig);
|
|
4360
|
+
}
|
|
4282
4361
|
if(Array.isArray(this.mountDesc)) {
|
|
4283
4362
|
$dara.Model.validateArray(this.mountDesc);
|
|
4284
4363
|
}
|
|
@@ -19440,6 +19519,44 @@ export class ImageRegistryConfig extends $dara.Model {
|
|
|
19440
19519
|
}
|
|
19441
19520
|
}
|
|
19442
19521
|
|
|
19522
|
+
export class InitContainerConfig extends $dara.Model {
|
|
19523
|
+
command?: string;
|
|
19524
|
+
commandArgs?: string;
|
|
19525
|
+
configMapMountDesc?: string;
|
|
19526
|
+
envs?: string;
|
|
19527
|
+
imageUrl?: string;
|
|
19528
|
+
name?: string;
|
|
19529
|
+
static names(): { [key: string]: string } {
|
|
19530
|
+
return {
|
|
19531
|
+
command: 'Command',
|
|
19532
|
+
commandArgs: 'CommandArgs',
|
|
19533
|
+
configMapMountDesc: 'ConfigMapMountDesc',
|
|
19534
|
+
envs: 'Envs',
|
|
19535
|
+
imageUrl: 'ImageUrl',
|
|
19536
|
+
name: 'Name',
|
|
19537
|
+
};
|
|
19538
|
+
}
|
|
19539
|
+
|
|
19540
|
+
static types(): { [key: string]: any } {
|
|
19541
|
+
return {
|
|
19542
|
+
command: 'string',
|
|
19543
|
+
commandArgs: 'string',
|
|
19544
|
+
configMapMountDesc: 'string',
|
|
19545
|
+
envs: 'string',
|
|
19546
|
+
imageUrl: 'string',
|
|
19547
|
+
name: 'string',
|
|
19548
|
+
};
|
|
19549
|
+
}
|
|
19550
|
+
|
|
19551
|
+
validate() {
|
|
19552
|
+
super.validate();
|
|
19553
|
+
}
|
|
19554
|
+
|
|
19555
|
+
constructor(map?: { [key: string]: any }) {
|
|
19556
|
+
super(map);
|
|
19557
|
+
}
|
|
19558
|
+
}
|
|
19559
|
+
|
|
19443
19560
|
export class InputCodeLocation extends $dara.Model {
|
|
19444
19561
|
ossBucketName?: string;
|
|
19445
19562
|
ossObjectName?: string;
|
|
@@ -24821,6 +24938,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
24821
24938
|
* registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
|
|
24822
24939
|
*/
|
|
24823
24940
|
imageUrl?: string;
|
|
24941
|
+
initContainersConfig?: InitContainerConfig[];
|
|
24824
24942
|
/**
|
|
24825
24943
|
* @remarks
|
|
24826
24944
|
* custom-args
|
|
@@ -25149,6 +25267,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
25149
25267
|
envs: 'Envs',
|
|
25150
25268
|
imagePullSecrets: 'ImagePullSecrets',
|
|
25151
25269
|
imageUrl: 'ImageUrl',
|
|
25270
|
+
initContainersConfig: 'InitContainersConfig',
|
|
25152
25271
|
jarStartArgs: 'JarStartArgs',
|
|
25153
25272
|
jarStartOptions: 'JarStartOptions',
|
|
25154
25273
|
jdk: 'Jdk',
|
|
@@ -25227,6 +25346,7 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
25227
25346
|
envs: 'string',
|
|
25228
25347
|
imagePullSecrets: 'string',
|
|
25229
25348
|
imageUrl: 'string',
|
|
25349
|
+
initContainersConfig: { 'type': 'array', 'itemType': InitContainerConfig },
|
|
25230
25350
|
jarStartArgs: 'string',
|
|
25231
25351
|
jarStartOptions: 'string',
|
|
25232
25352
|
jdk: 'string',
|
|
@@ -25279,6 +25399,9 @@ export class CreateApplicationRequest extends $dara.Model {
|
|
|
25279
25399
|
}
|
|
25280
25400
|
|
|
25281
25401
|
validate() {
|
|
25402
|
+
if(Array.isArray(this.initContainersConfig)) {
|
|
25403
|
+
$dara.Model.validateArray(this.initContainersConfig);
|
|
25404
|
+
}
|
|
25282
25405
|
if(Array.isArray(this.sidecarContainersConfig)) {
|
|
25283
25406
|
$dara.Model.validateArray(this.sidecarContainersConfig);
|
|
25284
25407
|
}
|
|
@@ -25427,6 +25550,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
25427
25550
|
* registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
|
|
25428
25551
|
*/
|
|
25429
25552
|
imageUrl?: string;
|
|
25553
|
+
initContainersConfigShrink?: string;
|
|
25430
25554
|
/**
|
|
25431
25555
|
* @remarks
|
|
25432
25556
|
* custom-args
|
|
@@ -25755,6 +25879,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
25755
25879
|
envs: 'Envs',
|
|
25756
25880
|
imagePullSecrets: 'ImagePullSecrets',
|
|
25757
25881
|
imageUrl: 'ImageUrl',
|
|
25882
|
+
initContainersConfigShrink: 'InitContainersConfig',
|
|
25758
25883
|
jarStartArgs: 'JarStartArgs',
|
|
25759
25884
|
jarStartOptions: 'JarStartOptions',
|
|
25760
25885
|
jdk: 'Jdk',
|
|
@@ -25833,6 +25958,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
|
|
|
25833
25958
|
envs: 'string',
|
|
25834
25959
|
imagePullSecrets: 'string',
|
|
25835
25960
|
imageUrl: 'string',
|
|
25961
|
+
initContainersConfigShrink: 'string',
|
|
25836
25962
|
jarStartArgs: 'string',
|
|
25837
25963
|
jarStartOptions: 'string',
|
|
25838
25964
|
jdk: 'string',
|
|
@@ -30286,6 +30412,7 @@ export class DeployApplicationRequest extends $dara.Model {
|
|
|
30286
30412
|
* registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
|
|
30287
30413
|
*/
|
|
30288
30414
|
imageUrl?: string;
|
|
30415
|
+
initContainersConfig?: InitContainerConfig[];
|
|
30289
30416
|
/**
|
|
30290
30417
|
* @remarks
|
|
30291
30418
|
* The arguments in the JAR package. The arguments are used to start the application container. The default startup command is `$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs`.
|
|
@@ -30750,6 +30877,7 @@ export class DeployApplicationRequest extends $dara.Model {
|
|
|
30750
30877
|
envs: 'Envs',
|
|
30751
30878
|
imagePullSecrets: 'ImagePullSecrets',
|
|
30752
30879
|
imageUrl: 'ImageUrl',
|
|
30880
|
+
initContainersConfig: 'InitContainersConfig',
|
|
30753
30881
|
jarStartArgs: 'JarStartArgs',
|
|
30754
30882
|
jarStartOptions: 'JarStartOptions',
|
|
30755
30883
|
jdk: 'Jdk',
|
|
@@ -30826,6 +30954,7 @@ export class DeployApplicationRequest extends $dara.Model {
|
|
|
30826
30954
|
envs: 'string',
|
|
30827
30955
|
imagePullSecrets: 'string',
|
|
30828
30956
|
imageUrl: 'string',
|
|
30957
|
+
initContainersConfig: { 'type': 'array', 'itemType': InitContainerConfig },
|
|
30829
30958
|
jarStartArgs: 'string',
|
|
30830
30959
|
jarStartOptions: 'string',
|
|
30831
30960
|
jdk: 'string',
|
|
@@ -30877,6 +31006,9 @@ export class DeployApplicationRequest extends $dara.Model {
|
|
|
30877
31006
|
}
|
|
30878
31007
|
|
|
30879
31008
|
validate() {
|
|
31009
|
+
if(Array.isArray(this.initContainersConfig)) {
|
|
31010
|
+
$dara.Model.validateArray(this.initContainersConfig);
|
|
31011
|
+
}
|
|
30880
31012
|
if(Array.isArray(this.sidecarContainersConfig)) {
|
|
30881
31013
|
$dara.Model.validateArray(this.sidecarContainersConfig);
|
|
30882
31014
|
}
|
|
@@ -31114,6 +31246,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
|
|
|
31114
31246
|
* registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
|
|
31115
31247
|
*/
|
|
31116
31248
|
imageUrl?: string;
|
|
31249
|
+
initContainersConfigShrink?: string;
|
|
31117
31250
|
/**
|
|
31118
31251
|
* @remarks
|
|
31119
31252
|
* The arguments in the JAR package. The arguments are used to start the application container. The default startup command is `$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs`.
|
|
@@ -31578,6 +31711,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
|
|
|
31578
31711
|
envs: 'Envs',
|
|
31579
31712
|
imagePullSecrets: 'ImagePullSecrets',
|
|
31580
31713
|
imageUrl: 'ImageUrl',
|
|
31714
|
+
initContainersConfigShrink: 'InitContainersConfig',
|
|
31581
31715
|
jarStartArgs: 'JarStartArgs',
|
|
31582
31716
|
jarStartOptions: 'JarStartOptions',
|
|
31583
31717
|
jdk: 'Jdk',
|
|
@@ -31654,6 +31788,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
|
|
|
31654
31788
|
envs: 'string',
|
|
31655
31789
|
imagePullSecrets: 'string',
|
|
31656
31790
|
imageUrl: 'string',
|
|
31791
|
+
initContainersConfigShrink: 'string',
|
|
31657
31792
|
jarStartArgs: 'string',
|
|
31658
31793
|
jarStartOptions: 'string',
|
|
31659
31794
|
jdk: 'string',
|
|
@@ -49491,6 +49626,10 @@ export default class Client extends OpenApi {
|
|
|
49491
49626
|
tmpReq.validate();
|
|
49492
49627
|
let request = new CreateApplicationShrinkRequest({ });
|
|
49493
49628
|
OpenApiUtil.convert(tmpReq, request);
|
|
49629
|
+
if (!$dara.isNull(tmpReq.initContainersConfig)) {
|
|
49630
|
+
request.initContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.initContainersConfig, "InitContainersConfig", "json");
|
|
49631
|
+
}
|
|
49632
|
+
|
|
49494
49633
|
if (!$dara.isNull(tmpReq.sidecarContainersConfig)) {
|
|
49495
49634
|
request.sidecarContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sidecarContainersConfig, "SidecarContainersConfig", "json");
|
|
49496
49635
|
}
|
|
@@ -49757,6 +49896,10 @@ export default class Client extends OpenApi {
|
|
|
49757
49896
|
body["EnableSidecarResourceIsolated"] = request.enableSidecarResourceIsolated;
|
|
49758
49897
|
}
|
|
49759
49898
|
|
|
49899
|
+
if (!$dara.isNull(request.initContainersConfigShrink)) {
|
|
49900
|
+
body["InitContainersConfig"] = request.initContainersConfigShrink;
|
|
49901
|
+
}
|
|
49902
|
+
|
|
49760
49903
|
if (!$dara.isNull(request.microRegistrationConfig)) {
|
|
49761
49904
|
body["MicroRegistrationConfig"] = request.microRegistrationConfig;
|
|
49762
49905
|
}
|
|
@@ -51243,6 +51386,10 @@ export default class Client extends OpenApi {
|
|
|
51243
51386
|
tmpReq.validate();
|
|
51244
51387
|
let request = new DeployApplicationShrinkRequest({ });
|
|
51245
51388
|
OpenApiUtil.convert(tmpReq, request);
|
|
51389
|
+
if (!$dara.isNull(tmpReq.initContainersConfig)) {
|
|
51390
|
+
request.initContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.initContainersConfig, "InitContainersConfig", "json");
|
|
51391
|
+
}
|
|
51392
|
+
|
|
51246
51393
|
if (!$dara.isNull(tmpReq.sidecarContainersConfig)) {
|
|
51247
51394
|
request.sidecarContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sidecarContainersConfig, "SidecarContainersConfig", "json");
|
|
51248
51395
|
}
|
|
@@ -51497,6 +51644,10 @@ export default class Client extends OpenApi {
|
|
|
51497
51644
|
body["EnableSidecarResourceIsolated"] = request.enableSidecarResourceIsolated;
|
|
51498
51645
|
}
|
|
51499
51646
|
|
|
51647
|
+
if (!$dara.isNull(request.initContainersConfigShrink)) {
|
|
51648
|
+
body["InitContainersConfig"] = request.initContainersConfigShrink;
|
|
51649
|
+
}
|
|
51650
|
+
|
|
51500
51651
|
if (!$dara.isNull(request.microRegistrationConfig)) {
|
|
51501
51652
|
body["MicroRegistrationConfig"] = request.microRegistrationConfig;
|
|
51502
51653
|
}
|