@alicloud/sae20190506 2.9.1 → 2.9.3

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.
Files changed (60) hide show
  1. package/dist/client.d.ts +10 -2
  2. package/dist/client.js +22 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BatchRestartApplicationsRequest.d.ts +4 -0
  5. package/dist/models/BatchRestartApplicationsRequest.js.map +1 -1
  6. package/dist/models/BatchRestartApplicationsResponseBody.d.ts +37 -0
  7. package/dist/models/BatchRestartApplicationsResponseBody.js.map +1 -1
  8. package/dist/models/CreateApplicationRequest.d.ts +1 -0
  9. package/dist/models/CreateApplicationRequest.js +2 -0
  10. package/dist/models/CreateApplicationRequest.js.map +1 -1
  11. package/dist/models/CreateApplicationShrinkRequest.d.ts +1 -0
  12. package/dist/models/CreateApplicationShrinkRequest.js +2 -0
  13. package/dist/models/CreateApplicationShrinkRequest.js.map +1 -1
  14. package/dist/models/CreateIngressRequest.d.ts +70 -0
  15. package/dist/models/CreateIngressRequest.js.map +1 -1
  16. package/dist/models/DeployApplicationRequest.d.ts +1 -0
  17. package/dist/models/DeployApplicationRequest.js +2 -0
  18. package/dist/models/DeployApplicationRequest.js.map +1 -1
  19. package/dist/models/DeployApplicationShrinkRequest.d.ts +1 -0
  20. package/dist/models/DeployApplicationShrinkRequest.js +2 -0
  21. package/dist/models/DeployApplicationShrinkRequest.js.map +1 -1
  22. package/dist/models/DescribeApplicationConfigResponseBody.d.ts +1 -0
  23. package/dist/models/DescribeApplicationConfigResponseBody.js +2 -0
  24. package/dist/models/DescribeApplicationConfigResponseBody.js.map +1 -1
  25. package/dist/models/DescribeApplicationMseServiceRequest.d.ts +4 -0
  26. package/dist/models/DescribeApplicationMseServiceRequest.js.map +1 -1
  27. package/dist/models/DescribeApplicationMseServiceResponseBody.d.ts +69 -0
  28. package/dist/models/DescribeApplicationMseServiceResponseBody.js.map +1 -1
  29. package/dist/models/QueryArmsEnableRequest.d.ts +2 -0
  30. package/dist/models/QueryArmsEnableRequest.js.map +1 -1
  31. package/dist/models/QueryArmsEnableResponseBody.d.ts +38 -0
  32. package/dist/models/QueryArmsEnableResponseBody.js.map +1 -1
  33. package/dist/models/RescaleApplicationVerticallyRequest.d.ts +1 -0
  34. package/dist/models/RescaleApplicationVerticallyRequest.js +2 -0
  35. package/dist/models/RescaleApplicationVerticallyRequest.js.map +1 -1
  36. package/dist/models/UpdateApplicationVswitchesRequest.d.ts +1 -0
  37. package/dist/models/UpdateApplicationVswitchesRequest.js +2 -0
  38. package/dist/models/UpdateApplicationVswitchesRequest.js.map +1 -1
  39. package/dist/models/UpdateNamespaceSlsConfigsRequest.d.ts +24 -0
  40. package/dist/models/UpdateNamespaceSlsConfigsRequest.js.map +1 -1
  41. package/dist/models/UpdateNamespaceSlsConfigsResponseBody.d.ts +23 -1
  42. package/dist/models/UpdateNamespaceSlsConfigsResponseBody.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/client.ts +26 -2
  45. package/src/models/BatchRestartApplicationsRequest.ts +4 -0
  46. package/src/models/BatchRestartApplicationsResponseBody.ts +37 -0
  47. package/src/models/CreateApplicationRequest.ts +3 -0
  48. package/src/models/CreateApplicationShrinkRequest.ts +3 -0
  49. package/src/models/CreateIngressRequest.ts +70 -0
  50. package/src/models/DeployApplicationRequest.ts +3 -0
  51. package/src/models/DeployApplicationShrinkRequest.ts +3 -0
  52. package/src/models/DescribeApplicationConfigResponseBody.ts +3 -0
  53. package/src/models/DescribeApplicationMseServiceRequest.ts +4 -0
  54. package/src/models/DescribeApplicationMseServiceResponseBody.ts +69 -0
  55. package/src/models/QueryArmsEnableRequest.ts +2 -0
  56. package/src/models/QueryArmsEnableResponseBody.ts +38 -0
  57. package/src/models/RescaleApplicationVerticallyRequest.ts +3 -0
  58. package/src/models/UpdateApplicationVswitchesRequest.ts +3 -0
  59. package/src/models/UpdateNamespaceSlsConfigsRequest.ts +24 -0
  60. package/src/models/UpdateNamespaceSlsConfigsResponseBody.ts +23 -1
