mirror of https://github.com/hashicorp/terraform
provider/azurerm: Bump SDK version of jen20/riviera (#9740)
Fixes #9400 Also fixes an issue with the nightly acceptance tests that @pmcatominey has fixed in the SDKpull/9742/head
parent
51ff5cba38
commit
bcd4e73d18
@ -0,0 +1,27 @@
|
||||
package azure
|
||||
|
||||
import "strings"
|
||||
|
||||
type Endpoints struct {
|
||||
resourceManagerEndpointUrl string
|
||||
activeDirectoryEndpointUrl string
|
||||
}
|
||||
|
||||
func GetEndpoints(location string) Endpoints {
|
||||
var e Endpoints
|
||||
|
||||
location = strings.Replace(strings.ToLower(location), " ", "", -1)
|
||||
|
||||
switch location {
|
||||
case GermanyCentral, GermanyEast:
|
||||
e = Endpoints{"https://management.microsoftazure.de", "https://login.microsoftonline.de"}
|
||||
case ChinaEast, ChinaNorth:
|
||||
e = Endpoints{"https://management.chinacloudapi.cn", "https://login.chinacloudapi.cn"}
|
||||
case USGovIowa, USGovVirginia:
|
||||
e = Endpoints{"https://management.usgovcloudapi.net", "https://login.microsoftonline.com"}
|
||||
default:
|
||||
e = Endpoints{"https://management.azure.com", "https://login.microsoftonline.com"}
|
||||
}
|
||||
|
||||
return e
|
||||
}
|
||||
@ -1,26 +1,33 @@
|
||||
package azure
|
||||
|
||||
const (
|
||||
Global = "global"
|
||||
CentralUS = "centralus"
|
||||
EastUS = "eastus"
|
||||
EastUS2 = "eastus2"
|
||||
USGovIowa = "usgoviowa"
|
||||
USGovVirginia = "usgovvirginia"
|
||||
NorthCentralUS = "northcentralus"
|
||||
SouthCentralUS = "southcentralus"
|
||||
WestUS = "westus"
|
||||
NorthEurope = "northeurope"
|
||||
WestEurope = "westeurope"
|
||||
EastAsia = "eastasia"
|
||||
SoutheastAsia = "southeastasia"
|
||||
JapanEast = "japaneast"
|
||||
JapanWest = "japanwest"
|
||||
BrazilSouth = "brazilsouth"
|
||||
AustraliaEast = "australiaeast"
|
||||
Australia = "australia"
|
||||
CentralIndia = "centralindia"
|
||||
SouthIndia = "southindia"
|
||||
WestIndia = "westindia"
|
||||
ChinaEast = "chinaeast"
|
||||
Global = "global"
|
||||
CentralUS = "centralus"
|
||||
EastUS = "eastus"
|
||||
EastUS2 = "eastus2"
|
||||
USGovIowa = "usgoviowa"
|
||||
USGovVirginia = "usgovvirginia"
|
||||
NorthCentralUS = "northcentralus"
|
||||
SouthCentralUS = "southcentralus"
|
||||
WestUS = "westus"
|
||||
NorthEurope = "northeurope"
|
||||
WestEurope = "westeurope"
|
||||
EastAsia = "eastasia"
|
||||
SoutheastAsia = "southeastasia"
|
||||
JapanEast = "japaneast"
|
||||
JapanWest = "japanwest"
|
||||
BrazilSouth = "brazilsouth"
|
||||
AustraliaEast = "australiaeast"
|
||||
AustraliaSouthEast = "australiasoutheast"
|
||||
CentralIndia = "centralindia"
|
||||
SouthIndia = "southindia"
|
||||
WestIndia = "westindia"
|
||||
ChinaEast = "chinaeast"
|
||||
ChinaNorth = "chinanorth"
|
||||
UKSouth = "uksouth"
|
||||
UKWest = "ukwest"
|
||||
CanadaCentral = "canadacentral"
|
||||
CanadaEast = "canadaeast"
|
||||
GermanyCentral = "germanycentral"
|
||||
GermanyEast = "germanyeast"
|
||||
)
|
||||
|
||||
Loading…
Reference in new issue