@alicloud/eas20210701 4.0.2 → 4.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/eas20210701",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -12,16 +12,16 @@
12
12
  "author": "Alibaba Cloud SDK",
13
13
  "license": "Apache-2.0",
14
14
  "devDependencies": {
15
- "@types/node": "^12.12.26",
15
+ "@types/node": "^16.0.0",
16
16
  "nyc": "^15.0.0",
17
17
  "source-map-support": "^0.5.16",
18
- "ts-node": "^8.6.2",
19
- "typescript": "^3.7.5"
18
+ "ts-node": "^10.0.0",
19
+ "typescript": "^5"
20
20
  },
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.7",
24
+ "@alicloud/openapi-client": "^0.4.8",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
@@ -29,4 +29,4 @@
29
29
  "dist",
30
30
  "src"
31
31
  ]
32
- }
32
+ }
package/src/client.ts CHANGED
@@ -516,6 +516,84 @@ export class Service extends $tea.Model {
516
516
  }
517
517
  }
518
518
 
519
+ export class CloneServiceRequest extends $tea.Model {
520
+ body?: string;
521
+ static names(): { [key: string]: string } {
522
+ return {
523
+ body: 'body',
524
+ };
525
+ }
526
+
527
+ static types(): { [key: string]: any } {
528
+ return {
529
+ body: 'string',
530
+ };
531
+ }
532
+
533
+ constructor(map?: { [key: string]: any }) {
534
+ super(map);
535
+ }
536
+ }
537
+
538
+ export class CloneServiceResponseBody extends $tea.Model {
539
+ internetEndpoint?: string;
540
+ intranetEndpoint?: string;
541
+ requestId?: string;
542
+ serviceId?: string;
543
+ serviceName?: string;
544
+ status?: string;
545
+ static names(): { [key: string]: string } {
546
+ return {
547
+ internetEndpoint: 'InternetEndpoint',
548
+ intranetEndpoint: 'IntranetEndpoint',
549
+ requestId: 'RequestId',
550
+ serviceId: 'ServiceId',
551
+ serviceName: 'ServiceName',
552
+ status: 'Status',
553
+ };
554
+ }
555
+
556
+ static types(): { [key: string]: any } {
557
+ return {
558
+ internetEndpoint: 'string',
559
+ intranetEndpoint: 'string',
560
+ requestId: 'string',
561
+ serviceId: 'string',
562
+ serviceName: 'string',
563
+ status: 'string',
564
+ };
565
+ }
566
+
567
+ constructor(map?: { [key: string]: any }) {
568
+ super(map);
569
+ }
570
+ }
571
+
572
+ export class CloneServiceResponse extends $tea.Model {
573
+ headers?: { [key: string]: string };
574
+ statusCode?: number;
575
+ body?: CloneServiceResponseBody;
576
+ static names(): { [key: string]: string } {
577
+ return {
578
+ headers: 'headers',
579
+ statusCode: 'statusCode',
580
+ body: 'body',
581
+ };
582
+ }
583
+
584
+ static types(): { [key: string]: any } {
585
+ return {
586
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
587
+ statusCode: 'number',
588
+ body: CloneServiceResponseBody,
589
+ };
590
+ }
591
+
592
+ constructor(map?: { [key: string]: any }) {
593
+ super(map);
594
+ }
595
+ }
596
+
519
597
  export class CommitServiceResponseBody extends $tea.Model {
520
598
  message?: string;
521
599
  requestId?: string;
@@ -6256,6 +6334,32 @@ export default class Client extends OpenApi {
6256
6334
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
6257
6335
  }
6258
6336
 
6337
+ async cloneServiceWithOptions(ClusterId: string, ServiceName: string, request: CloneServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CloneServiceResponse> {
6338
+ Util.validateModel(request);
6339
+ let req = new $OpenApi.OpenApiRequest({
6340
+ headers: headers,
6341
+ body: request.body,
6342
+ });
6343
+ let params = new $OpenApi.Params({
6344
+ action: "CloneService",
6345
+ version: "2021-07-01",
6346
+ protocol: "HTTPS",
6347
+ pathname: `/api/v2/services/${OpenApiUtil.getEncodeParam(ClusterId)}/${OpenApiUtil.getEncodeParam(ServiceName)}/clone`,
6348
+ method: "POST",
6349
+ authType: "AK",
6350
+ style: "ROA",
6351
+ reqBodyType: "json",
6352
+ bodyType: "json",
6353
+ });
6354
+ return $tea.cast<CloneServiceResponse>(await this.callApi(params, req, runtime), new CloneServiceResponse({}));
6355
+ }
6356
+
6357
+ async cloneService(ClusterId: string, ServiceName: string, request: CloneServiceRequest): Promise<CloneServiceResponse> {
6358
+ let runtime = new $Util.RuntimeOptions({ });
6359
+ let headers : {[key: string ]: string} = { };
6360
+ return await this.cloneServiceWithOptions(ClusterId, ServiceName, request, headers, runtime);
6361
+ }
6362
+
6259
6363
  async commitServiceWithOptions(ClusterId: string, ServiceName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CommitServiceResponse> {
6260
6364
  let req = new $OpenApi.OpenApiRequest({
6261
6365
  headers: headers,
@@ -6451,6 +6555,14 @@ export default class Client extends OpenApi {
6451
6555
  return await this.createGatewayIntranetLinkedVpcWithOptions(ClusterId, GatewayId, request, headers, runtime);
6452
6556
  }
6453
6557
 
6558
+ /**
6559
+ * **Before you call this operation, make sure that you are familiar with the [billing](~~144261~~) of Elastic Algorithm Service (EAS).
6560
+ *
6561
+ * @param request CreateResourceRequest
6562
+ * @param headers map
6563
+ * @param runtime runtime options for this request RuntimeOptions
6564
+ * @return CreateResourceResponse
6565
+ */
6454
6566
  async createResourceWithOptions(request: CreateResourceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateResourceResponse> {
6455
6567
  Util.validateModel(request);
6456
6568
  let body : {[key: string ]: any} = { };
@@ -6504,6 +6616,12 @@ export default class Client extends OpenApi {
6504
6616
  return $tea.cast<CreateResourceResponse>(await this.callApi(params, req, runtime), new CreateResourceResponse({}));
6505
6617
  }
6506
6618
 
6619
+ /**
6620
+ * **Before you call this operation, make sure that you are familiar with the [billing](~~144261~~) of Elastic Algorithm Service (EAS).
6621
+ *
6622
+ * @param request CreateResourceRequest
6623
+ * @return CreateResourceResponse
6624
+ */
6507
6625
  async createResource(request: CreateResourceRequest): Promise<CreateResourceResponse> {
6508
6626
  let runtime = new $Util.RuntimeOptions({ });
6509
6627
  let headers : {[key: string ]: string} = { };