@alicloud/eas20210701 7.5.6 → 7.6.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 +144 -0
- package/dist/client.js +242 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateServiceRolloutRequest.d.ts +59 -0
- package/dist/models/CreateServiceRolloutRequest.js +108 -0
- package/dist/models/CreateServiceRolloutRequest.js.map +1 -0
- package/dist/models/CreateServiceRolloutResponse.d.ts +19 -0
- package/dist/models/CreateServiceRolloutResponse.js +69 -0
- package/dist/models/CreateServiceRolloutResponse.js.map +1 -0
- package/dist/models/CreateServiceRolloutResponseBody.d.ts +23 -0
- package/dist/models/CreateServiceRolloutResponseBody.js +60 -0
- package/dist/models/CreateServiceRolloutResponseBody.js.map +1 -0
- package/dist/models/DeleteServiceRolloutRequest.d.ts +13 -0
- package/dist/models/DeleteServiceRolloutRequest.js +54 -0
- package/dist/models/DeleteServiceRolloutRequest.js.map +1 -0
- package/dist/models/DeleteServiceRolloutResponse.d.ts +19 -0
- package/dist/models/DeleteServiceRolloutResponse.js +69 -0
- package/dist/models/DeleteServiceRolloutResponse.js.map +1 -0
- package/dist/models/DeleteServiceRolloutResponseBody.d.ts +23 -0
- package/dist/models/DeleteServiceRolloutResponseBody.js +60 -0
- package/dist/models/DeleteServiceRolloutResponseBody.js.map +1 -0
- package/dist/models/DescribeServiceRolloutRequest.d.ts +13 -0
- package/dist/models/DescribeServiceRolloutRequest.js +54 -0
- package/dist/models/DescribeServiceRolloutRequest.js.map +1 -0
- package/dist/models/DescribeServiceRolloutResponse.d.ts +19 -0
- package/dist/models/DescribeServiceRolloutResponse.js +69 -0
- package/dist/models/DescribeServiceRolloutResponse.js.map +1 -0
- package/dist/models/DescribeServiceRolloutResponseBody.d.ts +128 -0
- package/dist/models/DescribeServiceRolloutResponseBody.js +186 -0
- package/dist/models/DescribeServiceRolloutResponseBody.js.map +1 -0
- package/dist/models/Service.d.ts +1 -0
- package/dist/models/Service.js +2 -0
- package/dist/models/Service.js.map +1 -1
- package/dist/models/UpdateServiceRolloutRequest.d.ts +59 -0
- package/dist/models/UpdateServiceRolloutRequest.js +108 -0
- package/dist/models/UpdateServiceRolloutRequest.js.map +1 -0
- package/dist/models/UpdateServiceRolloutResponse.d.ts +19 -0
- package/dist/models/UpdateServiceRolloutResponse.js +69 -0
- package/dist/models/UpdateServiceRolloutResponse.js.map +1 -0
- package/dist/models/UpdateServiceRolloutResponseBody.d.ts +23 -0
- package/dist/models/UpdateServiceRolloutResponseBody.js +60 -0
- package/dist/models/UpdateServiceRolloutResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +21 -0
- package/dist/models/model.js +51 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +256 -0
- package/src/models/CreateServiceRolloutRequest.ts +104 -0
- package/src/models/CreateServiceRolloutResponse.ts +40 -0
- package/src/models/CreateServiceRolloutResponseBody.ts +38 -0
- package/src/models/DeleteServiceRolloutRequest.ts +24 -0
- package/src/models/DeleteServiceRolloutResponse.ts +40 -0
- package/src/models/DeleteServiceRolloutResponseBody.ts +38 -0
- package/src/models/DescribeServiceRolloutRequest.ts +24 -0
- package/src/models/DescribeServiceRolloutResponse.ts +40 -0
- package/src/models/DescribeServiceRolloutResponseBody.ts +224 -0
- package/src/models/Service.ts +3 -0
- package/src/models/UpdateServiceRolloutRequest.ts +104 -0
- package/src/models/UpdateServiceRolloutResponse.ts +40 -0
- package/src/models/UpdateServiceRolloutResponseBody.ts +38 -0
- package/src/models/model.ts +21 -0
package/src/client.ts
CHANGED
|
@@ -1081,6 +1081,77 @@ export default class Client extends OpenApi {
|
|
|
1081
1081
|
return await this.createServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
1082
1082
|
}
|
|
1083
1083
|
|
|
1084
|
+
/**
|
|
1085
|
+
* 创建服务更新计划
|
|
1086
|
+
*
|
|
1087
|
+
* @remarks
|
|
1088
|
+
* ## 请求说明
|
|
1089
|
+
* - **策略互斥**:`Partition`(分区发布)和`Batch`(批量发布)两种策略只能选择其中一种,不能同时使用。
|
|
1090
|
+
* - **请求速率限制**:每秒最多100次请求。
|
|
1091
|
+
* - **授权信息**:需要具备`eas:CreateServiceRollout`权限才能调用此接口。
|
|
1092
|
+
* - **资源ARN**:`acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}`。
|
|
1093
|
+
* - **暂停发布**:通过设置`Paused`参数为`true`可以暂停发布流程,之后可通过`UpdateServiceRollout`接口恢复或取消发布。
|
|
1094
|
+
* - **监控与回滚**:在发布过程中建议持续监控服务指标,以便及时发现并处理问题;如需回滚,可以通过调整`Partition`值或删除发布策略来实现。
|
|
1095
|
+
*
|
|
1096
|
+
* @param request - CreateServiceRolloutRequest
|
|
1097
|
+
* @param headers - map
|
|
1098
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1099
|
+
* @returns CreateServiceRolloutResponse
|
|
1100
|
+
*/
|
|
1101
|
+
async createServiceRolloutWithOptions(ClusterId: string, ServiceName: string, request: $_model.CreateServiceRolloutRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServiceRolloutResponse> {
|
|
1102
|
+
request.validate();
|
|
1103
|
+
let body : {[key: string ]: any} = { };
|
|
1104
|
+
if (!$dara.isNull(request.batch)) {
|
|
1105
|
+
body["Batch"] = request.batch;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
if (!$dara.isNull(request.partition)) {
|
|
1109
|
+
body["Partition"] = request.partition;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
if (!$dara.isNull(request.paused)) {
|
|
1113
|
+
body["Paused"] = request.paused;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1117
|
+
headers: headers,
|
|
1118
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1119
|
+
});
|
|
1120
|
+
let params = new $OpenApiUtil.Params({
|
|
1121
|
+
action: "CreateServiceRollout",
|
|
1122
|
+
version: "2021-07-01",
|
|
1123
|
+
protocol: "HTTPS",
|
|
1124
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/rollout`,
|
|
1125
|
+
method: "POST",
|
|
1126
|
+
authType: "AK",
|
|
1127
|
+
style: "ROA",
|
|
1128
|
+
reqBodyType: "json",
|
|
1129
|
+
bodyType: "json",
|
|
1130
|
+
});
|
|
1131
|
+
return $dara.cast<$_model.CreateServiceRolloutResponse>(await this.callApi(params, req, runtime), new $_model.CreateServiceRolloutResponse({}));
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* 创建服务更新计划
|
|
1136
|
+
*
|
|
1137
|
+
* @remarks
|
|
1138
|
+
* ## 请求说明
|
|
1139
|
+
* - **策略互斥**:`Partition`(分区发布)和`Batch`(批量发布)两种策略只能选择其中一种,不能同时使用。
|
|
1140
|
+
* - **请求速率限制**:每秒最多100次请求。
|
|
1141
|
+
* - **授权信息**:需要具备`eas:CreateServiceRollout`权限才能调用此接口。
|
|
1142
|
+
* - **资源ARN**:`acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}`。
|
|
1143
|
+
* - **暂停发布**:通过设置`Paused`参数为`true`可以暂停发布流程,之后可通过`UpdateServiceRollout`接口恢复或取消发布。
|
|
1144
|
+
* - **监控与回滚**:在发布过程中建议持续监控服务指标,以便及时发现并处理问题;如需回滚,可以通过调整`Partition`值或删除发布策略来实现。
|
|
1145
|
+
*
|
|
1146
|
+
* @param request - CreateServiceRolloutRequest
|
|
1147
|
+
* @returns CreateServiceRolloutResponse
|
|
1148
|
+
*/
|
|
1149
|
+
async createServiceRollout(ClusterId: string, ServiceName: string, request: $_model.CreateServiceRolloutRequest): Promise<$_model.CreateServiceRolloutResponse> {
|
|
1150
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1151
|
+
let headers : {[key: string ]: string} = { };
|
|
1152
|
+
return await this.createServiceRolloutWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1084
1155
|
/**
|
|
1085
1156
|
* Creates a virtual resource group.
|
|
1086
1157
|
*
|
|
@@ -1970,6 +2041,65 @@ export default class Client extends OpenApi {
|
|
|
1970
2041
|
return await this.deleteServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
1971
2042
|
}
|
|
1972
2043
|
|
|
2044
|
+
/**
|
|
2045
|
+
* 删除服务更新计划
|
|
2046
|
+
*
|
|
2047
|
+
* @remarks
|
|
2048
|
+
* ## 请求说明
|
|
2049
|
+
* - **不可恢复**:删除操作不可撤销,请谨慎操作。
|
|
2050
|
+
* - **不自动回退**:删除策略不会回退已更新的副本。
|
|
2051
|
+
* - **停止发布**:正在进行的发布会立即停止。
|
|
2052
|
+
* - **状态保留**:已更新的副本保持新版本,未更新的保持旧版本。
|
|
2053
|
+
* - 删除后,后续服务更新将采用默认的滚动更新方式。
|
|
2054
|
+
* - 在删除前,请确认要删除的服务名称和地域,并了解当前发布状态(可以通过调用`DescribeServiceRollout`接口获取)。
|
|
2055
|
+
* - 如果需要回退版本,请在删除策略后通过重新创建策略或直接更新服务镜像来实现。
|
|
2056
|
+
*
|
|
2057
|
+
* @param request - DeleteServiceRolloutRequest
|
|
2058
|
+
* @param headers - map
|
|
2059
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2060
|
+
* @returns DeleteServiceRolloutResponse
|
|
2061
|
+
*/
|
|
2062
|
+
async deleteServiceRolloutWithOptions(ClusterId: string, ServiceName: string, request: $_model.DeleteServiceRolloutRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteServiceRolloutResponse> {
|
|
2063
|
+
request.validate();
|
|
2064
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2065
|
+
headers: headers,
|
|
2066
|
+
});
|
|
2067
|
+
let params = new $OpenApiUtil.Params({
|
|
2068
|
+
action: "DeleteServiceRollout",
|
|
2069
|
+
version: "2021-07-01",
|
|
2070
|
+
protocol: "HTTPS",
|
|
2071
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/rollout`,
|
|
2072
|
+
method: "DELETE",
|
|
2073
|
+
authType: "AK",
|
|
2074
|
+
style: "ROA",
|
|
2075
|
+
reqBodyType: "json",
|
|
2076
|
+
bodyType: "json",
|
|
2077
|
+
});
|
|
2078
|
+
return $dara.cast<$_model.DeleteServiceRolloutResponse>(await this.callApi(params, req, runtime), new $_model.DeleteServiceRolloutResponse({}));
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* 删除服务更新计划
|
|
2083
|
+
*
|
|
2084
|
+
* @remarks
|
|
2085
|
+
* ## 请求说明
|
|
2086
|
+
* - **不可恢复**:删除操作不可撤销,请谨慎操作。
|
|
2087
|
+
* - **不自动回退**:删除策略不会回退已更新的副本。
|
|
2088
|
+
* - **停止发布**:正在进行的发布会立即停止。
|
|
2089
|
+
* - **状态保留**:已更新的副本保持新版本,未更新的保持旧版本。
|
|
2090
|
+
* - 删除后,后续服务更新将采用默认的滚动更新方式。
|
|
2091
|
+
* - 在删除前,请确认要删除的服务名称和地域,并了解当前发布状态(可以通过调用`DescribeServiceRollout`接口获取)。
|
|
2092
|
+
* - 如果需要回退版本,请在删除策略后通过重新创建策略或直接更新服务镜像来实现。
|
|
2093
|
+
*
|
|
2094
|
+
* @param request - DeleteServiceRolloutRequest
|
|
2095
|
+
* @returns DeleteServiceRolloutResponse
|
|
2096
|
+
*/
|
|
2097
|
+
async deleteServiceRollout(ClusterId: string, ServiceName: string, request: $_model.DeleteServiceRolloutRequest): Promise<$_model.DeleteServiceRolloutResponse> {
|
|
2098
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2099
|
+
let headers : {[key: string ]: string} = { };
|
|
2100
|
+
return await this.deleteServiceRolloutWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
2101
|
+
}
|
|
2102
|
+
|
|
1973
2103
|
/**
|
|
1974
2104
|
* Deletes a virtual resource group that contains no resources or instances.
|
|
1975
2105
|
*
|
|
@@ -2836,6 +2966,63 @@ export default class Client extends OpenApi {
|
|
|
2836
2966
|
return await this.describeServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
2837
2967
|
}
|
|
2838
2968
|
|
|
2969
|
+
/**
|
|
2970
|
+
* 查看服务更新计划
|
|
2971
|
+
*
|
|
2972
|
+
* @remarks
|
|
2973
|
+
* ## 请求说明
|
|
2974
|
+
* - 该接口用于查询特定服务的发布策略(Rollout)配置和当前执行状态。
|
|
2975
|
+
* - 返回的信息包括但不限于发布策略的具体参数、当前发布进度等。
|
|
2976
|
+
* - 请求时需提供`ClusterId`和服务名称`ServiceName`作为路径参数。
|
|
2977
|
+
* - 注意,请求速率限制为每秒最多100次。
|
|
2978
|
+
* - 如果服务不存在或未创建发布策略,调用此接口将返回错误。
|
|
2979
|
+
* - 返回的状态是实时查询的结果,可能会随时间而变化,请根据实际需要调整轮询间隔。
|
|
2980
|
+
*
|
|
2981
|
+
* @param request - DescribeServiceRolloutRequest
|
|
2982
|
+
* @param headers - map
|
|
2983
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2984
|
+
* @returns DescribeServiceRolloutResponse
|
|
2985
|
+
*/
|
|
2986
|
+
async describeServiceRolloutWithOptions(ClusterId: string, ServiceName: string, request: $_model.DescribeServiceRolloutRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeServiceRolloutResponse> {
|
|
2987
|
+
request.validate();
|
|
2988
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2989
|
+
headers: headers,
|
|
2990
|
+
});
|
|
2991
|
+
let params = new $OpenApiUtil.Params({
|
|
2992
|
+
action: "DescribeServiceRollout",
|
|
2993
|
+
version: "2021-07-01",
|
|
2994
|
+
protocol: "HTTPS",
|
|
2995
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/rollout`,
|
|
2996
|
+
method: "GET",
|
|
2997
|
+
authType: "AK",
|
|
2998
|
+
style: "ROA",
|
|
2999
|
+
reqBodyType: "json",
|
|
3000
|
+
bodyType: "json",
|
|
3001
|
+
});
|
|
3002
|
+
return $dara.cast<$_model.DescribeServiceRolloutResponse>(await this.callApi(params, req, runtime), new $_model.DescribeServiceRolloutResponse({}));
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* 查看服务更新计划
|
|
3007
|
+
*
|
|
3008
|
+
* @remarks
|
|
3009
|
+
* ## 请求说明
|
|
3010
|
+
* - 该接口用于查询特定服务的发布策略(Rollout)配置和当前执行状态。
|
|
3011
|
+
* - 返回的信息包括但不限于发布策略的具体参数、当前发布进度等。
|
|
3012
|
+
* - 请求时需提供`ClusterId`和服务名称`ServiceName`作为路径参数。
|
|
3013
|
+
* - 注意,请求速率限制为每秒最多100次。
|
|
3014
|
+
* - 如果服务不存在或未创建发布策略,调用此接口将返回错误。
|
|
3015
|
+
* - 返回的状态是实时查询的结果,可能会随时间而变化,请根据实际需要调整轮询间隔。
|
|
3016
|
+
*
|
|
3017
|
+
* @param request - DescribeServiceRolloutRequest
|
|
3018
|
+
* @returns DescribeServiceRolloutResponse
|
|
3019
|
+
*/
|
|
3020
|
+
async describeServiceRollout(ClusterId: string, ServiceName: string, request: $_model.DescribeServiceRolloutRequest): Promise<$_model.DescribeServiceRolloutResponse> {
|
|
3021
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3022
|
+
let headers : {[key: string ]: string} = { };
|
|
3023
|
+
return await this.describeServiceRolloutWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
3024
|
+
}
|
|
3025
|
+
|
|
2839
3026
|
/**
|
|
2840
3027
|
* Obtains the logon-free URL of the service.
|
|
2841
3028
|
*
|
|
@@ -5507,6 +5694,75 @@ export default class Client extends OpenApi {
|
|
|
5507
5694
|
return await this.updateServiceMirrorWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5508
5695
|
}
|
|
5509
5696
|
|
|
5697
|
+
/**
|
|
5698
|
+
* 更新服务发布计划
|
|
5699
|
+
*
|
|
5700
|
+
* @remarks
|
|
5701
|
+
* ## 请求说明
|
|
5702
|
+
* - **至少提供一个参数**:必须在请求中指定`Partition`、`Batch`或`Paused`中的至少一个参数。
|
|
5703
|
+
* - **互斥策略**:不能同时提供`Partition`和`Batch`配置。
|
|
5704
|
+
* - **实时生效**:更新将立即生效,影响正在进行的服务发布过程。
|
|
5705
|
+
* - **回退操作**:通过增加`Partition`值可以实现版本回退,但不会自动触发,需要手动更新服务镜像。
|
|
5706
|
+
* - **暂停不影响参数**:暂停发布不会改变已设置的`Partition`或`Batch`参数,仅暂停执行当前策略。
|
|
5707
|
+
*
|
|
5708
|
+
* @param request - UpdateServiceRolloutRequest
|
|
5709
|
+
* @param headers - map
|
|
5710
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5711
|
+
* @returns UpdateServiceRolloutResponse
|
|
5712
|
+
*/
|
|
5713
|
+
async updateServiceRolloutWithOptions(ClusterId: string, ServiceName: string, request: $_model.UpdateServiceRolloutRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateServiceRolloutResponse> {
|
|
5714
|
+
request.validate();
|
|
5715
|
+
let body : {[key: string ]: any} = { };
|
|
5716
|
+
if (!$dara.isNull(request.batch)) {
|
|
5717
|
+
body["Batch"] = request.batch;
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
if (!$dara.isNull(request.partition)) {
|
|
5721
|
+
body["Partition"] = request.partition;
|
|
5722
|
+
}
|
|
5723
|
+
|
|
5724
|
+
if (!$dara.isNull(request.paused)) {
|
|
5725
|
+
body["Paused"] = request.paused;
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5728
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5729
|
+
headers: headers,
|
|
5730
|
+
body: OpenApiUtil.parseToMap(body),
|
|
5731
|
+
});
|
|
5732
|
+
let params = new $OpenApiUtil.Params({
|
|
5733
|
+
action: "UpdateServiceRollout",
|
|
5734
|
+
version: "2021-07-01",
|
|
5735
|
+
protocol: "HTTPS",
|
|
5736
|
+
pathname: `/api/v2/services/${$dara.URL.percentEncode(ClusterId)}/${$dara.URL.percentEncode(ServiceName)}/rollout`,
|
|
5737
|
+
method: "PUT",
|
|
5738
|
+
authType: "AK",
|
|
5739
|
+
style: "ROA",
|
|
5740
|
+
reqBodyType: "json",
|
|
5741
|
+
bodyType: "json",
|
|
5742
|
+
});
|
|
5743
|
+
return $dara.cast<$_model.UpdateServiceRolloutResponse>(await this.callApi(params, req, runtime), new $_model.UpdateServiceRolloutResponse({}));
|
|
5744
|
+
}
|
|
5745
|
+
|
|
5746
|
+
/**
|
|
5747
|
+
* 更新服务发布计划
|
|
5748
|
+
*
|
|
5749
|
+
* @remarks
|
|
5750
|
+
* ## 请求说明
|
|
5751
|
+
* - **至少提供一个参数**:必须在请求中指定`Partition`、`Batch`或`Paused`中的至少一个参数。
|
|
5752
|
+
* - **互斥策略**:不能同时提供`Partition`和`Batch`配置。
|
|
5753
|
+
* - **实时生效**:更新将立即生效,影响正在进行的服务发布过程。
|
|
5754
|
+
* - **回退操作**:通过增加`Partition`值可以实现版本回退,但不会自动触发,需要手动更新服务镜像。
|
|
5755
|
+
* - **暂停不影响参数**:暂停发布不会改变已设置的`Partition`或`Batch`参数,仅暂停执行当前策略。
|
|
5756
|
+
*
|
|
5757
|
+
* @param request - UpdateServiceRolloutRequest
|
|
5758
|
+
* @returns UpdateServiceRolloutResponse
|
|
5759
|
+
*/
|
|
5760
|
+
async updateServiceRollout(ClusterId: string, ServiceName: string, request: $_model.UpdateServiceRolloutRequest): Promise<$_model.UpdateServiceRolloutResponse> {
|
|
5761
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5762
|
+
let headers : {[key: string ]: string} = { };
|
|
5763
|
+
return await this.updateServiceRolloutWithOptions(ClusterId, ServiceName, request, headers, runtime);
|
|
5764
|
+
}
|
|
5765
|
+
|
|
5510
5766
|
/**
|
|
5511
5767
|
* Updates the safety lock of a service to minimize misoperations on the service.
|
|
5512
5768
|
*
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateServiceRolloutRequestBatch extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1
|
|
9
|
+
*/
|
|
10
|
+
batchSize?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 5m
|
|
14
|
+
*/
|
|
15
|
+
interval?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
batchSize: 'BatchSize',
|
|
19
|
+
interval: 'Interval',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
batchSize: 'string',
|
|
26
|
+
interval: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class CreateServiceRolloutRequestPartition extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* 1
|
|
43
|
+
*/
|
|
44
|
+
partition?: string;
|
|
45
|
+
static names(): { [key: string]: string } {
|
|
46
|
+
return {
|
|
47
|
+
partition: 'Partition',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static types(): { [key: string]: any } {
|
|
52
|
+
return {
|
|
53
|
+
partition: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
validate() {
|
|
58
|
+
super.validate();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
constructor(map?: { [key: string]: any }) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class CreateServiceRolloutRequest extends $dara.Model {
|
|
67
|
+
batch?: CreateServiceRolloutRequestBatch;
|
|
68
|
+
partition?: CreateServiceRolloutRequestPartition;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* False
|
|
72
|
+
*/
|
|
73
|
+
paused?: boolean;
|
|
74
|
+
static names(): { [key: string]: string } {
|
|
75
|
+
return {
|
|
76
|
+
batch: 'Batch',
|
|
77
|
+
partition: 'Partition',
|
|
78
|
+
paused: 'Paused',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static types(): { [key: string]: any } {
|
|
83
|
+
return {
|
|
84
|
+
batch: CreateServiceRolloutRequestBatch,
|
|
85
|
+
partition: CreateServiceRolloutRequestPartition,
|
|
86
|
+
paused: 'boolean',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
validate() {
|
|
91
|
+
if(this.batch && typeof (this.batch as any).validate === 'function') {
|
|
92
|
+
(this.batch as any).validate();
|
|
93
|
+
}
|
|
94
|
+
if(this.partition && typeof (this.partition as any).validate === 'function') {
|
|
95
|
+
(this.partition as any).validate();
|
|
96
|
+
}
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateServiceRolloutResponseBody } from "./CreateServiceRolloutResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateServiceRolloutResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateServiceRolloutResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateServiceRolloutResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateServiceRolloutResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Rollout created successfully
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 40325405-579C-4D82****
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
message: 'Message',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
message: 'string',
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteServiceRolloutRequest extends $dara.Model {
|
|
6
|
+
static names(): { [key: string]: string } {
|
|
7
|
+
return {
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static types(): { [key: string]: any } {
|
|
12
|
+
return {
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor(map?: { [key: string]: any }) {
|
|
21
|
+
super(map);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteServiceRolloutResponseBody } from "./DeleteServiceRolloutResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteServiceRolloutResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteServiceRolloutResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DeleteServiceRolloutResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteServiceRolloutResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Rollout deleted successfully
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 40325405-579C-4D82****
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
message: 'Message',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
message: 'string',
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeServiceRolloutRequest extends $dara.Model {
|
|
6
|
+
static names(): { [key: string]: string } {
|
|
7
|
+
return {
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static types(): { [key: string]: any } {
|
|
12
|
+
return {
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor(map?: { [key: string]: any }) {
|
|
21
|
+
super(map);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeServiceRolloutResponseBody } from "./DescribeServiceRolloutResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeServiceRolloutResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeServiceRolloutResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeServiceRolloutResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|