Skip to content

Commit c30a595

Browse files
committed
Add location endpoint.
1 parent 8b57e2e commit c30a595

17 files changed

+97
-22
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022-09-16 Version: 2.0.4
2+
- Add location endpoint.
3+
14
2022-09-16 Version: 2.0.3
25
- Init amp.
36

aliyun-net-sdk-antiddos-public/Antiddos_public/Endpoint.cs

+9-7
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ public class Endpoint
2727
{
2828
{ "cn-shanghai-internal-test-1", "antiddos.aliyuncs.com" },
2929
{ "cn-shenzhen-su18-b01", "antiddos.aliyuncs.com" },
30-
{ "cn-beijing", "antiddos-openapi-vpc.cn-beijing.aliyuncs.com" },
30+
{ "cn-beijing", "antiddos.aliyuncs.com" },
3131
{ "cn-shanghai-inner", "antiddos.aliyuncs.com" },
3232
{ "cn-hangzhou-internal-prod-1", "antiddos.aliyuncs.com" },
3333
{ "cn-north-2-gov-1", "antiddos.aliyuncs.com" },
3434
{ "cn-yushanfang", "antiddos.aliyuncs.com" },
3535
{ "cn-qingdao-nebula", "antiddos.aliyuncs.com" },
36+
{ "cn-heyuan", "antiddos-openapi.cn-heyuan.aliyuncs.com" },
3637
{ "cn-beijing-finance-pop", "antiddos.aliyuncs.com" },
3738
{ "cn-wuhan", "antiddos.aliyuncs.com" },
3839
{ "cn-zhangjiakou", "antiddos-openapi.cn-zhangjiakou.aliyuncs.com" },
@@ -51,17 +52,17 @@ public class Endpoint
5152
{ "ap-southeast-5", "antiddos-openapi.ap-southeast-5.aliyuncs.com" },
5253
{ "us-east-1", "antiddos.aliyuncs.com" },
5354
{ "cn-shenzhen-inner", "antiddos.aliyuncs.com" },
54-
{ "cn-zhangjiakou-na62-a01", "antiddos.aliyuncs.com" },
55+
{ "cn-zhangjiakou-na62-a01", "antiddos-openapi.cn-zhangjiakou.aliyuncs.com" },
5556
{ "cn-beijing-gov-1", "antiddos.aliyuncs.com" },
5657
{ "cn-wulanchabu", "antiddos-openapi.cn-wulanchabu.aliyuncs.com" },
5758
{ "ap-south-1", "antiddos-openapi.ap-south-1.aliyuncs.com" },
5859
{ "cn-shenzhen-st4-d01", "antiddos.aliyuncs.com" },
5960
{ "cn-haidian-cm12-c01", "antiddos.aliyuncs.com" },
60-
{ "cn-qingdao", "antiddos-openapi-vpc.cn-qingdao.aliyuncs.com" },
61+
{ "cn-qingdao", "antiddos.aliyuncs.com" },
6162
{ "cn-hongkong-finance-pop", "antiddos.aliyuncs.com" },
62-
{ "cn-shanghai", "antiddos-openapi-vpc.cn-shanghai.aliyuncs.com" },
63+
{ "cn-shanghai", "antiddos.aliyuncs.com" },
6364
{ "cn-shanghai-finance-1", "antiddos.aliyuncs.com" },
64-
{ "cn-hongkong", "antiddos-openapi-vpc.cn-hongkong.aliyuncs.com" },
65+
{ "cn-hongkong", "antiddos.aliyuncs.com" },
6566
{ "eu-central-1", "antiddos-openapi.eu-central-1.aliyuncs.com" },
6667
{ "cn-shenzhen", "antiddos.aliyuncs.com" },
6768
{ "cn-zhengzhou-nebula-1", "antiddos.aliyuncs.com" },
@@ -70,18 +71,19 @@ public class Endpoint
7071
{ "eu-west-1-oxs", "antiddos.aliyuncs.com" },
7172
{ "cn-beijing-finance-1", "antiddos.aliyuncs.com" },
7273
{ "cn-hangzhou-internal-test-3", "antiddos.aliyuncs.com" },
73-
{ "cn-hangzhou-internal-test-2", "antiddos.aliyuncs.com" },
7474
{ "cn-shenzhen-finance-1", "antiddos.aliyuncs.com" },
75+
{ "cn-hangzhou-internal-test-2", "antiddos.aliyuncs.com" },
7576
{ "me-east-1", "antiddos-openapi.me-east-1.aliyuncs.com" },
7677
{ "cn-chengdu", "antiddos-openapi.cn-chengdu.aliyuncs.com" },
7778
{ "cn-hangzhou-test-306", "antiddos.aliyuncs.com" },
79+
{ "cn-guangzhou", "antiddos-openapi.cn-guangzhou.aliyuncs.com" },
7880
{ "cn-hangzhou-finance", "antiddos.aliyuncs.com" },
7981
{ "cn-beijing-nu16-b01", "antiddos.aliyuncs.com" },
8082
{ "cn-edge-1", "antiddos.aliyuncs.com" },
8183
{ "cn-huhehaote", "antiddos-openapi.cn-huhehaote.aliyuncs.com" },
8284
{ "cn-fujian", "antiddos.aliyuncs.com" },
8385
{ "ap-northeast-2-pop", "antiddos.aliyuncs.com" },
84-
{ "cn-hangzhou", "antiddos-openapi-vpc.cn-hangzhou.aliyuncs.com" },
86+
{ "cn-hangzhou", "antiddos.aliyuncs.com" },
8587
};
8688

