yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/multicloud/huawei/latitud_and_longitude.go (about)

     1  // Copyright 2019 Yunion
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package huawei
    16  
    17  import (
    18  	api "yunion.io/x/cloudmux/pkg/apis/compute"
    19  	"yunion.io/x/cloudmux/pkg/cloudprovider"
    20  )
    21  
    22  // China: https://developer.huaweicloud.com/endpoint
    23  // International: https://developer-intl.huaweicloud.com/endpoint
    24  // ref: https://countrycode.org
    25  var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{
    26  	"cn-east-2":      api.RegionShanghai,
    27  	"cn-east-3":      api.RegionShanghai,
    28  	"cn-north-1":     api.RegionBeijing,
    29  	"cn-north-4":     api.RegionBeijing,
    30  	"cn-south-1":     api.RegionGuangzhou,
    31  	"cn-south-2":     api.RegionGuangzhou,
    32  	"ap-southeast-1": api.RegionHongkong,
    33  	"ap-southeast-2": api.RegionBangkok,
    34  	"ap-southeast-3": api.RegionSingapore,
    35  	"eu-west-0":      api.RegionParis,
    36  	"cn-northeast-1": api.RegionDalian,
    37  	"cn-southwest-2": api.RegionGuiyang,
    38  	"af-south-1":     api.RegionJohannesburg,
    39  	"sa-brazil-1":    api.RegionSaoPaulo,
    40  	"na-mexico-1":    api.RegionMexico,
    41  	"la-south-2":     api.RegionSantiago,
    42  	"cn-north-9":     api.RegionNeimenggu,
    43  	"cn-north-219":   api.RegionBeijing,
    44  }