Browse Source

Generated 2016-07-14 for CloudAPI.

sdk-team 6 years ago
parent
commit
fec3a4f251
2 changed files with 44 additions and 0 deletions
  1. 3 0
      ChangeLog.txt
  2. 41 0
      services/cloudapi/endpoint.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-07-25 Version: 1.60.73
+- Generated 2016-07-14 for `CloudAPI`.
+
 2019-07-25 Version: 1.60.72
 2019-07-25 Version: 1.60.72
 - App-related actions support tag authentication.
 - App-related actions support tag authentication.
 
 

+ 41 - 0
services/cloudapi/endpoint.go

@@ -0,0 +1,41 @@
+package cloudapi
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "regional"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{
+			"cn-shenzhen":    "apigateway.cn-shenzhen.aliyuncs.com",
+			"cn-beijing":     "apigateway.cn-beijing.aliyuncs.com",
+			"ap-south-1":     "apigateway.ap-south-1.aliyuncs.com",
+			"eu-west-1":      "apigateway.eu-west-1.aliyuncs.com",
+			"ap-northeast-1": "apigateway.ap-northeast-1.aliyuncs.com",
+			"me-east-1":      "apigateway.me-east-1.aliyuncs.com",
+			"cn-chengdu":     "apigateway.cn-chengdu.aliyuncs.com",
+			"cn-qingdao":     "apigateway.cn-qingdao.aliyuncs.com",
+			"cn-shanghai":    "apigateway.cn-shanghai.aliyuncs.com",
+			"cn-hongkong":    "apigateway.cn-hongkong.aliyuncs.com",
+			"ap-southeast-1": "apigateway.ap-southeast-1.aliyuncs.com",
+			"ap-southeast-2": "apigateway.ap-southeast-2.aliyuncs.com",
+			"ap-southeast-3": "apigateway.ap-southeast-3.aliyuncs.com",
+			"eu-central-1":   "apigateway.eu-central-1.aliyuncs.com",
+			"cn-huhehaote":   "apigateway.cn-huhehaote.aliyuncs.com",
+			"ap-southeast-5": "apigateway.ap-southeast-5.aliyuncs.com",
+			"us-east-1":      "apigateway.us-east-1.aliyuncs.com",
+			"cn-zhangjiakou": "apigateway.cn-zhangjiakou.aliyuncs.com",
+			"us-west-1":      "apigateway.us-west-1.aliyuncs.com",
+			"cn-hangzhou":    "apigateway.cn-hangzhou.aliyuncs.com",
+		}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}