-
Notifications
You must be signed in to change notification settings - Fork 80
/
regions.go
241 lines (228 loc) · 7.58 KB
/
regions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
package common
const (
//RegionAPChuncheon1 region Chuncheon
RegionAPChuncheon1 Region = "ap-chuncheon-1"
//RegionAPHyderabad1 region Hyderabad
RegionAPHyderabad1 Region = "ap-hyderabad-1"
//RegionAPMelbourne1 region Melbourne
RegionAPMelbourne1 Region = "ap-melbourne-1"
//RegionAPMumbai1 region Mumbai
RegionAPMumbai1 Region = "ap-mumbai-1"
//RegionAPOsaka1 region Osaka
RegionAPOsaka1 Region = "ap-osaka-1"
//RegionAPSeoul1 region Seoul
RegionAPSeoul1 Region = "ap-seoul-1"
//RegionAPSydney1 region Sydney
RegionAPSydney1 Region = "ap-sydney-1"
//RegionAPTokyo1 region Tokyo
RegionAPTokyo1 Region = "ap-tokyo-1"
//RegionCAMontreal1 region Montreal
RegionCAMontreal1 Region = "ca-montreal-1"
//RegionCAToronto1 region Toronto
RegionCAToronto1 Region = "ca-toronto-1"
//RegionEUAmsterdam1 region Amsterdam
RegionEUAmsterdam1 Region = "eu-amsterdam-1"
//RegionFRA region Frankfurt
RegionFRA Region = "eu-frankfurt-1"
//RegionEUZurich1 region Zurich
RegionEUZurich1 Region = "eu-zurich-1"
//RegionMEJeddah1 region Jeddah
RegionMEJeddah1 Region = "me-jeddah-1"
//RegionMEDubai1 region Dubai
RegionMEDubai1 Region = "me-dubai-1"
//RegionSASaopaulo1 region Saopaulo
RegionSASaopaulo1 Region = "sa-saopaulo-1"
//RegionUKCardiff1 region Cardiff
RegionUKCardiff1 Region = "uk-cardiff-1"
//RegionLHR region London
RegionLHR Region = "uk-london-1"
//RegionIAD region Ashburn
RegionIAD Region = "us-ashburn-1"
//RegionPHX region Phoenix
RegionPHX Region = "us-phoenix-1"
//RegionSJC1 region Sanjose
RegionSJC1 Region = "us-sanjose-1"
//RegionSAVinhedo1 region Vinhedo
RegionSAVinhedo1 Region = "sa-vinhedo-1"
//RegionSASantiago1 region Santiago
RegionSASantiago1 Region = "sa-santiago-1"
//RegionILJerusalem1 region Jerusalem
RegionILJerusalem1 Region = "il-jerusalem-1"
//RegionEUMarseille1 region Marseille
RegionEUMarseille1 Region = "eu-marseille-1"
//RegionAPSingapore1 region Singapore
RegionAPSingapore1 Region = "ap-singapore-1"
//RegionMEAbudhabi1 region Abudhabi
RegionMEAbudhabi1 Region = "me-abudhabi-1"
//RegionEUMilan1 region Milan
RegionEUMilan1 Region = "eu-milan-1"
//RegionEUStockholm1 region Stockholm
RegionEUStockholm1 Region = "eu-stockholm-1"
//RegionAFJohannesburg1 region Johannesburg
RegionAFJohannesburg1 Region = "af-johannesburg-1"
//RegionEUParis1 region Paris
RegionEUParis1 Region = "eu-paris-1"
//RegionMXQueretaro1 region Queretaro
RegionMXQueretaro1 Region = "mx-queretaro-1"
//RegionEUMadrid1 region Madrid
RegionEUMadrid1 Region = "eu-madrid-1"
//RegionUSChicago1 region Chicago
RegionUSChicago1 Region = "us-chicago-1"
//RegionUSLangley1 region Langley
RegionUSLangley1 Region = "us-langley-1"
//RegionUSLuke1 region Luke
RegionUSLuke1 Region = "us-luke-1"
//RegionUSGovAshburn1 gov region Ashburn
RegionUSGovAshburn1 Region = "us-gov-ashburn-1"
//RegionUSGovChicago1 gov region Chicago
RegionUSGovChicago1 Region = "us-gov-chicago-1"
//RegionUSGovPhoenix1 gov region Phoenix
RegionUSGovPhoenix1 Region = "us-gov-phoenix-1"
//RegionUKGovLondon1 gov region London
RegionUKGovLondon1 Region = "uk-gov-london-1"
//RegionUKGovCardiff1 gov region Cardiff
RegionUKGovCardiff1 Region = "uk-gov-cardiff-1"
//RegionAPChiyoda1 region Chiyoda
RegionAPChiyoda1 Region = "ap-chiyoda-1"
//RegionAPIbaraki1 region Ibaraki
RegionAPIbaraki1 Region = "ap-ibaraki-1"
//RegionMEDccMuscat1 region Muscat
RegionMEDccMuscat1 Region = "me-dcc-muscat-1"
//RegionAPDccCanberra1 region Canberra
RegionAPDccCanberra1 Region = "ap-dcc-canberra-1"
//RegionEUDccMilan1 region Milan
RegionEUDccMilan1 Region = "eu-dcc-milan-1"
//RegionEUDccMilan2 region Milan
RegionEUDccMilan2 Region = "eu-dcc-milan-2"
//RegionEUDccDublin2 region Dublin
RegionEUDccDublin2 Region = "eu-dcc-dublin-2"
//RegionEUDccRating2 region Rating
RegionEUDccRating2 Region = "eu-dcc-rating-2"
//RegionEUDccRating1 region Rating
RegionEUDccRating1 Region = "eu-dcc-rating-1"
//RegionEUDccDublin1 region Dublin
RegionEUDccDublin1 Region = "eu-dcc-dublin-1"
//RegionEUJovanovac1 region Jovanovac
RegionEUJovanovac1 Region = "eu-jovanovac-1"
)
var shortNameRegion = map[string]Region{
"yny": RegionAPChuncheon1,
"hyd": RegionAPHyderabad1,
"mel": RegionAPMelbourne1,
"bom": RegionAPMumbai1,
"kix": RegionAPOsaka1,
"icn": RegionAPSeoul1,
"syd": RegionAPSydney1,
"nrt": RegionAPTokyo1,
"yul": RegionCAMontreal1,
"yyz": RegionCAToronto1,
"ams": RegionEUAmsterdam1,
"fra": RegionFRA,
"zrh": RegionEUZurich1,
"jed": RegionMEJeddah1,
"dxb": RegionMEDubai1,
"gru": RegionSASaopaulo1,
"cwl": RegionUKCardiff1,
"lhr": RegionLHR,
"iad": RegionIAD,
"phx": RegionPHX,
"sjc": RegionSJC1,
"vcp": RegionSAVinhedo1,
"scl": RegionSASantiago1,
"mtz": RegionILJerusalem1,
"mrs": RegionEUMarseille1,
"sin": RegionAPSingapore1,
"auh": RegionMEAbudhabi1,
"lin": RegionEUMilan1,
"arn": RegionEUStockholm1,
"jnb": RegionAFJohannesburg1,
"cdg": RegionEUParis1,
"qro": RegionMXQueretaro1,
"mad": RegionEUMadrid1,
"ord": RegionUSChicago1,
"lfi": RegionUSLangley1,
"luf": RegionUSLuke1,
"ric": RegionUSGovAshburn1,
"pia": RegionUSGovChicago1,
"tus": RegionUSGovPhoenix1,
"ltn": RegionUKGovLondon1,
"brs": RegionUKGovCardiff1,
"nja": RegionAPChiyoda1,
"ukb": RegionAPIbaraki1,
"mct": RegionMEDccMuscat1,
"wga": RegionAPDccCanberra1,
"bgy": RegionEUDccMilan1,
"mxp": RegionEUDccMilan2,
"snn": RegionEUDccDublin2,
"dtm": RegionEUDccRating2,
"dus": RegionEUDccRating1,
"ork": RegionEUDccDublin1,
"beg": RegionEUJovanovac1,
}
var realm = map[string]string{
"oc1": "oraclecloud.com",
"oc2": "oraclegovcloud.com",
"oc3": "oraclegovcloud.com",
"oc4": "oraclegovcloud.uk",
"oc8": "oraclecloud8.com",
"oc9": "oraclecloud9.com",
"oc10": "oraclecloud10.com",
"oc14": "oraclecloud14.com",
"oc20": "oraclecloud20.com",
}
var regionRealm = map[Region]string{
RegionAPChuncheon1: "oc1",
RegionAPHyderabad1: "oc1",
RegionAPMelbourne1: "oc1",
RegionAPMumbai1: "oc1",
RegionAPOsaka1: "oc1",
RegionAPSeoul1: "oc1",
RegionAPSydney1: "oc1",
RegionAPTokyo1: "oc1",
RegionCAMontreal1: "oc1",
RegionCAToronto1: "oc1",
RegionEUAmsterdam1: "oc1",
RegionFRA: "oc1",
RegionEUZurich1: "oc1",
RegionMEJeddah1: "oc1",
RegionMEDubai1: "oc1",
RegionSASaopaulo1: "oc1",
RegionUKCardiff1: "oc1",
RegionLHR: "oc1",
RegionIAD: "oc1",
RegionPHX: "oc1",
RegionSJC1: "oc1",
RegionSAVinhedo1: "oc1",
RegionSASantiago1: "oc1",
RegionILJerusalem1: "oc1",
RegionEUMarseille1: "oc1",
RegionAPSingapore1: "oc1",
RegionMEAbudhabi1: "oc1",
RegionEUMilan1: "oc1",
RegionEUStockholm1: "oc1",
RegionAFJohannesburg1: "oc1",
RegionEUParis1: "oc1",
RegionMXQueretaro1: "oc1",
RegionEUMadrid1: "oc1",
RegionUSChicago1: "oc1",
RegionUSLangley1: "oc2",
RegionUSLuke1: "oc2",
RegionUSGovAshburn1: "oc3",
RegionUSGovChicago1: "oc3",
RegionUSGovPhoenix1: "oc3",
RegionUKGovLondon1: "oc4",
RegionUKGovCardiff1: "oc4",
RegionAPChiyoda1: "oc8",
RegionAPIbaraki1: "oc8",
RegionMEDccMuscat1: "oc9",
RegionAPDccCanberra1: "oc10",
RegionEUDccMilan1: "oc14",
RegionEUDccMilan2: "oc14",
RegionEUDccDublin2: "oc14",
RegionEUDccRating2: "oc14",
RegionEUDccRating1: "oc14",
RegionEUDccDublin1: "oc14",
RegionEUJovanovac1: "oc20",
}