Skip to content

Commit

Permalink
Update Microsoft.Resources swagger to include new alias contract (Azu…
Browse files Browse the repository at this point in the history
…re#10243)

* Update Microsoft.Resources swagger to include new alias contract

(this is already exposed for some time now, but this part of the spec
seems out-of-date).
Also added the default API version and the API profile properties

* Fix prettier errors

* Address PR comments
  • Loading branch information
eladperets authored and 00Kai0 committed Oct 12, 2020
1 parent 5aa5ed1 commit cf74628
Show file tree
Hide file tree
Showing 2 changed files with 375 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
{
"parameters": {
"$expand": "resourceTypes/aliases",
"resourceProviderNamespace": "Microsoft.Storage",
"api-version": "2020-06-01"
},
"responses": {
"200": {
"body": {
"namespace": "Microsoft.Storage",
"resourceTypes": [
{
"resourceType": "storageAccounts",
"locations": [
"East US",
"East US 2",
"East US 2 (Stage)",
"West US",
"West Europe",
"East Asia",
"Southeast Asia",
"Japan East",
"Japan West",
"North Central US",
"South Central US",
"Central US",
"North Europe",
"Brazil South",
"Australia East",
"Australia Southeast",
"South India",
"Central India",
"West India",
"Canada East",
"Canada Central",
"West US 2",
"West Central US",
"UK South",
"UK West",
"Korea Central",
"Korea South",
"East US 2 EUAP",
"Central US EUAP",
"France Central",
"France South",
"Australia Central",
"Australia Central 2",
"South Africa West",
"South Africa North",
"UAE Central",
"UAE North",
"Switzerland North",
"Switzerland West",
"Germany West Central",
"Germany North",
"Norway East",
"Norway West",
"South Central US STG",
"Brazil Southeast"
],
"apiVersions": [
"2019-06-01",
"2019-04-01",
"2018-11-01",
"2018-07-01",
"2018-03-01-preview",
"2018-02-01",
"2017-10-01",
"2017-06-01",
"2016-12-01",
"2016-05-01",
"2016-01-01",
"2015-06-15",
"2015-05-01-preview"
],
"defaultApiVersion": "2019-06-01",
"apiProfiles": [
{
"profileVersion": "2019-03-01-hybrid",
"apiVersion": "2017-10-01"
},
{
"profileVersion": "2017-03-09-profile",
"apiVersion": "2016-01-01"
},
{
"profileVersion": "2018-03-01-hybrid",
"apiVersion": "2016-01-01"
},
{
"profileVersion": "2018-06-01-profile",
"apiVersion": "2017-10-01"
}
],
"aliases": [
{
"name": "Microsoft.Storage/storageAccounts/accountType",
"paths": [
{
"path": "properties.accountType",
"apiVersions": [
"2015-06-15",
"2015-05-01-preview"
]
},
{
"path": "sku.name",
"apiVersions": [
"2018-11-01",
"2018-11-09",
"2018-07-01",
"2018-03-01-Preview",
"2018-02-01",
"2017-10-01",
"2017-06-01",
"2016-12-01",
"2016-05-01",
"2016-01-01"
]
}
],
"defaultPath": "sku.name"
},
{
"name": "Microsoft.Storage/storageAccounts/sku.name",
"paths": [
{
"path": "properties.accountType",
"apiVersions": [
"2015-06-15",
"2015-05-01-preview"
]
},
{
"path": "sku.name",
"apiVersions": [
"2018-11-01",
"2018-11-09",
"2018-07-01",
"2018-03-01-Preview",
"2018-02-01",
"2017-10-01",
"2017-06-01",
"2016-12-01",
"2016-05-01",
"2016-01-01"
]
}
],
"defaultPath": "sku.name"
},
{
"name": "Microsoft.Storage/storageAccounts/accessTier",
"paths": [
{
"path": "properties.accessTier",
"apiVersions": [
"2018-11-01",
"2018-11-09",
"2018-07-01",
"2018-03-01-Preview",
"2018-02-01",
"2017-10-01",
"2017-06-01",
"2016-12-01",
"2016-05-01",
"2016-01-01",
"2015-06-15",
"2015-05-01-preview"
]
}
],
"defaultPath": "properties.accessTier"
},
{
"name": "Microsoft.Storage/storageAccounts/enableBlobEncryption",
"paths": [
{
"path": "properties.encryption.services.blob.enabled",
"apiVersions": [
"2018-11-01",
"2018-11-09",
"2018-07-01",
"2018-03-01-Preview",
"2018-02-01",
"2017-10-01",
"2017-06-01",
"2016-12-01",
"2016-05-01",
"2016-01-01",
"2015-06-15",
"2015-05-01-preview"
]
}
],
"defaultPath": "properties.encryption.services.blob.enabled"
},
{
"name": "Microsoft.Storage/storageAccounts/enableFileEncryption",
"paths": [
{
"path": "properties.encryption.services.file.enabled",
"apiVersions": [
"2018-11-01",
"2018-11-09",
"2018-07-01",
"2018-03-01-Preview",
"2018-02-01",
"2017-10-01",
"2017-06-01",
"2016-12-01",
"2016-05-01",
"2016-01-01",
"2015-06-15",
"2015-05-01-preview"
]
}
],
"defaultPath": "properties.encryption.services.file.enabled"
},
{
"name": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
"paths": [
{
"path": "properties.supportsHttpsTrafficOnly",
"apiVersions": [
"2018-11-09",
"2018-03-01-Preview",
"2016-05-01",
"2016-01-01",
"2015-06-15",
"2015-05-01-preview"
],
"metadata": {
"type": "NotSpecified",
"attributes": "None"
}
}
],
"defaultPath": "properties.supportsHttpsTrafficOnly",
"defaultMetadata": {
"type": "Boolean",
"attributes": "Modifiable"
}
}
],
"capabilities": "SupportsTags, SupportsLocation"
}
]
}
}
}
}
Loading

0 comments on commit cf74628

Please sign in to comment.