|
| 1 | +# # Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# # or more contributor license agreements. See the NOTICE file |
| 3 | +# # distributed with this work for additional information |
| 4 | +# # regarding copyright ownership. The ASF licenses this file |
| 5 | +# # to you under the Apache License, Version 2.0 (the |
| 6 | +# # "License"); you may not use this file except in compliance |
| 7 | +# # with the License. You may obtain a copy of the License at |
| 8 | +# # |
| 9 | +# # |
| 10 | +# # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# # |
| 12 | +# # |
| 13 | +# # Unless required by applicable law or agreed to in writing, |
| 14 | +# # software distributed under the License is distributed on an |
| 15 | +# # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | +# # KIND, either express or implied. See the License for the |
| 17 | +# # specific language governing permissions and limitations |
| 18 | +# # under the License. |
| 19 | + |
| 20 | + |
| 21 | +class EndpointData(): |
| 22 | + def __init__(self): |
| 23 | + self.endpoint_map = { |
| 24 | + "cn-shanghai-internal-test-1": "dg.aliyuncs.com", |
| 25 | + "cn-shenzhen-su18-b01": "dg.aliyuncs.com", |
| 26 | + "cn-beijing": "dg.aliyuncs.com", |
| 27 | + "cn-shanghai-inner": "dg.aliyuncs.com", |
| 28 | + "cn-hangzhou-internal-prod-1": "dg.aliyuncs.com", |
| 29 | + "cn-north-2-gov-1": "dg.aliyuncs.com", |
| 30 | + "cn-yushanfang": "dg.aliyuncs.com", |
| 31 | + "cn-qingdao-nebula": "dg.aliyuncs.com", |
| 32 | + "cn-beijing-finance-pop": "dg.aliyuncs.com", |
| 33 | + "cn-wuhan": "dg.aliyuncs.com", |
| 34 | + "cn-zhangjiakou": "dg.aliyuncs.com", |
| 35 | + "us-west-1": "dg.aliyuncs.com", |
| 36 | + "rus-west-1-pop": "dg.aliyuncs.com", |
| 37 | + "cn-shanghai-et15-b01": "dg.aliyuncs.com", |
| 38 | + "cn-hangzhou-bj-b01": "dg.aliyuncs.com", |
| 39 | + "cn-zhangbei-na61-b01": "dg.aliyuncs.com", |
| 40 | + "ap-northeast-1": "dg.aliyuncs.com", |
| 41 | + "cn-shanghai-et2-b01": "dg.aliyuncs.com", |
| 42 | + "ap-southeast-1": "dg.aliyuncs.com", |
| 43 | + "ap-southeast-2": "dg.aliyuncs.com", |
| 44 | + "ap-southeast-3": "dg.aliyuncs.com", |
| 45 | + "ap-southeast-5": "dg.aliyuncs.com", |
| 46 | + "us-east-1": "dg.aliyuncs.com", |
| 47 | + "cn-shenzhen-inner": "dg.aliyuncs.com", |
| 48 | + "cn-zhangjiakou-na62-a01": "dg.aliyuncs.com", |
| 49 | + "cn-beijing-gov-1": "dg.aliyuncs.com", |
| 50 | + "ap-south-1": "dg.aliyuncs.com", |
| 51 | + "cn-shenzhen-st4-d01": "dg.aliyuncs.com", |
| 52 | + "cn-haidian-cm12-c01": "dg.aliyuncs.com", |
| 53 | + "cn-qingdao": "dg.aliyuncs.com", |
| 54 | + "cn-hongkong-finance-pop": "dg.aliyuncs.com", |
| 55 | + "cn-shanghai": "dg.aliyuncs.com", |
| 56 | + "cn-shanghai-finance-1": "dg.aliyuncs.com", |
| 57 | + "cn-hongkong": "dg.aliyuncs.com", |
| 58 | + "eu-central-1": "dg.aliyuncs.com", |
| 59 | + "cn-shenzhen": "dg.aliyuncs.com", |
| 60 | + "cn-zhengzhou-nebula-1": "dg.aliyuncs.com", |
| 61 | + "eu-west-1": "dg.aliyuncs.com", |
| 62 | + "cn-hangzhou-internal-test-1": "dg.aliyuncs.com", |
| 63 | + "eu-west-1-oxs": "dg.aliyuncs.com", |
| 64 | + "cn-beijing-finance-1": "dg.aliyuncs.com", |
| 65 | + "cn-hangzhou-internal-test-3": "dg.aliyuncs.com", |
| 66 | + "cn-hangzhou-internal-test-2": "dg.aliyuncs.com", |
| 67 | + "cn-shenzhen-finance-1": "dg.aliyuncs.com", |
| 68 | + "me-east-1": "dg.aliyuncs.com", |
| 69 | + "cn-chengdu": "dg.aliyuncs.com", |
| 70 | + "cn-hangzhou-test-306": "dg.aliyuncs.com", |
| 71 | + "cn-hangzhou-finance": "dg.aliyuncs.com", |
| 72 | + "cn-beijing-nu16-b01": "dg.aliyuncs.com", |
| 73 | + "cn-edge-1": "dg.aliyuncs.com", |
| 74 | + "cn-huhehaote": "dg.aliyuncs.com", |
| 75 | + "cn-fujian": "dg.aliyuncs.com", |
| 76 | + "ap-northeast-2-pop": "dg.aliyuncs.com", |
| 77 | + } |
| 78 | + self.endpoint_regional = "regional" |
| 79 | + |
| 80 | + def getEndpointMap(self): |
| 81 | + return self.endpoint_map |
| 82 | + |
| 83 | + def getEndpointRegional(self): |
| 84 | + return self.endpoint_regional |
| 85 | + |
| 86 | + |
| 87 | +endpoint_data = EndpointData() |
0 commit comments