@alicloud/sae20190506 2.0.2 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/sae20190506",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
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
  }
@@ -15813,6 +15892,7 @@ export class QueryResourceStaticsResponseBodyDataRealTimeRes extends $dara.Model
15813
15892
  * 13
15814
15893
  */
15815
15894
  cpu?: number;
15895
+ ephemeralStorage?: number;
15816
15896
  /**
15817
15897
  * @remarks
15818
15898
  * The memory usage. Unit: GiB per minute.
@@ -15824,6 +15904,7 @@ export class QueryResourceStaticsResponseBodyDataRealTimeRes extends $dara.Model
15824
15904
  static names(): { [key: string]: string } {
15825
15905
  return {
15826
15906
  cpu: 'Cpu',
15907
+ ephemeralStorage: 'EphemeralStorage',
15827
15908
  memory: 'Memory',
15828
15909
  };
15829
15910
  }
@@ -15831,6 +15912,7 @@ export class QueryResourceStaticsResponseBodyDataRealTimeRes extends $dara.Model
15831
15912
  static types(): { [key: string]: any } {
15832
15913
  return {
15833
15914
  cpu: 'number',
15915
+ ephemeralStorage: 'number',
15834
15916
  memory: 'number',
15835
15917
  };
15836
15918
  }
@@ -15854,6 +15936,8 @@ export class QueryResourceStaticsResponseBodyDataSummary extends $dara.Model {
15854
15936
  * 3354
15855
15937
  */
15856
15938
  cpu?: number;
15939
+ cu?: number;
15940
+ ephemeralStorage?: number;
15857
15941
  idleCpu?: number;
15858
15942
  /**
15859
15943
  * @remarks
@@ -15867,6 +15951,8 @@ export class QueryResourceStaticsResponseBodyDataSummary extends $dara.Model {
15867
15951
  return {
15868
15952
  activeCpu: 'ActiveCpu',
15869
15953
  cpu: 'Cpu',
15954
+ cu: 'Cu',
15955
+ ephemeralStorage: 'EphemeralStorage',
15870
15956
  idleCpu: 'IdleCpu',
15871
15957
  memory: 'Memory',
15872
15958
  };
@@ -15876,6 +15962,8 @@ export class QueryResourceStaticsResponseBodyDataSummary extends $dara.Model {
15876
15962
  return {
15877
15963
  activeCpu: 'number',
15878
15964
  cpu: 'number',
15965
+ cu: 'number',
15966
+ ephemeralStorage: 'number',
15879
15967
  idleCpu: 'number',
15880
15968
  memory: 'number',
15881
15969
  };
@@ -19431,6 +19519,44 @@ export class ImageRegistryConfig extends $dara.Model {
19431
19519
  }
19432
19520
  }
19433
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
+
19434
19560
  export class InputCodeLocation extends $dara.Model {
19435
19561
  ossBucketName?: string;
19436
19562
  ossObjectName?: string;
@@ -24812,6 +24938,7 @@ export class CreateApplicationRequest extends $dara.Model {
24812
24938
  * registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
24813
24939
  */
24814
24940
  imageUrl?: string;
24941
+ initContainersConfig?: InitContainerConfig[];
24815
24942
  /**
24816
24943
  * @remarks
24817
24944
  * custom-args
@@ -25140,6 +25267,7 @@ export class CreateApplicationRequest extends $dara.Model {
25140
25267
  envs: 'Envs',
25141
25268
  imagePullSecrets: 'ImagePullSecrets',
25142
25269
  imageUrl: 'ImageUrl',
25270
+ initContainersConfig: 'InitContainersConfig',
25143
25271
  jarStartArgs: 'JarStartArgs',
25144
25272
  jarStartOptions: 'JarStartOptions',
25145
25273
  jdk: 'Jdk',
@@ -25218,6 +25346,7 @@ export class CreateApplicationRequest extends $dara.Model {
25218
25346
  envs: 'string',
25219
25347
  imagePullSecrets: 'string',
25220
25348
  imageUrl: 'string',
25349
+ initContainersConfig: { 'type': 'array', 'itemType': InitContainerConfig },
25221
25350
  jarStartArgs: 'string',
25222
25351
  jarStartOptions: 'string',
25223
25352
  jdk: 'string',
@@ -25270,6 +25399,9 @@ export class CreateApplicationRequest extends $dara.Model {
25270
25399
  }
25271
25400
 
25272
25401
  validate() {
25402
+ if(Array.isArray(this.initContainersConfig)) {
25403
+ $dara.Model.validateArray(this.initContainersConfig);
25404
+ }
25273
25405
  if(Array.isArray(this.sidecarContainersConfig)) {
25274
25406
  $dara.Model.validateArray(this.sidecarContainersConfig);
25275
25407
  }
@@ -25418,6 +25550,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
25418
25550
  * registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
25419
25551
  */
