@alicloud/sae20190506 2.7.0 → 2.8.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 CHANGED
@@ -44,6 +44,24 @@ export default class Client extends OpenApi {
44
44
  * @returns AbortChangeOrderResponse
45
45
  */
46
46
  abortChangeOrder(request: $_model.AbortChangeOrderRequest): Promise<$_model.AbortChangeOrderResponse>;
47
+ /**
48
+ * 批量重启应用
49
+ *
50
+ * @param request - BatchRestartApplicationsRequest
51
+ * @param headers - map
52
+ * @param runtime - runtime options for this request RuntimeOptions
53
+ * @returns BatchRestartApplicationsResponse
54
+ */
55
+ batchRestartApplicationsWithOptions(request: $_model.BatchRestartApplicationsRequest, headers: {
56
+ [key: string]: string;
57
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.BatchRestartApplicationsResponse>;
58
+ /**
59
+ * 批量重启应用
60
+ *
61
+ * @param request - BatchRestartApplicationsRequest
62
+ * @returns BatchRestartApplicationsResponse
63
+ */
64
+ batchRestartApplications(request: $_model.BatchRestartApplicationsRequest): Promise<$_model.BatchRestartApplicationsResponse>;
47
65
  /**
48
66
  * Starts multiple applications at a time.
49
67
  *
package/dist/client.js CHANGED
@@ -148,6 +148,51 @@ class Client extends openapi_core_1.default {
148
148
  let headers = {};
149
149
  return await this.abortChangeOrderWithOptions(request, headers, runtime);
150
150
  }
151
+ /**
152
+ * 批量重启应用
153
+ *
154
+ * @param request - BatchRestartApplicationsRequest
155
+ * @param headers - map
156
+ * @param runtime - runtime options for this request RuntimeOptions
157
+ * @returns BatchRestartApplicationsResponse
158
+ */
159
+ async batchRestartApplicationsWithOptions(request, headers, runtime) {
160
+ request.validate();
161
+ let query = {};
162
+ if (!$dara.isNull(request.appIds)) {
163
+ query["AppIds"] = request.appIds;
164
+ }
165
+ if (!$dara.isNull(request.namespaceId)) {
166
+ query["NamespaceId"] = request.namespaceId;
167
+ }
168
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
169
+ headers: headers,
170
+ query: openapi_core_2.OpenApiUtil.query(query),
171
+ });
172
+ let params = new openapi_core_2.$OpenApiUtil.Params({
173
+ action: "BatchRestartApplications",
174
+ version: "2019-05-06",
175
+ protocol: "HTTPS",
176
+ pathname: `/pop/v1/sam/app/batchRestartApplications`,
177
+ method: "PUT",
178
+ authType: "AK",
179
+ style: "ROA",
180
+ reqBodyType: "json",
181
+ bodyType: "json",
182
+ });
183
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchRestartApplicationsResponse({}));
184
+ }
185
+ /**
186
+ * 批量重启应用
187
+ *
188
+ * @param request - BatchRestartApplicationsRequest
189
+ * @returns BatchRestartApplicationsResponse
190
+ */
191
+ async batchRestartApplications(request) {
192
+ let runtime = new $dara.RuntimeOptions({});
193
+ let headers = {};
194
+ return await this.batchRestartApplicationsWithOptions(request, headers, runtime);
195
+ }
151
196
  /**
152
197
  * Starts multiple applications at a time.
153
198
  *