Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI from master to network-february-release #5391

Merged
merged 70 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
583eb50
Add mixedreality 2019-02-28 API version to Go SDK (#5271)
jhendrixMSFT Feb 27, 2019
8b20f08
Remove ARM gateway Node.js configuration (#5283)
kpajdzik Feb 27, 2019
2dd3a6d
Updates to Scheduled Query Rule swagger (#5175)
shpimpal Feb 27, 2019
101f6c7
Fix JavaScript configuration for ARM Private DNS SDK (#5284)
kpajdzik Feb 27, 2019
f8dd2a9
Add private preview API for Azure Image Builder (#5055)
paulmey Feb 27, 2019
6522a1a
Updating Blueprint spec to include resource group tags (#5263)
stuartko Feb 27, 2019
7ddf818
Add Showback model (#5217)
yaborens Feb 27, 2019
8360996
chore: Graphservice -> GraphService (#5098)
nschonni Feb 27, 2019
5305cfa
Enable SSL on custom domains using users certificate or CDN managed c…
nachakra Feb 28, 2019
d2fc42e
Translator Text API V3 (#5230)
yangyuan Feb 28, 2019
0af49dd
Update MariaDB api version (#5280)
elemount Feb 28, 2019
bb075aa
Adding Swagger and examples for VirtualClusters operation group (#5248)
milostod Feb 28, 2019
3fee785
Security - Updating API versions of alerts and pricing types (#5269)
chlahav Feb 28, 2019
5a75de2
typo: asscociation -> association (#5252)
nschonni Feb 28, 2019
286528f
Fix lintdiff issue (#5299)
sergey-shandar Feb 28, 2019
4427634
fix Go SDK package path for mariadb stable release (#5298)
jhendrixMSFT Feb 28, 2019
c8b825f
changes to improve documentation of endpoint health statuses for rout…
anwayshahane Feb 28, 2019
ee498a2
add netapp to Go SDK (#5308)
jhendrixMSFT Mar 1, 2019
ff057cd
Update MariaDB default API version to 2018-06-01 (#5302)
elemount Mar 1, 2019
b63a336
new application insignts api version for unified schema in action (#5…
yuelilu33 Mar 1, 2019
50a0e48
Added Azure App Configuration event data schema. (#5309)
jimmyca15 Mar 1, 2019
ae4cea8
Apim Cache resource + DELETE long running + refactor to align with to…
solankisamir Mar 1, 2019
ab12855
Dev adhybridhealthservice microsoft.ad hybrid health service 2014 01 …
binilkk Mar 2, 2019
7cfc460
Update UserAssignedIdentities spec in Web (#5288)
Hamster-Huey Mar 4, 2019
8e88847
Add private dns module name for java codegen (#5312)
jianghaolu Mar 4, 2019
ff90336
Update Swagger Files For ManagedInstanceAdministrator (#5095)
petrajkogit Mar 4, 2019
27c4df7
Bringing consistency between to "ResourceGroup" definition (#5256)
marstr Mar 4, 2019
886a4f7
reverted security python readme to pre multi api (#5301)
iscai-msft Mar 4, 2019
1e7a3ce
[Azure Search] Add Search API to data plane Swagger spec (#5315)
brjohnstmsft Mar 4, 2019
fedf467
[Hub Generated] Review request for Microsoft.Web to add version 2018-…
dejo-msft Mar 4, 2019
29362dc
Add missing MarketplaceOrdering operations to swagger (#5279)
zachraMSFT Mar 5, 2019
9efd3ed
Fix Hosting Environment Network Dependencies pagination (#5320)
dejo-msft Mar 5, 2019
49b2070
Add regex validation for ManagedClusterAgentPoolProfile.name (#5324)
mboersma Mar 5, 2019
f3e20aa
Adding instance pools swagger (#5225)
johnpaulkee Mar 5, 2019
a83ef30
Enhanced A2ARecoveryPointDetails with "disks" (#5307)
sriramvu Mar 5, 2019
6405468
[DiskRP] Adding swagger spec for 09-30-2018 (#5232)
realschwa Mar 5, 2019
46dd1d2
[Computer Vision] Add read to CV OCR API. (#5314)
toothache Mar 5, 2019
fd86426
added links to limits for application gateway (#5265)
tfitzmac Mar 6, 2019
bb1ef77
typo: Winodws -> Windows (#5321)
nschonni Mar 6, 2019
9564516
MultiApi EventHub (#5331)
lmazuel Mar 6, 2019
27ad7f3
try 2 bootstrapping swagger to .net sdk tools (#5334)
shahabhijeet Mar 7, 2019
04d09a9
Azure Search: Resource Manager: Support 'None' Identity type (#5319)
natinimni Mar 7, 2019
acae03b
[ADLA] - Catalog - Add stream path to USqlTableFragment (#5329)
idear1203 Mar 7, 2019
ac54121
[Hub Generated] Review request for Microsoft.Consumption to add versi…
icodetolive Mar 7, 2019
8d15d18
fixing stos.proj parameter (#5338)
dsgouda Mar 7, 2019
6a18208
change flag name from useUnifiedSchema into useCommonAlertSchema per …
yuelilu33 Mar 7, 2019
88eb4ce
Enhanced A2A protection input and response details (#5330)
sriramvu Mar 8, 2019
33d17e2
[Hub Generated] Review request for Microsoft.ContainerService to add …
Mar 8, 2019
06d3f84
Azure Event Grid: Add 2019-02-01-preview tags for Ruby and Go readme …
ahamad-MS Mar 8, 2019
bba2477
Update some descriptions. (#5305)
xingwu1 Mar 8, 2019
45b870a
update description. (#5335)
hyonholee Mar 10, 2019
f2ab4a8
Added VNet API (#5351)
Mar 11, 2019
1495122
EventHub : corrected typo (#5360)
Mar 11, 2019
3130cdd
Add annotations property to trigger (#5332)
LijuanZ Mar 11, 2019
de3d4a1
EventHub: Revert the NetworkRuleSet (#5363)
Mar 11, 2019
118683e
Remove the AzureDataLakeStoreCosmosStructuredStreamDataset since it's…
wuchunchunt19 Mar 12, 2019
fb11fc5
Removing SDK generation from Travis-CI (#5367)
sergey-shandar Mar 12, 2019
81d676d
Microsoft.DataBoxEdge RP: Corrected comments of trigger and extendedi…
anponnet Mar 12, 2019
e4b52c4
oad => @azure/oad (#5362)
sergey-shandar Mar 13, 2019
b3b9393
SRP Swagger changes for 2018-11-01 (#5300)
huizlAzure Mar 13, 2019
a78f1a7
Added List Policies API to SecurityAlerts (#5070)
t-robalt Mar 13, 2019
5a3fb7c
graph: improve API coverage on application & service principal (#5181)
yugangw-msft Mar 13, 2019
07e99ab
Add insights 2019-03-01 package to Go SDK (#5373)
jhendrixMSFT Mar 13, 2019
781d2fb
fix package tag for new API version (#5378)
yuelilu33 Mar 13, 2019
8407aee
Remove GZRS and RAGZRS sku from SRP 2018-11-01 because feature slippe…
huizlAzure Mar 14, 2019
21dfbe1
typo: upto -> up to (#5376)
nschonni Mar 14, 2019
9797282
typo: graphrbac/data-plane/Microsoft.GraphRbac/stable/1.6 (#5375)
nschonni Mar 14, 2019
8aa15b5
Azure DevOps Pipeline workaround for private repository (#5374)
sergey-shandar Mar 14, 2019
f8b84af
Fix PolicyInsights code generation issue (#5389)
sarangan12 Mar 14, 2019
5ab2c18
Add replica creation parameters to Postgres ResourceProvider for SDK …
grigusev Mar 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ Icon
# Thumbnails
._*

# Ignore repo files
/scripts/stostools/restoredPackages
/scripts/stostools/restoredpackages

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
Expand Down
35 changes: 0 additions & 35 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ env:
matrix:
- MODE=branchStrategy
- MODE=syntax CHECK_NAME="Syntax Validator"
- MODE=python CHECK_NAME="SDK Generation - Python"
- MODE=node CHECK_NAME="SDK Generation - Node"
- MODE=typescript CHECK_NAME="SDK Generation - TypeScript"
- MODE=ruby CHECK_NAME="SDK Generation - Ruby"
- MODE=java CHECK_NAME="SDK Generation - Java"
- MODE=go CHECK_NAME="SDK Generation - Go"
- MODE=semantic PR_ONLY=true CHECK_NAME="Semantic Validator"
- MODE=semantic PR_ONLY=false
- MODE=model PR_ONLY=true CHECK_NAME="Model Validator"
Expand All @@ -22,41 +16,12 @@ env:
matrix:
fast_finish: true
allow_failures:
- env: MODE=node CHECK_NAME="SDK Generation - Node"
- env: MODE=typescript CHECK_NAME="SDK Generation - TypeScript"
- env: MODE=ruby CHECK_NAME="SDK Generation - Ruby"
- env: MODE=java CHECK_NAME="SDK Generation - Java"
- env: MODE=go CHECK_NAME="SDK Generation - Go"
- env: MODE=semantic PR_ONLY=false
- env: MODE=model PR_ONLY=false
- env: MODE=model PR_ONLY=true CHECK_NAME="Model Validator"
- env: MODE=BreakingChange PR_ONLY=true CHECK_NAME="Breaking Changes"
install: true
script:
- >-
if [[ $MODE == 'python' ]]; then
travis_wait 30 scripts/swagger-to-sdk.sh Azure/azure-sdk-for-python -v
fi
- >-
if [[ $MODE == 'node' ]]; then
travis_wait 30 scripts/swagger-to-sdk.sh Azure/azure-sdk-for-node -v
fi
- >-
if [[ $MODE == 'typescript' ]]; then
travis_wait 30 scripts/swagger-to-sdk.sh Azure/azure-sdk-for-js -v
fi
- >-
if [[ $MODE == 'ruby' ]]; then
travis_wait 30 scripts/swagger-to-sdk.sh Azure/azure-sdk-for-ruby -v
fi
- >-
if [[ $MODE == 'go' ]]; then
travis_wait 30 scripts/swagger-to-sdk.sh Azure/azure-sdk-for-go -o latest -v
fi
- >-
if [[ $MODE == 'java' ]]; then
travis_wait 30 scripts/swagger-to-sdk.sh Azure/azure-sdk-for-java -v
fi
- >-
if [[ $MODE == 'branchStrategy' ]]; then
# Check to ensure CI is not executing for a PR against the master branch in the private repository
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
displayName: 'Model Validation'

- job: "BreakingChange"
condition: "not(variables['PRIVATE'])"
pool:
vmImage: 'Ubuntu 16.04'
steps:
Expand All @@ -69,6 +70,7 @@ jobs:
displayName: 'Breaking Changes'

- job: "LintDiff"
condition: "not(variables['PRIVATE'])"
variables:
NODE_OPTIONS: '--max-old-space-size=8192'
pool:
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
"@microsoft.azure/async-io": "^1.0.21",
"@microsoft.azure/literate": "^1.0.21",
"@microsoft.azure/polyfill": "^1.0.17",
"@ts-common/commonmark-to-markdown": "^1.1.9",
"@ts-common/commonmark-to-markdown": "^1.1.10",
"@ts-common/fs": "0.1.0",
"@types/js-yaml": "^3.12.0",
"fs-extra": "^3.0.1",
"glob": "^5.0.14",
"js-yaml": "^3.8.2",
"js-yaml": "^3.12.2",
"json-schema-ref-parser": "^3.1.2",
"mocha": "*",
"oad": "0.1.12",
"oav": "^0.13.4",
"@azure/oad": "0.2.0",
"oav": "^0.14.5",
"request": "^2.61.0",
"request-promise-native": "^1.0.5",
"typescript": "^3.2.4",
"z-schema": "^3.25.0",
"ts-node": "^8.0.1"
"z-schema": "^3.25.1",
"ts-node": "^8.0.3"
},
"dependencies": {
"@octokit/rest": "^15.2.6"
Expand Down
2 changes: 1 addition & 1 deletion scripts/breaking-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const utils = require('../test/util/utils'),
fs = require('fs-extra'),
os = require('os'),
exec = require('util').promisify(require('child_process').exec),
oad = require('oad');
oad = require('@azure/oad');

// This map is used to store the mapping between files resolved and stored location
var resolvedMapForNewSpecs = {};
Expand Down
6 changes: 1 addition & 5 deletions scripts/momentOfTruth.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ async function getLinterResult(swaggerPath) {
throw new Error("AutoRest failed");
}

if (stderr !== "") {
console.error(`Error: ${stderr}`)
process.exit(1)
}
let resultString = stdout;
let resultString = stdout + stderr;
if (resultString.indexOf('{') !== -1) {
resultString = resultString.replace(/Processing batch task - {.*} \.\n/g, "");
resultString = "[" + resultString.substring(resultString.indexOf('{')).trim().replace(/\}\n\{/g, "},\n{") + "]";
Expand Down
132 changes: 132 additions & 0 deletions scripts/stostools/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CurrentDir>$(MSBuildThisFileDirectory)</CurrentDir>
<RepoRootRelPath>.\</RepoRootRelPath>
<RepoRootAbspath>$([System.IO.Path]::GetFullPath($(CurrentDir)).Trim('\'))</RepoRootAbspath>
</PropertyGroup>
<PropertyGroup>
<RepoRoot>$(RepoRootAbspath)</RepoRoot>
<RepoSrcDir>$(RepoRoot)\src</RepoSrcDir>
<RepoToolsDir>$(RepoRoot)\tools</RepoToolsDir>
<RepoEngDir>$(RepoRoot)\eng</RepoEngDir>
<RepoNugetFeedDir>$(RepoToolsDir)\LocalNugetFeed</RepoNugetFeedDir>
<RepoDeveloperDir>$(RepoEngDir)\alias</RepoDeveloperDir>
<RepoNugetDir>$(RepoToolsDir)\NugetExe</RepoNugetDir>
<NugPkgSrcDir>$(RepoSrcDir)\NugetToolsPackage</NugPkgSrcDir>
<RepoNugetRestoreDir>$(RepoRoot)\restoredPackages</RepoNugetRestoreDir>
</PropertyGroup>

<PropertyGroup>
<DevMode Condition=" '$(DevMode)' == '' ">false</DevMode>
</PropertyGroup>

<PropertyGroup Label="CI paths">
<RepoCISrcDir>$(RepoSrcDir)\CI</RepoCISrcDir>
<RepoCICommonSrcDir>$(RepoCISrcDir)\CI.Common</RepoCICommonSrcDir>
<RepoCIBuildTaskDir>$(RepoCISrcDir)\CI.BuildTasks</RepoCIBuildTaskDir>
<CINugPkgSrcDir>$(NugPkgSrcDir)\CI.Tools.Package</CINugPkgSrcDir>
<CIBuildOutputDir>$(CINugPkgSrcDir)\build\tasks</CIBuildOutputDir>
<CINugPkgPublish_NetStd20Dir>$(CIBuildOutputDir)\netstandard2.0</CINugPkgPublish_NetStd20Dir>
</PropertyGroup>

<PropertyGroup Label="SToS paths">
<RepoSToSSrcDir>$(RepoSrcDir)\SwaggerToSdk</RepoSToSSrcDir>
<RepoSToSCommonSrcDir>$(RepoSToSSrcDir)\Common\SToS.Common</RepoSToSCommonSrcDir>
<RepoSToSBuildTaskSrcDir>$(RepoSToSSrcDir)\BuildTasks\SToS.BuildTasks</RepoSToSBuildTaskSrcDir>
<SToSNugPkgSrcRootDir>$(NugPkgSrcDir)\SwaggerToSdk.Tools.Package</SToSNugPkgSrcRootDir>
<SToSNugPkgSrcDir>$(SToSNugPkgSrcRootDir)\build</SToSNugPkgSrcDir>
<SToSNugPkgSdkDir>$(SToSNugPkgSrcDir)\Sdk</SToSNugPkgSdkDir>
<SToSBuildOutputDir>$(SToSNugPkgSrcDir)\tasks</SToSBuildOutputDir>
<SToSNugPkgPublish_NetStd20Dir>$(SToSBuildOutputDir)\netstandard2.0</SToSNugPkgPublish_NetStd20Dir>
<SToSNugPkgPublish_Net461Dir>$(SToSBuildOutputDir)\net461</SToSNugPkgPublish_Net461Dir>
</PropertyGroup>

<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
</PropertyGroup>

<!--
MSBuildRuntimeType can have 'Core', 'Full' and 'Mono' as three possible values
https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-reserved-and-well-known-properties?view=vs-2017
-->
<PropertyGroup>
<DotNetRuntimeContext>$(MSBuildRuntimeType)</DotNetRuntimeContext>
<FxVersionTasksToUse Condition=" '$(DotNetRuntimeContext)' == 'Core' ">netstandard2.0</FxVersionTasksToUse>
<FxVersionTasksToUse Condition=" '$(FxVersionTasksToUse)' == '' AND '$(DotNetRuntimeContext)' != 'Core' ">net461</FxVersionTasksToUse>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildRuntimeType)' == 'Core'">
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
</PropertyGroup>

<ItemGroup>
<TestDataProjects Include="$(RepoCISrcDir)\CI.BuildTasks\Tests\TestDataProject\*.csproj" />

<CITestProjects Include="$(RepoCISrcDir)\CI.BuildTasks\Tests\**\*.csproj" Exclude="@(TestDataProjects)" />
<SToSTestProjects Include="$(RepoSToSSrcDir)\BuildTasks\Tests\*.csproj;$(RepoSToSSrcDir)\Common\Tests\*.csproj" />
<SToSProjects Include="$(RepoSToSBuildTaskSrcDir)\*.csproj;$(RepoSToSCommonSrcDir)\*.csproj" />
<SToSNugPkgProjects Include="$(SToSNugPkgSrcDir)\*.csproj" />

<NugetPkgProjects Include="@(SToSNugPkgProjects)" />
<ProjectsToBuild Include="@(SToSProjects);@(SToSTestProjects)" />
<ProjectsToPublish Include="@(SToSProjects)" />
</ItemGroup>

<!--
Detect CI env using available env variables
https://<Jenkins server url>/systemInfo
https://docs.travis-ci.com/user/environment-variables/#default-environment-variables
-->
<PropertyGroup>
<IsJenkinsCI Condition=" '$(JENKINS_HOME)' != '' ">true</IsJenkinsCI>
<IsTravisCI Condition=" '$(Travis)' != '' ">true</IsTravisCI>
<IsCIEnvironment Condition=" '$(IsJenkinsCI)' == 'true' OR '$(IsTravisCI)' == 'true' ">true</IsCIEnvironment>
<IsCIEnvironment Condition=" '$(IsCIEnvironment)' == '' ">false</IsCIEnvironment>
</PropertyGroup>

<!--
===========================================================================================
Developer Settings
On non-windows machine, user can setup an environment variable that will point to their developer settings props file.
The name of the file should be named as currentUser.props (case sensitive)
On windows machine, if the environment variable is not set, we will attempt to use the windows current user env. variable

Env. variables
LocalDevUserBootstrapDirPath == will point to the directory from where currentuser.props should be imported
DevMode == flags if you want to be in dev mode, which is basically avoids restoring nuget package and directly loads the build environment

Default file that will be loaded == currentUser.props (if available)
===========================================================================================
-->
<PropertyGroup Condition=" '$(DevMode)' == 'true' ">
<DefaultCurrentUserPropsFileName>currentUser.props</DefaultCurrentUserPropsFileName>
<DeveloperCurrentUserPropFilePath>$(LocalDevUserBootstrapDirPath)\$(DefaultCurrentUserPropsFileName)</DeveloperCurrentUserPropFilePath>
<DeveloperCurrentUserPropFilePath Condition=" !Exists($(DeveloperCurrentUserPropFilePath))">$(RepoDeveloperDir)\$(UserName)\$(DefaultCurrentUserPropsFileName)</DeveloperCurrentUserPropFilePath>
</PropertyGroup>

<Import Condition="Exists($(DeveloperCurrentUserPropFilePath)) AND '$(IsCIEnvironment)' != 'true' AND '$(DevMode)' == 'true' " Project="$(DeveloperCurrentUserPropFilePath)" />
<PropertyGroup Condition=" '$(IsCIEnvironment)' != 'true' AND '$(DevMode)' == 'true' ">
<LocalDevUser Condition=" '$(LocalDevUser)' == '' ">$(UserName)</LocalDevUser>
<DefaultCurrentuserTargetsFileName>$(LocalDevUser).bootStrap.targets</DefaultCurrentuserTargetsFileName>
<DeveloperCurrentUserPropFilePath>$(RepoDeveloperDir)\$(LocalDevUser)\$(DefaultCurrentUserPropsFileName)</DeveloperCurrentUserPropFilePath>
</PropertyGroup>

<PropertyGroup Condition=" '$(IsCIEnvironment)' != 'true' AND '$(DevMode)' == 'true' ">
<LocalDevUserTargetsDir Condition="Exists('$(RepoDeveloperDir)\$(LocalDevUser)')">$(RepoDeveloperDir)\$(LocalDevUser)</LocalDevUserTargetsDir>
<LocalDevUserBootstrapPropsFile>$(LocalDevUserTargetsDir)\$(DefaultCurrentuserTargetsFileName)</LocalDevUserBootstrapPropsFile>
<CurrentUserPropsFilePath>$(LocalDevUserBootstrapDirPath)\currentUser.props</CurrentUserPropsFilePath>

<DevMode_SDK_SToSPropsFile>$(SToSNugPkgSdkDir)\SToS.props</DevMode_SDK_SToSPropsFile>
</PropertyGroup>
<Import Condition="Exists($(LocalDevUserBootstrapPropsFile)) AND '$(IsCIEnvironment)' != 'true' AND '$(DevMode)' == 'true' " Project="$(LocalDevUserBootstrapPropsFile)" />

<!-- DO NOT MAKE ANY CHANGES BELOW -->
<PropertyGroup>
<IsJenkinsCI Condition=" '$(JENKINS_HOME)' != '' ">true</IsJenkinsCI>
<IsTravisCI Condition=" '$(Travis)' != '' ">true</IsTravisCI>
<IsCIEnvironment Condition=" '$(IsJenkinsCI)' == 'true' OR '$(IsTravisCI)' == 'true' ">true</IsCIEnvironment>
<IsCIEnvironment Condition=" '$(IsCIEnvironment)' == '' ">false</IsCIEnvironment>
<DevMode Condition=" '$(IsCIEnvironment)' == 'true' ">false</DevMode>
</PropertyGroup>
</Project>
31 changes: 31 additions & 0 deletions scripts/stostools/LaunchSToS.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@echo OFF

set StartupProj=%1
set PrNumber=%2
set LastGithubCommitId=%3
set GitHubUrl=%4
set TriggerComment=%5
set DebugMode=%6
set LogVerbosity=%7

if "%VSWHERE%"=="" set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"

for /f "usebackq tokens=*" %%i in (`"%VSWHERE%" -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
set InstallDir=%%i
)

CALL "%InstallDir%\Common7\Tools\VsDevCmd.bat"

echo StartupProj: %StartupProj%
echo Pr#: %PrNumber%
echo Last Commit Id: %LastGithubCommitId%
echo GitHub Url: %GitHubUrl%
echo Trigger Comment: %TriggerComment%
echo DebugMode: %DebugMode%
echo Log Verbosity: %LogVerbosity%

dotnet msbuild %startupProj% /t:StartNetSdkCodeGeneration /v:%LogVerbosity% /p:githubprnumber=%PrNumber% /p:githubcommitid=%LastGithubCommitId% /p:giturl=%GitHubUrl% /p:DebugMode=%DebugMode% /p:triggercomment=%TriggerComment%

REM dotnet msbuild stos.proj /t:StartNetSdkCodeGeneration /v:N /p:githubprnumber=63 /p:githubcommitid=b5ee45302838515adc14857ed45c44ed99a1e517 /p:giturl=https://github.com/Azure/AzSwaggerSpecsTestClone /p:DebugMode=false /p:triggercomment=startbuild
REM LaunchSToS.bat stos.proj 63 b5ee45302838515adc14857ed45c44ed99a1e517 https://github.com/Azure/AzSwaggerSpecsTestClone startbuild false D
REM stostools\LaunchSToS.bat SToS.proj %ghprbPullId% %ghprbActualCommit% %GIT_URL% %ghprbCommentBody% false n
21 changes: 21 additions & 0 deletions scripts/stostools/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NugetOfficialV3" value="https://api.nuget.org/v3/index.json" />
<add key="Local" value="tools/LocalNugetFeed" />
<add key="stosprodfeed" value="\\aaptfile01\ADXSDK\NetSDK\SToS\Prod" />
</packageSources>

<config>
<add key="globalPackagesFolder" value=".\restoredPackages\" />
<add key="RestorePackagesPath" value=".\restoredPackages\" />
</config>

<packageRestore>
<!-- Allow NuGet to download missing packages -->
<add key="enabled" value="True" />

<!-- Automatically check for missing packages during build in Visual Studio -->
<add key="automatic" value="True" />
</packageRestore>
</configuration>
43 changes: 43 additions & 0 deletions scripts/stostools/stos.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="Directory.Build.props" />
<Import Condition=" '$(DevMode)' != 'true' " Project="SToS.props" Sdk="Microsoft.Internal.SwaggerToSdk.Tools" Version="0.9.0" />
<Import Condition=" '$(DevMode)' == 'true' AND Exists('$(DevMode_SDK_SToSPropsFile)') " Project="$(DevMode_SDK_SToSPropsFile)" />

<PropertyGroup>
<DotNetRuntimeContext>$(MSBuildRuntimeType)</DotNetRuntimeContext>
<FxVersionTasksToUse Condition=" '$(DotNetRuntimeContext)' == 'Core' ">netstandard2.0</FxVersionTasksToUse>
<FxVersionTasksToUse Condition=" '$(FxVersionTasksToUse)' == '' AND '$(DotNetRuntimeContext)' == 'Full' ">net461</FxVersionTasksToUse>
</PropertyGroup>
<Target Name="Fn">
<Message Text="FxVersionTasksToUse is ......... $(FxVersionTasksToUse)" />
</Target>

<Target Name="StartNetSdkCodeGeneration">
<Message Text="Commencing code generation" Importance = "High"/>
<StartNetSdkCodeGeneration
GitHubPRNumber="$(githubprnumber)"
GitHubCommitId="$(githubcommitid)"
RestSpecRepositoryUrl ="$(giturl)"
TriggerComment="$(triggercomment)"
DebugMode="$(debugmode)"
>
<Output TaskParameter="NetSdkPRMetadataRowId" PropertyName="NetSdkPRMetadataRowId" />
</StartNetSdkCodeGeneration>
</Target>

<Target Name="HandleClosedOrMergedRestApiPrs">
<Message Text="Handling closed or merged PRs" Importance = "High"/>
<HandleClosedOrMergedRestApiPrs
RepositoryUrl="$(RepositoryUrl)"
>
</HandleClosedOrMergedRestApiPrs>
</Target>

<Target Name="KV">
<GetKVSecrets>
<Output TaskParameter="Email" PropertyName="EmailAddress" />
</GetKVSecrets>

<Message Text="Email is $(EmailAddress)" />
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Please also specify `--azure-libraries-for-java=<path to the root directory of y

``` yaml $(tag) == 'package-2018-12-03' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.EnterpriseKnowledgeGraphservice.v2018-12-03
output-folder: $(azure-libraries-for-java-folder)/EnterpriseKnowledgeGraphservice/resource-manager/v2018-12-03
namespace: com.microsoft.azure.management.EnterpriseKnowledgeGraphService.v2018-12-03
output-folder: $(azure-libraries-for-java-folder)/EnterpriseKnowledgeGraphService/resource-manager/v2018-12-03
regenerate-manager: true
generate-interface: true
```
Expand Down Expand Up @@ -88,4 +88,4 @@ csharp:
namespace: Microsoft.Azure.Management.EnterpriseKnowledgeGraphService
output-folder: $(csharp-sdks-folder)/EnterpriseKnowledgeGraphService/Microsoft.Azure.Management.EnterpriseKnowledgeGraphService/Generated
clear-output-folder: true
```
```
Loading