25420
25552
  imageUrl?: string;
25553
+ initContainersConfigShrink?: string;
25421
25554
  /**
25422
25555
  * @remarks
25423
25556
  * custom-args
@@ -25746,6 +25879,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
25746
25879
  envs: 'Envs',
25747
25880
  imagePullSecrets: 'ImagePullSecrets',
25748
25881
  imageUrl: 'ImageUrl',
25882
+ initContainersConfigShrink: 'InitContainersConfig',
25749
25883
  jarStartArgs: 'JarStartArgs',
25750
25884
  jarStartOptions: 'JarStartOptions',
25751
25885
  jdk: 'Jdk',
@@ -25824,6 +25958,7 @@ export class CreateApplicationShrinkRequest extends $dara.Model {
25824
25958
  envs: 'string',
25825
25959
  imagePullSecrets: 'string',
25826
25960
  imageUrl: 'string',
25961
+ initContainersConfigShrink: 'string',
25827
25962
  jarStartArgs: 'string',
25828
25963
  jarStartOptions: 'string',
25829
25964
  jdk: 'string',
@@ -30277,6 +30412,7 @@ export class DeployApplicationRequest extends $dara.Model {
30277
30412
  * registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
30278
30413
  */
30279
30414
  imageUrl?: string;
30415
+ initContainersConfig?: InitContainerConfig[];
30280
30416
  /**
30281
30417
  * @remarks
30282
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`.
@@ -30741,6 +30877,7 @@ export class DeployApplicationRequest extends $dara.Model {
30741
30877
  envs: 'Envs',
30742
30878
  imagePullSecrets: 'ImagePullSecrets',
30743
30879
  imageUrl: 'ImageUrl',
30880
+ initContainersConfig: 'InitContainersConfig',
30744
30881
  jarStartArgs: 'JarStartArgs',
30745
30882
  jarStartOptions: 'JarStartOptions',
30746
30883
  jdk: 'Jdk',
@@ -30817,6 +30954,7 @@ export class DeployApplicationRequest extends $dara.Model {
30817
30954
  envs: 'string',
30818
30955
  imagePullSecrets: 'string',
30819
30956
  imageUrl: 'string',
30957
+ initContainersConfig: { 'type': 'array', 'itemType': InitContainerConfig },
30820
30958
  jarStartArgs: 'string',
30821
30959
  jarStartOptions: 'string',
30822
30960
  jdk: 'string',
@@ -30868,6 +31006,9 @@ export class DeployApplicationRequest extends $dara.Model {
30868
31006
  }
30869
31007
 
30870
31008
  validate() {
31009
+ if(Array.isArray(this.initContainersConfig)) {
31010
+ $dara.Model.validateArray(this.initContainersConfig);
31011
+ }
30871
31012
  if(Array.isArray(this.sidecarContainersConfig)) {
30872
31013
  $dara.Model.validateArray(this.sidecarContainersConfig);
30873
31014
  }
@@ -31105,6 +31246,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
31105
31246
  * registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
31106
31247
  */
31107
31248
  imageUrl?: string;
31249
+ initContainersConfigShrink?: string;
31108
31250
  /**
31109
31251
  * @remarks
31110
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`.
@@ -31569,6 +31711,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
31569
31711
  envs: 'Envs',
31570
31712
  imagePullSecrets: 'ImagePullSecrets',
31571
31713
  imageUrl: 'ImageUrl',
31714
+ initContainersConfigShrink: 'InitContainersConfig',
31572
31715
  jarStartArgs: 'JarStartArgs',
31573
31716
  jarStartOptions: 'JarStartOptions',
31574
31717
  jdk: 'Jdk',
@@ -31645,6 +31788,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
31645
31788
  envs: 'string',
31646
31789
  imagePullSecrets: 'string',
31647
31790
  imageUrl: 'string',
31791
+ initContainersConfigShrink: 'string',
31648
31792
  jarStartArgs: 'string',
31649
31793
  jarStartOptions: 'string',
31650
31794
  jdk: 'string',
@@ -33997,6 +34141,7 @@ export class DescribeConfigurationPriceRequest extends $dara.Model {
33997
34141
  * 4096
33998
34142
  */
