Manual fixed links for samples. Starting to make update script.
This commit is contained in:
Родитель
e00a7a555f
Коммит
99595d2e1a
|
@ -5,7 +5,6 @@
|
|||
``` yaml
|
||||
title: AppConfiguration
|
||||
require: $(this-folder)/../../readme.md
|
||||
# https://github.com/Azure/azure-rest-api-specs-pr/pull/887/files
|
||||
input-file: $(this-folder)/appconfiguration.json
|
||||
input-file: https://github.com/Azure/azure-rest-api-specs/blob/e01d8afe9be7633ed36db014af16d47fec01f737/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/1.0/appconfiguration.json
|
||||
namespace: Azure.AppConfiguration
|
||||
```
|
|
@ -7,9 +7,9 @@
|
|||
azure-arm: true
|
||||
require: $(this-folder)/../../readme.md
|
||||
input-file:
|
||||
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7586a4893bbafd6d1f90b983bc091c7abf3eed59/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json
|
||||
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7586a4893bbafd6d1f90b983bc091c7abf3eed59/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json
|
||||
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7586a4893bbafd6d1f90b983bc091c7abf3eed59/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/7586a4893bbafd6d1f90b983bc091c7abf3eed59/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/7586a4893bbafd6d1f90b983bc091c7abf3eed59/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/7586a4893bbafd6d1f90b983bc091c7abf3eed59/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json
|
||||
namespace: Azure.Management.Storage
|
||||
payload-flattening-threshold: 2
|
||||
```
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
``` yaml
|
||||
title: Azure.Network.Management.Interface
|
||||
require: $(this-folder)/../../readme.md
|
||||
input-file: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2019-11-01/networkInterface.json
|
||||
input-file: https://github.com/Azure/azure-rest-api-specs/blob/5f997529a6ea1a8c16715ea51bb15dd2d1dca0e7/specification/network/resource-manager/Microsoft.Network/stable/2019-11-01/networkInterface.json
|
||||
namespace: Azure.Network.Management.Interface
|
||||
```
|
|
@ -6,9 +6,9 @@
|
|||
``` yaml
|
||||
title: Azure.Storage.Tables
|
||||
require: $(this-folder)/../../readme.md
|
||||
# https://github.com/shurd/azure-rest-api-specs/tree/tablesSwagger/specification/cosmos-db/data-plane/Microsoft.TablesStorage/preview/2018-10-10
|
||||
#branch:tablesSwagger
|
||||
input-file:
|
||||
- $(this-folder)/table.json
|
||||
- https://github.com/shurd/azure-rest-api-specs/blob/f5cb6fb416ae0a06329599db9dc17c8fdd7f95c7/specification/cosmos-db/data-plane/Microsoft.TablesStorage/preview/2018-10-10/table.json
|
||||
namespace: Azure.Storage.Tables
|
||||
include-csproj: disable
|
||||
```
|
|
@ -5,6 +5,6 @@
|
|||
``` yaml
|
||||
title: CognitiveServices.TextAnalytics
|
||||
require: $(this-folder)/../../readme.md
|
||||
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.0-preview.1/TextAnalytics.json
|
||||
input-file: https://github.com/Azure/azure-rest-api-specs/blob/4032896969cbaec08c6438972fbb08ac309b0967/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.0-preview.1/TextAnalytics.json
|
||||
namespace: Azure.CognitiveServices.TextAnalytics
|
||||
```
|
|
@ -4,6 +4,6 @@
|
|||
|
||||
``` yaml
|
||||
require: $(this-folder)/../../readme.md
|
||||
input-file: https://gist.githubusercontent.com/bterlson/459b56c039f1d750d0d53a35d64d93fe/raw/b9dc50a7ea0789f4a86e2f377bc4c19aa1bee2ac/swagga.json
|
||||
input-file: https://github.com/Azure/azure-signalr-vnext-features/blob/6d650776f03da4bad421eceef9dcd1ebd54182a0/serverless-websocket/specs/ws.swagger.json
|
||||
namespace: Azure.SignalR
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
$filePath = Join-Path $PSScriptRoot 'SmokeTestInputs.txt'
|
||||
$fileContent = Get-Content $filePath
|
||||
$firstLineSplit = ($fileContent | Select-Object -First 1) -Split '/'
|
||||
$oldHashIndex = $firstLineSplit.IndexOf('blob') + 1
|
||||
$oldHash = $firstLineSplit[$oldHashIndex]
|
||||
$latestHash = (git ls-remote https://github.com/Azure/azure-rest-api-specs.git | Select-Object -First 1) -Split '\s+' | Select-Object -First 1
|
||||
$smokeTestLines = foreach($line in $fileContent)
|
||||
{
|
||||
$line -Replace $oldHash, $latestHash
|
||||
}
|
||||
$smokeTestLines | Out-File -FilePath $filePath
|
Загрузка…
Ссылка в новой задаче