@@ -764,6 +764,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
764
764
  * [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]
765
765
  */
766
766
  slsConfigs?: string;
767
+ slsLogEnvTags?: string;
767
768
  /**
768
769
  * @remarks
769
770
  * Check Failure: Indicates that the application failed to start. The system will report the exception and automatically restart it.
@@ -959,6 +960,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
959
960
  serviceTags: 'ServiceTags',
960
961
  sidecarContainersConfigShrink: 'SidecarContainersConfig',
961
962
  slsConfigs: 'SlsConfigs',
963
+ slsLogEnvTags: 'SlsLogEnvTags',
962
964
  startupProbe: 'StartupProbe',
963
965
  swimlanePvtzDiscoverySvc: 'SwimlanePvtzDiscoverySvc',
964
966
  terminationGracePeriodSeconds: 'TerminationGracePeriodSeconds',
@@ -1046,6 +1048,7 @@ export class DeployApplicationShrinkRequest extends $dara.Model {
1046
1048
  serviceTags: 'string',
1047
1049
  sidecarContainersConfigShrink: 'string',
1048
1050
  slsConfigs: 'string',
1051
+ slsLogEnvTags: 'string',
1049
1052
  startupProbe: 'string',
1050
1053
  swimlanePvtzDiscoverySvc: 'string',
1051
1054
  terminationGracePeriodSeconds: 'number',
@@ -1504,6 +1504,7 @@ export class DescribeApplicationConfigResponseBodyData extends $dara.Model {
1504
1504
  * [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]
1505
1505
  */
1506
1506
  slsConfigs?: string;
1507
+ slsLogEnvTags?: string;
1507
1508
  /**
1508
1509
  * @remarks
1509
1510
  * Enable startup probe.
@@ -1705,6 +1706,7 @@ export class DescribeApplicationConfigResponseBodyData extends $dara.Model {
1705
1706
  serviceTags: 'ServiceTags',
1706
1707
  sidecarContainersConfig: 'SidecarContainersConfig',
1707
1708
  slsConfigs: 'SlsConfigs',
1709
+ slsLogEnvTags: 'SlsLogEnvTags',
1708
1710
  startupProbe: 'StartupProbe',
1709
1711
  swimlanePvtzDiscovery: 'SwimlanePvtzDiscovery',
1710
1712
  tags: 'Tags',
@@ -1808,6 +1810,7 @@ export class DescribeApplicationConfigResponseBodyData extends $dara.Model {
1808
1810
  serviceTags: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1809
1811
  sidecarContainersConfig: { 'type': 'array', 'itemType': DescribeApplicationConfigResponseBodyDataSidecarContainersConfig },
1810
1812
  slsConfigs: 'string',
1813
+ slsLogEnvTags: 'string',
1811
1814
  startupProbe: 'string',
1812
1815
  swimlanePvtzDiscovery: 'string',
1813
1816
  tags: { 'type': 'array', 'itemType': DescribeApplicationConfigResponseBodyDataTags },
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DescribeApplicationMseServiceRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
+ * The application ID.
9
+ *
8
10
  * This parameter is required.
9
11
  *
10
12
  * @example
@@ -13,6 +15,8 @@ export class DescribeApplicationMseServiceRequest extends $dara.Model {
13
15
  appId?: string;
14
16
  /**
15
17
  * @remarks
18
+ * Specifies whether to enable traffic limiting and degradation. Set to true to check traffic limiting and degradation permissions when accessing related APIs; set to false otherwise.
19
+ *
16
20
  * This parameter is required.
17
21
  *
18
22
  * @example
@@ -3,9 +3,43 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class DescribeApplicationMseServiceResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The application ID.
9
+ *
10
+ * @example
11
+ * mse-cn-hvm47******
12
+ */
6
13
  mseAppId?: string;
