@alicloud/apig20240327 3.0.0 → 3.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 +1560 -121
- package/dist/client.js +903 -54
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2268 -213
package/dist/client.js
CHANGED
|
@@ -37,11 +37,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.CreateEnvironmentResponseBodyData = exports.CreateDomainResponseBodyData = exports.TlsCipherSuitesConfigTlsCipherSuite = exports.ServicePorts = exports.JwtIdentityConfigJwtTokenConfig = exports.JwtIdentityConfigJwtPayloadConfig = exports.HttpRouteMatchQueryParams = exports.HttpRouteMatchPath = exports.HttpRouteMatchHeaders = exports.HttpRouteEnvironmentInfo = exports.HttpRouteEnvironmentInfoSubDomains = exports.HttpRouteEnvironmentInfoGatewayInfo = exports.HttpRouteDomainInfos = exports.HttpDubboTranscoderMothedMapList = exports.HttpDubboTranscoderMothedMapListParamMapsList = exports.HttpApiResponseContractItems = exports.HttpApiRequestContractBody = exports.HttpApiPublishRevisionInfoVipConfigs = exports.HttpApiPublishRevisionInfoServiceConfigs = exports.HttpApiPublishRevisionInfoEnvironmentInfo = exports.HttpApiPublishRevisionInfoEnvironmentInfoGatewayInfo = exports.HttpApiPublishRevisionInfoDnsConfigs = exports.HttpApiPublishRevisionInfoCloudProductConfig = exports.HttpApiPublishRevisionInfoCloudProductConfigMseNacosConfigs = exports.HttpApiPublishRevisionInfoCloudProductConfigFunctionConfigs = exports.HttpApiPublishRevisionInfoCloudProductConfigContainerServiceConfigs = exports.HttpApiDeployConfigServiceConfigs = exports.HttpApiDeployConfigPolicyConfigs = exports.HttpApiDeployConfigPolicyConfigsAiFallbackConfig = exports.HttpApiApiInfoIngressInfo = exports.HttpApiApiInfoIngressInfoK8sClusterInfo = exports.HttpApiApiInfoIngressInfoEnvironmentInfo = exports.HttpApiApiInfoEnvironments = exports.HttpApiApiInfoEnvironmentsSubDomains = exports.HttpApiApiInfoEnvironmentsServiceConfigs = exports.HttpApiApiInfoEnvironmentsGatewayInfo = exports.GatewayLogConfigSlsConfig = exports.GatewayInfoVpcInfo = exports.BackendServices = exports.ApiRouteConflictInfoDomainInfo = exports.ApiRouteConflictInfoConflicts = exports.ApiRouteConflictInfoConflictsRouteInfo = exports.ApiRouteConflictInfoConflictsEnvironmentInfo = exports.ApiRouteConflictInfoConflictsDetails = exports.ApiRouteConflictInfoConflictsDetailsDetectedMatch = exports.ApiRouteConflictInfoConflictsDetailsDetectedMatchOperationInfo = exports.ApiRouteConflictInfoConflictsDetailsConflictingMatch = exports.ApiRouteConflictInfoConflictsDetailsConflictingMatchOperationInfo = exports.ApiKeyIdentityConfigCredentials = exports.ApiKeyIdentityConfigApikeySource = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
40
|
+
exports.ListGatewaysResponseBodyDataItemsTags = exports.ListGatewaysResponseBodyDataItemsSecurityGroup = exports.ListGatewaysResponseBodyDataItemsLoadBalancers = exports.ListGatewaysResponseBodyDataItemsLoadBalancersPorts = exports.ListGatewaysRequestTag = exports.ListEnvironmentsResponseBodyData = exports.ListDomainsResponseBodyData = exports.ImportHttpApiResponseBodyData = exports.ImportHttpApiResponseBodyDataDryRunInfo = exports.ImportHttpApiResponseBodyDataDryRunInfoSuccessOperations = exports.ImportHttpApiResponseBodyDataDryRunInfoSuccessComponents = exports.ImportHttpApiResponseBodyDataDryRunInfoFailureOperations = exports.ImportHttpApiResponseBodyDataDryRunInfoFailureComponents = exports.ImportHttpApiRequestSpecOssConfig = exports.GetTraceConfigResponseBodyData = exports.GetResourceOverviewResponseBodyData = exports.GetResourceOverviewResponseBodyDataGateway = exports.GetResourceOverviewResponseBodyDataApi = exports.GetPolicyAttachmentResponseBodyData = exports.GetGatewayResponseBodyData = exports.GetGatewayResponseBodyDataZones = exports.GetGatewayResponseBodyDataZonesVSwitch = exports.GetGatewayResponseBodyDataVpc = exports.GetGatewayResponseBodyDataVSwitch = exports.GetGatewayResponseBodyDataTags = exports.GetGatewayResponseBodyDataSecurityGroup = exports.GetGatewayResponseBodyDataLoadBalancers = exports.GetGatewayResponseBodyDataLoadBalancersPorts = exports.GetGatewayResponseBodyDataEnvironments = exports.GetEnvironmentResponseBodyData = exports.GetEnvironmentResponseBodyDataStatisticsInfo = exports.GetDomainResponseBodyData = exports.GetDomainResponseBodyDataStatisticsInfo = exports.GetDashboardResponseBodyData = exports.GetDashboardRequestFilter = exports.ExportHttpApiResponseBodyData = exports.DeployHttpApiRequestRestApiConfig = exports.DeployHttpApiRequestRestApiConfigEnvironment = exports.DeployHttpApiRequestRestApiConfigEnvironmentServiceConfigs = exports.CreateServiceResponseBodyData = exports.CreateServiceRequestServiceConfigs = exports.CreatePolicyAttachmentResponseBodyData = exports.CreatePolicyResponseBodyData = exports.CreateHttpApiRouteResponseBodyData = exports.CreateHttpApiRouteRequestBackendConfig = exports.CreateHttpApiRouteRequestBackendConfigServices = exports.CreateHttpApiOperationResponseBodyData = exports.CreateHttpApiOperationResponseBodyDataOperations = exports.CreateHttpApiResponseBodyData = exports.CreateHttpApiRequestIngressConfig = void 0;
|
|
41
|
+
exports.HttpRoute = exports.HttpDubboTranscoder = exports.HttpApiVersionInfo = exports.HttpApiVersionConfig = exports.HttpApiResponseContract = exports.HttpApiRequestContract = exports.HttpApiPublishRevisionInfo = exports.HttpApiParameter = exports.HttpApiOperationInfo = exports.HttpApiOperation = exports.HttpApiMockContract = exports.HttpApiInfoByName = exports.HttpApiDomainInfo = exports.HttpApiDeployConfig = exports.HttpApiBackendMatchConditions = exports.HttpApiBackendMatchCondition = exports.HttpApiApiInfo = exports.GatewayLogConfig = exports.GatewayInfo = exports.EnvironmentInfo = exports.DomainInfo = exports.DashboardFilter = exports.ConsumerInfo = exports.CheckServiceLinkedRoleResult = exports.Backend = exports.AuthorizationResourceInfo = exports.AuthConfig = exports.Attachment = exports.ApiRouteConflictInfo = exports.ApiKeyIdentityConfig = exports.AkSkIdentityConfig = exports.AiServiceConfig = exports.UpdateHttpApiRouteRequestBackendConfig = exports.UpdateHttpApiRouteRequestBackendConfigServices = exports.UpdateHttpApiRequestIngressConfig = exports.UpdateDomainResponseBodyData = exports.ListZonesResponseBodyData = exports.ListZonesResponseBodyDataItems = exports.ListSslCertsResponseBodyData = exports.ListServicesResponseBodyData = exports.ListPolicyClassesResponseBodyData = exports.ListHttpApisResponseBodyData = exports.ListHttpApiRoutesResponseBodyData = exports.ListHttpApiOperationsResponseBodyData = exports.ListGatewaysResponseBodyData = exports.ListGatewaysResponseBodyDataItems = exports.ListGatewaysResponseBodyDataItemsZones = exports.ListGatewaysResponseBodyDataItemsZonesVSwitch = exports.ListGatewaysResponseBodyDataItemsVpc = exports.ListGatewaysResponseBodyDataItemsVSwitch = void 0;
|
|
42
|
+
exports.DeleteGatewayResponseBody = exports.DeleteEnvironmentResponse = exports.DeleteEnvironmentResponseBody = exports.DeleteDomainResponse = exports.DeleteDomainResponseBody = exports.CreateServiceResponse = exports.CreateServiceResponseBody = exports.CreateServiceRequest = exports.CreatePolicyAttachmentResponse = exports.CreatePolicyAttachmentResponseBody = exports.CreatePolicyAttachmentRequest = exports.CreatePolicyResponse = exports.CreatePolicyResponseBody = exports.CreatePolicyRequest = exports.CreateHttpApiRouteResponse = exports.CreateHttpApiRouteResponseBody = exports.CreateHttpApiRouteRequest = exports.CreateHttpApiOperationResponse = exports.CreateHttpApiOperationResponseBody = exports.CreateHttpApiOperationRequest = exports.CreateHttpApiResponse = exports.CreateHttpApiResponseBody = exports.CreateHttpApiRequest = exports.CreateEnvironmentResponse = exports.CreateEnvironmentResponseBody = exports.CreateEnvironmentRequest = exports.CreateDomainResponse = exports.CreateDomainResponseBody = exports.CreateDomainRequest = exports.ChangeResourceGroupResponse = exports.ChangeResourceGroupResponseBody = exports.ChangeResourceGroupRequest = exports.AddGatewaySecurityGroupRuleResponse = exports.AddGatewaySecurityGroupRuleResponseBody = exports.AddGatewaySecurityGroupRuleRequest = exports.TlsCipherSuitesConfig = exports.SubDomainInfo = exports.SslCertMetaInfo = exports.ServiceLinkedRole = exports.ServiceHealthCheck = exports.Service = exports.ResourceStatistic = exports.ResourceInfo = exports.PolicyInfo = exports.PolicyDetailInfo = exports.PolicyClassInfo = exports.PluginClassInfo = exports.ParentResourceInfo = exports.JwtIdentityConfig = exports.HttpRouteMatch = void 0;
|
|
43
|
+
exports.ImportHttpApiResponseBody = exports.ImportHttpApiRequest = exports.GetTraceConfigResponse = exports.GetTraceConfigResponseBody = exports.GetTraceConfigRequest = exports.GetServiceResponse = exports.GetServiceResponseBody = exports.GetResourceOverviewResponse = exports.GetResourceOverviewResponseBody = exports.GetPolicyAttachmentResponse = exports.GetPolicyAttachmentResponseBody = exports.GetPolicyResponse = exports.GetPolicyResponseBody = exports.GetHttpApiRouteResponse = exports.GetHttpApiRouteResponseBody = exports.GetHttpApiOperationResponse = exports.GetHttpApiOperationResponseBody = exports.GetHttpApiResponse = exports.GetHttpApiResponseBody = exports.GetGatewayResponse = exports.GetGatewayResponseBody = exports.GetEnvironmentResponse = exports.GetEnvironmentResponseBody = exports.GetEnvironmentRequest = exports.GetDomainResponse = exports.GetDomainResponseBody = exports.GetDomainRequest = exports.GetDashboardResponse = exports.GetDashboardResponseBody = exports.GetDashboardShrinkRequest = exports.GetDashboardRequest = exports.ExportHttpApiResponse = exports.ExportHttpApiResponseBody = exports.DeployHttpApiResponse = exports.DeployHttpApiResponseBody = exports.DeployHttpApiRequest = exports.DeletePolicyAttachmentResponse = exports.DeletePolicyAttachmentResponseBody = exports.DeletePolicyResponse = exports.DeletePolicyResponseBody = exports.DeleteHttpApiRouteResponse = exports.DeleteHttpApiRouteResponseBody = exports.DeleteHttpApiOperationResponse = exports.DeleteHttpApiOperationResponseBody = exports.DeleteHttpApiResponse = exports.DeleteHttpApiResponseBody = exports.DeleteGatewaySecurityGroupRuleResponse = exports.DeleteGatewaySecurityGroupRuleResponseBody = exports.DeleteGatewaySecurityGroupRuleRequest = exports.DeleteGatewayResponse = void 0;
|
|
44
|
+
exports.UpdateHttpApiResponseBody = exports.UpdateHttpApiRequest = exports.UpdateGatewayNameResponse = exports.UpdateGatewayNameResponseBody = exports.UpdateGatewayNameRequest = exports.UpdateGatewayFeatureResponse = exports.UpdateGatewayFeatureResponseBody = exports.UpdateGatewayFeatureRequest = exports.UpdateEnvironmentResponse = exports.UpdateEnvironmentResponseBody = exports.UpdateEnvironmentRequest = exports.UpdateDomainResponse = exports.UpdateDomainResponseBody = exports.UpdateDomainRequest = exports.UndeployHttpApiResponse = exports.UndeployHttpApiResponseBody = exports.UndeployHttpApiRequest = exports.RestartGatewayResponse = exports.RestartGatewayResponseBody = exports.ListZonesResponse = exports.ListZonesResponseBody = exports.ListSslCertsResponse = exports.ListSslCertsResponseBody = exports.ListSslCertsRequest = exports.ListServicesResponse = exports.ListServicesResponseBody = exports.ListServicesRequest = exports.ListPolicyClassesResponse = exports.ListPolicyClassesResponseBody = exports.ListPolicyClassesRequest = exports.ListHttpApisResponse = exports.ListHttpApisResponseBody = exports.ListHttpApisRequest = exports.ListHttpApiRoutesResponse = exports.ListHttpApiRoutesResponseBody = exports.ListHttpApiRoutesRequest = exports.ListHttpApiOperationsResponse = exports.ListHttpApiOperationsResponseBody = exports.ListHttpApiOperationsRequest = exports.ListGatewaysResponse = exports.ListGatewaysResponseBody = exports.ListGatewaysShrinkRequest = exports.ListGatewaysRequest = exports.ListEnvironmentsResponse = exports.ListEnvironmentsResponseBody = exports.ListEnvironmentsRequest = exports.ListDomainsResponse = exports.ListDomainsResponseBody = exports.ListDomainsRequest = exports.ImportHttpApiResponse = void 0;
|
|
45
|
+
exports.UpgradeGatewayResponse = exports.UpgradeGatewayResponseBody = exports.UpgradeGatewayRequest = exports.UpdatePolicyResponse = exports.UpdatePolicyResponseBody = exports.UpdatePolicyRequest = exports.UpdateHttpApiRouteResponse = exports.UpdateHttpApiRouteResponseBody = exports.UpdateHttpApiRouteRequest = exports.UpdateHttpApiOperationResponse = exports.UpdateHttpApiOperationResponseBody = exports.UpdateHttpApiOperationRequest = exports.UpdateHttpApiResponse = void 0;
|
|
45
46
|
// This file is auto-generated, don't edit it
|
|
46
47
|
/**
|
|
47
48
|
*/
|
|
@@ -1536,6 +1537,68 @@ class CreatePolicyAttachmentResponseBodyData extends $dara.Model {
|
|
|
1536
1537
|
}
|
|
1537
1538
|
}
|
|
1538
1539
|
exports.CreatePolicyAttachmentResponseBodyData = CreatePolicyAttachmentResponseBodyData;
|
|
1540
|
+
class CreateServiceRequestServiceConfigs extends $dara.Model {
|
|
1541
|
+
static names() {
|
|
1542
|
+
return {
|
|
1543
|
+
addresses: 'addresses',
|
|
1544
|
+
aiServiceConfig: 'aiServiceConfig',
|
|
1545
|
+
dnsServers: 'dnsServers',
|
|
1546
|
+
groupName: 'groupName',
|
|
1547
|
+
name: 'name',
|
|
1548
|
+
namespace: 'namespace',
|
|
1549
|
+
qualifier: 'qualifier',
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
static types() {
|
|
1553
|
+
return {
|
|
1554
|
+
addresses: { 'type': 'array', 'itemType': 'string' },
|
|
1555
|
+
aiServiceConfig: AiServiceConfig,
|
|
1556
|
+
dnsServers: { 'type': 'array', 'itemType': 'string' },
|
|
1557
|
+
groupName: 'string',
|
|
1558
|
+
name: 'string',
|
|
1559
|
+
namespace: 'string',
|
|
1560
|
+
qualifier: 'string',
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
validate() {
|
|
1564
|
+
if (Array.isArray(this.addresses)) {
|
|
1565
|
+
$dara.Model.validateArray(this.addresses);
|
|
1566
|
+
}
|
|
1567
|
+
if (this.aiServiceConfig && typeof this.aiServiceConfig.validate === 'function') {
|
|
1568
|
+
this.aiServiceConfig.validate();
|
|
1569
|
+
}
|
|
1570
|
+
if (Array.isArray(this.dnsServers)) {
|
|
1571
|
+
$dara.Model.validateArray(this.dnsServers);
|
|
1572
|
+
}
|
|
1573
|
+
super.validate();
|
|
1574
|
+
}
|
|
1575
|
+
constructor(map) {
|
|
1576
|
+
super(map);
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
exports.CreateServiceRequestServiceConfigs = CreateServiceRequestServiceConfigs;
|
|
1580
|
+
class CreateServiceResponseBodyData extends $dara.Model {
|
|
1581
|
+
static names() {
|
|
1582
|
+
return {
|
|
1583
|
+
serviceIds: 'serviceIds',
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
static types() {
|
|
1587
|
+
return {
|
|
1588
|
+
serviceIds: { 'type': 'array', 'itemType': 'string' },
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
validate() {
|
|
1592
|
+
if (Array.isArray(this.serviceIds)) {
|
|
1593
|
+
$dara.Model.validateArray(this.serviceIds);
|
|
1594
|
+
}
|
|
1595
|
+
super.validate();
|
|
1596
|
+
}
|
|
1597
|
+
constructor(map) {
|
|
1598
|
+
super(map);
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
exports.CreateServiceResponseBodyData = CreateServiceResponseBodyData;
|
|
1539
1602
|
class DeployHttpApiRequestRestApiConfigEnvironmentServiceConfigs extends $dara.Model {
|
|
1540
1603
|
static names() {
|
|
1541
1604
|
return {
|
|
@@ -1719,6 +1782,7 @@ class GetDomainResponseBodyData extends $dara.Model {
|
|
|
1719
1782
|
caCertIdentifier: 'caCertIdentifier',
|
|
1720
1783
|
certIdentifier: 'certIdentifier',
|
|
1721
1784
|
certName: 'certName',
|
|
1785
|
+
clientCACert: 'clientCACert',
|
|
1722
1786
|
createFrom: 'createFrom',
|
|
1723
1787
|
createTimestamp: 'createTimestamp',
|
|
1724
1788
|
default: 'default',
|
|
@@ -1726,6 +1790,7 @@ class GetDomainResponseBodyData extends $dara.Model {
|
|
|
1726
1790
|
forceHttps: 'forceHttps',
|
|
1727
1791
|
http2Option: 'http2Option',
|
|
1728
1792
|
issuer: 'issuer',
|
|
1793
|
+
mTLSEnabled: 'mTLSEnabled',
|
|
1729
1794
|
name: 'name',
|
|
1730
1795
|
notAfterTimstamp: 'notAfterTimstamp',
|
|
1731
1796
|
notBeforeTimestamp: 'notBeforeTimestamp',
|
|
@@ -1745,6 +1810,7 @@ class GetDomainResponseBodyData extends $dara.Model {
|
|
|
1745
1810
|
caCertIdentifier: 'string',
|
|
1746
1811
|
certIdentifier: 'string',
|
|
1747
1812
|
certName: 'string',
|
|
1813
|
+
clientCACert: 'string',
|
|
1748
1814
|
createFrom: 'string',
|
|
1749
1815
|
createTimestamp: 'number',
|
|
1750
1816
|
default: 'boolean',
|
|
@@ -1752,6 +1818,7 @@ class GetDomainResponseBodyData extends $dara.Model {
|
|
|
1752
1818
|
forceHttps: 'boolean',
|
|
1753
1819
|
http2Option: 'string',
|
|
1754
1820
|
issuer: 'string',
|
|
1821
|
+
mTLSEnabled: 'boolean',
|
|
1755
1822
|
name: 'string',
|
|
1756
1823
|
notAfterTimstamp: 'number',
|
|
1757
1824
|
notBeforeTimestamp: 'number',
|
|
@@ -2851,6 +2918,34 @@ class ListHttpApiOperationsResponseBodyData extends $dara.Model {
|
|
|
2851
2918
|
}
|
|
2852
2919
|
}
|
|
2853
2920
|
exports.ListHttpApiOperationsResponseBodyData = ListHttpApiOperationsResponseBodyData;
|
|
2921
|
+
class ListHttpApiRoutesResponseBodyData extends $dara.Model {
|
|
2922
|
+
static names() {
|
|
2923
|
+
return {
|
|
2924
|
+
items: 'items',
|
|
2925
|
+
pageNumber: 'pageNumber',
|
|
2926
|
+
pageSize: 'pageSize',
|
|
2927
|
+
totalSize: 'totalSize',
|
|
2928
|
+
};
|
|
2929
|
+
}
|
|
2930
|
+
static types() {
|
|
2931
|
+
return {
|
|
2932
|
+
items: { 'type': 'array', 'itemType': HttpRoute },
|
|
2933
|
+
pageNumber: 'number',
|
|
2934
|
+
pageSize: 'number',
|
|
2935
|
+
totalSize: 'number',
|
|
2936
|
+
};
|
|
2937
|
+
}
|
|
2938
|
+
validate() {
|
|
2939
|
+
if (Array.isArray(this.items)) {
|
|
2940
|
+
$dara.Model.validateArray(this.items);
|
|
2941
|
+
}
|
|
2942
|
+
super.validate();
|
|
2943
|
+
}
|
|
2944
|
+
constructor(map) {
|
|
2945
|
+
super(map);
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
exports.ListHttpApiRoutesResponseBodyData = ListHttpApiRoutesResponseBodyData;
|
|
2854
2949
|
class ListHttpApisResponseBodyData extends $dara.Model {
|
|
2855
2950
|
static names() {
|
|
2856
2951
|
return {
|
|
@@ -2907,6 +3002,34 @@ class ListPolicyClassesResponseBodyData extends $dara.Model {
|
|
|
2907
3002
|
}
|
|
2908
3003
|
}
|
|
2909
3004
|
exports.ListPolicyClassesResponseBodyData = ListPolicyClassesResponseBodyData;
|
|
3005
|
+
class ListServicesResponseBodyData extends $dara.Model {
|
|
3006
|
+
static names() {
|
|
3007
|
+
return {
|
|
3008
|
+
items: 'items',
|
|
3009
|
+
pageNumber: 'pageNumber',
|
|
3010
|
+
pageSize: 'pageSize',
|
|
3011
|
+
totalSize: 'totalSize',
|
|
3012
|
+
};
|
|
3013
|
+
}
|
|
3014
|
+
static types() {
|
|
3015
|
+
return {
|
|
3016
|
+
items: { 'type': 'array', 'itemType': Service },
|
|
3017
|
+
pageNumber: 'number',
|
|
3018
|
+
pageSize: 'number',
|
|
3019
|
+
totalSize: 'number',
|
|
3020
|
+
};
|
|
3021
|
+
}
|
|
3022
|
+
validate() {
|
|
3023
|
+
if (Array.isArray(this.items)) {
|
|
3024
|
+
$dara.Model.validateArray(this.items);
|
|
3025
|
+
}
|
|
3026
|
+
super.validate();
|
|
3027
|
+
}
|
|
3028
|
+
constructor(map) {
|
|
3029
|
+
super(map);
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
exports.ListServicesResponseBodyData = ListServicesResponseBodyData;
|
|
2910
3033
|
class ListSslCertsResponseBodyData extends $dara.Model {
|
|
2911
3034
|
static names() {
|
|
2912
3035
|
return {
|
|
@@ -3350,10 +3473,12 @@ class DomainInfo extends $dara.Model {
|
|
|
3350
3473
|
static names() {
|
|
3351
3474
|
return {
|
|
3352
3475
|
certIdentifier: 'certIdentifier',
|
|
3476
|
+
clientCACert: 'clientCACert',
|
|
3353
3477
|
createFrom: 'createFrom',
|
|
3354
3478
|
createTimestamp: 'createTimestamp',
|
|
3355
3479
|
domainId: 'domainId',
|
|
3356
3480
|
forceHttps: 'forceHttps',
|
|
3481
|
+
mTLSEnabled: 'mTLSEnabled',
|
|
3357
3482
|
name: 'name',
|
|
3358
3483
|
protocol: 'protocol',
|
|
3359
3484
|
resourceGroupId: 'resourceGroupId',
|
|
@@ -3364,10 +3489,12 @@ class DomainInfo extends $dara.Model {
|
|
|
3364
3489
|
static types() {
|
|
3365
3490
|
return {
|
|
3366
3491
|
certIdentifier: 'string',
|
|
3492
|
+
clientCACert: 'string',
|
|
3367
3493
|
createFrom: 'string',
|
|
3368
3494
|
createTimestamp: 'number',
|
|
3369
3495
|
domainId: 'string',
|
|
3370
3496
|
forceHttps: 'boolean',
|
|
3497
|
+
mTLSEnabled: 'boolean',
|
|
3371
3498
|
name: 'string',
|
|
3372
3499
|
protocol: 'string',
|
|
3373
3500
|
resourceGroupId: 'string',
|
|
@@ -4789,8 +4916,10 @@ class CreateDomainRequest extends $dara.Model {
|
|
|
4789
4916
|
return {
|
|
4790
4917
|
caCertIdentifier: 'caCertIdentifier',
|
|
4791
4918
|
certIdentifier: 'certIdentifier',
|
|
4919
|
+
clientCACert: 'clientCACert',
|
|
4792
4920
|
forceHttps: 'forceHttps',
|
|
4793
4921
|
http2Option: 'http2Option',
|
|
4922
|
+
mTLSEnabled: 'mTLSEnabled',
|
|
4794
4923
|
name: 'name',
|
|
4795
4924
|
protocol: 'protocol',
|
|
4796
4925
|
resourceGroupId: 'resourceGroupId',
|
|
@@ -4803,8 +4932,10 @@ class CreateDomainRequest extends $dara.Model {
|
|
|
4803
4932
|
return {
|
|
4804
4933
|
caCertIdentifier: 'string',
|
|
4805
4934
|
certIdentifier: 'string',
|
|
4935
|
+
clientCACert: 'string',
|
|
4806
4936
|
forceHttps: 'boolean',
|
|
4807
4937
|
http2Option: 'string',
|
|
4938
|
+
mTLSEnabled: 'boolean',
|
|
4808
4939
|
name: 'string',
|
|
4809
4940
|
protocol: 'string',
|
|
4810
4941
|
resourceGroupId: 'string',
|
|
@@ -5421,6 +5552,91 @@ class CreatePolicyAttachmentResponse extends $dara.Model {
|
|
|
5421
5552
|
}
|
|
5422
5553
|
}
|
|
5423
5554
|
exports.CreatePolicyAttachmentResponse = CreatePolicyAttachmentResponse;
|
|
5555
|
+
class CreateServiceRequest extends $dara.Model {
|
|
5556
|
+
static names() {
|
|
5557
|
+
return {
|
|
5558
|
+
gatewayId: 'gatewayId',
|
|
5559
|
+
resourceGroupId: 'resourceGroupId',
|
|
5560
|
+
serviceConfigs: 'serviceConfigs',
|
|
5561
|
+
sourceType: 'sourceType',
|
|
5562
|
+
};
|
|
5563
|
+
}
|
|
5564
|
+
static types() {
|
|
5565
|
+
return {
|
|
5566
|
+
gatewayId: 'string',
|
|
5567
|
+
resourceGroupId: 'string',
|
|
5568
|
+
serviceConfigs: { 'type': 'array', 'itemType': CreateServiceRequestServiceConfigs },
|
|
5569
|
+
sourceType: 'string',
|
|
5570
|
+
};
|
|
5571
|
+
}
|
|
5572
|
+
validate() {
|
|
5573
|
+
if (Array.isArray(this.serviceConfigs)) {
|
|
5574
|
+
$dara.Model.validateArray(this.serviceConfigs);
|
|
5575
|
+
}
|
|
5576
|
+
super.validate();
|
|
5577
|
+
}
|
|
5578
|
+
constructor(map) {
|
|
5579
|
+
super(map);
|
|
5580
|
+
}
|
|
5581
|
+
}
|
|
5582
|
+
exports.CreateServiceRequest = CreateServiceRequest;
|
|
5583
|
+
class CreateServiceResponseBody extends $dara.Model {
|
|
5584
|
+
static names() {
|
|
5585
|
+
return {
|
|
5586
|
+
code: 'code',
|
|
5587
|
+
data: 'data',
|
|
5588
|
+
message: 'message',
|
|
5589
|
+
requestId: 'requestId',
|
|
5590
|
+
};
|
|
5591
|
+
}
|
|
5592
|
+
static types() {
|
|
5593
|
+
return {
|
|
5594
|
+
code: 'string',
|
|
5595
|
+
data: CreateServiceResponseBodyData,
|
|
5596
|
+
message: 'string',
|
|
5597
|
+
requestId: 'string',
|
|
5598
|
+
};
|
|
5599
|
+
}
|
|
5600
|
+
validate() {
|
|
5601
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
5602
|
+
this.data.validate();
|
|
5603
|
+
}
|
|
5604
|
+
super.validate();
|
|
5605
|
+
}
|
|
5606
|
+
constructor(map) {
|
|
5607
|
+
super(map);
|
|
5608
|
+
}
|
|
5609
|
+
}
|
|
5610
|
+
exports.CreateServiceResponseBody = CreateServiceResponseBody;
|
|
5611
|
+
class CreateServiceResponse extends $dara.Model {
|
|
5612
|
+
static names() {
|
|
5613
|
+
return {
|
|
5614
|
+
headers: 'headers',
|
|
5615
|
+
statusCode: 'statusCode',
|
|
5616
|
+
body: 'body',
|
|
5617
|
+
};
|
|
5618
|
+
}
|
|
5619
|
+
static types() {
|
|
5620
|
+
return {
|
|
5621
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5622
|
+
statusCode: 'number',
|
|
5623
|
+
body: CreateServiceResponseBody,
|
|
5624
|
+
};
|
|
5625
|
+
}
|
|
5626
|
+
validate() {
|
|
5627
|
+
if (this.headers) {
|
|
5628
|
+
$dara.Model.validateMap(this.headers);
|
|
5629
|
+
}
|
|
5630
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
5631
|
+
this.body.validate();
|
|
5632
|
+
}
|
|
5633
|
+
super.validate();
|
|
5634
|
+
}
|
|
5635
|
+
constructor(map) {
|
|
5636
|
+
super(map);
|
|
5637
|
+
}
|
|
5638
|
+
}
|
|
5639
|
+
exports.CreateServiceResponse = CreateServiceResponse;
|
|
5424
5640
|
class DeleteDomainResponseBody extends $dara.Model {
|
|
5425
5641
|
static names() {
|
|
5426
5642
|
return {
|
|
@@ -6716,6 +6932,63 @@ class GetResourceOverviewResponse extends $dara.Model {
|
|
|
6716
6932
|
}
|
|
6717
6933
|
}
|
|
6718
6934
|
exports.GetResourceOverviewResponse = GetResourceOverviewResponse;
|
|
6935
|
+
class GetServiceResponseBody extends $dara.Model {
|
|
6936
|
+
static names() {
|
|
6937
|
+
return {
|
|
6938
|
+
code: 'code',
|
|
6939
|
+
data: 'data',
|
|
6940
|
+
message: 'message',
|
|
6941
|
+
requestId: 'requestId',
|
|
6942
|
+
};
|
|
6943
|
+
}
|
|
6944
|
+
static types() {
|
|
6945
|
+
return {
|
|
6946
|
+
code: 'string',
|
|
6947
|
+
data: Service,
|
|
6948
|
+
message: 'string',
|
|
6949
|
+
requestId: 'string',
|
|
6950
|
+
};
|
|
6951
|
+
}
|
|
6952
|
+
validate() {
|
|
6953
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
6954
|
+
this.data.validate();
|
|
6955
|
+
}
|
|
6956
|
+
super.validate();
|
|
6957
|
+
}
|
|
6958
|
+
constructor(map) {
|
|
6959
|
+
super(map);
|
|
6960
|
+
}
|
|
6961
|
+
}
|
|
6962
|
+
exports.GetServiceResponseBody = GetServiceResponseBody;
|
|
6963
|
+
class GetServiceResponse extends $dara.Model {
|
|
6964
|
+
static names() {
|
|
6965
|
+
return {
|
|
6966
|
+
headers: 'headers',
|
|
6967
|
+
statusCode: 'statusCode',
|
|
6968
|
+
body: 'body',
|
|
6969
|
+
};
|
|
6970
|
+
}
|
|
6971
|
+
static types() {
|
|
6972
|
+
return {
|
|
6973
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6974
|
+
statusCode: 'number',
|
|
6975
|
+
body: GetServiceResponseBody,
|
|
6976
|
+
};
|
|
6977
|
+
}
|
|
6978
|
+
validate() {
|
|
6979
|
+
if (this.headers) {
|
|
6980
|
+
$dara.Model.validateMap(this.headers);
|
|
6981
|
+
}
|
|
6982
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
6983
|
+
this.body.validate();
|
|
6984
|
+
}
|
|
6985
|
+
super.validate();
|
|
6986
|
+
}
|
|
6987
|
+
constructor(map) {
|
|
6988
|
+
super(map);
|
|
6989
|
+
}
|
|
6990
|
+
}
|
|
6991
|
+
exports.GetServiceResponse = GetServiceResponse;
|
|
6719
6992
|
class GetTraceConfigRequest extends $dara.Model {
|
|
6720
6993
|
static names() {
|
|
6721
6994
|
return {
|
|
@@ -7282,38 +7555,138 @@ class ListHttpApiOperationsResponse extends $dara.Model {
|
|
|
7282
7555
|
}
|
|
7283
7556
|
}
|
|
7284
7557
|
exports.ListHttpApiOperationsResponse = ListHttpApiOperationsResponse;
|
|
7285
|
-
class
|
|
7558
|
+
class ListHttpApiRoutesRequest extends $dara.Model {
|
|
7286
7559
|
static names() {
|
|
7287
7560
|
return {
|
|
7561
|
+
consumerAuthorizationRuleId: 'consumerAuthorizationRuleId',
|
|
7562
|
+
deployStatuses: 'deployStatuses',
|
|
7563
|
+
domainId: 'domainId',
|
|
7564
|
+
environmentId: 'environmentId',
|
|
7288
7565
|
gatewayId: 'gatewayId',
|
|
7289
|
-
keyword: 'keyword',
|
|
7290
7566
|
name: 'name',
|
|
7567
|
+
nameLike: 'nameLike',
|
|
7291
7568
|
pageNumber: 'pageNumber',
|
|
7292
7569
|
pageSize: 'pageSize',
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
withAuthPolicyInEnvironmentId: 'withAuthPolicyInEnvironmentId',
|
|
7296
|
-
withAuthPolicyList: 'withAuthPolicyList',
|
|
7570
|
+
pathLike: 'pathLike',
|
|
7571
|
+
withAuthPolicyInfo: 'withAuthPolicyInfo',
|
|
7297
7572
|
withConsumerInfoById: 'withConsumerInfoById',
|
|
7298
|
-
withEnvironmentInfo: 'withEnvironmentInfo',
|
|
7299
|
-
withEnvironmentInfoById: 'withEnvironmentInfoById',
|
|
7300
|
-
withIngressInfo: 'withIngressInfo',
|
|
7301
7573
|
withPluginAttachmentByPluginId: 'withPluginAttachmentByPluginId',
|
|
7302
7574
|
};
|
|
7303
7575
|
}
|
|
7304
7576
|
static types() {
|
|
7305
7577
|
return {
|
|
7578
|
+
consumerAuthorizationRuleId: 'string',
|
|
7579
|
+
deployStatuses: 'string',
|
|
7580
|
+
domainId: 'string',
|
|
7581
|
+
environmentId: 'string',
|
|
7306
7582
|
gatewayId: 'string',
|
|
7307
|
-
keyword: 'string',
|
|
7308
7583
|
name: 'string',
|
|
7584
|
+
nameLike: 'string',
|
|
7309
7585
|
pageNumber: 'number',
|
|
7310
7586
|
pageSize: 'number',
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
withAuthPolicyInEnvironmentId: 'string',
|
|
7314
|
-
withAuthPolicyList: 'boolean',
|
|
7587
|
+
pathLike: 'string',
|
|
7588
|
+
withAuthPolicyInfo: 'boolean',
|
|
7315
7589
|
withConsumerInfoById: 'string',
|
|
7316
|
-
|
|
7590
|
+
withPluginAttachmentByPluginId: 'string',
|
|
7591
|
+
};
|
|
7592
|
+
}
|
|
7593
|
+
validate() {
|
|
7594
|
+
super.validate();
|
|
7595
|
+
}
|
|
7596
|
+
constructor(map) {
|
|
7597
|
+
super(map);
|
|
7598
|
+
}
|
|
7599
|
+
}
|
|
7600
|
+
exports.ListHttpApiRoutesRequest = ListHttpApiRoutesRequest;
|
|
7601
|
+
class ListHttpApiRoutesResponseBody extends $dara.Model {
|
|
7602
|
+
static names() {
|
|
7603
|
+
return {
|
|
7604
|
+
code: 'code',
|
|
7605
|
+
data: 'data',
|
|
7606
|
+
message: 'message',
|
|
7607
|
+
requestId: 'requestId',
|
|
7608
|
+
};
|
|
7609
|
+
}
|
|
7610
|
+
static types() {
|
|
7611
|
+
return {
|
|
7612
|
+
code: 'string',
|
|
7613
|
+
data: ListHttpApiRoutesResponseBodyData,
|
|
7614
|
+
message: 'string',
|
|
7615
|
+
requestId: 'string',
|
|
7616
|
+
};
|
|
7617
|
+
}
|
|
7618
|
+
validate() {
|
|
7619
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
7620
|
+
this.data.validate();
|
|
7621
|
+
}
|
|
7622
|
+
super.validate();
|
|
7623
|
+
}
|
|
7624
|
+
constructor(map) {
|
|
7625
|
+
super(map);
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
7628
|
+
exports.ListHttpApiRoutesResponseBody = ListHttpApiRoutesResponseBody;
|
|
7629
|
+
class ListHttpApiRoutesResponse extends $dara.Model {
|
|
7630
|
+
static names() {
|
|
7631
|
+
return {
|
|
7632
|
+
headers: 'headers',
|
|
7633
|
+
statusCode: 'statusCode',
|
|
7634
|
+
body: 'body',
|
|
7635
|
+
};
|
|
7636
|
+
}
|
|
7637
|
+
static types() {
|
|
7638
|
+
return {
|
|
7639
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7640
|
+
statusCode: 'number',
|
|
7641
|
+
body: ListHttpApiRoutesResponseBody,
|
|
7642
|
+
};
|
|
7643
|
+
}
|
|
7644
|
+
validate() {
|
|
7645
|
+
if (this.headers) {
|
|
7646
|
+
$dara.Model.validateMap(this.headers);
|
|
7647
|
+
}
|
|
7648
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
7649
|
+
this.body.validate();
|
|
7650
|
+
}
|
|
7651
|
+
super.validate();
|
|
7652
|
+
}
|
|
7653
|
+
constructor(map) {
|
|
7654
|
+
super(map);
|
|
7655
|
+
}
|
|
7656
|
+
}
|
|
7657
|
+
exports.ListHttpApiRoutesResponse = ListHttpApiRoutesResponse;
|
|
7658
|
+
class ListHttpApisRequest extends $dara.Model {
|
|
7659
|
+
static names() {
|
|
7660
|
+
return {
|
|
7661
|
+
gatewayId: 'gatewayId',
|
|
7662
|
+
keyword: 'keyword',
|
|
7663
|
+
name: 'name',
|
|
7664
|
+
pageNumber: 'pageNumber',
|
|
7665
|
+
pageSize: 'pageSize',
|
|
7666
|
+
resourceGroupId: 'resourceGroupId',
|
|
7667
|
+
types: 'types',
|
|
7668
|
+
withAuthPolicyInEnvironmentId: 'withAuthPolicyInEnvironmentId',
|
|
7669
|
+
withAuthPolicyList: 'withAuthPolicyList',
|
|
7670
|
+
withConsumerInfoById: 'withConsumerInfoById',
|
|
7671
|
+
withEnvironmentInfo: 'withEnvironmentInfo',
|
|
7672
|
+
withEnvironmentInfoById: 'withEnvironmentInfoById',
|
|
7673
|
+
withIngressInfo: 'withIngressInfo',
|
|
7674
|
+
withPluginAttachmentByPluginId: 'withPluginAttachmentByPluginId',
|
|
7675
|
+
};
|
|
7676
|
+
}
|
|
7677
|
+
static types() {
|
|
7678
|
+
return {
|
|
7679
|
+
gatewayId: 'string',
|
|
7680
|
+
keyword: 'string',
|
|
7681
|
+
name: 'string',
|
|
7682
|
+
pageNumber: 'number',
|
|
7683
|
+
pageSize: 'number',
|
|
7684
|
+
resourceGroupId: 'string',
|
|
7685
|
+
types: 'string',
|
|
7686
|
+
withAuthPolicyInEnvironmentId: 'string',
|
|
7687
|
+
withAuthPolicyList: 'boolean',
|
|
7688
|
+
withConsumerInfoById: 'string',
|
|
7689
|
+
withEnvironmentInfo: 'boolean',
|
|
7317
7690
|
withEnvironmentInfoById: 'string',
|
|
7318
7691
|
withIngressInfo: 'boolean',
|
|
7319
7692
|
withPluginAttachmentByPluginId: 'string',
|
|
@@ -7468,6 +7841,92 @@ class ListPolicyClassesResponse extends $dara.Model {
|
|
|
7468
7841
|
}
|
|
7469
7842
|
}
|
|
7470
7843
|
exports.ListPolicyClassesResponse = ListPolicyClassesResponse;
|
|
7844
|
+
class ListServicesRequest extends $dara.Model {
|
|
7845
|
+
static names() {
|
|
7846
|
+
return {
|
|
7847
|
+
gatewayId: 'gatewayId',
|
|
7848
|
+
name: 'name',
|
|
7849
|
+
pageNumber: 'pageNumber',
|
|
7850
|
+
pageSize: 'pageSize',
|
|
7851
|
+
resourceGroupId: 'resourceGroupId',
|
|
7852
|
+
sourceType: 'sourceType',
|
|
7853
|
+
};
|
|
7854
|
+
}
|
|
7855
|
+
static types() {
|
|
7856
|
+
return {
|
|
7857
|
+
gatewayId: 'string',
|
|
7858
|
+
name: 'string',
|
|
7859
|
+
pageNumber: 'number',
|
|
7860
|
+
pageSize: 'number',
|
|
7861
|
+
resourceGroupId: 'string',
|
|
7862
|
+
sourceType: 'string',
|
|
7863
|
+
};
|
|
7864
|
+
}
|
|
7865
|
+
validate() {
|
|
7866
|
+
super.validate();
|
|
7867
|
+
}
|
|
7868
|
+
constructor(map) {
|
|
7869
|
+
super(map);
|
|
7870
|
+
}
|
|
7871
|
+
}
|
|
7872
|
+
exports.ListServicesRequest = ListServicesRequest;
|
|
7873
|
+
class ListServicesResponseBody extends $dara.Model {
|
|
7874
|
+
static names() {
|
|
7875
|
+
return {
|
|
7876
|
+
code: 'code',
|
|
7877
|
+
data: 'data',
|
|
7878
|
+
message: 'message',
|
|
7879
|
+
requestId: 'requestId',
|
|
7880
|
+
};
|
|
7881
|
+
}
|
|
7882
|
+
static types() {
|
|
7883
|
+
return {
|
|
7884
|
+
code: 'string',
|
|
7885
|
+
data: ListServicesResponseBodyData,
|
|
7886
|
+
message: 'string',
|
|
7887
|
+
requestId: 'string',
|
|
7888
|
+
};
|
|
7889
|
+
}
|
|
7890
|
+
validate() {
|
|
7891
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
7892
|
+
this.data.validate();
|
|
7893
|
+
}
|
|
7894
|
+
super.validate();
|
|
7895
|
+
}
|
|
7896
|
+
constructor(map) {
|
|
7897
|
+
super(map);
|
|
7898
|
+
}
|
|
7899
|
+
}
|
|
7900
|
+
exports.ListServicesResponseBody = ListServicesResponseBody;
|
|
7901
|
+
class ListServicesResponse extends $dara.Model {
|
|
7902
|
+
static names() {
|
|
7903
|
+
return {
|
|
7904
|
+
headers: 'headers',
|
|
7905
|
+
statusCode: 'statusCode',
|
|
7906
|
+
body: 'body',
|
|
7907
|
+
};
|
|
7908
|
+
}
|
|
7909
|
+
static types() {
|
|
7910
|
+
return {
|
|
7911
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7912
|
+
statusCode: 'number',
|
|
7913
|
+
body: ListServicesResponseBody,
|
|
7914
|
+
};
|
|
7915
|
+
}
|
|
7916
|
+
validate() {
|
|
7917
|
+
if (this.headers) {
|
|
7918
|
+
$dara.Model.validateMap(this.headers);
|
|
7919
|
+
}
|
|
7920
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
7921
|
+
this.body.validate();
|
|
7922
|
+
}
|
|
7923
|
+
super.validate();
|
|
7924
|
+
}
|
|
7925
|
+
constructor(map) {
|
|
7926
|
+
super(map);
|
|
7927
|
+
}
|
|
7928
|
+
}
|
|
7929
|
+
exports.ListServicesResponse = ListServicesResponse;
|
|
7471
7930
|
class ListSslCertsRequest extends $dara.Model {
|
|
7472
7931
|
static names() {
|
|
7473
7932
|
return {
|
|
@@ -7659,13 +8118,88 @@ class RestartGatewayResponse extends $dara.Model {
|
|
|
7659
8118
|
}
|
|
7660
8119
|
}
|
|
7661
8120
|
exports.RestartGatewayResponse = RestartGatewayResponse;
|
|
8121
|
+
class UndeployHttpApiRequest extends $dara.Model {
|
|
8122
|
+
static names() {
|
|
8123
|
+
return {
|
|
8124
|
+
environmentId: 'environmentId',
|
|
8125
|
+
routeId: 'routeId',
|
|
8126
|
+
};
|
|
8127
|
+
}
|
|
8128
|
+
static types() {
|
|
8129
|
+
return {
|
|
8130
|
+
environmentId: 'string',
|
|
8131
|
+
routeId: 'string',
|
|
8132
|
+
};
|
|
8133
|
+
}
|
|
8134
|
+
validate() {
|
|
8135
|
+
super.validate();
|
|
8136
|
+
}
|
|
8137
|
+
constructor(map) {
|
|
8138
|
+
super(map);
|
|
8139
|
+
}
|
|
8140
|
+
}
|
|
8141
|
+
exports.UndeployHttpApiRequest = UndeployHttpApiRequest;
|
|
8142
|
+
class UndeployHttpApiResponseBody extends $dara.Model {
|
|
8143
|
+
static names() {
|
|
8144
|
+
return {
|
|
8145
|
+
code: 'code',
|
|
8146
|
+
message: 'message',
|
|
8147
|
+
requestId: 'requestId',
|
|
8148
|
+
};
|
|
8149
|
+
}
|
|
8150
|
+
static types() {
|
|
8151
|
+
return {
|
|
8152
|
+
code: 'string',
|
|
8153
|
+
message: 'string',
|
|
8154
|
+
requestId: 'string',
|
|
8155
|
+
};
|
|
8156
|
+
}
|
|
8157
|
+
validate() {
|
|
8158
|
+
super.validate();
|
|
8159
|
+
}
|
|
8160
|
+
constructor(map) {
|
|
8161
|
+
super(map);
|
|
8162
|
+
}
|
|
8163
|
+
}
|
|
8164
|
+
exports.UndeployHttpApiResponseBody = UndeployHttpApiResponseBody;
|
|
8165
|
+
class UndeployHttpApiResponse extends $dara.Model {
|
|
8166
|
+
static names() {
|
|
8167
|
+
return {
|
|
8168
|
+
headers: 'headers',
|
|
8169
|
+
statusCode: 'statusCode',
|
|
8170
|
+
body: 'body',
|
|
8171
|
+
};
|
|
8172
|
+
}
|
|
8173
|
+
static types() {
|
|
8174
|
+
return {
|
|
8175
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8176
|
+
statusCode: 'number',
|
|
8177
|
+
body: UndeployHttpApiResponseBody,
|
|
8178
|
+
};
|
|
8179
|
+
}
|
|
8180
|
+
validate() {
|
|
8181
|
+
if (this.headers) {
|
|
8182
|
+
$dara.Model.validateMap(this.headers);
|
|
8183
|
+
}
|
|
8184
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
8185
|
+
this.body.validate();
|
|
8186
|
+
}
|
|
8187
|
+
super.validate();
|
|
8188
|
+
}
|
|
8189
|
+
constructor(map) {
|
|
8190
|
+
super(map);
|
|
8191
|
+
}
|
|
8192
|
+
}
|
|
8193
|
+
exports.UndeployHttpApiResponse = UndeployHttpApiResponse;
|
|
7662
8194
|
class UpdateDomainRequest extends $dara.Model {
|
|
7663
8195
|
static names() {
|
|
7664
8196
|
return {
|
|
7665
8197
|
caCertIdentifier: 'caCertIdentifier',
|
|
7666
8198
|
certIdentifier: 'certIdentifier',
|
|
8199
|
+
clientCACert: 'clientCACert',
|
|
7667
8200
|
forceHttps: 'forceHttps',
|
|
7668
8201
|
http2Option: 'http2Option',
|
|
8202
|
+
mTLSEnabled: 'mTLSEnabled',
|
|
7669
8203
|
protocol: 'protocol',
|
|
7670
8204
|
tlsCipherSuitesConfig: 'tlsCipherSuitesConfig',
|
|
7671
8205
|
tlsMax: 'tlsMax',
|
|
@@ -7676,8 +8210,10 @@ class UpdateDomainRequest extends $dara.Model {
|
|
|
7676
8210
|
return {
|
|
7677
8211
|
caCertIdentifier: 'string',
|
|
7678
8212
|
certIdentifier: 'string',
|
|
8213
|
+
clientCACert: 'string',
|
|
7679
8214
|
forceHttps: 'boolean',
|
|
7680
8215
|
http2Option: 'string',
|
|
8216
|
+
mTLSEnabled: 'boolean',
|
|
7681
8217
|
protocol: 'string',
|
|
7682
8218
|
tlsCipherSuitesConfig: TlsCipherSuitesConfig,
|
|
7683
8219
|
tlsMax: 'string',
|
|
@@ -8450,7 +8986,7 @@ class Client extends openapi_core_1.default {
|
|
|
8450
8986
|
return await this.addGatewaySecurityGroupRuleWithOptions(gatewayId, request, headers, runtime);
|
|
8451
8987
|
}
|
|
8452
8988
|
/**
|
|
8453
|
-
*
|
|
8989
|
+
* Resource Group Transfer
|
|
8454
8990
|
*
|
|
8455
8991
|
* @param request - ChangeResourceGroupRequest
|
|
8456
8992
|
* @param headers - map
|
|
@@ -8495,7 +9031,7 @@ class Client extends openapi_core_1.default {
|
|
|
8495
9031
|
}
|
|
8496
9032
|
}
|
|
8497
9033
|
/**
|
|
8498
|
-
*
|
|
9034
|
+
* Resource Group Transfer
|
|
8499
9035
|
*
|
|
8500
9036
|
* @param request - ChangeResourceGroupRequest
|
|
8501
9037
|
* @returns ChangeResourceGroupResponse
|
|
@@ -8525,12 +9061,18 @@ class Client extends openapi_core_1.default {
|
|
|
8525
9061
|
if (!$dara.isNull(request.certIdentifier)) {
|
|
8526
9062
|
body["certIdentifier"] = request.certIdentifier;
|
|
8527
9063
|
}
|
|
9064
|
+
if (!$dara.isNull(request.clientCACert)) {
|
|
9065
|
+
body["clientCACert"] = request.clientCACert;
|
|
9066
|
+
}
|
|
8528
9067
|
if (!$dara.isNull(request.forceHttps)) {
|
|
8529
9068
|
body["forceHttps"] = request.forceHttps;
|
|
8530
9069
|
}
|
|
8531
9070
|
if (!$dara.isNull(request.http2Option)) {
|
|
8532
9071
|
body["http2Option"] = request.http2Option;
|
|
8533
9072
|
}
|
|
9073
|
+
if (!$dara.isNull(request.mTLSEnabled)) {
|
|
9074
|
+
body["mTLSEnabled"] = request.mTLSEnabled;
|
|
9075
|
+
}
|
|
8534
9076
|
if (!$dara.isNull(request.name)) {
|
|
8535
9077
|
body["name"] = request.name;
|
|
8536
9078
|
}
|
|
@@ -8784,7 +9326,7 @@ class Client extends openapi_core_1.default {
|
|
|
8784
9326
|
return await this.createHttpApiOperationWithOptions(httpApiId, request, headers, runtime);
|
|
8785
9327
|
}
|
|
8786
9328
|
/**
|
|
8787
|
-
*
|
|
9329
|
+
* Creates a route for an HTTP API.
|
|
8788
9330
|
*
|
|
8789
9331
|
* @param request - CreateHttpApiRouteRequest
|
|
8790
9332
|
* @param headers - map
|
|
@@ -8835,7 +9377,7 @@ class Client extends openapi_core_1.default {
|
|
|
8835
9377
|
}
|
|
8836
9378
|
}
|
|
8837
9379
|
/**
|
|
8838
|
-
*
|
|
9380
|
+
* Creates a route for an HTTP API.
|
|
8839
9381
|
*
|
|
8840
9382
|
* @param request - CreateHttpApiRouteRequest
|
|
8841
9383
|
* @returns CreateHttpApiRouteResponse
|
|
@@ -8846,7 +9388,7 @@ class Client extends openapi_core_1.default {
|
|
|
8846
9388
|
return await this.createHttpApiRouteWithOptions(httpApiId, request, headers, runtime);
|
|
8847
9389
|
}
|
|
8848
9390
|
/**
|
|
8849
|
-
*
|
|
9391
|
+
* Create Policy
|
|
8850
9392
|
*
|
|
8851
9393
|
* @param request - CreatePolicyRequest
|
|
8852
9394
|
* @param headers - map
|
|
@@ -8891,7 +9433,7 @@ class Client extends openapi_core_1.default {
|
|
|
8891
9433
|
}
|
|
8892
9434
|
}
|
|
8893
9435
|
/**
|
|
8894
|
-
*
|
|
9436
|
+
* Create Policy
|
|
8895
9437
|
*
|
|
8896
9438
|
* @param request - CreatePolicyRequest
|
|
8897
9439
|
* @returns CreatePolicyResponse
|
|
@@ -8902,7 +9444,7 @@ class Client extends openapi_core_1.default {
|
|
|
8902
9444
|
return await this.createPolicyWithOptions(request, headers, runtime);
|
|
8903
9445
|
}
|
|
8904
9446
|
/**
|
|
8905
|
-
*
|
|
9447
|
+
* Create policy resource mount
|
|
8906
9448
|
*
|
|
8907
9449
|
* @param request - CreatePolicyAttachmentRequest
|
|
8908
9450
|
* @param headers - map
|
|
@@ -8950,7 +9492,7 @@ class Client extends openapi_core_1.default {
|
|
|
8950
9492
|
}
|
|
8951
9493
|
}
|
|
8952
9494
|
/**
|
|
8953
|
-
*
|
|
9495
|
+
* Create policy resource mount
|
|
8954
9496
|
*
|
|
8955
9497
|
* @param request - CreatePolicyAttachmentRequest
|
|
8956
9498
|
* @returns CreatePolicyAttachmentResponse
|
|
@@ -8960,6 +9502,68 @@ class Client extends openapi_core_1.default {
|
|
|
8960
9502
|
let headers = {};
|
|
8961
9503
|
return await this.createPolicyAttachmentWithOptions(request, headers, runtime);
|
|
8962
9504
|
}
|
|
9505
|
+
/**
|
|
9506
|
+
* Create Service
|
|
9507
|
+
*
|
|
9508
|
+
* @remarks
|
|
9509
|
+
* The interface supports creating multiple services.
|
|
9510
|
+
*
|
|
9511
|
+
* @param request - CreateServiceRequest
|
|
9512
|
+
* @param headers - map
|
|
9513
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9514
|
+
* @returns CreateServiceResponse
|
|
9515
|
+
*/
|
|
9516
|
+
async createServiceWithOptions(request, headers, runtime) {
|
|
9517
|
+
request.validate();
|
|
9518
|
+
let body = {};
|
|
9519
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
9520
|
+
body["gatewayId"] = request.gatewayId;
|
|
9521
|
+
}
|
|
9522
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
9523
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
9524
|
+
}
|
|
9525
|
+
if (!$dara.isNull(request.serviceConfigs)) {
|
|
9526
|
+
body["serviceConfigs"] = request.serviceConfigs;
|
|
9527
|
+
}
|
|
9528
|
+
if (!$dara.isNull(request.sourceType)) {
|
|
9529
|
+
body["sourceType"] = request.sourceType;
|
|
9530
|
+
}
|
|
9531
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
9532
|
+
headers: headers,
|
|
9533
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
9534
|
+
});
|
|
9535
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
9536
|
+
action: "CreateService",
|
|
9537
|
+
version: "2024-03-27",
|
|
9538
|
+
protocol: "HTTPS",
|
|
9539
|
+
pathname: `/v1/services`,
|
|
9540
|
+
method: "POST",
|
|
9541
|
+
authType: "AK",
|
|
9542
|
+
style: "ROA",
|
|
9543
|
+
reqBodyType: "json",
|
|
9544
|
+
bodyType: "json",
|
|
9545
|
+
});
|
|
9546
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
9547
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateServiceResponse({}));
|
|
9548
|
+
}
|
|
9549
|
+
else {
|
|
9550
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateServiceResponse({}));
|
|
9551
|
+
}
|
|
9552
|
+
}
|
|
9553
|
+
/**
|
|
9554
|
+
* Create Service
|
|
9555
|
+
*
|
|
9556
|
+
* @remarks
|
|
9557
|
+
* The interface supports creating multiple services.
|
|
9558
|
+
*
|
|
9559
|
+
* @param request - CreateServiceRequest
|
|
9560
|
+
* @returns CreateServiceResponse
|
|
9561
|
+
*/
|
|
9562
|
+
async createService(request) {
|
|
9563
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
9564
|
+
let headers = {};
|
|
9565
|
+
return await this.createServiceWithOptions(request, headers, runtime);
|
|
9566
|
+
}
|
|
8963
9567
|
/**
|
|
8964
9568
|
* DeleteDomain
|
|
8965
9569
|
*
|
|
@@ -9128,7 +9732,7 @@ class Client extends openapi_core_1.default {
|
|
|
9128
9732
|
return await this.deleteGatewaySecurityGroupRuleWithOptions(gatewayId, securityGroupRuleId, request, headers, runtime);
|
|
9129
9733
|
}
|
|
9130
9734
|
/**
|
|
9131
|
-
*
|
|
9735
|
+
* Deletes an HTTP API.
|
|
9132
9736
|
*
|
|
9133
9737
|
* @param headers - map
|
|
9134
9738
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9157,7 +9761,7 @@ class Client extends openapi_core_1.default {
|
|
|
9157
9761
|
}
|
|
9158
9762
|
}
|
|
9159
9763
|
/**
|
|
9160
|
-
*
|
|
9764
|
+
* Deletes an HTTP API.
|
|
9161
9765
|
* @returns DeleteHttpApiResponse
|
|
9162
9766
|
*/
|
|
9163
9767
|
async deleteHttpApi(httpApiId) {
|
|
@@ -9242,7 +9846,7 @@ class Client extends openapi_core_1.default {
|
|
|
9242
9846
|
return await this.deleteHttpApiRouteWithOptions(httpApiId, routeId, headers, runtime);
|
|
9243
9847
|
}
|
|
9244
9848
|
/**
|
|
9245
|
-
*
|
|
9849
|
+
* Delete Policy
|
|
9246
9850
|
*
|
|
9247
9851
|
* @param headers - map
|
|
9248
9852
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9271,7 +9875,7 @@ class Client extends openapi_core_1.default {
|
|
|
9271
9875
|
}
|
|
9272
9876
|
}
|
|
9273
9877
|
/**
|
|
9274
|
-
*
|
|
9878
|
+
* Delete Policy
|
|
9275
9879
|
* @returns DeletePolicyResponse
|
|
9276
9880
|
*/
|
|
9277
9881
|
async deletePolicy(policyId) {
|
|
@@ -9280,7 +9884,7 @@ class Client extends openapi_core_1.default {
|
|
|
9280
9884
|
return await this.deletePolicyWithOptions(policyId, headers, runtime);
|
|
9281
9885
|
}
|
|
9282
9886
|
/**
|
|
9283
|
-
*
|
|
9887
|
+
* Delete policy resource attachment
|
|
9284
9888
|
*
|
|
9285
9889
|
* @param headers - map
|
|
9286
9890
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9309,7 +9913,7 @@ class Client extends openapi_core_1.default {
|
|
|
9309
9913
|
}
|
|
9310
9914
|
}
|
|
9311
9915
|
/**
|
|
9312
|
-
*
|
|
9916
|
+
* Delete policy resource attachment
|
|
9313
9917
|
* @returns DeletePolicyAttachmentResponse
|
|
9314
9918
|
*/
|
|
9315
9919
|
async deletePolicyAttachment(policyAttachmentId) {
|
|
@@ -9318,7 +9922,7 @@ class Client extends openapi_core_1.default {
|
|
|
9318
9922
|
return await this.deletePolicyAttachmentWithOptions(policyAttachmentId, headers, runtime);
|
|
9319
9923
|
}
|
|
9320
9924
|
/**
|
|
9321
|
-
*
|
|
9925
|
+
* Deploy HttpApi
|
|
9322
9926
|
*
|
|
9323
9927
|
* @param request - DeployHttpApiRequest
|
|
9324
9928
|
* @param headers - map
|
|
@@ -9357,7 +9961,7 @@ class Client extends openapi_core_1.default {
|
|
|
9357
9961
|
}
|
|
9358
9962
|
}
|
|
9359
9963
|
/**
|
|
9360
|
-
*
|
|
9964
|
+
* Deploy HttpApi
|
|
9361
9965
|
*
|
|
9362
9966
|
* @param request - DeployHttpApiRequest
|
|
9363
9967
|
* @returns DeployHttpApiResponse
|
|
@@ -9406,7 +10010,7 @@ class Client extends openapi_core_1.default {
|
|
|
9406
10010
|
return await this.exportHttpApiWithOptions(httpApiId, headers, runtime);
|
|
9407
10011
|
}
|
|
9408
10012
|
/**
|
|
9409
|
-
*
|
|
10013
|
+
* Get Monitoring/Logging Dashboard Interface
|
|
9410
10014
|
*
|
|
9411
10015
|
* @param tmpReq - GetDashboardRequest
|
|
9412
10016
|
* @param headers - map
|
|
@@ -9462,7 +10066,7 @@ class Client extends openapi_core_1.default {
|
|
|
9462
10066
|
}
|
|
9463
10067
|
}
|
|
9464
10068
|
/**
|
|
9465
|
-
*
|
|
10069
|
+
* Get Monitoring/Logging Dashboard Interface
|
|
9466
10070
|
*
|
|
9467
10071
|
* @param request - GetDashboardRequest
|
|
9468
10072
|
* @returns GetDashboardResponse
|
|
@@ -9766,7 +10370,7 @@ class Client extends openapi_core_1.default {
|
|
|
9766
10370
|
return await this.getPolicyWithOptions(policyId, headers, runtime);
|
|
9767
10371
|
}
|
|
9768
10372
|
/**
|
|
9769
|
-
*
|
|
10373
|
+
* Query Policy Resource Attachment
|
|
9770
10374
|
*
|
|
9771
10375
|
* @param headers - map
|
|
9772
10376
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9795,7 +10399,7 @@ class Client extends openapi_core_1.default {
|
|
|
9795
10399
|
}
|
|
9796
10400
|
}
|
|
9797
10401
|
/**
|
|
9798
|
-
*
|
|
10402
|
+
* Query Policy Resource Attachment
|
|
9799
10403
|
* @returns GetPolicyAttachmentResponse
|
|
9800
10404
|
*/
|
|
9801
10405
|
async getPolicyAttachment(policyAttachmentId) {
|
|
@@ -9804,7 +10408,7 @@ class Client extends openapi_core_1.default {
|
|
|
9804
10408
|
return await this.getPolicyAttachmentWithOptions(policyAttachmentId, headers, runtime);
|
|
9805
10409
|
}
|
|
9806
10410
|
/**
|
|
9807
|
-
*
|
|
10411
|
+
* Get resource overview information
|
|
9808
10412
|
*
|
|
9809
10413
|
* @param headers - map
|
|
9810
10414
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9833,7 +10437,7 @@ class Client extends openapi_core_1.default {
|
|
|
9833
10437
|
}
|
|
9834
10438
|
}
|
|
9835
10439
|
/**
|
|
9836
|
-
*
|
|
10440
|
+
* Get resource overview information
|
|
9837
10441
|
* @returns GetResourceOverviewResponse
|
|
9838
10442
|
*/
|
|
9839
10443
|
async getResourceOverview() {
|
|
@@ -9842,7 +10446,45 @@ class Client extends openapi_core_1.default {
|
|
|
9842
10446
|
return await this.getResourceOverviewWithOptions(headers, runtime);
|
|
9843
10447
|
}
|
|
9844
10448
|
/**
|
|
9845
|
-
*
|
|
10449
|
+
* Get Service Details
|
|
10450
|
+
*
|
|
10451
|
+
* @param headers - map
|
|
10452
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10453
|
+
* @returns GetServiceResponse
|
|
10454
|
+
*/
|
|
10455
|
+
async getServiceWithOptions(serviceId, headers, runtime) {
|
|
10456
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10457
|
+
headers: headers,
|
|
10458
|
+
});
|
|
10459
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10460
|
+
action: "GetService",
|
|
10461
|
+
version: "2024-03-27",
|
|
10462
|
+
protocol: "HTTPS",
|
|
10463
|
+
pathname: `/v1/services/${$dara.URL.percentEncode(serviceId)}`,
|
|
10464
|
+
method: "GET",
|
|
10465
|
+
authType: "AK",
|
|
10466
|
+
style: "ROA",
|
|
10467
|
+
reqBodyType: "json",
|
|
10468
|
+
bodyType: "json",
|
|
10469
|
+
});
|
|
10470
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
10471
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetServiceResponse({}));
|
|
10472
|
+
}
|
|
10473
|
+
else {
|
|
10474
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetServiceResponse({}));
|
|
10475
|
+
}
|
|
10476
|
+
}
|
|
10477
|
+
/**
|
|
10478
|
+
* Get Service Details
|
|
10479
|
+
* @returns GetServiceResponse
|
|
10480
|
+
*/
|
|
10481
|
+
async getService(serviceId) {
|
|
10482
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
10483
|
+
let headers = {};
|
|
10484
|
+
return await this.getServiceWithOptions(serviceId, headers, runtime);
|
|
10485
|
+
}
|
|
10486
|
+
/**
|
|
10487
|
+
* Retrieve Tracing Configuration
|
|
9846
10488
|
*
|
|
9847
10489
|
* @param request - GetTraceConfigRequest
|
|
9848
10490
|
* @param headers - map
|
|
@@ -9878,7 +10520,7 @@ class Client extends openapi_core_1.default {
|
|
|
9878
10520
|
}
|
|
9879
10521
|
}
|
|
9880
10522
|
/**
|
|
9881
|
-
*
|
|
10523
|
+
* Retrieve Tracing Configuration
|
|
9882
10524
|
*
|
|
9883
10525
|
* @param request - GetTraceConfigRequest
|
|
9884
10526
|
* @returns GetTraceConfigResponse
|
|
@@ -10236,6 +10878,89 @@ class Client extends openapi_core_1.default {
|
|
|
10236
10878
|
let headers = {};
|
|
10237
10879
|
return await this.listHttpApiOperationsWithOptions(httpApiId, request, headers, runtime);
|
|
10238
10880
|
}
|
|
10881
|
+
/**
|
|
10882
|
+
* Create a route for HttpApi
|
|
10883
|
+
*
|
|
10884
|
+
* @param request - ListHttpApiRoutesRequest
|
|
10885
|
+
* @param headers - map
|
|
10886
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10887
|
+
* @returns ListHttpApiRoutesResponse
|
|
10888
|
+
*/
|
|
10889
|
+
async listHttpApiRoutesWithOptions(httpApiId, request, headers, runtime) {
|
|
10890
|
+
request.validate();
|
|
10891
|
+
let query = {};
|
|
10892
|
+
if (!$dara.isNull(request.consumerAuthorizationRuleId)) {
|
|
10893
|
+
query["consumerAuthorizationRuleId"] = request.consumerAuthorizationRuleId;
|
|
10894
|
+
}
|
|
10895
|
+
if (!$dara.isNull(request.deployStatuses)) {
|
|
10896
|
+
query["deployStatuses"] = request.deployStatuses;
|
|
10897
|
+
}
|
|
10898
|
+
if (!$dara.isNull(request.domainId)) {
|
|
10899
|
+
query["domainId"] = request.domainId;
|
|
10900
|
+
}
|
|
10901
|
+
if (!$dara.isNull(request.environmentId)) {
|
|
10902
|
+
query["environmentId"] = request.environmentId;
|
|
10903
|
+
}
|
|
10904
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
10905
|
+
query["gatewayId"] = request.gatewayId;
|
|
10906
|
+
}
|
|
10907
|
+
if (!$dara.isNull(request.name)) {
|
|
10908
|
+
query["name"] = request.name;
|
|
10909
|
+
}
|
|
10910
|
+
if (!$dara.isNull(request.nameLike)) {
|
|
10911
|
+
query["nameLike"] = request.nameLike;
|
|
10912
|
+
}
|
|
10913
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
10914
|
+
query["pageNumber"] = request.pageNumber;
|
|
10915
|
+
}
|
|
10916
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
10917
|
+
query["pageSize"] = request.pageSize;
|
|
10918
|
+
}
|
|
10919
|
+
if (!$dara.isNull(request.pathLike)) {
|
|
10920
|
+
query["pathLike"] = request.pathLike;
|
|
10921
|
+
}
|
|
10922
|
+
if (!$dara.isNull(request.withAuthPolicyInfo)) {
|
|
10923
|
+
query["withAuthPolicyInfo"] = request.withAuthPolicyInfo;
|
|
10924
|
+
}
|
|
10925
|
+
if (!$dara.isNull(request.withConsumerInfoById)) {
|
|
10926
|
+
query["withConsumerInfoById"] = request.withConsumerInfoById;
|
|
10927
|
+
}
|
|
10928
|
+
if (!$dara.isNull(request.withPluginAttachmentByPluginId)) {
|
|
10929
|
+
query["withPluginAttachmentByPluginId"] = request.withPluginAttachmentByPluginId;
|
|
10930
|
+
}
|
|
10931
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10932
|
+
headers: headers,
|
|
10933
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
10934
|
+
});
|
|
10935
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10936
|
+
action: "ListHttpApiRoutes",
|
|
10937
|
+
version: "2024-03-27",
|
|
10938
|
+
protocol: "HTTPS",
|
|
10939
|
+
pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/routes`,
|
|
10940
|
+
method: "GET",
|
|
10941
|
+
authType: "AK",
|
|
10942
|
+
style: "ROA",
|
|
10943
|
+
reqBodyType: "json",
|
|
10944
|
+
bodyType: "json",
|
|
10945
|
+
});
|
|
10946
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
10947
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListHttpApiRoutesResponse({}));
|
|
10948
|
+
}
|
|
10949
|
+
else {
|
|
10950
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListHttpApiRoutesResponse({}));
|
|
10951
|
+
}
|
|
10952
|
+
}
|
|
10953
|
+
/**
|
|
10954
|
+
* Create a route for HttpApi
|
|
10955
|
+
*
|
|
10956
|
+
* @param request - ListHttpApiRoutesRequest
|
|
10957
|
+
* @returns ListHttpApiRoutesResponse
|
|
10958
|
+
*/
|
|
10959
|
+
async listHttpApiRoutes(httpApiId, request) {
|
|
10960
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
10961
|
+
let headers = {};
|
|
10962
|
+
return await this.listHttpApiRoutesWithOptions(httpApiId, request, headers, runtime);
|
|
10963
|
+
}
|
|
10239
10964
|
/**
|
|
10240
10965
|
* List HTTP APIs
|
|
10241
10966
|
*
|
|
@@ -10323,7 +11048,7 @@ class Client extends openapi_core_1.default {
|
|
|
10323
11048
|
return await this.listHttpApisWithOptions(request, headers, runtime);
|
|
10324
11049
|
}
|
|
10325
11050
|
/**
|
|
10326
|
-
* ListPolicyClasses
|
|
11051
|
+
* ListPolicyClasses
|
|
10327
11052
|
*
|
|
10328
11053
|
* @param request - ListPolicyClassesRequest
|
|
10329
11054
|
* @param headers - map
|
|
@@ -10371,7 +11096,7 @@ class Client extends openapi_core_1.default {
|
|
|
10371
11096
|
}
|
|
10372
11097
|
}
|
|
10373
11098
|
/**
|
|
10374
|
-
* ListPolicyClasses
|
|
11099
|
+
* ListPolicyClasses
|
|
10375
11100
|
*
|
|
10376
11101
|
* @param request - ListPolicyClassesRequest
|
|
10377
11102
|
* @returns ListPolicyClassesResponse
|
|
@@ -10382,7 +11107,69 @@ class Client extends openapi_core_1.default {
|
|
|
10382
11107
|
return await this.listPolicyClassesWithOptions(request, headers, runtime);
|
|
10383
11108
|
}
|
|
10384
11109
|
/**
|
|
10385
|
-
*
|
|
11110
|
+
* Get Service List
|
|
11111
|
+
*
|
|
11112
|
+
* @param request - ListServicesRequest
|
|
11113
|
+
* @param headers - map
|
|
11114
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11115
|
+
* @returns ListServicesResponse
|
|
11116
|
+
*/
|
|
11117
|
+
async listServicesWithOptions(request, headers, runtime) {
|
|
11118
|
+
request.validate();
|
|
11119
|
+
let query = {};
|
|
11120
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
11121
|
+
query["gatewayId"] = request.gatewayId;
|
|
11122
|
+
}
|
|
11123
|
+
if (!$dara.isNull(request.name)) {
|
|
11124
|
+
query["name"] = request.name;
|
|
11125
|
+
}
|
|
11126
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
11127
|
+
query["pageNumber"] = request.pageNumber;
|
|
11128
|
+
}
|
|
11129
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
11130
|
+
query["pageSize"] = request.pageSize;
|
|
11131
|
+
}
|
|
11132
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
11133
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
11134
|
+
}
|
|
11135
|
+
if (!$dara.isNull(request.sourceType)) {
|
|
11136
|
+
query["sourceType"] = request.sourceType;
|
|
11137
|
+
}
|
|
11138
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
11139
|
+
headers: headers,
|
|
11140
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
11141
|
+
});
|
|
11142
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
11143
|
+
action: "ListServices",
|
|
11144
|
+
version: "2024-03-27",
|
|
11145
|
+
protocol: "HTTPS",
|
|
11146
|
+
pathname: `/v1/services`,
|
|
11147
|
+
method: "GET",
|
|
11148
|
+
authType: "AK",
|
|
11149
|
+
style: "ROA",
|
|
11150
|
+
reqBodyType: "json",
|
|
11151
|
+
bodyType: "json",
|
|
11152
|
+
});
|
|
11153
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
11154
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListServicesResponse({}));
|
|
11155
|
+
}
|
|
11156
|
+
else {
|
|
11157
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListServicesResponse({}));
|
|
11158
|
+
}
|
|
11159
|
+
}
|
|
11160
|
+
/**
|
|
11161
|
+
* Get Service List
|
|
11162
|
+
*
|
|
11163
|
+
* @param request - ListServicesRequest
|
|
11164
|
+
* @returns ListServicesResponse
|
|
11165
|
+
*/
|
|
11166
|
+
async listServices(request) {
|
|
11167
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
11168
|
+
let headers = {};
|
|
11169
|
+
return await this.listServicesWithOptions(request, headers, runtime);
|
|
11170
|
+
}
|
|
11171
|
+
/**
|
|
11172
|
+
* ListSslCerts
|
|
10386
11173
|
*
|
|
10387
11174
|
* @param request - ListSslCertsRequest
|
|
10388
11175
|
* @param headers - map
|
|
@@ -10427,7 +11214,7 @@ class Client extends openapi_core_1.default {
|
|
|
10427
11214
|
}
|
|
10428
11215
|
}
|
|
10429
11216
|
/**
|
|
10430
|
-
* ListSslCerts
|
|
11217
|
+
* ListSslCerts
|
|
10431
11218
|
*
|
|
10432
11219
|
* @param request - ListSslCertsRequest
|
|
10433
11220
|
* @returns ListSslCertsResponse
|
|
@@ -10438,7 +11225,7 @@ class Client extends openapi_core_1.default {
|
|
|
10438
11225
|
return await this.listSslCertsWithOptions(request, headers, runtime);
|
|
10439
11226
|
}
|
|
10440
11227
|
/**
|
|
10441
|
-
*
|
|
11228
|
+
* Retrieve the availability zones under a cloud-native API gateway region
|
|
10442
11229
|
*
|
|
10443
11230
|
* @param headers - map
|
|
10444
11231
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -10467,7 +11254,7 @@ class Client extends openapi_core_1.default {
|
|
|
10467
11254
|
}
|
|
10468
11255
|
}
|
|
10469
11256
|
/**
|
|
10470
|
-
*
|
|
11257
|
+
* Retrieve the availability zones under a cloud-native API gateway region
|
|
10471
11258
|
* @returns ListZonesResponse
|
|
10472
11259
|
*/
|
|
10473
11260
|
async listZones() {
|
|
@@ -10513,9 +11300,62 @@ class Client extends openapi_core_1.default {
|
|
|
10513
11300
|
let headers = {};
|
|
10514
11301
|
return await this.restartGatewayWithOptions(gatewayId, headers, runtime);
|
|
10515
11302
|
}
|
|
11303
|
+
/**
|
|
11304
|
+
* 取消部署HttpApi
|
|
11305
|
+
*
|
|
11306
|
+
* @param request - UndeployHttpApiRequest
|
|
11307
|
+
* @param headers - map
|
|
11308
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11309
|
+
* @returns UndeployHttpApiResponse
|
|
11310
|
+
*/
|
|
11311
|
+
async undeployHttpApiWithOptions(httpApiId, request, headers, runtime) {
|
|
11312
|
+
request.validate();
|
|
11313
|
+
let body = {};
|
|
11314
|
+
if (!$dara.isNull(request.environmentId)) {
|
|
11315
|
+
body["environmentId"] = request.environmentId;
|
|
11316
|
+
}
|
|
11317
|
+
if (!$dara.isNull(request.routeId)) {
|
|
11318
|
+
body["routeId"] = request.routeId;
|
|
11319
|
+
}
|
|
11320
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
11321
|
+
headers: headers,
|
|
11322
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
11323
|
+
});
|
|
11324
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
11325
|
+
action: "UndeployHttpApi",
|
|
11326
|
+
version: "2024-03-27",
|
|
11327
|
+
protocol: "HTTPS",
|
|
11328
|
+
pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/undeploy`,
|
|
11329
|
+
method: "POST",
|
|
11330
|
+
authType: "AK",
|
|
11331
|
+
style: "ROA",
|
|
11332
|
+
reqBodyType: "json",
|
|
11333
|
+
bodyType: "json",
|
|
11334
|
+
});
|
|
11335
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
11336
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UndeployHttpApiResponse({}));
|
|
11337
|
+
}
|
|
11338
|
+
else {
|
|
11339
|
+
return $dara.cast(await this.execute(params, req, runtime), new UndeployHttpApiResponse({}));
|
|
11340
|
+
}
|
|
11341
|
+
}
|
|
11342
|
+
/**
|
|
11343
|
+
* 取消部署HttpApi
|
|
11344
|
+
*
|
|
11345
|
+
* @param request - UndeployHttpApiRequest
|
|
11346
|
+
* @returns UndeployHttpApiResponse
|
|
11347
|
+
*/
|
|
11348
|
+
async undeployHttpApi(httpApiId, request) {
|
|
11349
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
11350
|
+
let headers = {};
|
|
11351
|
+
return await this.undeployHttpApiWithOptions(httpApiId, request, headers, runtime);
|
|
11352
|
+
}
|
|
10516
11353
|
/**
|
|
10517
11354
|
* UpdateDomain
|
|
10518
11355
|
*
|
|
11356
|
+
* @remarks
|
|
11357
|
+
* 只有类型为**容器服务**的来源允许更新监听Ingress的配置。
|
|
11358
|
+
*
|
|
10519
11359
|
* @param request - UpdateDomainRequest
|
|
10520
11360
|
* @param headers - map
|
|
10521
11361
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -10530,12 +11370,18 @@ class Client extends openapi_core_1.default {
|
|
|
10530
11370
|
if (!$dara.isNull(request.certIdentifier)) {
|
|
10531
11371
|
body["certIdentifier"] = request.certIdentifier;
|
|
10532
11372
|
}
|
|
11373
|
+
if (!$dara.isNull(request.clientCACert)) {
|
|
11374
|
+
body["clientCACert"] = request.clientCACert;
|
|
11375
|
+
}
|
|
10533
11376
|
if (!$dara.isNull(request.forceHttps)) {
|
|
10534
11377
|
body["forceHttps"] = request.forceHttps;
|
|
10535
11378
|
}
|
|
10536
11379
|
if (!$dara.isNull(request.http2Option)) {
|
|
10537
11380
|
body["http2Option"] = request.http2Option;
|
|
10538
11381
|
}
|
|
11382
|
+
if (!$dara.isNull(request.mTLSEnabled)) {
|
|
11383
|
+
body["mTLSEnabled"] = request.mTLSEnabled;
|
|
11384
|
+
}
|
|
10539
11385
|
if (!$dara.isNull(request.protocol)) {
|
|
10540
11386
|
body["protocol"] = request.protocol;
|
|
10541
11387
|
}
|
|
@@ -10573,6 +11419,9 @@ class Client extends openapi_core_1.default {
|
|
|
10573
11419
|
/**
|
|
10574
11420
|
* UpdateDomain
|
|
10575
11421
|
*
|
|
11422
|
+
* @remarks
|
|
11423
|
+
* 只有类型为**容器服务**的来源允许更新监听Ingress的配置。
|
|
11424
|
+
*
|
|
10576
11425
|
* @param request - UpdateDomainRequest
|
|
10577
11426
|
* @returns UpdateDomainResponse
|
|
10578
11427
|
*/
|
|
@@ -10732,7 +11581,7 @@ class Client extends openapi_core_1.default {
|
|
|
10732
11581
|
return await this.updateGatewayNameWithOptions(gatewayId, request, headers, runtime);
|
|
10733
11582
|
}
|
|
10734
11583
|
/**
|
|
10735
|
-
*
|
|
11584
|
+
* Updates an HTTP API.
|
|
10736
11585
|
*
|
|
10737
11586
|
* @param request - UpdateHttpApiRequest
|
|
10738
11587
|
* @param headers - map
|
|
@@ -10792,7 +11641,7 @@ class Client extends openapi_core_1.default {
|
|
|
10792
11641
|
}
|
|
10793
11642
|
}
|
|
10794
11643
|
/**
|
|
10795
|
-
*
|
|
11644
|
+
* Updates an HTTP API.
|
|
10796
11645
|
*
|
|
10797
11646
|
* @param request - UpdateHttpApiRequest
|
|
10798
11647
|
* @returns UpdateHttpApiResponse
|
|
@@ -10909,7 +11758,7 @@ class Client extends openapi_core_1.default {
|
|
|
10909
11758
|
return await this.updateHttpApiRouteWithOptions(httpApiId, routeId, request, headers, runtime);
|
|
10910
11759
|
}
|
|
10911
11760
|
/**
|
|
10912
|
-
*
|
|
11761
|
+
* Update Policy
|
|
10913
11762
|
*
|
|
10914
11763
|
* @param request - UpdatePolicyRequest
|
|
10915
11764
|
* @param headers - map
|
|
@@ -10951,7 +11800,7 @@ class Client extends openapi_core_1.default {
|
|
|
10951
11800
|
}
|
|
10952
11801
|
}
|
|
10953
11802
|
/**
|
|
10954
|
-
*
|
|
11803
|
+
* Update Policy
|
|
10955
11804
|
*
|
|
10956
11805
|
* @param request - UpdatePolicyRequest
|
|
10957
11806
|
* @returns UpdatePolicyResponse
|