@alicloud/cs20151215 6.1.1 → 6.2.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
@@ -1595,6 +1595,21 @@ export default class Client extends OpenApi {
1595
1595
  * @returns ListAddonsResponse
1596
1596
  */
1597
1597
  listAddons(request: $_model.ListAddonsRequest): Promise<$_model.ListAddonsResponse>;
1598
+ /**
1599
+ * 获取集群组件实例的资源列表
1600
+ *
1601
+ * @param headers - map
1602
+ * @param runtime - runtime options for this request RuntimeOptions
1603
+ * @returns ListClusterAddonInstanceResourcesResponse
1604
+ */
1605
+ listClusterAddonInstanceResourcesWithOptions(clusterId: string, instanceName: string, headers: {
1606
+ [key: string]: string;
1607
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListClusterAddonInstanceResourcesResponse>;
1608
+ /**
1609
+ * 获取集群组件实例的资源列表
1610
+ * @returns ListClusterAddonInstanceResourcesResponse
1611
+ */
1612
+ listClusterAddonInstanceResources(clusterId: string, instanceName: string): Promise<$_model.ListClusterAddonInstanceResourcesResponse>;
1598
1613
  /**
1599
1614
  * Queries the component instances that are running in the specified cluster and the information about the component instances. The information includes the component version and status.
1600
1615
  *
package/dist/client.js CHANGED
@@ -2204,6 +2204,9 @@ class Client extends openapi_core_1.default {
2204
2204
  if (!$dara.isNull(request.nodepoolId)) {
2205
2205
  body["nodepool_id"] = request.nodepoolId;
2206
2206
  }
2207
+ if (!$dara.isNull(request.oneTimeToken)) {
2208
+ body["one_time_token"] = request.oneTimeToken;
2209
+ }
2207
2210
  if (!$dara.isNull(request.options)) {
2208
2211
  body["options"] = request.options;
2209
2212
  }
@@ -4265,6 +4268,39 @@ class Client extends openapi_core_1.default {
4265
4268
  let headers = {};
4266
4269
  return await this.listAddonsWithOptions(request, headers, runtime);
4267
4270
  }
4271
+ /**
4272
+ * 获取集群组件实例的资源列表
4273
+ *
4274
+ * @param headers - map
4275
+ * @param runtime - runtime options for this request RuntimeOptions
4276
+ * @returns ListClusterAddonInstanceResourcesResponse
4277
+ */
4278
+ async listClusterAddonInstanceResourcesWithOptions(clusterId, instanceName, headers, runtime) {
4279
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4280
+ headers: headers,
4281
+ });
4282
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4283
+ action: "ListClusterAddonInstanceResources",
4284
+ version: "2015-12-15",
4285
+ protocol: "HTTPS",
4286
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/addon_instances/${$dara.URL.percentEncode(instanceName)}/resources`,
4287
+ method: "GET",
4288
+ authType: "AK",
4289
+ style: "ROA",
4290
+ reqBodyType: "json",
4291
+ bodyType: "json",
4292
+ });
4293
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListClusterAddonInstanceResourcesResponse({}));
4294
+ }
4295
+ /**
4296
+ * 获取集群组件实例的资源列表
4297
+ * @returns ListClusterAddonInstanceResourcesResponse
4298
+ */
4299
+ async listClusterAddonInstanceResources(clusterId, instanceName) {
4300
+ let runtime = new $dara.RuntimeOptions({});
4301
+ let headers = {};
4302
+ return await this.listClusterAddonInstanceResourcesWithOptions(clusterId, instanceName, headers, runtime);
4303
+ }
4268
4304
  /**
4269
4305
  * Queries the component instances that are running in the specified cluster and the information about the component instances. The information includes the component version and status.
4270
4306
  *