@alicloud/eas20210701 2.0.1 → 2.0.2

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
@@ -153,6 +153,7 @@ export declare class Service extends $tea.Model {
153
153
  role?: string;
154
154
  roleAttrs?: string;
155
155
  runningInstance?: number;
156
+ safetyLock?: string;
156
157
  serviceConfig?: string;
157
158
  serviceGroup?: string;
158
159
  serviceId?: string;
@@ -1254,7 +1255,7 @@ export declare class DescribeServiceMirrorResponse extends $tea.Model {
1254
1255
  });
1255
1256
  }
1256
1257
  export declare class ListBenchmarkTaskRequest extends $tea.Model {
1257
- fileter?: string;
1258
+ filter?: string;
1258
1259
  pageNumber?: string;
1259
1260
  pageSize?: string;
1260
1261
  serviceName?: string;
@@ -1393,6 +1394,8 @@ export declare class ListResourceInstanceWorkerResponse extends $tea.Model {
1393
1394
  }
1394
1395
  export declare class ListResourceInstancesRequest extends $tea.Model {
1395
1396
  chargeType?: string;
1397
+ instanceId?: string;
1398
+ instanceName?: string;
1396
1399
  pageNumber?: number;
1397
1400
  pageSize?: number;
1398
1401
  static names(): {
@@ -1485,6 +1488,8 @@ export declare class ListResourceServicesResponse extends $tea.Model {
1485
1488
  export declare class ListResourcesRequest extends $tea.Model {
1486
1489
  pageNumber?: number;
1487
1490
  pageSize?: number;
1491
+ resourceId?: string;
1492
+ resourceName?: string;
1488
1493
  static names(): {
1489
1494
  [key: string]: string;
1490
1495
  };
@@ -1951,6 +1956,48 @@ export declare class UpdateResourceDLinkResponse extends $tea.Model {
1951
1956
  [key: string]: any;
1952
1957
  });
1953
1958
  }
1959
+ export declare class UpdateResourceInstanceRequest extends $tea.Model {
1960
+ action?: string;
1961
+ static names(): {
1962
+ [key: string]: string;
1963
+ };
1964
+ static types(): {
1965
+ [key: string]: any;
1966
+ };
1967
+ constructor(map?: {
1968
+ [key: string]: any;
1969
+ });
1970
+ }
1971
+ export declare class UpdateResourceInstanceResponseBody extends $tea.Model {
1972
+ instanceId?: string;
1973
+ requestId?: string;
1974
+ resourceId?: string;
1975
+ static names(): {
1976
+ [key: string]: string;
1977
+ };
1978
+ static types(): {
1979
+ [key: string]: any;
1980
+ };
1981
+ constructor(map?: {
1982
+ [key: string]: any;
1983
+ });
1984
+ }
1985
+ export declare class UpdateResourceInstanceResponse extends $tea.Model {
1986
+ headers: {
1987
+ [key: string]: string;
1988
+ };
1989
+ statusCode: number;
1990
+ body: UpdateResourceInstanceResponseBody;
1991
+ static names(): {
1992
+ [key: string]: string;
1993
+ };
1994
+ static types(): {
1995
+ [key: string]: any;
1996
+ };
1997
+ constructor(map?: {
1998
+ [key: string]: any;
1999
+ });
2000
+ }
1954
2001
  export declare class UpdateServiceRequest extends $tea.Model {
1955
2002
  body?: string;
1956
2003
  static names(): {
@@ -2119,6 +2166,47 @@ export declare class UpdateServiceMirrorResponse extends $tea.Model {
2119
2166
  [key: string]: any;
2120
2167
  });
2121
2168
  }
2169
+ export declare class UpdateServiceSafetyLockRequest extends $tea.Model {
2170
+ lock?: string;
2171
+ static names(): {
2172
+ [key: string]: string;
2173
+ };
2174
+ static types(): {
2175
+ [key: string]: any;
2176
+ };
2177
+ constructor(map?: {
2178
+ [key: string]: any;
2179
+ });
2180
+ }
2181
+ export declare class UpdateServiceSafetyLockResponseBody extends $tea.Model {
2182
+ message?: string;
2183
+ requestId?: string;
2184
+ static names(): {
2185
+ [key: string]: string;
2186
+ };
2187
+ static types(): {
2188
+ [key: string]: any;
2189
+ };
2190
+ constructor(map?: {
2191
+ [key: string]: any;
2192
+ });
2193
+ }
2194
+ export declare class UpdateServiceSafetyLockResponse extends $tea.Model {
2195
+ headers: {
2196
+ [key: string]: string;
2197
+ };
2198
+ statusCode: number;
2199
+ body: UpdateServiceSafetyLockResponseBody;
2200
+ static names(): {
2201
+ [key: string]: string;
2202
+ };
2203
+ static types(): {
2204
+ [key: string]: any;
2205
+ };
2206
+ constructor(map?: {
2207
+ [key: string]: any;
2208
+ });
2209
+ }
2122
2210
  export declare class UpdateServiceVersionRequest extends $tea.Model {
2123
2211
  version?: number;
2124
2212
  static names(): {
@@ -2506,6 +2594,10 @@ export default class Client extends OpenApi {
2506
2594
  updateResourceDLinkWithOptions(ClusterId: string, ResourceId: string, request: UpdateResourceDLinkRequest, headers: {
2507
2595
  [key: string]: string;
2508
2596
  }, runtime: $Util.RuntimeOptions): Promise<UpdateResourceDLinkResponse>;
2597
+ updateResourceInstance(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest): Promise<UpdateResourceInstanceResponse>;
2598
+ updateResourceInstanceWithOptions(ClusterId: string, ResourceId: string, InstanceId: string, request: UpdateResourceInstanceRequest, headers: {
2599
+ [key: string]: string;
2600
+ }, runtime: $Util.RuntimeOptions): Promise<UpdateResourceInstanceResponse>;
2509
2601
  updateService(ClusterId: string, ServiceName: string, request: UpdateServiceRequest): Promise<UpdateServiceResponse>;
2510
2602
  updateServiceWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceRequest, headers: {
2511
2603
  [key: string]: string;
@@ -2522,6 +2614,10 @@ export default class Client extends OpenApi {
2522
2614
  updateServiceMirrorWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceMirrorRequest, headers: {
2523
2615
  [key: string]: string;
2524
2616
  }, runtime: $Util.RuntimeOptions): Promise<UpdateServiceMirrorResponse>;
2617
+ updateServiceSafetyLock(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest): Promise<UpdateServiceSafetyLockResponse>;
2618
+ updateServiceSafetyLockWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceSafetyLockRequest, headers: {
2619
+ [key: string]: string;
2620
+ }, runtime: $Util.RuntimeOptions): Promise<UpdateServiceSafetyLockResponse>;
2525
2621
  updateServiceVersion(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest): Promise<UpdateServiceVersionResponse>;
2526
2622
  updateServiceVersionWithOptions(ClusterId: string, ServiceName: string, request: UpdateServiceVersionRequest, headers: {
2527
2623
  [key: string]: string;
package/dist/client.js CHANGED
@@ -249,6 +249,7 @@ class Service extends $tea.Model {
249
249
  role: 'Role',
250
250
  roleAttrs: 'RoleAttrs',
251
251
  runningInstance: 'RunningInstance',
252
+ safetyLock: 'SafetyLock',
252
253
  serviceConfig: 'ServiceConfig',
253
254
  serviceGroup: 'ServiceGroup',
254
255
  serviceId: 'ServiceId',
@@ -287,6 +288,7 @@ class Service extends $tea.Model {
287
288
  role: 'string',
288
289
  roleAttrs: 'string',
289
290
  runningInstance: 'number',
291
+ safetyLock: 'string',
290
292
  serviceConfig: 'string',
291
293
  serviceGroup: 'string',
292
294
  serviceId: 'string',
@@ -1775,7 +1777,7 @@ class ListBenchmarkTaskRequest extends $tea.Model {
1775
1777
  }
1776
1778
  static names() {
1777
1779
  return {
1778
- fileter: 'Fileter',
1780
+ filter: 'Filter',
1779
1781
  pageNumber: 'PageNumber',
1780
1782
  pageSize: 'PageSize',
1781
1783
  serviceName: 'ServiceName',
@@ -1783,7 +1785,7 @@ class ListBenchmarkTaskRequest extends $tea.Model {
1783
1785
  }
1784
1786
  static types() {
1785
1787
  return {
1786
- fileter: 'string',
1788
+ filter: 'string',
1787
1789
  pageNumber: 'string',
1788
1790
  pageSize: 'string',
1789
1791
  serviceName: 'string',
@@ -1968,6 +1970,8 @@ class ListResourceInstancesRequest extends $tea.Model {
1968
1970
  static names() {
1969
1971
  return {
1970
1972
  chargeType: 'ChargeType',
1973
+ instanceId: 'InstanceId',
1974
+ instanceName: 'InstanceName',
1971
1975
  pageNumber: 'PageNumber',
1972
1976
  pageSize: 'PageSize',
1973
1977
  };
@@ -1975,6 +1979,8 @@ class ListResourceInstancesRequest extends $tea.Model {
1975
1979
  static types() {
1976
1980
  return {
1977
1981
  chargeType: 'string',
1982
+ instanceId: 'string',
1983
+ instanceName: 'string',
1978
1984
  pageNumber: 'number',
1979
1985
  pageSize: 'number',
1980
1986
  };
@@ -2095,12 +2101,16 @@ class ListResourcesRequest extends $tea.Model {
2095
2101
  return {
2096
2102
  pageNumber: 'PageNumber',
2097
2103
  pageSize: 'PageSize',
2104
+ resourceId: 'ResourceId',
2105
+ resourceName: 'ResourceName',
2098
2106
  };
2099
2107
  }
2100
2108
  static types() {
2101
2109
  return {
2102
2110
  pageNumber: 'number',
2103
2111
  pageSize: 'number',
2112
+ resourceId: 'string',
2113
+ resourceName: 'string',
2104
2114
  };
2105
2115
  }
2106
2116
  }
@@ -2721,6 +2731,62 @@ class UpdateResourceDLinkResponse extends $tea.Model {
2721
2731
  }
2722
2732
  }
2723
2733
  exports.UpdateResourceDLinkResponse = UpdateResourceDLinkResponse;
2734
+ class UpdateResourceInstanceRequest extends $tea.Model {
2735
+ constructor(map) {
2736
+ super(map);
2737
+ }
2738
+ static names() {
2739
+ return {
2740
+ action: 'Action',
2741
+ };
2742
+ }
2743
+ static types() {
2744
+ return {
2745
+ action: 'string',
2746
+ };
2747
+ }
2748
+ }
2749
+ exports.UpdateResourceInstanceRequest = UpdateResourceInstanceRequest;
2750
+ class UpdateResourceInstanceResponseBody extends $tea.Model {
2751
+ constructor(map) {
2752
+ super(map);
2753
+ }
2754
+ static names() {
2755
+ return {
2756
+ instanceId: 'InstanceId',
2757
+ requestId: 'RequestId',
2758
+ resourceId: 'ResourceId',
2759
+ };
2760
+ }
2761
+ static types() {
2762
+ return {
2763
+ instanceId: 'string',
2764
+ requestId: 'string',
2765
+ resourceId: 'string',
2766
+ };
2767
+ }
2768
+ }
2769
+ exports.UpdateResourceInstanceResponseBody = UpdateResourceInstanceResponseBody;
2770
+ class UpdateResourceInstanceResponse extends $tea.Model {
2771
+ constructor(map) {
2772
+ super(map);
2773
+ }
2774
+ static names() {
2775
+ return {
2776
+ headers: 'headers',
2777
+ statusCode: 'statusCode',
2778
+ body: 'body',
2779
+ };
2780
+ }
2781
+ static types() {
2782
+ return {
2783
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2784
+ statusCode: 'number',
2785
+ body: UpdateResourceInstanceResponseBody,
2786
+ };
2787
+ }
2788
+ }
2789
+ exports.UpdateResourceInstanceResponse = UpdateResourceInstanceResponse;
2724
2790
  class UpdateServiceRequest extends $tea.Model {
2725
2791
  constructor(map) {
2726
2792
  super(map);
@@ -2945,6 +3011,60 @@ class UpdateServiceMirrorResponse extends $tea.Model {
2945
3011
  }
2946
3012
  }
2947
3013
  exports.UpdateServiceMirrorResponse = UpdateServiceMirrorResponse;
3014
+ class UpdateServiceSafetyLockRequest extends $tea.Model {
3015
+ constructor(map) {
3016
+ super(map);
3017
+ }
3018
+ static names() {
3019
+ return {
3020
+ lock: 'Lock',
3021
+ };
3022
+ }
3023
+ static types() {
3024
+ return {
3025
+ lock: 'string',
3026
+ };
3027
+ }
3028
+ }
3029
+ exports.UpdateServiceSafetyLockRequest = UpdateServiceSafetyLockRequest;
3030
+ class UpdateServiceSafetyLockResponseBody extends $tea.Model {
3031
+ constructor(map) {
3032
+ super(map);
3033
+ }
3034
+ static names() {
3035
+ return {
3036
+ message: 'Message',
3037
+ requestId: 'RequestId',
3038
+ };
3039
+ }
3040
+ static types() {
3041
+ return {
3042
+ message: 'string',
3043
+ requestId: 'string',
3044
+ };
3045
+ }
3046
+ }
3047
+ exports.UpdateServiceSafetyLockResponseBody = UpdateServiceSafetyLockResponseBody;
3048
+ class UpdateServiceSafetyLockResponse extends $tea.Model {
3049
+ constructor(map) {
3050
+ super(map);
3051
+ }
3052
+ static names() {
3053
+ return {
3054
+ headers: 'headers',
3055
+ statusCode: 'statusCode',
3056
+ body: 'body',
3057
+ };
3058
+ }
3059
+ static types() {
3060
+ return {
3061
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3062
+ statusCode: 'number',
3063
+ body: UpdateServiceSafetyLockResponseBody,
3064
+ };
3065
+ }
3066
+ }
3067
+ exports.UpdateServiceSafetyLockResponse = UpdateServiceSafetyLockResponse;
2948
3068
  class UpdateServiceVersionRequest extends $tea.Model {
2949
3069
  constructor(map) {
2950
3070
  super(map);
@@ -4059,8 +4179,8 @@ class Client extends openapi_client_1.default {
4059
4179
  async listBenchmarkTaskWithOptions(request, headers, runtime) {
4060
4180
  tea_util_1.default.validateModel(request);
4061
4181
  let query = {};
4062
- if (!tea_util_1.default.isUnset(request.fileter)) {
4063
- query["Fileter"] = request.fileter;
4182
+ if (!tea_util_1.default.isUnset(request.filter)) {
4183
+ query["Filter"] = request.filter;
4064
4184
  }
4065
4185
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
4066
4186
  query["PageNumber"] = request.pageNumber;
@@ -4164,6 +4284,12 @@ class Client extends openapi_client_1.default {
4164
4284
  if (!tea_util_1.default.isUnset(request.chargeType)) {
4165
4285
  query["ChargeType"] = request.chargeType;
4166
4286
  }
4287
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
4288
+ query["InstanceId"] = request.instanceId;
4289
+ }
4290
+ if (!tea_util_1.default.isUnset(request.instanceName)) {
4291
+ query["InstanceName"] = request.instanceName;
4292
+ }
4167
4293
  if (!tea_util_1.default.isUnset(request.pageNumber)) {
4168
4294
  query["PageNumber"] = request.pageNumber;
4169
4295
  }
@@ -4232,6 +4358,12 @@ class Client extends openapi_client_1.default {
4232
4358
  if (!tea_util_1.default.isUnset(request.pageSize)) {
4233
4359
  query["PageSize"] = request.pageSize;
4234
4360
  }
4361
+ if (!tea_util_1.default.isUnset(request.resourceId)) {
4362
+ query["ResourceId"] = request.resourceId;
4363
+ }
4364
+ if (!tea_util_1.default.isUnset(request.resourceName)) {
4365
+ query["ResourceName"] = request.resourceName;
4366
+ }
4235
4367
  let req = new $OpenApi.OpenApiRequest({
4236
4368
  headers: headers,
4237
4369
  query: openapi_util_1.default.query(query),
@@ -4562,6 +4694,34 @@ class Client extends openapi_client_1.default {
4562
4694
  });
4563
4695
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceDLinkResponse({}));
4564
4696
  }
4697
+ async updateResourceInstance(ClusterId, ResourceId, InstanceId, request) {
4698
+ let runtime = new $Util.RuntimeOptions({});
4699
+ let headers = {};
4700
+ return await this.updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime);
4701
+ }
4702
+ async updateResourceInstanceWithOptions(ClusterId, ResourceId, InstanceId, request, headers, runtime) {
4703
+ tea_util_1.default.validateModel(request);
4704
+ let body = {};
4705
+ if (!tea_util_1.default.isUnset(request.action)) {
4706
+ body["Action"] = request.action;
4707
+ }
4708
+ let req = new $OpenApi.OpenApiRequest({
4709
+ headers: headers,
4710
+ body: openapi_util_1.default.parseToMap(body),
4711
+ });
4712
+ let params = new $OpenApi.Params({
4713
+ action: "UpdateResourceInstance",
4714
+ version: "2021-07-01",
4715
+ protocol: "HTTPS",
4716
+ pathname: `/api/v2/resources/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ResourceId)}/instances/${openapi_util_1.default.getEncodeParam(InstanceId)}`,
4717
+ method: "PUT",
4718
+ authType: "AK",
4719
+ style: "ROA",
4720
+ reqBodyType: "json",
4721
+ bodyType: "json",
4722
+ });
4723
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateResourceInstanceResponse({}));
4724
+ }
4565
4725
  async updateService(ClusterId, ServiceName, request) {
4566
4726
  let runtime = new $Util.RuntimeOptions({});
4567
4727
  let headers = {};
@@ -4682,6 +4842,34 @@ class Client extends openapi_client_1.default {
4682
4842
  });
4683
4843
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceMirrorResponse({}));
4684
4844
  }
4845
+ async updateServiceSafetyLock(ClusterId, ServiceName, request) {
4846
+ let runtime = new $Util.RuntimeOptions({});
4847
+ let headers = {};
4848
+ return await this.updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime);
4849
+ }
4850
+ async updateServiceSafetyLockWithOptions(ClusterId, ServiceName, request, headers, runtime) {
4851
+ tea_util_1.default.validateModel(request);
4852
+ let body = {};
4853
+ if (!tea_util_1.default.isUnset(request.lock)) {
4854
+ body["Lock"] = request.lock;
4855
+ }
4856
+ let req = new $OpenApi.OpenApiRequest({
4857
+ headers: headers,
4858
+ body: openapi_util_1.default.parseToMap(body),
4859
+ });
4860
+ let params = new $OpenApi.Params({
4861
+ action: "UpdateServiceSafetyLock",
4862
+ version: "2021-07-01",
4863
+ protocol: "HTTPS",
4864
+ pathname: `/api/v2/services/${openapi_util_1.default.getEncodeParam(ClusterId)}/${openapi_util_1.default.getEncodeParam(ServiceName)}/lock`,
4865
+ method: "PUT",
4866
+ authType: "AK",
4867
+ style: "ROA",
4868
+ reqBodyType: "json",
4869
+ bodyType: "json",
4870
+ });
4871
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateServiceSafetyLockResponse({}));
4872
+ }
4685
4873
  async updateServiceVersion(ClusterId, ServiceName, request) {
4686
4874
  let runtime = new $Util.RuntimeOptions({});
4687
4875
  let headers = {};