8789
public static string endpointRegionalType = "regional";

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeBgpPackByIpRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeBgpPackByIpRequest : RpcAcsRequest<DescribeBgpPackByIpRespo
3131
{
3232
public DescribeBgpPackByIpRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeBgpPackByIp", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeCapRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeCapRequest : RpcAcsRequest<DescribeCapResponse>
3131
{
3232
public DescribeCapRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeCap", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeDdosCountRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeDdosCountRequest : RpcAcsRequest<DescribeDdosCountResponse>
3131
{
3232
public DescribeDdosCountRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeDdosCount", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeDdosCreditRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeDdosCreditRequest : RpcAcsRequest<DescribeDdosCreditRespons
3131
{
3232
public DescribeDdosCreditRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeDdosCredit", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeDdosEventListRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeDdosEventListRequest : RpcAcsRequest<DescribeDdosEventListR
3131
{
3232
public DescribeDdosEventListRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeDdosEventList", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeDdosThresholdRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeDdosThresholdRequest : RpcAcsRequest<DescribeDdosThresholdR
3131
{
3232
public DescribeDdosThresholdRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeDdosThreshold", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeInstanceIpAddressRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeInstanceIpAddressRequest : RpcAcsRequest<DescribeInstanceIp
3131
{
3232
public DescribeInstanceIpAddressRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeInstanceIpAddress", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeInstanceRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeInstanceRequest : RpcAcsRequest<DescribeInstanceResponse>
3131
{
3232
public DescribeInstanceRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeInstance", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeIpDdosThresholdRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeIpDdosThresholdRequest : RpcAcsRequest<DescribeIpDdosThresh
3131
{
3232
public DescribeIpDdosThresholdRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeIpDdosThreshold", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeIpLocationServiceRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeIpLocationServiceRequest : RpcAcsRequest<DescribeIpLocation
3131
{
3232
public DescribeIpLocationServiceRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeIpLocationService", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/DescribeRegionsRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class DescribeRegionsRequest : RpcAcsRequest<DescribeRegionsResponse>
3131
{
3232
public DescribeRegionsRequest()
3333
: base("antiddos-public", "2017-05-18", "DescribeRegions", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/ModifyDdosStatusRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class ModifyDdosStatusRequest : RpcAcsRequest<ModifyDdosStatusResponse>
3131
{
3232
public ModifyDdosStatusRequest()
3333
: base("antiddos-public", "2017-05-18", "ModifyDdosStatus", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/ModifyDefenseThresholdRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class ModifyDefenseThresholdRequest : RpcAcsRequest<ModifyDefenseThreshol
3131
{
3232
public ModifyDefenseThresholdRequest()
3333
: base("antiddos-public", "2017-05-18", "ModifyDefenseThreshold", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/Antiddos_public/Model/V20170518/ModifyIpDefenseThresholdRequest.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ public class ModifyIpDefenseThresholdRequest : RpcAcsRequest<ModifyIpDefenseThre
3131
{
3232
public ModifyIpDefenseThresholdRequest()
3333
: base("antiddos-public", "2017-05-18", "ModifyIpDefenseThreshold", "ddosbasic", "openAPI")
34-
{
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.antiddos_public.Endpoint.endpointRegionalType, null);
39+
}
3540
Method = MethodType.POST;
3641
}
3742

aliyun-net-sdk-antiddos-public/aliyun-net-sdk-antiddos-public.vs2017.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
55
<RootNamespace>Aliyun.Acs.antiddos_public</RootNamespace>
6-
<Version>2.0.3</Version>
6+
<Version>2.0.4</Version>
77
<Authors>Alibaba Cloud</Authors>
88
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
99
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)