33999
34143
  memory?: number;
34144
+ newSaeVersion?: string;
34000
34145
  resourceType?: string;
34001
34146
  /**
34002
34147
  * @remarks
@@ -34013,6 +34158,7 @@ export class DescribeConfigurationPriceRequest extends $dara.Model {
34013
34158
  return {
34014
34159
  cpu: 'Cpu',
34015
34160
  memory: 'Memory',
34161
+ newSaeVersion: 'NewSaeVersion',
34016
34162
  resourceType: 'ResourceType',
34017
34163
  workload: 'Workload',
34018
34164
  };
@@ -34022,6 +34168,7 @@ export class DescribeConfigurationPriceRequest extends $dara.Model {
34022
34168
  return {
34023
34169
  cpu: 'number',
34024
34170
  memory: 'number',
34171
+ newSaeVersion: 'string',
34025
34172
  resourceType: 'string',
34026
34173
  workload: 'string',
34027
34174
  };
@@ -49479,6 +49626,10 @@ export default class Client extends OpenApi {
49479
49626
  tmpReq.validate();
49480
49627
  let request = new CreateApplicationShrinkRequest({ });
49481
49628
  OpenApiUtil.convert(tmpReq, request);
49629
+ if (!$dara.isNull(tmpReq.initContainersConfig)) {
49630
+ request.initContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.initContainersConfig, "InitContainersConfig", "json");
49631
+ }
49632
+
49482
49633
  if (!$dara.isNull(tmpReq.sidecarContainersConfig)) {
49483
49634
  request.sidecarContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sidecarContainersConfig, "SidecarContainersConfig", "json");
49484
49635
  }
@@ -49745,6 +49896,10 @@ export default class Client extends OpenApi {
49745
49896
  body["EnableSidecarResourceIsolated"] = request.enableSidecarResourceIsolated;
49746
49897
  }
49747
49898
 
49899
+ if (!$dara.isNull(request.initContainersConfigShrink)) {
49900
+ body["InitContainersConfig"] = request.initContainersConfigShrink;
49901
+ }
49902
+
49748
49903
  if (!$dara.isNull(request.microRegistrationConfig)) {
49749
49904
  body["MicroRegistrationConfig"] = request.microRegistrationConfig;
49750
49905
  }
@@ -51231,6 +51386,10 @@ export default class Client extends OpenApi {
51231
51386
  tmpReq.validate();
51232
51387
  let request = new DeployApplicationShrinkRequest({ });
51233
51388
  OpenApiUtil.convert(tmpReq, request);
51389
+ if (!$dara.isNull(tmpReq.initContainersConfig)) {
51390
+ request.initContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.initContainersConfig, "InitContainersConfig", "json");
51391
+ }
51392
+
51234
51393
  if (!$dara.isNull(tmpReq.sidecarContainersConfig)) {
51235
51394
  request.sidecarContainersConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sidecarContainersConfig, "SidecarContainersConfig", "json");
51236
51395
  }
@@ -51485,6 +51644,10 @@ export default class Client extends OpenApi {
51485
51644
  body["EnableSidecarResourceIsolated"] = request.enableSidecarResourceIsolated;
51486
51645
  }
51487
51646
 
51647
+ if (!$dara.isNull(request.initContainersConfigShrink)) {
51648
+ body["InitContainersConfig"] = request.initContainersConfigShrink;
51649
+ }
51650
+
51488
51651
  if (!$dara.isNull(request.microRegistrationConfig)) {
51489
51652
  body["MicroRegistrationConfig"] = request.microRegistrationConfig;
51490
51653
  }
@@ -52179,6 +52342,10 @@ export default class Client extends OpenApi {
52179
52342
  query["Memory"] = request.memory;
52180
52343
  }
52181
52344
 
52345
+ if (!$dara.isNull(request.newSaeVersion)) {
52346
+ query["NewSaeVersion"] = request.newSaeVersion;
52347
+ }
52348
+
52182
52349
  if (!$dara.isNull(request.resourceType)) {
52183
52350
  query["ResourceType"] = request.resourceType;
52184
52351
  }