@alicloud/eas20210701 6.6.1 → 7.0.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 +72 -100
- package/dist/client.js +129 -13
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +152 -106
package/dist/client.d.ts
CHANGED
|
@@ -537,60 +537,11 @@ export declare class DeleteGatewayIntranetLinkedVpcPeerRequestPeerVpcs extends $
|
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
export declare class DescribeGroupEndpointsResponseBodyEndpoints extends $dara.Model {
|
|
540
|
-
/**
|
|
541
|
-
* @remarks
|
|
542
|
-
* The backend access ID, which varies based on the value of the EndpointType parameter.
|
|
543
|
-
*
|
|
544
|
-
* * If you set EndpointType to DefaultGateway, the value of this parameter is default.
|
|
545
|
-
* * If you set EndpointType to PrivateGateway, the value of this parameter is the ID of the dedicated gateway.
|
|
546
|
-
* * If you set EndpointType to Nlb, the value of this parameter is the ID of the NLB instance.
|
|
547
|
-
* * If you set EndpointType to Nacos, the value of this parameter is the ID of the Nacos instance.
|
|
548
|
-
*
|
|
549
|
-
* @example
|
|
550
|
-
* gw-26340kjxjx8l3r****
|
|
551
|
-
*/
|
|
552
540
|
backendId?: string;
|
|
553
|
-
/**
|
|
554
|
-
* @remarks
|
|
555
|
-
* The service endpoint type. Valid values:
|
|
556
|
-
*
|
|
557
|
-
* * DefaultGateway: the shared gateway.
|
|
558
|
-
* * PrivateGateway: the dedicated gateway.
|
|
559
|
-
* * Nlb: Associate the service with the Network Load Balancer (NLB) instance.
|
|
560
|
-
* * Nacos: Associate the service with the Nacos instance.
|
|
561
|
-
*
|
|
562
|
-
* @example
|
|
563
|
-
* PrivateGateway
|
|
564
|
-
*/
|
|
565
541
|
endpointType?: string;
|
|
566
|
-
/**
|
|
567
|
-
* @remarks
|
|
568
|
-
* The public endpoints.
|
|
569
|
-
*/
|
|
570
542
|
internetEndpoints?: string[];
|
|
571
|
-
/**
|
|
572
|
-
* @remarks
|
|
573
|
-
* The internal endpoints.
|
|
574
|
-
*/
|
|
575
543
|
intranetEndpoints?: string[];
|
|
576
|
-
/**
|
|
577
|
-
* @remarks
|
|
578
|
-
* The path type. Valid values:
|
|
579
|
-
*
|
|
580
|
-
* * Group: the path of the service group.
|
|
581
|
-
* * Service: the path of the service.
|
|
582
|
-
*
|
|
583
|
-
* @example
|
|
584
|
-
* Group
|
|
585
|
-
*/
|
|
586
544
|
pathType?: string;
|
|
587
|
-
/**
|
|
588
|
-
* @remarks
|
|
589
|
-
* The port number. This parameter takes effect only when you associate the service with an NLB or Nacos instance.
|
|
590
|
-
*
|
|
591
|
-
* @example
|
|
592
|
-
* 9090
|
|
593
|
-
*/
|
|
594
545
|
port?: number;
|
|
595
546
|
static names(): {
|
|
596
547
|
[key: string]: string;
|
|
@@ -740,6 +691,24 @@ export declare class DescribeMachineSpecResponseBodyTypes extends $dara.Model {
|
|
|
740
691
|
[key: string]: any;
|
|
741
692
|
});
|
|
742
693
|
}
|
|
694
|
+
export declare class DescribeRegionsResponseBodyRegions extends $dara.Model {
|
|
695
|
+
/**
|
|
696
|
+
* @example
|
|
697
|
+
* cn-shanghai
|
|
698
|
+
*/
|
|
699
|
+
regionId?: string;
|
|
700
|
+
regionName?: string;
|
|
701
|
+
static names(): {
|
|
702
|
+
[key: string]: string;
|
|
703
|
+
};
|
|
704
|
+
static types(): {
|
|
705
|
+
[key: string]: any;
|
|
706
|
+
};
|
|
707
|
+
validate(): void;
|
|
708
|
+
constructor(map?: {
|
|
709
|
+
[key: string]: any;
|
|
710
|
+
});
|
|
711
|
+
}
|
|
743
712
|
export declare class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $dara.Model {
|
|
744
713
|
/**
|
|
745
714
|
* @remarks
|
|
@@ -920,60 +889,11 @@ export declare class DescribeServiceDiagnosisResponseBodyDiagnosisList extends $
|
|
|
920
889
|
});
|
|
921
890
|
}
|
|
922
891
|
export declare class DescribeServiceEndpointsResponseBodyEndpoints extends $dara.Model {
|
|
923
|
-
/**
|
|
924
|
-
* @remarks
|
|
925
|
-
* The backend access ID, which varies based on the value of the EndpointType parameter.
|
|
926
|
-
*
|
|
927
|
-
* * If you set EndpointType to DefaultGateway, the value of this parameter is default.
|
|
928
|
-
* * If you set EndpointType to PrivateGateway, the value of this parameter is the ID of the dedicated gateway.
|
|
929
|
-
* * If you set EndpointType to Nlb, the value of this parameter is the ID of the NLB instance.
|
|
930
|
-
* * If you set EndpointType to Nacos, the value of this parameter is the ID of the Nacos instance.
|
|
931
|
-
*
|
|
932
|
-
* @example
|
|
933
|
-
* nlb-5q4sp7u6oorkha****
|
|
934
|
-
*/
|
|
935
892
|
backendId?: string;
|
|
936
|
-
/**
|
|
937
|
-
* @remarks
|
|
938
|
-
* The service endpoint type. Valid values:
|
|
939
|
-
*
|
|
940
|
-
* * DefaultGateway: the shared gateway.
|
|
941
|
-
* * PrivateGateway: the dedicated gateway.
|
|
942
|
-
* * Nlb: Associate the service with the Network Load Balancer (NLB) instance.
|
|
943
|
-
* * Nacos: Associate the service with the Nacos instance.
|
|
944
|
-
*
|
|
945
|
-
* @example
|
|
946
|
-
* Nlb
|
|
947
|
-
*/
|
|
948
893
|
endpointType?: string;
|
|
949
|
-
/**
|
|
950
|
-
* @remarks
|
|
951
|
-
* The public endpoints.
|
|
952
|
-
*/
|
|
953
894
|
internetEndpoints?: string[];
|
|
954
|
-
/**
|
|
955
|
-
* @remarks
|
|
956
|
-
* The internal endpoints.
|
|
957
|
-
*/
|
|
958
895
|
intranetEndpoints?: string[];
|
|
959
|
-
/**
|
|
960
|
-
* @remarks
|
|
961
|
-
* The path type. Valid values:
|
|
962
|
-
*
|
|
963
|
-
* * Group: the path of the service group.
|
|
964
|
-
* * Service: the path of the service.
|
|
965
|
-
*
|
|
966
|
-
* @example
|
|
967
|
-
* Service
|
|
968
|
-
*/
|
|
969
896
|
pathType?: string;
|
|
970
|
-
/**
|
|
971
|
-
* @remarks
|
|
972
|
-
* The port number. This parameter takes effect only when you associate the service with an NLB or Nacos instance.
|
|
973
|
-
*
|
|
974
|
-
* @example
|
|
975
|
-
* 9090
|
|
976
|
-
*/
|
|
977
897
|
port?: number;
|
|
978
898
|
static names(): {
|
|
979
899
|
[key: string]: string;
|
|
@@ -2475,6 +2395,7 @@ export declare class Service extends $dara.Model {
|
|
|
2475
2395
|
createTime?: string;
|
|
2476
2396
|
currentVersion?: number;
|
|
2477
2397
|
extraData?: string;
|
|
2398
|
+
gateway?: string;
|
|
2478
2399
|
gpu?: number;
|
|
2479
2400
|
image?: string;
|
|
2480
2401
|
internetEndpoint?: string;
|
|
@@ -2486,6 +2407,7 @@ export declare class Service extends $dara.Model {
|
|
|
2486
2407
|
namespace?: string;
|
|
2487
2408
|
parentUid?: string;
|
|
2488
2409
|
pendingInstance?: number;
|
|
2410
|
+
quotaId?: string;
|
|
2489
2411
|
reason?: string;
|
|
2490
2412
|
region?: string;
|
|
2491
2413
|
requestId?: string;
|
|
@@ -6178,7 +6100,7 @@ export declare class DescribeGroupEndpointsResponseBody extends $dara.Model {
|
|
|
6178
6100
|
* @remarks
|
|
6179
6101
|
* The endpoints of service groups.
|
|
6180
6102
|
*/
|
|
6181
|
-
endpoints?: DescribeGroupEndpointsResponseBodyEndpoints;
|
|
6103
|
+
endpoints?: DescribeGroupEndpointsResponseBodyEndpoints[];
|
|
6182
6104
|
/**
|
|
6183
6105
|
* @remarks
|
|
6184
6106
|
* The response message.
|
|
@@ -6308,6 +6230,41 @@ export declare class DescribeMachineSpecResponse extends $dara.Model {
|
|
|
6308
6230
|
[key: string]: any;
|
|
6309
6231
|
});
|
|
6310
6232
|
}
|
|
6233
|
+
export declare class DescribeRegionsResponseBody extends $dara.Model {
|
|
6234
|
+
regions?: DescribeRegionsResponseBodyRegions[];
|
|
6235
|
+
/**
|
|
6236
|
+
* @example
|
|
6237
|
+
* 40325405-579C-4D82****
|
|
6238
|
+
*/
|
|
6239
|
+
requestId?: string;
|
|
6240
|
+
static names(): {
|
|
6241
|
+
[key: string]: string;
|
|
6242
|
+
};
|
|
6243
|
+
static types(): {
|
|
6244
|
+
[key: string]: any;
|
|
6245
|
+
};
|
|
6246
|
+
validate(): void;
|
|
6247
|
+
constructor(map?: {
|
|
6248
|
+
[key: string]: any;
|
|
6249
|
+
});
|
|
6250
|
+
}
|
|
6251
|
+
export declare class DescribeRegionsResponse extends $dara.Model {
|
|
6252
|
+
headers?: {
|
|
6253
|
+
[key: string]: string;
|
|
6254
|
+
};
|
|
6255
|
+
statusCode?: number;
|
|
6256
|
+
body?: DescribeRegionsResponseBody;
|
|
6257
|
+
static names(): {
|
|
6258
|
+
[key: string]: string;
|
|
6259
|
+
};
|
|
6260
|
+
static types(): {
|
|
6261
|
+
[key: string]: any;
|
|
6262
|
+
};
|
|
6263
|
+
validate(): void;
|
|
6264
|
+
constructor(map?: {
|
|
6265
|
+
[key: string]: any;
|
|
6266
|
+
});
|
|
6267
|
+
}
|
|
6311
6268
|
export declare class DescribeResourceResponseBody extends $dara.Model {
|
|
6312
6269
|
/**
|
|
6313
6270
|
* @remarks
|
|
@@ -6857,7 +6814,7 @@ export declare class DescribeServiceEndpointsResponseBody extends $dara.Model {
|
|
|
6857
6814
|
* @remarks
|
|
6858
6815
|
* The service endpoints.
|
|
6859
6816
|
*/
|
|
6860
|
-
endpoints?: DescribeServiceEndpointsResponseBodyEndpoints;
|
|
6817
|
+
endpoints?: DescribeServiceEndpointsResponseBodyEndpoints[];
|
|
6861
6818
|
/**
|
|
6862
6819
|
* @remarks
|
|
6863
6820
|
* The returned message.
|
|
@@ -13050,6 +13007,21 @@ export default class Client extends OpenApi {
|
|
|
13050
13007
|
* @returns DescribeMachineSpecResponse
|
|
13051
13008
|
*/
|
|
13052
13009
|
describeMachineSpec(request: DescribeMachineSpecRequest): Promise<DescribeMachineSpecResponse>;
|
|
13010
|
+
/**
|
|
13011
|
+
* 查询可用的地域信息
|
|
13012
|
+
*
|
|
13013
|
+
* @param headers - map
|
|
13014
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13015
|
+
* @returns DescribeRegionsResponse
|
|
13016
|
+
*/
|
|
13017
|
+
describeRegionsWithOptions(headers: {
|
|
13018
|
+
[key: string]: string;
|
|
13019
|
+
}, runtime: $dara.RuntimeOptions): Promise<DescribeRegionsResponse>;
|
|
13020
|
+
/**
|
|
13021
|
+
* 查询可用的地域信息
|
|
13022
|
+
* @returns DescribeRegionsResponse
|
|
13023
|
+
*/
|
|
13024
|
+
describeRegions(): Promise<DescribeRegionsResponse>;
|
|
13053
13025
|
/**
|
|
13054
13026
|
* Queries the information about a resource group.
|
|
13055
13027
|
*
|
package/dist/client.js
CHANGED
|
@@ -36,13 +36,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.UpdateVirtualResourceResponse = exports.UpdateVirtualResourceResponseBody = exports.UpdateVirtualResourceRequest = exports.UpdateServiceVersionResponse = exports.UpdateServiceVersionResponseBody = exports.UpdateServiceVersionRequest = exports.UpdateServiceSafetyLockResponse = exports.UpdateServiceSafetyLockResponseBody = exports.UpdateServiceSafetyLockRequest = exports.UpdateServiceMirrorResponse = exports.UpdateServiceMirrorResponseBody = exports.UpdateServiceMirrorRequest = exports.UpdateServiceLabelResponse = exports.UpdateServiceLabelResponseBody = exports.UpdateServiceLabelRequest = exports.UpdateServiceInstanceResponse = exports.UpdateServiceInstanceResponseBody = exports.UpdateServiceInstanceRequest = exports.UpdateServiceCronScalerResponse = exports.UpdateServiceCronScalerResponseBody = exports.UpdateServiceCronScalerRequest = exports.UpdateServiceAutoScalerResponse = exports.UpdateServiceAutoScalerResponseBody = exports.UpdateServiceAutoScalerRequest = exports.UpdateServiceResponse = exports.UpdateServiceResponseBody = exports.UpdateServiceRequest = void 0;
|
|
39
|
+
exports.UpdateServiceAutoScalerRequestScaleStrategies = exports.UpdateServiceAutoScalerRequestBehavior = exports.UpdateServiceAutoScalerRequestBehaviorScaleUp = exports.UpdateServiceAutoScalerRequestBehaviorScaleDown = exports.UpdateServiceAutoScalerRequestBehaviorOnZero = exports.UpdateResourceRequestSelfManagedResourceOptions = exports.UpdateResourceRequestSelfManagedResourceOptionsNodeTolerations = exports.ListVirtualResourceResponseBodyVirtualResources = exports.ListTenantAddonsResponseBodyAddons = exports.ListServiceVersionsResponseBodyVersions = exports.ListGatewayIntranetLinkedVpcPeerResponseBodyPeerVpcList = exports.ListGatewayIntranetLinkedVpcPeerResponseBodyPeerVpcListPeerVpcs = exports.ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList = exports.ListGatewayDomainsResponseBodyCustomDomains = exports.ListGatewayResponseBodyGateways = exports.ListBenchmarkTaskResponseBodyTasks = exports.ListAclPolicyResponseBodyIntranetVpcAclPolicyList = exports.ListAclPolicyResponseBodyIntranetVpcAclPolicyListAclPolicyList = exports.ListAclPolicyResponseBodyInternetAclPolicyList = exports.ListAclPolicyResponseBodyInternetAclPolicyListAclPolicyList = exports.DetachGatewayDomainRequestCustomDomain = exports.DescribeVirtualResourceResponseBodyResources = exports.DescribeSpotDiscountHistoryResponseBodySpotDiscounts = exports.DescribeServiceInstanceDiagnosisResponseBodyDiagnosis = exports.DescribeServiceEventResponseBodyEvents = exports.DescribeServiceEndpointsResponseBodyEndpoints = exports.DescribeServiceDiagnosisResponseBodyDiagnosisList = exports.DescribeServiceCronScalerResponseBodyScaleJobs = exports.DescribeServiceAutoScalerResponseBodyScaleStrategies = exports.DescribeServiceAutoScalerResponseBodyCurrentMetrics = exports.DescribeRegionsResponseBodyRegions = exports.DescribeMachineSpecResponseBodyTypes = exports.DescribeMachineSpecResponseBodyInstanceMetas = exports.DescribeGroupEndpointsResponseBodyEndpoints = exports.DeleteGatewayIntranetLinkedVpcPeerRequestPeerVpcs = exports.DeleteAclPolicyRequestAclPolicyList = exports.CreateVirtualResourceRequestResources = exports.CreateServiceCronScalerRequestScaleJobs = exports.CreateServiceAutoScalerRequestScaleStrategies = exports.CreateServiceAutoScalerRequestBehavior = exports.CreateServiceAutoScalerRequestBehaviorScaleUp = exports.CreateServiceAutoScalerRequestBehaviorScaleDown = exports.CreateServiceAutoScalerRequestBehaviorOnZero = exports.CreateResourceRequestSelfManagedResourceOptions = exports.CreateResourceRequestSelfManagedResourceOptionsNodeTolerations = exports.CreateGatewayIntranetLinkedVpcPeerRequestPeerVpcs = exports.CreateAclPolicyRequestAclPolicyList = exports.AttachGatewayDomainRequestCustomDomain = exports.ServiceLabels = exports.ResourceInstanceLabels = void 0;
|
|
40
|
+
exports.CreateServiceShrinkRequest = exports.CreateServiceRequest = exports.CreateResourceLogResponse = exports.CreateResourceLogResponseBody = exports.CreateResourceLogRequest = exports.CreateResourceInstancesResponse = exports.CreateResourceInstancesResponseBody = exports.CreateResourceInstancesRequest = exports.CreateResourceResponse = exports.CreateResourceResponseBody = exports.CreateResourceRequest = exports.CreateGatewayIntranetLinkedVpcPeerResponse = exports.CreateGatewayIntranetLinkedVpcPeerResponseBody = exports.CreateGatewayIntranetLinkedVpcPeerShrinkRequest = exports.CreateGatewayIntranetLinkedVpcPeerRequest = exports.CreateGatewayIntranetLinkedVpcResponse = exports.CreateGatewayIntranetLinkedVpcResponseBody = exports.CreateGatewayIntranetLinkedVpcRequest = exports.CreateGatewayResponse = exports.CreateGatewayResponseBody = exports.CreateGatewayRequest = exports.CreateBenchmarkTaskResponse = exports.CreateBenchmarkTaskResponseBody = exports.CreateBenchmarkTaskRequest = exports.CreateAppServiceResponse = exports.CreateAppServiceResponseBody = exports.CreateAppServiceRequest = exports.CreateAclPolicyResponse = exports.CreateAclPolicyResponseBody = exports.CreateAclPolicyShrinkRequest = exports.CreateAclPolicyRequest = exports.CommitServiceResponse = exports.CommitServiceResponseBody = exports.CloneServiceResponse = exports.CloneServiceResponseBody = exports.CloneServiceShrinkRequest = exports.CloneServiceRequest = exports.AttachGatewayDomainResponse = exports.AttachGatewayDomainResponseBody = exports.AttachGatewayDomainShrinkRequest = exports.AttachGatewayDomainRequest = exports.Service = exports.ResourceInstanceWorker = exports.ResourceInstance = exports.Resource = exports.Instance = exports.Group = exports.ContainerInfo = exports.UpdateVirtualResourceRequestResources = exports.UpdateServiceCronScalerRequestScaleJobs = void 0;
|
|
41
|
+
exports.DeleteServiceInstancesResponseBody = exports.DeleteServiceInstancesRequest = exports.DeleteServiceCronScalerResponse = exports.DeleteServiceCronScalerResponseBody = exports.DeleteServiceAutoScalerResponse = exports.DeleteServiceAutoScalerResponseBody = exports.DeleteServiceResponse = exports.DeleteServiceResponseBody = exports.DeleteResourceLogResponse = exports.DeleteResourceLogResponseBody = exports.DeleteResourceInstancesResponse = exports.DeleteResourceInstancesResponseBody = exports.DeleteResourceInstancesRequest = exports.DeleteResourceInstanceLabelResponse = exports.DeleteResourceInstanceLabelResponseBody = exports.DeleteResourceInstanceLabelShrinkRequest = exports.DeleteResourceInstanceLabelRequest = exports.DeleteResourceDLinkResponse = exports.DeleteResourceDLinkResponseBody = exports.DeleteResourceResponse = exports.DeleteResourceResponseBody = exports.DeleteGatewayIntranetLinkedVpcPeerResponse = exports.DeleteGatewayIntranetLinkedVpcPeerResponseBody = exports.DeleteGatewayIntranetLinkedVpcPeerShrinkRequest = exports.DeleteGatewayIntranetLinkedVpcPeerRequest = exports.DeleteGatewayIntranetLinkedVpcResponse = exports.DeleteGatewayIntranetLinkedVpcResponseBody = exports.DeleteGatewayIntranetLinkedVpcRequest = exports.DeleteGatewayResponse = exports.DeleteGatewayResponseBody = exports.DeleteBenchmarkTaskResponse = exports.DeleteBenchmarkTaskResponseBody = exports.DeleteAclPolicyResponse = exports.DeleteAclPolicyResponseBody = exports.DeleteAclPolicyShrinkRequest = exports.DeleteAclPolicyRequest = exports.CreateVirtualResourceResponse = exports.CreateVirtualResourceResponseBody = exports.CreateVirtualResourceRequest = exports.CreateServiceMirrorResponse = exports.CreateServiceMirrorResponseBody = exports.CreateServiceMirrorRequest = exports.CreateServiceCronScalerResponse = exports.CreateServiceCronScalerResponseBody = exports.CreateServiceCronScalerRequest = exports.CreateServiceAutoScalerResponse = exports.CreateServiceAutoScalerResponseBody = exports.CreateServiceAutoScalerRequest = exports.CreateServiceResponse = exports.CreateServiceResponseBody = void 0;
|
|
42
|
+
exports.DescribeServiceMirrorResponse = exports.DescribeServiceMirrorResponseBody = exports.DescribeServiceLogResponse = exports.DescribeServiceLogResponseBody = exports.DescribeServiceLogRequest = exports.DescribeServiceInstanceDiagnosisResponse = exports.DescribeServiceInstanceDiagnosisResponseBody = exports.DescribeServiceEventResponse = exports.DescribeServiceEventResponseBody = exports.DescribeServiceEventRequest = exports.DescribeServiceEndpointsResponse = exports.DescribeServiceEndpointsResponseBody = exports.DescribeServiceDiagnosisResponse = exports.DescribeServiceDiagnosisResponseBody = exports.DescribeServiceCronScalerResponse = exports.DescribeServiceCronScalerResponseBody = exports.DescribeServiceAutoScalerResponse = exports.DescribeServiceAutoScalerResponseBody = exports.DescribeServiceResponse = exports.DescribeResourceLogResponse = exports.DescribeResourceLogResponseBody = exports.DescribeResourceDLinkResponse = exports.DescribeResourceDLinkResponseBody = exports.DescribeResourceResponse = exports.DescribeResourceResponseBody = exports.DescribeRegionsResponse = exports.DescribeRegionsResponseBody = exports.DescribeMachineSpecResponse = exports.DescribeMachineSpecResponseBody = exports.DescribeMachineSpecShrinkRequest = exports.DescribeMachineSpecRequest = exports.DescribeGroupEndpointsResponse = exports.DescribeGroupEndpointsResponseBody = exports.DescribeGroupResponse = exports.DescribeGatewayResponse = exports.DescribeGatewayResponseBody = exports.DescribeBenchmarkTaskReportResponse = exports.DescribeBenchmarkTaskReportResponseBody = exports.DescribeBenchmarkTaskReportRequest = exports.DescribeBenchmarkTaskResponse = exports.DescribeBenchmarkTaskResponseBody = exports.DeleteVirtualResourceResponse = exports.DeleteVirtualResourceResponseBody = exports.DeleteServiceMirrorResponse = exports.DeleteServiceMirrorResponseBody = exports.DeleteServiceLabelResponse = exports.DeleteServiceLabelResponseBody = exports.DeleteServiceLabelShrinkRequest = exports.DeleteServiceLabelRequest = exports.DeleteServiceInstancesResponse = void 0;
|
|
43
|
+
exports.ListServiceContainersResponseBody = exports.ListResourcesResponse = exports.ListResourcesResponseBody = exports.ListResourcesRequest = exports.ListResourceServicesResponse = exports.ListResourceServicesResponseBody = exports.ListResourceServicesRequest = exports.ListResourceInstancesResponse = exports.ListResourceInstancesResponseBody = exports.ListResourceInstancesShrinkRequest = exports.ListResourceInstancesRequest = exports.ListResourceInstanceWorkerResponse = exports.ListResourceInstanceWorkerResponseBody = exports.ListResourceInstanceWorkerRequest = exports.ListGroupsResponse = exports.ListGroupsResponseBody = exports.ListGroupsRequest = exports.ListGatewayIntranetSupportedZoneResponse = exports.ListGatewayIntranetSupportedZoneResponseBody = exports.ListGatewayIntranetLinkedVpcPeerResponse = exports.ListGatewayIntranetLinkedVpcPeerResponseBody = exports.ListGatewayIntranetLinkedVpcPeerRequest = exports.ListGatewayIntranetLinkedVpcResponse = exports.ListGatewayIntranetLinkedVpcResponseBody = exports.ListGatewayDomainsResponse = exports.ListGatewayDomainsResponseBody = exports.ListGatewayResponse = exports.ListGatewayResponseBody = exports.ListGatewayRequest = exports.ListBenchmarkTaskResponse = exports.ListBenchmarkTaskResponseBody = exports.ListBenchmarkTaskRequest = exports.ListAclPolicyResponse = exports.ListAclPolicyResponseBody = exports.ListAclPolicyRequest = exports.DevelopServiceResponse = exports.DevelopServiceResponseBody = exports.DevelopServiceRequest = exports.DetachGatewayDomainResponse = exports.DetachGatewayDomainResponseBody = exports.DetachGatewayDomainShrinkRequest = exports.DetachGatewayDomainRequest = exports.DescribeVirtualResourceResponse = exports.DescribeVirtualResourceResponseBody = exports.DescribeSpotDiscountHistoryResponse = exports.DescribeSpotDiscountHistoryResponseBody = exports.DescribeSpotDiscountHistoryRequest = exports.DescribeServiceSignedUrlResponse = exports.DescribeServiceSignedUrlResponseBody = exports.DescribeServiceSignedUrlRequest = void 0;
|
|
44
|
+
exports.UpdateResourceInstanceLabelRequest = exports.UpdateResourceInstanceResponse = exports.UpdateResourceInstanceResponseBody = exports.UpdateResourceInstanceRequest = exports.UpdateResourceDLinkResponse = exports.UpdateResourceDLinkResponseBody = exports.UpdateResourceDLinkRequest = exports.UpdateResourceResponse = exports.UpdateResourceResponseBody = exports.UpdateResourceRequest = exports.UpdateGatewayResponse = exports.UpdateGatewayResponseBody = exports.UpdateGatewayRequest = exports.UpdateBenchmarkTaskResponse = exports.UpdateBenchmarkTaskResponseBody = exports.UpdateBenchmarkTaskRequest = exports.UpdateAppServiceResponse = exports.UpdateAppServiceResponseBody = exports.UpdateAppServiceRequest = exports.StopServiceResponse = exports.StopServiceResponseBody = exports.StopBenchmarkTaskResponse = exports.StopBenchmarkTaskResponseBody = exports.StartServiceResponse = exports.StartServiceResponseBody = exports.StartBenchmarkTaskResponse = exports.StartBenchmarkTaskResponseBody = exports.RestartServiceResponse = exports.RestartServiceResponseBody = exports.ReleaseServiceResponse = exports.ReleaseServiceResponseBody = exports.ReleaseServiceRequest = exports.ReinstallTenantAddonResponse = exports.ReinstallTenantAddonResponseBody = exports.ListVirtualResourceResponse = exports.ListVirtualResourceResponseBody = exports.ListVirtualResourceRequest = exports.ListTenantAddonsResponse = exports.ListTenantAddonsResponseBody = exports.ListServicesResponse = exports.ListServicesResponseBody = exports.ListServicesShrinkRequest = exports.ListServicesRequest = exports.ListServiceVersionsResponse = exports.ListServiceVersionsResponseBody = exports.ListServiceVersionsRequest = exports.ListServiceInstancesResponse = exports.ListServiceInstancesResponseBody = exports.ListServiceInstancesRequest = exports.ListServiceContainersResponse = void 0;
|
|
45
|
+
exports.UpdateVirtualResourceResponse = exports.UpdateVirtualResourceResponseBody = exports.UpdateVirtualResourceRequest = exports.UpdateServiceVersionResponse = exports.UpdateServiceVersionResponseBody = exports.UpdateServiceVersionRequest = exports.UpdateServiceSafetyLockResponse = exports.UpdateServiceSafetyLockResponseBody = exports.UpdateServiceSafetyLockRequest = exports.UpdateServiceMirrorResponse = exports.UpdateServiceMirrorResponseBody = exports.UpdateServiceMirrorRequest = exports.UpdateServiceLabelResponse = exports.UpdateServiceLabelResponseBody = exports.UpdateServiceLabelRequest = exports.UpdateServiceInstanceResponse = exports.UpdateServiceInstanceResponseBody = exports.UpdateServiceInstanceRequest = exports.UpdateServiceCronScalerResponse = exports.UpdateServiceCronScalerResponseBody = exports.UpdateServiceCronScalerRequest = exports.UpdateServiceAutoScalerResponse = exports.UpdateServiceAutoScalerResponseBody = exports.UpdateServiceAutoScalerRequest = exports.UpdateServiceResponse = exports.UpdateServiceResponseBody = exports.UpdateServiceRequest = exports.UpdateResourceInstanceLabelResponse = exports.UpdateResourceInstanceLabelResponseBody = exports.UpdateResourceInstanceLabelShrinkRequest = void 0;
|
|
46
46
|
// This file is auto-generated, don't edit it
|
|
47
47
|
/**
|
|
48
48
|
*/
|
|
@@ -518,6 +518,27 @@ class DescribeMachineSpecResponseBodyTypes extends $dara.Model {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
exports.DescribeMachineSpecResponseBodyTypes = DescribeMachineSpecResponseBodyTypes;
|
|
521
|
+
class DescribeRegionsResponseBodyRegions extends $dara.Model {
|
|
522
|
+
static names() {
|
|
523
|
+
return {
|
|
524
|
+
regionId: 'RegionId',
|
|
525
|
+
regionName: 'RegionName',
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
static types() {
|
|
529
|
+
return {
|
|
530
|
+
regionId: 'string',
|
|
531
|
+
regionName: 'string',
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
validate() {
|
|
535
|
+
super.validate();
|
|
536
|
+
}
|
|
537
|
+
constructor(map) {
|
|
538
|
+
super(map);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
exports.DescribeRegionsResponseBodyRegions = DescribeRegionsResponseBodyRegions;
|
|
521
542
|
class DescribeServiceAutoScalerResponseBodyCurrentMetrics extends $dara.Model {
|
|
522
543
|
static names() {
|
|
523
544
|
return {
|
|
@@ -1667,6 +1688,7 @@ class Service extends $dara.Model {
|
|
|
1667
1688
|
createTime: 'CreateTime',
|
|
1668
1689
|
currentVersion: 'CurrentVersion',
|
|
1669
1690
|
extraData: 'ExtraData',
|
|
1691
|
+
gateway: 'Gateway',
|
|
1670
1692
|
gpu: 'Gpu',
|
|
1671
1693
|
image: 'Image',
|
|
1672
1694
|
internetEndpoint: 'InternetEndpoint',
|
|
@@ -1678,6 +1700,7 @@ class Service extends $dara.Model {
|
|
|
1678
1700
|
namespace: 'Namespace',
|
|
1679
1701
|
parentUid: 'ParentUid',
|
|
1680
1702
|
pendingInstance: 'PendingInstance',
|
|
1703
|
+
quotaId: 'QuotaId',
|
|
1681
1704
|
reason: 'Reason',
|
|
1682
1705
|
region: 'Region',
|
|
1683
1706
|
requestId: 'RequestId',
|
|
@@ -1715,6 +1738,7 @@ class Service extends $dara.Model {
|
|
|
1715
1738
|
createTime: 'string',
|
|
1716
1739
|
currentVersion: 'number',
|
|
1717
1740
|
extraData: 'string',
|
|
1741
|
+
gateway: 'string',
|
|
1718
1742
|
gpu: 'number',
|
|
1719
1743
|
image: 'string',
|
|
1720
1744
|
internetEndpoint: 'string',
|
|
@@ -1726,6 +1750,7 @@ class Service extends $dara.Model {
|
|
|
1726
1750
|
namespace: 'string',
|
|
1727
1751
|
parentUid: 'string',
|
|
1728
1752
|
pendingInstance: 'number',
|
|
1753
|
+
quotaId: 'string',
|
|
1729
1754
|
reason: 'string',
|
|
1730
1755
|
region: 'string',
|
|
1731
1756
|
requestId: 'string',
|
|
@@ -4586,14 +4611,14 @@ class DescribeGroupEndpointsResponseBody extends $dara.Model {
|
|
|
4586
4611
|
static types() {
|
|
4587
4612
|
return {
|
|
4588
4613
|
accessToken: 'string',
|
|
4589
|
-
endpoints: DescribeGroupEndpointsResponseBodyEndpoints,
|
|
4614
|
+
endpoints: { 'type': 'array', 'itemType': DescribeGroupEndpointsResponseBodyEndpoints },
|
|
4590
4615
|
message: 'string',
|
|
4591
4616
|
requestId: 'string',
|
|
4592
4617
|
};
|
|
4593
4618
|
}
|
|
4594
4619
|
validate() {
|
|
4595
|
-
if (
|
|
4596
|
-
this.endpoints
|
|
4620
|
+
if (Array.isArray(this.endpoints)) {
|
|
4621
|
+
$dara.Model.validateArray(this.endpoints);
|
|
4597
4622
|
}
|
|
4598
4623
|
super.validate();
|
|
4599
4624
|
}
|
|
@@ -4730,6 +4755,59 @@ class DescribeMachineSpecResponse extends $dara.Model {
|
|
|
4730
4755
|
}
|
|
4731
4756
|
}
|
|
4732
4757
|
exports.DescribeMachineSpecResponse = DescribeMachineSpecResponse;
|
|
4758
|
+
class DescribeRegionsResponseBody extends $dara.Model {
|
|
4759
|
+
static names() {
|
|
4760
|
+
return {
|
|
4761
|
+
regions: 'Regions',
|
|
4762
|
+
requestId: 'RequestId',
|
|
4763
|
+
};
|
|
4764
|
+
}
|
|
4765
|
+
static types() {
|
|
4766
|
+
return {
|
|
4767
|
+
regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
|
|
4768
|
+
requestId: 'string',
|
|
4769
|
+
};
|
|
4770
|
+
}
|
|
4771
|
+
validate() {
|
|
4772
|
+
if (Array.isArray(this.regions)) {
|
|
4773
|
+
$dara.Model.validateArray(this.regions);
|
|
4774
|
+
}
|
|
4775
|
+
super.validate();
|
|
4776
|
+
}
|
|
4777
|
+
constructor(map) {
|
|
4778
|
+
super(map);
|
|
4779
|
+
}
|
|
4780
|
+
}
|
|
4781
|
+
exports.DescribeRegionsResponseBody = DescribeRegionsResponseBody;
|
|
4782
|
+
class DescribeRegionsResponse extends $dara.Model {
|
|
4783
|
+
static names() {
|
|
4784
|
+
return {
|
|
4785
|
+
headers: 'headers',
|
|
4786
|
+
statusCode: 'statusCode',
|
|
4787
|
+
body: 'body',
|
|
4788
|
+
};
|
|
4789
|
+
}
|
|
4790
|
+
static types() {
|
|
4791
|
+
return {
|
|
4792
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4793
|
+
statusCode: 'number',
|
|
4794
|
+
body: DescribeRegionsResponseBody,
|
|
4795
|
+
};
|
|
4796
|
+
}
|
|
4797
|
+
validate() {
|
|
4798
|
+
if (this.headers) {
|
|
4799
|
+
$dara.Model.validateMap(this.headers);
|
|
4800
|
+
}
|
|
4801
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
4802
|
+
this.body.validate();
|
|
4803
|
+
}
|
|
4804
|
+
super.validate();
|
|
4805
|
+
}
|
|
4806
|
+
constructor(map) {
|
|
4807
|
+
super(map);
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
exports.DescribeRegionsResponse = DescribeRegionsResponse;
|
|
4733
4811
|
class DescribeResourceResponseBody extends $dara.Model {
|
|
4734
4812
|
static names() {
|
|
4735
4813
|
return {
|
|
@@ -5156,14 +5234,14 @@ class DescribeServiceEndpointsResponseBody extends $dara.Model {
|
|
|
5156
5234
|
static types() {
|
|
5157
5235
|
return {
|
|
5158
5236
|
accessToken: 'string',
|
|
5159
|
-
endpoints: DescribeServiceEndpointsResponseBodyEndpoints,
|
|
5237
|
+
endpoints: { 'type': 'array', 'itemType': DescribeServiceEndpointsResponseBodyEndpoints },
|
|
5160
5238
|
message: 'string',
|
|
5161
5239
|
requestId: 'string',
|
|
5162
5240
|
};
|
|
5163
5241
|
}
|
|
5164
5242
|
validate() {
|
|
5165
|
-
if (
|
|
5166
|
-
this.endpoints
|
|
5243
|
+
if (Array.isArray(this.endpoints)) {
|
|
5244
|
+
$dara.Model.validateArray(this.endpoints);
|
|
5167
5245
|
}
|
|
5168
5246
|
super.validate();
|
|
5169
5247
|
}
|
|
@@ -10963,6 +11041,44 @@ class Client extends openapi_core_1.default {
|
|
|
10963
11041
|
let headers = {};
|
|
10964
11042
|
return await this.describeMachineSpecWithOptions(request, headers, runtime);
|
|
10965
11043
|
}
|
|
11044
|
+
/**
|
|
11045
|
+
* 查询可用的地域信息
|
|
11046
|
+
*
|
|
11047
|
+
* @param headers - map
|
|
11048
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11049
|
+
* @returns DescribeRegionsResponse
|
|
11050
|
+
*/
|
|
11051
|
+
async describeRegionsWithOptions(headers, runtime) {
|
|
11052
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
11053
|
+
headers: headers,
|
|
11054
|
+
});
|
|
11055
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
11056
|
+
action: "DescribeRegions",
|
|
11057
|
+
version: "2021-07-01",
|
|
11058
|
+
protocol: "HTTPS",
|
|
11059
|
+
pathname: `/api/v2/regions`,
|
|
11060
|
+
method: "GET",
|
|
11061
|
+
authType: "AK",
|
|
11062
|
+
style: "ROA",
|
|
11063
|
+
reqBodyType: "json",
|
|
11064
|
+
bodyType: "json",
|
|
11065
|
+
});
|
|
11066
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
11067
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
|
|
11068
|
+
}
|
|
11069
|
+
else {
|
|
11070
|
+
return $dara.cast(await this.execute(params, req, runtime), new DescribeRegionsResponse({}));
|
|
11071
|
+
}
|
|
11072
|
+
}
|
|
11073
|
+
/**
|
|
11074
|
+
* 查询可用的地域信息
|
|
11075
|
+
* @returns DescribeRegionsResponse
|
|
11076
|
+
*/
|
|
11077
|
+
async describeRegions() {
|
|
11078
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
11079
|
+
let headers = {};
|
|
11080
|
+
return await this.describeRegionsWithOptions(headers, runtime);
|
|
11081
|
+
}
|
|
10966
11082
|
/**
|
|
10967
11083
|
* Queries the information about a resource group.
|
|
10968
11084
|
*
|