14
+ /**
15
+ * @remarks
16
+ * The application name.
17
+ *
18
+ * @example
19
+ * test
20
+ */
7
21
  mseAppName?: string;
22
+ /**
23
+ * @remarks
24
+ * The namespace.
25
+ *
26
+ * @example
27
+ * sae-ent
28
+ */
8
29
  mseAppNameSpace?: string;
30
+ /**
31
+ * @remarks
32
+ * The application status. Valid values:
33
+ *
34
+ * * EXPIRED
35
+ * * REBOOTING
36
+ * * WAITING
37
+ * * FAIL
38
+ * * NULL/SUCCESS
39
+ *
40
+ * @example
41
+ * SUCCESS
42
+ */
9
43
  status?: string;
10
44
  static names(): { [key: string]: string } {
11
45
  return {
@@ -36,28 +70,63 @@ export class DescribeApplicationMseServiceResponseBodyData extends $dara.Model {
36
70
 
37
71
  export class DescribeApplicationMseServiceResponseBody extends $dara.Model {
38
72
  /**
73
+ * @remarks
74
+ * The API status or POP error code. Valid values: 2xx: The request was successful. 3xx: The request was redirected. 4xx: The request was invalid. 5xx: A server error occurred.
75
+ *
39
76
  * @example
40
77
  * 200
41
78
  */
42
79
  code?: string;
80
+ /**
81
+ * @remarks
82
+ * The application information.
83
+ */
43
84
  data?: DescribeApplicationMseServiceResponseBodyData;
85
+ /**
86
+ * @remarks
87
+ * The error code. Value description:
88
+ *
89
+ * * If the request succeeds, this field is not returned.
90
+ * * For more information, see the **Error codes** section of this topic.
91
+ *
92
+ * @example
93
+ * System.Upgrading
94
+ */
44
95
  errorCode?: string;
45
96
  /**
97
+ * @remarks
98
+ * The additional information. Value description:
99
+ *
100
+ * * If the request was successful, **success** is returned.
101
+ * * If the request failed, an error code is returned.
102
+ *
46
103
  * @example
47
104
  * success
48
105
  */
49
106
  message?: string;
50
107
  /**
108
+ * @remarks
109
+ * The request ID.
110
+ *
51
111
  * @example
52
112
  * B4D805CA-926D-41B1-8E63-7AD0C1ED****
53
113
  */
54
114
  requestId?: string;
55
115
  /**
116
+ * @remarks
117
+ * Indicates whether the application instance groups were obtained successfully. Valid values:
118
+ *
119
+ * * **true**
120
+ * * **false**
121
+ *
56
122
  * @example
57
123
  * true
58
124
  */
59
125
  success?: boolean;
60
126
  /**
127
+ * @remarks
128
+ * The ID of the trace, which is used to query the exact call information.
129
+ *
61
130
  * @example
62
131
  * 0a98a02315955564772843261e****
63
132
  */
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class QueryArmsEnableRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
+ * The application ID.
9
+ *
8
10
  * This parameter is required.
9
11
  *
10
12
  * @example
@@ -4,6 +4,9 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class QueryArmsEnableResponseBodyData extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * Indicates if enabled. Valid values: true and false.
9
+ *
7
10
  * @example
8
11
  * true
9
12
  */
@@ -31,28 +34,63 @@ export class QueryArmsEnableResponseBodyData extends $dara.Model {
31
34
 
32
35
  export class QueryArmsEnableResponseBody extends $dara.Model {
33
36
  /**
37
+ * @remarks
38
+ * The status code or error code. Valid values: 2xx: The request was successful. 3xx: The request was redirected. 4xx: The request was invalid. 5xx: A server error occurred.
39
+ *
34
40
  * @example
35
41
  * 200
36
42
  */
37
43
  code?: string;
44
+ /**
45
+ * @remarks
46
+ * The response data.
47
+ */
38
48
  data?: QueryArmsEnableResponseBodyData;
49
+ /**
50
+ * @remarks
51
+ * The error code. Value description:
52
+ *
53
+ * * If the request was successful, this field is not returned.
54
+ * * For more information, see the **Error codes** section of this topic.
55
+ *
56
+ * @example
57
+ * InvalidApplication.NotFound
58
+ */
39
59
  errorCode?: string;
40
60
  /**
61
+ * @remarks
62
+ * The additional information. Value description:
63
+ *
64
+ * * If the request was successful, **success** is returned.
65
+ * * If the request failed, an error code is returned.
66
+ *
41
67
  * @example
42
68
  * success
43
69
  */
44
70
  message?: string;
45
71
  /**
72
+ * @remarks
73
+ * The request ID.
74
+ *
46
75
  * @example
47
76
  * 01CF26C7-00A3-4AA6-BA76-7E95F2A3****
48
77
  */
49
78
  requestId?: string;
50
79
  /**
80
+ * @remarks
81
+ * Indicates whether the request was successful. Valid values:
82
+ *
83
+ * * **true**
84
+ * * **false**
85
+ *
51
86
  * @example
52
87
  * true
53
88
  */
54
89
  success?: boolean;
55
90
  /**
91
+ * @remarks
92
+ * The ID of the trace, which is used to query the details of a request.
93
+ *
56
94
  * @example
57
95
  * 0a98a02315955564772843261e****
58
96
  */
@@ -23,6 +23,7 @@ export class RescaleApplicationVerticallyRequest extends $dara.Model {
23
23
  * 1000
24
24
  */
25
25
  cpu?: string;
26
+ deploy?: boolean;
26
27
  /**
27
28
  * @remarks
28
29
  * The disk size. Unit: GB.
@@ -71,6 +72,7 @@ export class RescaleApplicationVerticallyRequest extends $dara.Model {
71
72
  return {
72
73
  appId: 'AppId',
73
74
  cpu: 'Cpu',
75
+ deploy: 'Deploy',
74
76
  diskSize: 'DiskSize',
75
77
  memory: 'Memory',
76
78
  resourceType: 'ResourceType',
@@ -85,6 +87,7 @@ export class RescaleApplicationVerticallyRequest extends $dara.Model {
85
87
  return {
86
88
  appId: 'string',
87
89
  cpu: 'string',
90
+ deploy: 'boolean',
88
91
  diskSize: 'string',
89
92
  memory: 'string',
90
93
  resourceType: 'string',
@@ -13,6 +13,7 @@ export class UpdateApplicationVswitchesRequest extends $dara.Model {
13
13
  * 0099b7be-5f5b-4512-a7fc-56049ef1****
14
14
  */
15
15
  appId?: string;
16
+ deploy?: boolean;
16
17
  /**
17
18
  * @remarks
18
19
  * The ID of the vSwitch.
@@ -26,6 +27,7 @@ export class UpdateApplicationVswitchesRequest extends $dara.Model {
26
27
  static names(): { [key: string]: string } {
27
28
  return {
28
29
  appId: 'AppId',
30
+ deploy: 'Deploy',
29
31
  vSwitchId: 'VSwitchId',
30
32
  };
31
33
  }
@@ -33,6 +35,7 @@ export class UpdateApplicationVswitchesRequest extends $dara.Model {
33
35
  static types(): { [key: string]: any } {
34
36
  return {
35
37
  appId: 'string',
38
+ deploy: 'boolean',
36
39
  vSwitchId: 'string',
37
40
  };
38
41
  }
@@ -4,16 +4,40 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class UpdateNamespaceSlsConfigsRequest extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The short ID of the namespace. No need to specify a region ID. We recommend configuring this parameter.
9
+ *
7
10
  * @example
8
11
  * test
9
12
  */
10
13
  nameSpaceShortId?: string;
11
14
  /**
15
+ * @remarks
16
+ * The namespace ID.
17
+ *
12
18
  * @example
13
19
  * cn-beijing:test
14
20
  */
15
21
  namespaceId?: string;
16
22
  /**
23
+ * @remarks
24
+ * The logging configurations of Simple Log Service.
25
+ *
26
+ * * `[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]`: Simple Log Service resources automatically created by Serverless App Engine (SAE) are used.
27
+ * * To use custom Simple Log Service resources, set this parameter to `[{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}]`.
28
+ *
29
+ * Take note of the following subparameters:
30
+ *
31
+ * * **projectName**: the name of the Simple Log Service project.
32
+ * * **logDir**: the path in which logs are stored.
33
+ * * **logType**: the log type. **stdout** indicates the standard output (stdout) logs of the container. You can specify only one stdout value for this parameter. If not specified, file logs are collected.
34
+ * * **logstoreName**: the name of the Logstore in Simple Log Service.
35
+ * * **logtailName**: the name of the Logtail in Simple Log Service. If not specified, a new Logtail is created.
36
+ *
37
+ * If logging configuration changes are not needed during job template deployment, specify **SlsConfigs** only in the first request. Omit this parameter in later requests. To stop using Simple Log Service, leave **SlsConfigs** empty.
38
+ *
39
+ * > Projects automatically created by SAE for job templates are deleted when their corresponding job templates are deleted. Therefore, you should not select an existing SAE-created project for log collection.
40
+ *
17
41
  * @example
18
42
  * [{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}]
19
43
  */
@@ -4,29 +4,51 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class UpdateNamespaceSlsConfigsResponseBody extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The status code or error code. Valid values: 2xx: The request was successful. 3xx: The request was redirected. 4xx: The request was invalid. 5xx: A server error occurred.
9
+ *
7
10
  * @example
8
11
  * 200
9
12
  */
10
13
  code?: string;
14
+ /**
15
+ * @remarks
16
+ * The error code. Value description:
17
+ *
18
+ * * If the request was successful, this field is not returned.
19
+ * * For more information, see the **Error codes** section of this topic.
20
+ *
21
+ * @example
22
+ * InvalidNamespaceId.NotFound
23
+ */
11
24
  errorCode?: string;
12
25
  /**
26
+ * @remarks
27
+ * The additional information.
28
+ *
13
29
  * @example
14
30
  * success
15
31
  */
16
32
  message?: string;
17
33
  /**
34
+ * @remarks
35
+ * Indicates whether the Simple Log Service configuration for the namespace was updated. Valid values: true and false.
36
+ *
18
37
  * @example
19
38
  * true
20
39
  */
21
40
  success?: boolean;
22
41
  /**
42
+ * @remarks
43
+ * The ID of the trace, which is used to query the exact call information.
44
+ *
23
45
  * @example
24
46
  * 0a98a02315955564772843261e****
25
47
  */
26
48
  traceId?: string;
27
49
  /**
28
50
  * @remarks
29
- * Id of the request
51
+ * The request ID.
30
52
  *
31
53
  * @example
32
54
  * AD0286B2-F4A4-5D43-9329-97DEF1019F06