Skip to content

Commit

Permalink
Squashed 'runtimes/' changes from 38b9c93..ca25c1c
Browse files Browse the repository at this point in the history
ca25c1c Fix compilation error
5e6d8d2 Merge commit '2da17cd075822328b42931f8bc04f8e3b01eee7b' into pagingfix
012d715 More fixes to LROs
e32f486 Merge pull request #43 from Azure/sdk_1007
6f4812f Merge branch 'master' of github.com:Azure/autorest-clientruntime-for-java into sdk_1007
2701ea4 Add missing .failure() to parallel service call
804c07b Merge pull request #41 from jianghaolu/javafixes
438fe15 Support Future based ServiceCall in LRO & Paging
57a0754 Simply signature for async service calls
c66cd48 Make ServiceCall Future-like
6286c69 Bring Future like ServiceCall to SDK
ebe8783 Merge commit 'aedc87712089b11122ec15c722ffbb90e05872b8' into future
cd7ad22 Merge commit 'f218f80a44d342d7b1ba363e98ec9a5a8d09570f' into future
36cb7b7 Merge pull request #39 from Azure/sdk_983
6625ef4 Fixing the issue of circular depedency due to the use of non-unique key
3d39357 Merge pull request #37 from Azure/sdk_973
afc4173 Adding comments for EdgeType num
0493b5e Simplify the parallel async logic and adding circular depedency detection logic
b6d1b5e Merge branch 'master' of github.com:Azure/azure-sdk-for-java into parallel-create
686ac75 Wiring up the final call-back correctly
3967255 Remove subtree checks in travis
fb0172e Updated runtime sync script, Fixing the bug of not calling callback on stg create success, fixing the bug of not unlocking node
34b47c4 Merge branch 'master' of github.com:Azure/azure-sdk-for-java into parallel-create
f989dc7 Merge pull request #32 from Azure/sdk_975
817b71c Make a change in subtree
da1f9a4 last checkstyle fix
d0abca4 More check-style fixes
f05ff94 Fixing checkstyle errors
bdb7479 Restructuring and inital parallization work
6dcdbdf Simplifying the task group logic
8fbe3cb Merge pull request #26 from Azure/revert-24-revert-23-master
d67a862 Merge pull request #25 from jianghaolu/master
7ad505c Revert "Revert "Changes from AutoRest & SDK""
e4d8dda Merge pull request #24 from Azure/revert-23-master
06e3169 Revert "Changes from AutoRest & SDK"
ea7edb9 Merge branch 'master' of github.com:Azure/AutoRest
910cf5a Merge pull request #23 from jianghaolu/master
d7987f9 Merge commit '140542e7c5ceaaa632a9a146a1d603f2cd8acfdd' as 'src/client/Java'
3722243 Reconstruct subtree
262b35c Sync runtime with SDK repo
3596f48 Merge branch 'master' of github.com:jianghaolu/autorest-clientruntime-for-java into runtimes
b108e05 Merge commit 'c0aa84911ceec370c33616c3658df16313b8dfde'
3fa32be Merge pull request #22 from jianghaolu/master
0a31705 Should use debug version of autorest when building on windows  (#1268)
0933d58 Aligning Authentication releases with the master branch  (#1250)
904ef23 Remove HEAD operation status code warning (#1265)
d0168cd Ruby - Update ms_rest & ms_rest_azure version to 0.3.0 (#1260)
34f56ea Throw code gen error if pageable operation does not return pageable type (#1262)
62173d1 Ruby - Adding warning instead of Validation failure when unknown property found on object. (#1263)
d8ef424 Fix exception in Log4NetTracingInterceptor default constructor (#1237)
5d64b77 Ruby - ms_rest should throw validation error instead of NameError (#1255)
c6106a3 Remove Gemfile.lock and adding it to .gitignore (#1257)
08b89cf Updating build instructions with the answers to some common gotchas (#1258)
4f327ee [In- review] Improving pageable extension adding autopagination (#1211)
4a489e9 Adding "clean" Swagger validation test (#1254)
5069891 Support Char format for string (#1252)
0da7d34 OS X platform name is darwin. (#1253)
2a491e8 Ruby - Polymorphic discriminator hashmap should have exact model name as hash value instead of lowercased in Ruby (#1245)
34a1832 Prepare for next development iteration
f0805a7 Use beta2 for other packages
693fdd8 Remove deprecated methods from ms_rest_azure client_runtime. This change is related to PR #1011 where generalized method was introduced. (#1236)
fcbeb84 Handling lookup for provisioning_state in ruby client runtime (#1223)
0c749da Adding Swagger file linting infrastructure and rules (#1246)
b348fdd Support Base64url (#1238)
93de90c Fix for Issue #1202 (#1235)
a9acdd5 Fix runtime part of #1217 (#1224)
6226c15 Support unix style timestamp (#1239)
ba86230 custom paths on different plats (#1248)
7045fdb node clientruntime updates (#1244)
aaf8fd1 pulled in @stankovski 's fix for the comment problem (fixes #1228) (#1243)
43432e9 don't compile windows-only projects on not windows.
3f9053e put node tests back in
f4d008a Adding Roslyn support for unit testing
19f629b Code changes for dotnet cli conversion
32f7ccb Swapped out csproj build script for project.json and .xproj
cbe17c8 update license in header of source files to MIT
000948f Update building-code.md
45ddc1a Re-organize entire code repo (#1220)
762eaa6 Prepare for next development iteration
86aa2fc Merge pull request #1216 from vishrutshah/regen-samples
8825f41 Removing check style for hiding utility class constructor.
42c7200 Regenerate Java Samples
20b4a28 Regenerate Ruby Samples and remove old Samples
8b15c24 Increase ruby test coverage bar (#1188)
f8d2a9c Bump up version numbers for beta2 release
8a01cb7 Java beta2 release (#1213)
0c0e87b [Ruby - In Review] 	Restructuring generated Ruby & Azure.Ruby code into generated sub-folder (#1189)
987e8db Updated the error message to include the method name and property when the NextLink property could not be found (#1206)
79eb329 Migration to CoreCLR RTM (#1210)
592ec93 Added parameter documentation to model constructors (#1184)
ab8f357 Fix parameter flattening codes handling of documentation string (#1199)
f8a2ad4 Adding javadoc gen as a part of build since javadoc generation catches some of the checkstyle and reference issue
44645a6 Update Redis swagger test and add support for Pattern properties (#1191)
cf2fdb5 Adding publicIp sample, only mark sub-DAGs as non-prepare - the root DAG stay as preparer
47b9652 Adding publicIp sample, only mark sub-DAGs as non-prepare - the root DAG stay as preparer
5cc6367 Merge pull request #1157 from vishrutshah/x-ms-client-flatten
882a7dc Merge pull request #1193 from hovsepm/master
0e506fc Changed ClientRuntime.Authentication dependency range for Microsoft.IdentityModel.Clients.ActiveDirectory
4d24335 Regenerating samples with gulp regenerate:expected:samples
d734d1a Fix for Issue #1075 (#1182)
5c1cea8 Update README.md to include MS Code of Conduct (#1187)
cd769c3 Escapse . in property name for Ruby
a6aa047 Apply x-ms-client-flatten extension for Ruby & Azure.Ruby generator
e918ef8 Ruby - x-ms-parameter-grouping for Ruby & Azure.Ruby Generator (#1139)
1d5e9c1 improving comment as per review
f84bd3d improving comment as per review
dc3d0ca Regenerating Samples in Azure.Ruby
04a9525 x-ms-parameter-grouping for Ruby & Azure.Ruby Generator
8c6ad3e Merge pull request #1186 from hovsepm/master
25beef0 Addressing review comments [javadoc, simplfying the map iteration]
bf4c5ea Addressing review comments [javadoc, simplfying the map iteration]
af6f602 Upgraded to the latest version of net core on Ubuntu.
cfbafd0 comment corrections
4688b88 comment corrections
ac633da Making DAG to work correctly to handle more cases
c841500 Making DAG to work correctly to handle more cases
4aaef63 Adding a null check for reading Content from a response as a string (#1170)
45c3d88 couple of javadoc fixes
a56b045 couple of javadoc fixes
64a7b86 Do not need check property availability if nextLinkName is null (#1177)
57288f4 Merge pull request #819 from jianghaolu/async
f3fe387 Merge pull request #819 from jianghaolu/async
999fb18 Add retry for 404 GET
99abc58 Add retry for 404 GET
9c048fc Add a bunch of configs to RestClient
22f2053 Add a bunch of configs to RestClient
89bf350 Reuse the global autorest parameter. (#1171)
f1df2ab Add AzureResourceSchema Microsoft.Resources test (#1134)
46a53cd Merge branch 'master' of github.com:Azure/azure-sdk-for-java into async
ad7507e Merge branch 'master' of github.com:Azure/azure-sdk-for-java into async
76e3ae9 Merge pull request #832 from jianghaolu/restclient
0c8a460 Merge pull request #832 from jianghaolu/restclient
53ae9e7 Merge pull request #21 from jianghaolu/restclient
7be25fe Merge commit '486acdc633c498d4335711e30817cc70faacc487' into restclient
5ab5ddf Merge commit '486acdc633c498d4335711e30817cc70faacc487' into restclient
04af976 Regenerate azure & azure.fluent
fecda5c Move RestClient into azure runtime
f84d8eb making dag::prepare to work for update
5e5647f making dag::prepare to work for update
05105b4 Remove rest client from generic codegen
5dfea14 Ruby - Regenerating samples for ruby (#1179)
74917b9 Summary comments contain improperly escaped backslashes (Issue #1152) (#1176)
bb4a917 Fixing the bug of trying to create created resources during update, adding better way to name gen resource names
8604dee Fixing the bug of trying to create created resources during update, adding better way to name gen resource names
61d1467 Improve support for "Summary" and "Description" documentation fields (#1163)
1773d49 Add stage for base url
4a7b25e Remove required mapper adapter
6b71dda Ruby - Move serialization/deserialization into clientruntime from sdk (#1106)
b4a493d Ruby - Adding Model name on the properties of the ServiceClient (#1158)
738d121 use AZURE_GERMANY insteadof AZURE_GERMAN
1fd9e5f use AZURE_GERMANY insteadof AZURE_GERMAN
6196ce0 Merge pull request #20 from jianghaolu/master
dc4ff41 Page with links to Issues Queries
4ff4583 requestLibrarySink should be called with requestOptions if no additional arguments specified. (#1108)
ac312fe (C#) Adding support for "see" URLs in documentation (#1167)
6c8f63a ensuring trailing slash for urls
012a68b ensuring trailing slash for urls
c8db8d3 correcting environment name
281f61c correcting environment name
0261a6e Adding few more Azure environments
91d4bb5 Adding few more Azure environments
45a4711 Local gulp run produces expected file changes. (#1137)
5aac1fa Add applyAsync()
b8d6ab8 Add applyAsync()
bc57070 Basic prototyping of async in fluent
618091b Basic prototyping of async in fluent
6b8360d Fix python code gen bug in handling "." in property name. (#1144)
29ba650 Merge pull request #1160 from hovsepm/master
958aedd remove stale token from tokencache for sp auth as adal does not remove it. (#1145)
d8c60c1 Downgrading ClientRuntime versions.
f8683d0 Merge pull request #1159 from hovsepm/master
b3084e2 Downgraded C# ClientRuntime reference to Json.Net in net45 platform to 6.0.8
06f30cf Checkstyle passes everywhere
1bc2ab8 Checkstyle passes everywhere
31e5a52 Supply CodeGenSettings via a JSON file to AutoRest. CodeGenSettings is de-serialized as Dictionary<string, object> so it can contain more complex properties than just strings. (#1147)
89362bb Addresses issue #1087 (#1110)
2bf6b8b Merge pull request #783 from jianghaolu/javadocs
e622549 Merge pull request #783 from jianghaolu/javadocs
b14cc72 Merge pull request #779 from jianghaolu/paramhostfix
b415da0 Merge pull request #779 from jianghaolu/paramhostfix
546e068 Network passes checkstyle
9ab4ca6 Network passes checkstyle
14b071c Merge commit '4aa3dd4b847e747387475e9249c4aba97b6ef8ac' into paramhostfix
ef99c9e Merge commit '4aa3dd4b847e747387475e9249c4aba97b6ef8ac' into paramhostfix
1ae4191 Merge pull request #19 from jianghaolu/updates
623601d Schema typos (#1138)
8b43962 Remove header after use
3e644d9 Fix parameterized host concurrency issue
95fa032 Done storage usages
0b7ad46 Done storage usages
7ad2207 Update dependencies to official releases
87afa33 Merge pull request #18 from jianghaolu/renamesetters
86e9bd7 Merge pull request #1105 from hovsepm/master
194f509 Added gulp-msbuild normal level of verbosity.
12c3135 Updated to the latest stable nuget version.
9d078fe fixed nuget symbols push location.
9c4442d Address checkstyle errors
c09b620 Merge commit '083e8ab0c10b58e1491cd38235da5110121ef326' into javavnext
b5859aa Merge pull request #17 from jianghaolu/renamesetters
8a35466 Fixed broken test MappingExtensionTests.TestInputMappings (#1123)
f1f371c Merge commit '469f44270c1f37e6fe16bc324fea487a6354679a' into rename-setters
24d5c1e Fix all sets to be withs
6dd1aa6 Fixed assembly versions in client runtime.
9efe50a Added license header to CertificateAuthenticationProvider cs file.
9e11dd2 Some more renamings
81ba78c Fixes #881 - failure to accept x-* vendor extension in path (#1122)
cd47ac1 Merge pull request #1136 from hovsepm/ClientRuntimeVersionUpdate
6b34175 Changed minor version bump to patch update for RC2 migration
1b17bc9 Renamed setXXX() to withXXX() for non-top level methods
14a2cdf [Python] Fixed bug in enum namespace docs (#1074)
ae0f0a3 msrest/msrestazure 0.4.0 (#1092)
88a5f61  Fix bug with custom client request id generation (#1104)
26e44ad Updated documentation regarding dictionaries (#1115)
6d06584 Issue 669 - added Exception xml doc comments (#1076)
5ad191b Fixes #1019 - Verbose parameter and other costmetic issues (#1113)
f980c82 Merge pull request #1089 from daschult/master
836c71f Support additionalProperties that accept all unbound properties. (see #1057) (#1112)
09341fd Merge pull request #1107 from tbombach/master
d08d280 Changing YamlDotNet signing exception since the dll odesn't follow the same naming convention as Newtonsoft
4f80e3e Merge pull request #1103 from tbombach/master
b859906 Framework for Creatable composition, managing dependency between them and creating resources based on topotogical order
f764ac5 Changing nuget reference to YamlDotNet.Signed, since we're referencing it from a signed assembly
1a9e4e5 Add DevTestLabs acceptance test. Add 'format' property to JsonSchema
242834c Moving web.yaml into Web/2015-08-01/ folder
9ade282 Merge branch 'master' of https://github.com/Azure/autorest
9b84c45 Add DataLakeStore acceptance test
78906b1 Merge pull request #1100 from stankovski/syncwrapper
85f149b Addressed code review feedback
fbdcc27 Addressed fxcop issues
e6f05e8 Added tests
f04e04a Adding script to can verify that developer system has correct setup (#1098)
b338faa Propagated SyncWrapper property
e4be13a Added XXXWithHttpMessages() method
f427898 Merge pull request #1096 from fearthecowboy/add-yaml-support
f233c04 Adding YAML support to Autorest.
81937b8 Add DataLakeAnalytics acceptance test
ab5315f Merge pull request #1012 from abhivijay96/master
ca2b687 Merge pull request #1 from tbombach/user-agent-cleanup
73987f0 Merge pull request #1068 from TimLovellSmith/fixDotNetRedisInheritanceScenario
93d4e1c Merge pull request #1081 from daniel-ms/master
22f7fc7 Cleaning up typos and comments for ServiceClient SetUserAgent
47e95a5 Merge pull request #1093 from hovsepm/master
58366bd Adding more logging for gulp.msbuild and retrying for http failures.
faf7508 Merge commit '97bc529bbb06017de0bb069012c016c2949157be' into javavnext
9f4f7d6 Bumped up gulp npm versions
18c6a84 Add CognitiveServices test
40748df Merge branch 'master' of https://github.com/Azure/autorest
7954a99 Turn off CA1822 for test projects, warnings about performance of non-static unit test methods are a waste of time!
f116efa Merge branch 'master' of github.com:Azure/AutoRest into quickvm
1d34f9e Add tests for additional Network api versions
4268976 Add acceptance test for additional compute api version
2f45870 Add extra Storage api version acceptance tests
b403b9a Simplify the unit test for verifying redis swagger modelling inheritance scenarios.
c54836a Merge pull request #1091 from tbombach/dnx-gitignore
ef4d3ed Add additional CDN swagger and schema
0b05742 Merge pull request #1090 from Azure/hovsepm-patch-3
24bc68e [Python] LRO and AAD updates and fixes (#1078)
55a3b8e Adding dnx folders and files to gitignore since developers might still have them in their working copy after upgrading to CoreCLR RC2
19a6cc5 Add ability to seperate acceptance tests for AzureResourceSchema generator by resource provider and api version
92d9a16 Update building-code.md
4652810 Merge branch 'master' of https://github.com/Azure/autorest
083672e Update AzureResourceSchema generator to create DNS schema
de936fb Merge pull request #1086 from Azure/hovsepm-patch-2
6a8c6d6 Merge pull request #1085 from Azure/hovsepm-patch-1
871cb9a Update building-code.md
87c1603 Update building-code.md
337d976 Merge pull request #1084 from hovsepm/netcore
3f84226 Enumerating over create method parameter enum values
d5a44b0 Adding x-ms-client-flatten parameter to the swagger scehma, as it was missing: the spec defines that it is possible to add that extension to a body parameter.
f32e824 Rename Microsoft.DNS.json expected schema to Microsoft.Network.json
eb56294 Getting baseline for dns schema generation
80d8030 Merge branch 'master' of https://github.com/Azure/autorest
2707593 Fix code analysis warnings from using ToLower(CultureInfo.InvariantCulture).
1382a5e Merge pull request #1061 from daschult/master
568ded9 Merge pull request #1067 from veronicagg/changelog
7f5ae11 Fixed AutoRest.sln test references fro CSharp Generators
25a2716 Removed dnxcore50 from generated code.
59e6389 Merge branch 'master' of https://github.com/Azure/autorest
4736d63 Merge pull request #16 from jianghaolu/checkstyle
9b363b4 Making corresponding changes to gradle
122b780 Update travis to install build tools
62865c0 Move checkstyle to build-tools
72b915b Cleaning dnx from gitignore and tools
5f97447 Modify the circular detection logic for circular 'allOf' inheritance so that there can again be a passing test 'ClientModelWithCircularDependencyThrowsError'.
eb8754b Add checkstyle to travis build
f1f7584 updates to readme (#1071)
f9a1606 updates to node.js clientruntime (#1070)
3cb1bec interactive login in the node runtime (ms-rest-azure) (#1066)
de3e3c4 Added Generator CSharp tests to ClientRuntime solution
de698f7 Optional suppression file for maven scenario
630ea05 Changed nuget package test to be called after each language generator test
0ba790b Fix Swagger SchemaResolver to allow for the fact that properties may be defined by chains of indirect references to some type which inherits from another compatible type - and that should be fine!
55702f0 Merge commit 'bebdec5b1bbf8d0d2b6be78eb00cd2fc85646763' into checkstyle
0bcf347 Move checkstyle rules to runtimes
3ea49f8 Adding ChangeLog
9c26eea Added AcceptanceTestPath to the exception message.
79a1c2c Fixed test project build failure in VS2015
eba3a94 fixed python test with . in base UR
7f2b179 Fixed remaining Java tests with . in the base URI
191cac8 Bringing back Generator tests to Linux run
a1ac974 Changed . in Java test URI
8fa3955 Changed the url for LROS and paging on the test server
7dc762c Changing NodeJS Azure LRO tests base URI
9071c8d Add checkstyle rules
4ce0ca2 removed mono from travis.yml
9a0b774 updated NuGet.exe to 3.5-beta
f1ac322 Fixed travis.yml
d25043a Merge pull request #1062 from veronicagg/relprep
6c2547a changed test server package dependency
d76911a Skipped Generators tests in travis.
45413a8 Updating ms-rest-azure version
7282bf8 Merge pull request #14 from jianghaolu/ua
9750fcb Fix generated file name
13575b4 Pull runtimes subtree
5202139 Fix styles and tests
b443c0f Fix styles and tests
99cd7ee Merge commit 'fddca6a8917951772a65a3e5b47c5e72c1f42fb5' into ua
aabe677 Merge commit 'fddca6a8917951772a65a3e5b47c5e72c1f42fb5' into ua
63803e0 Fix runtime tests
c2765e5 Merge commit '3420556ca4cee622a71e11aa166f8e9ec894f818' into ua
6037451 Send client specific user agent
b887e80 Add user agent to every method
6825c6c Fixing net 4.5.2 reference in test project.
8151cf6 Fixed travis.yml to use coreclr rc2 instead of dnx
773e9f1 Merge branch 'netcore' of github.com:Azure/AutoRest into netcore
02f34b8 Merge pull request #1058 from Azure/master
adee9ea Http method get with status code 204 should be success in longrunning operation. (#1056)
35e197f Merge pull request #1033 from lmazuel/useragent
8212eb8 Get formatted reference value for only sequence type or return name (#1051)
4624e6f Update ServiceClient.cs
4630b69 Update ServiceClient.cs
a63879d Merge pull request #1020 from annatisch/py-dev
5681eea Merge branch 'netcore' of github.com:Azure/AutoRest into netcore
bc85f48 Merge pull request #1052 from Azure/master
ffe7e89 Fixed netcore build warnings.
69a989d Fixed gulpfile.js
92a2f95 Merge pull request #1039 from jianghaolu/master
9d48136 Add a test for request id header
29d8857 Fix request id to be generated each time
cab9d04 Merge pull request #1023 from csmengwan/master
689423c Merge pull request #1001 from tbombach/getting-started
e0e5bd1 Fixed failed test
640df1a Review feedback
9f62082 Set customer headers default to None
4104a56 Support for x-ms-enum ModelAsString
1d37145 removed base64 encoding/decoding
914f60f Added support for base64url serialization
3e08cfa Regenerated
1991851 Added unix url test
6500965 Revert "Change body serialization for complex type"
24cd72e review cleanups
88438df Regenerated tests
05f68a6 Test dict serialization
51948d7 Refactored dict serialization
00ff9b3 tox cleanups
c951cb8 regenerated python tests
71f8973 support for unix timestamps
64e0b96 Removed config objects from tests
42219a6 Merged config and client objects
fae2d8a Change body serialization for complex type
7ef8f8c Updating documentation in the running AutoRest section
833c80d Merge pull request #1045 from daschult/master
2c27c28 Update ServiceClient.cs
ca5a350 Update ServiceClient.cs
6cb707c Merge branch 'netcore' of github.com:Azure/AutoRest into netcore
e23db71 Merge pull request #1047 from Azure/master
111d7d5 Merge branch 'master' of github.com:Azure/AutoRest into netcore
71bc552 Moved to CoreClr RC2 public preview
eff510f Fix analysis errors
b39ebd5 Merge pull request #1046 from tbombach/update-autorest-version-0.17.0
8e26ebe Merge branch 'master' of https://github.com/Azure/autorest
4d6e574 code revise
e39bf6d Merge branch 'master' of github.com:Azure/AutoRest into netcore
52f3fbf Bumping AutoRest version to 0.17.0
e518b9c Merge branch 'master' of https://github.com/Azure/autorest
e9adb9d Update expected azure resource schemas and remove InternalsVisibleTo in AzureResourceSchema generator project
328825f Update ServiceClient.cs
b2f822e Merge pull request #1010 from hovsepm/master
8124fb7 Merge pull request #1040 from matthchr/feature/param-group-comments
a0a620d Regenerate expected
ac754e6 Refactor parameter grouping and enable better comments
f69f5ce Merge pull request #1018 from daschult/master
68b02be Merge pull request #1035 from brnleehng/feature/doc-strings-1
a30c462 Merge pull request #1016 from kirthik/master
6de0b6d Adding support for Unix date-time in ruby (#1014)
3285bee Merge pull request #1038 from Azure/release
f1585bd Use SNAPSHOT runtime as dependency
530c90c Use SNAPSHOT runtime as dependency
41224f8 ComputeManager, rename region->location, etc
6196277 Updating the dockerfile to use AutoRest 0.16.0
dcdca06 Added null check for property
374455a Regenerated expected files
78356b5 Updated comments for references
5e2de11 enabling Azure.authenticate(File).withDefaultSubscription() based on the subscription provided in the file
09ffae3 Merge pull request #1032 from tbombach/package_namespace_null
927a9d4 Add platform in Python UserAgent
fe3e5a4 Fix for a null reference exception in JavaCodeNamer when the namespace parameter is not provided as a command line parameter
38aa357 Merge branch 'release' of https://github.com/Azure/autorest into release
a5e2004 Merge branch 'master' of https://github.com/Azure/autorest
e1d41ab Patch support for long running operation in ruby (#1011)
a76ce51 Merge pull request #1029 from amarzavery/optional
2777e8f Merge pull request #1031 from jianghaolu/release
af4d522 fix env tests
12ac648 Use 1.0.0-SNAPSHOT for Java & Azure.Java
7c948e1 Merge branch 'release' of github.com:Azure/autorest into optional
ca68a08 updated activeDirectoryEndpointUrl with slashes
7f90ee0 Adding release notes for 0.16.0 release
30ed59c Added expression support
daacda8 Merge pull request #702 from jianghaolu/master
075398c Merge branch 'dev/daschult/AddChildResources'
b14c51d Merge branch 'master' of https://github.com/Azure/autorest
fb19554 Add support for child resources
1150967 updated node.js clientruntime version to 1.13.0 & 1.3.1 for ms-rest-azure & ms-rest resp. (#1026)
788f625 support for Azure.authenticate(File propertiesFile)
4f7dc49 updated node.js clientruntime version to 1.13.0 & 1.3.1 for ms-rest-azure and ms-rest resp.
dab7626 Address eclipse build errors
cb980a4 Merge branch 'master' of github.com:Azure/autorest into optional
5604cf9 Added support for Microsoft.Web. Change resource schema resource names to be resource type with '_' instead of '/'
630d39b Fix LRO issue in C# code gen
e0fde05 Rename JSONSchema.cs to JsonSchema.cs
01d7a12 Merge branch 'master' of https://github.com/Azure/autorest
d406c85 Add Network test
31f3a92 Fixed parsing SequenceTypes and add Compute acceptance test
cfdf8a8 Appended additional operation names to the documentation for Parameter Groups (#1002)
3eef4f2 Fixed all analysis errors
42cd603 Storage, Batch, and CDN schemas generating
9562283 Fix for #967: C# generator generates code that contains compiler warnings
79b3093 Update ServiceClient.cs
8a2fd9a Update ServiceClient.cs
c4c32d2 Working on model
19cb26d Fixed typos in comments
5e54326 Storage and Batch passing
c8ecc0f Merge pull request #13 from jianghaolu/snap
69f21a2 Use sonatype as public snapshots
6cdb496 Merge pull request #12 from Azure/javavnext
df8fb81 Merge branch 'master' of https://github.com/Azure/autorest
4c5f556 Add Batch acceptance test
14c2966 Adding more instructions to the building code documentation
0142862 [NodeJS] Redesigned the structure of AzureEnvironment and updated environment info (#998)
88e3679 getting rid of underscore.js as a dependency from ms-rest-azure
2a447e5 Merge branch 'master' of github.com:Azure/autorest into optional
55af5be Redesigned the structure of AzureEnvironment and updated the environments with more values.
49cc5e0 Can now generate fleshed out storage schema
f41092a Implement x-ms-parameterized-host extension for ruby (#992)
16eebb8 Merge pull request #971 from tbombach/test-documentation
5101bc7 Fixing arrays with collection format not replaced correctly in URLs (#990)
47753e5 Fix AzureResourceSchema projects (#956)
1f4cc35 msrest/msrestazure 0.3.0 (#982)
78ce979 Updated the UserAgent ProductInfoHeaderValue to use the AssemblyInformationalVersion or the AssemblyFileVersion, if neither attribute is available it will default to the Assembly Version. (#979)
b274bbe Merge pull request #875 from csmengwan/master
37a5369 UnixTime in node.js (#987)
5e85f67 FxCop warnings
340132b Merge branch 'master' of https://github.com/Azure/autorest
63fee4f UnixTime tests
54cfaac modification
ff64ad6 Merge branch 'master' of github.com:Azure/autorest into optional
2f82af1 unixTime in node.js
90d7f8b Merge pull request #11 from Azure/revert-10-revert-9-pagedListFix
18066d8 Revert "Revert "Fixing UnsupportedOperation exception in PagedList""
651b102 fixed setting default value for a complex object containing constant properties (#985)
6e44a66 Merge pull request #10 from Azure/revert-9-pagedListFix
5a032ae remove null check validation for unixtime as they are treated as long in java
8b7b17a Revert "Fixing UnsupportedOperation exception in PagedList"
2e67caa Merge pull request #9 from anuchandy/pagedListFix
c3f7a46 Fixing UnsupportedOperation exception in PagedList
f0dff3d Fixed fxcop warnings
845fc5b result of executing gulp regenerate:expected
7750284 fixed setting default value for a complex object containing constant properties.
82bdc8b Merge pull request #8 from anuchandy/gradlefix
d56d5e0 Merge commit 'ae4c3ba611076c6d1a2e6fedb6616d5c3b0fdb3d' into exp
2a37759 Merge pull request #7 from jianghaolu/restclient
9295380 Merge commit '9513e6ec31afd0bc1418f07feb3ff8202041f608' into javavnext
eee9f2a Merge commit '9513e6ec31afd0bc1418f07feb3ff8202041f608' into javavnext
4a965fd Merge pull request #984 from jianghaolu/builder
73b3ae3 Merge pull request #984 from jianghaolu/builder
4cfb906 Merge pull request #958 from jianghaolu/javartremoval
8009399 Address checkstyle errors
168b99e Address checkstyle errors
9a27d68 Support base URL replace using Interceptor (Retrofit 2.0)
fa1ac24 Support base URL replace using Interceptor (Retrofit 2.0)
b6592da Removing unused VersionInfo task from runtime gradle files
e5cbc40 Fixing few compilation errors, removing gitrevision artifacts from the POM and Gradle files
1a6bf4e code revise
2f7d3e4 Deprecate two old functions
b6c78d5 Add RestClient
fcfb315 Add RestClient
46b1540 Merge branch 'master' of https://github.com/Azure/autorest
f82044b Merge branch 'master' of github.com:Azure/autorest into optional
dfba322 Move .build() from collection calls to initialize()
75e08f0 Move .build() from collection calls to initialize()
f510e4d Merge branch 'master' of github.com:Azure/AutoRest into netcore
32d190e Merge pull request #974 from hovsepm/master
88cef20 Fixes Issue #944 by catching the JSONException that may occur on a Non-Success StatusCode when attempting to Deserialize the HTTPResponse.Content when it is not JSON.
af6fa32 Fixed the test
72ba2d6 Added tests to Odata filter generation
f76e16f Merge pull request #973 from Azure/revert-902-master
1e0252d Revert "Escape data strings for odata queries."
a7b6eb9 Added an ExitCode to Autorest.exe (#966)
08bd336 Adding documentation for instructions on writing tests in AutoRest
c38771d Fix FXCopy issues
f325514 Merge branch 'master' of https://github.com/Azure/autorest
ab9cb34 Merge pull request #948 from tbombach/issue-909
d1d781c Python Read-only and UTF-8 support (#959)
468c8c4 Fixes the issue where the contents of the output file for SingleFileGeneration are appended to each time Autorest is run (#968)
dccbc73 Simplifying the logic for determining SerializationSettings
1819c56 Merge remote-tracking branch 'refs/remotes/Azure/master' into issue-909
b6ee9ef Merge pull request #947 from alesvi/master
05e8518 Fixed build.proj to use netcore instead of dnu.
62dfbcc Fixed CSharp Generators test project
74692a0 Fixed Microsoft.Rest.ClientRuntime.Tracing.Tests test and removed xproj and csproj files
a757cc4 Can generate storage schema from swagger
16b8f29 Set the intial coverage for the LRONonRetryPut201Creating400InvalidJson to 1
0b4ee07 Merge remote-tracking branch 'refs/remotes/Azure/master' into issue-944
d41d44c Added a LRO acceptance test to verify that a CloudException is thrown when a JSONException occurs during Deserialization of the response content
0e5da7e Merge commit '7162a39ae50d95c1a20cbb521282752955ed722a' as 'ClientRuntimes/Java'
88f2de6 Remove submodule
a6eef1f Merge pull request #5 from Azure/jianghaolu-patch-1
2c03d76 Update README
7c87e37 Use latest javavnext runtime
78359ef Merge pull request #4 from jianghaolu/javavnext
f7a6b01 Use snapshot in build.gradle in azure-client-runtime
2ad3332 Use javavnext branch consistently
f1d7b46 [Azure/autorest#957] Merge pull request #3 from jianghaolu/javavnext
831f725 Runtime changes in javavnext
8979cac Use relative path in .gitmodules
1c70756 Add Java runtimes as a submodule
e8eb547 Remove Java/ in ClientRuntimes
d7f6ea2 Merge pull request #2 from jianghaolu/master
dadd75f [Azure/autorest#957] Add gradle wrapper jar
e1947d8 Add travis file
391afe5 Compiles
6981bc8 Merge remote-tracking branch 'refs/remotes/Azure/master' into issue-909
ce58306 Fix AzureResourceSchema project
0eb8d0f Merge latest from Azure/AutoRest
f277902 Merge remote-tracking branch 'upstream/master'
a373026 Add dependencies in parent pom
0e14ae1 Merge pull request #955 from jianghaolu/javavnext
6e56f78 Initial commit
3dd9e99 Merge branch 'master' of github.com:Azure/autorest into optional
91d73c6 Python Streaming Test Fix (#953)
f674f3c Add fluent to pageimpl
7082f8e Use String for OData
b7dc878 Use String for OData
42a3277 Use String for OData
9a03f63 Fix paged list to use hasNextPage() for hasNext()
ea61512 Fix paged list to use hasNextPage() for hasNext()
88c8aad Fix paged list to use hasNextPage() for hasNext()
77a7eb1 Extend functionality for paged lists
4ff082d Extend functionality for paged lists
8b1aeed Extend functionality for paged lists
3d236fe Regenerate after merge
07bda32 Address code analysis errors
8bd5afd Rename method group impl to inner
6333912 Rename only top level parameters & responses to Inner
51f17c3 Move into implementation.api subpackage
175a66e Rename models to end with impl
b877cbf Seperate type name generation and client name generation
cd01cf8 Remove interfaces for method groups and service clients
b81317e Remove get prefix on model property getters
cea6f72 Remove get prefix on model property getters
c0b92a9 Remove get prefix on model property getters
5573dc8 Move impl classes to implementation subpackage
b2c127f Rename AutoRestException to RestException
fc7d9a9 Rename AutoRestException to RestException
c009c93 Rename AutoRestException to RestException
4c181b2 Address code analysis
3a885ff Shorten operations names to simple plurals
b7de51d Rename method groups without Operations suffix
29dc46d Python Bug Fixes (#928)
14b4e56 Merge pull request #951 from jianghaolu/master
a6feaf0 Okio 1.7.0
0592481 Okio 1.7.0
cd746ab Okio 1.7.0
3622e2b Added a new LongRunningOperations test to verify that a CloudException is thrown even when a JSONException occurs Deserializing the HTTPResponse.Content
8b015ac Captured the JSONException that may occur on a Non-Success StatusCode when attempting to Deserialize the HTTPResponse.Content when it is not JSON
b6bf4cc Adding a User-Agent header to the request done in FileSystem.ReadFileAsText
5577875 Updating test coverage list
59d3fa9 Adding test for Unix time encoded values in path
166ff89 Updating test server to add test scenarios for unix time
1833d26 Adding a new primary type for unix time and updating namers to handle this type
646e72a Converting CSharp ClientRuntime projects to CoreClr
296bb25 Correct bug link re: multi (#939)
56a20fa Merge pull request #917 from AzCiS/master
1ac04c3 Merge branch 'master' of github.com:Azure/autorest into optional
0e2d13a Update swagger-extensions.md
016cef6 Enhancement to "x-ms-parameterized-host" extension (#929)
d8110cf positionInOperation defaults to first
63b9fd6 Enhancement to x-ms-parameterized-host extension
5b4ca29 change code gen in node js to merge LRO operations into one method
ffb8fa3 Almost have Storage schema generating from swagger spec
b9d642d add 204 poll state for post
b73c784 Fix: https://github.com/Azure/autorest/issues/923
9573dee code revise
d1ff941 fix the naming issue in azure serviceClientTest
39b4b19 code revise
ab93a4a Merge pull request #927 from jianghaolu/master
7c26136 Android license split into 2
a8c0328 AzureResourceSchemaCodeGenerator shows up in AutoRest help and tests pass
7bfc5c2 Add AzureResourceSchema to configuration file
f7840bf Update AzureResourceSchema projects and add initial c# files
3106fb8 Automatically detect MSBuild tools version in Windows platform
0522974 Add initial AzureResourceSchema project and test project
1f44695 msrestazure 0.2.1
12e9590 Python model kwargs removal
5915c65 removing logic to require('moment') from model classes
94b15ef Automatically detect MSBuild tools version in Windows platform
97545e3 fixes issue #890
965e722 Adding a method in the AzureClientExtensions to handle the PutOrPatch async calls with 202 responses which have no body and no specific headers
6142fb7 csv array in path #900
afd67f1 added test for flattening generic properties of a model to be flattened
e4ba498 Merge pull request #908 from jianghaolu/master
70fe5ce Merge pull request #908 from jianghaolu/master
bb0d05b Merge pull request #908 from jianghaolu/master
4c4604f Merge pull request #904 from amarzavery/enum
5a6f236 Merge pull request #891 from dtretyakov/master
6158597 Merge pull request #891 from dtretyakov/master
e97388a Merge pull request #891 from dtretyakov/master
711df83 Azure/azure-sdk-for-java#622: Shutdown ADAL auth executors
de0232b Azure/azure-sdk-for-java#622: Shutdown ADAL auth executors
73e516c Azure/azure-sdk-for-java#622: Shutdown ADAL auth executors
360619a Merge pull request #901 from jianghaolu/optional
12f4d00 base64Url support for node.js and inclusion of composed properties while flattening.
e70afa7 Merge pull request #902 from begoldsm/master
1ec7248 Fix test breaks.
ed2d74f Merge branch 'master' of https://github.com/Azure/autorest
dd478b8 Add missing condition in Azure template
4ffe90d Re-gen and address code analysis errors
107c6c9 Add null checks to optional flattened wire parameters
e941db6 bring variable declarations back
89a40ba Merge pull request #878 from tbombach/base64url
8ab297f Fixing merge conflict for renaming base64url type in Java
6daa5ef Remove useless nulls when input is optional
15b977f Merge remote-tracking branch 'Azure/master' into base64url
7ff9d25 Merge branch 'master' of github.com:Azure/AutoRest
36b2ce5 Merge pull request #898 from jianghaolu/nocodegenheader
ab982ac Escape data strings for odata queries.
c0d3614 Merge remote-tracking branch 'Azure/master' into base64url
49a0c03 Fix head response with headers
4163396 Fix head response with headers
3b3c788 Fix head response with headers
c174932 update paging extension documentation.
b37fc5e Add option for license header w/o codgen info
3992b7e Merge pull request #893 from jianghaolu/defaultvalue
1aab052 Updating the client runtime package version
24a74a0 Fix type normalization [stackoverflow in network]
5732fa5 Update swagger-extensions.md
d468bfc Fix parameter conversion
bf5456a #889: Fix credentials setup in service client
b5163a9 Adding test case for accepting a base64url encoded string in the path
eb7cf92 Merge pull request #892 from annatisch/PythonPollingBuxFix
f25e20c Merge pull request #894 from lmazuel/msrest020-msrestazure020
bef80e6 msrest-msrestazure 0.2.0
d0a6e6f Add default value support for optional parameters
725c1f6 Merge pull request #880 from jianghaolu/refactoring
ecb8a4c Remove unnecessary serializations for some primary types
32a8ff1 Edited changes
e8b8f7d LRO polling fix for status enums
045fb77 Fix status code validation in java client
6b0d795 Fix status code validation in java client
3b59c0f Fix status code validation in java client
f4a4543 Merge pull request #887 from Azure/devigned-patch-1
78c499d Update swagger-extensions.json
f32e739 fix test compilation errors
b8cfd81 Add parameter conversion
9b1bb48 Fix parameter invocation
754785b Fix some imports
de7c6e9 Add property model and fix type conversion
52beb9d Merge pull request #879 from lmazuel/enum_as_int
c1bcfb9 Merge pull request #883 from amarzavery/enum
3b3b14e pusblished 1.12.0 version of ms-rest and ms-rest-azure
d824238 Address code analysis errors
83c8291 Move all string templates to ResponseModel
05a7ebc Let Response model handle client type string
4ab8892 style change
f72ae19 Merge branch 'master' of https://github.com/csmengwan/autorest
6e478d4 fix async patch and post run
9c7e28b code revise
5dfaf9b Explicit comment as a temp workaround
1539446 Move OperationResponseType to ResponseModel
f35d545 Move folder
3c7cc6c Fix type token type
406a741 Some renamings and cleanups
671703c Add JavaResponse
ac318cf Allows to parse integer as enum valid values
b48d906 Let JavaParameter handle invoke
3e4df71 Adding tests to ensure base64url format works in a dictionary and an array
8466b63 Generate import list from JavaParameter
b9e1bbb Merge pull request #873 from annatisch/AzureOperationChanges
b3fd265 Merge pull request #877 from matthchr/feature/optional-body-fixes
285b432 Adding the code coverage exception for base64url format for all languages until they implement the serialization for the type
b74a654 Updating nodejs coverage test to exclude base64url tests that haven't yet been implemented in the language
fe85341 Add JavaParameter
53693bc Move primary type normalization to JavaPrimaryType
b789377 add test for fixing the post/patch async operation
baefd44 Fix nodejs server to correctly check optional body
f900898 Merge remote-tracking branch 'refs/remotes/Azure/master' into base64url
6ae67cc Adding a test for handling a null value when it is expected to be base64url encoded
9337878 Updating unit tests for swagger generation for base64url format
d6f7539 Making the code namers for each language treat base64url encoding as string if they don't handle encoding/decoding
daf75d9 Adding tests for C# for base64url
f058543 fix async patch and post run
0faa880 Merge pull request #872 from jianghaolu/large
7a39169 Merge pull request #872 from jianghaolu/large
f375b91 Merge pull request #872 from jianghaolu/large
53c6ca7 Merge pull request #874 from jianghaolu/typefix
7fbb811 Fix stream type in input mappings
e39b8c0 Fix stream type in input mappings
f92ffb3 Fix stream type in input mappings
e108283 Fix DateTimeRfc in parameter mappings
74c3a75 Update travis node version to 4
a26728c Added accept header
1aeb717 Reformatted docstring
081e7f6 Merge pull request #866 from jianghaolu/rfc1123
f2319c8 Merge pull request #865 from lmazuel/msrest013-msrestazure012
a8419ee more regression fix in azure codegen
8381aa9 Fix regression in azure codegen
84c75d9 #742 Hide RFC1123 on parameters
99e6538 #742 Hide RFC1123 on parameters
10ba216 #742 Hide RFC1123 on parameters
8a326f2 Clean up method model and add wrapping to models
812528f Address code analysis error
d9c5f88 #742: Hide DateTimeRfc1123
20649f3 #742: Hide DateTimeRfc1123
c5cb522 #742: Hide DateTimeRfc1123
ba3ca3d Remove entry from coverage reporter
a718459 commons-io was for debugging
cd818c8 commons-io was for debugging
50561ec commons-io was for debugging
589df22 Add download streaming support
22d1d5a Add download streaming support
3522036 Add download streaming support
b321647 Merge pull request #870 from jianghaolu/stream
93075ab Remove unused imports
67bb5a3 Stream support: change back to byte[]
48d268a Updating C# Client runtime to handle the base64url format and add the associated Json serializer for properties of that format
95dbe37 Merge pull request #869 from matthchr/feature/stream-fix
34f7a98 Fix out of memory exception streaming large streams
8250693 Merge pull request #868 from amarzavery/enum
d67b08f Adding primary type for base64url format
7f3bb55 Updated tests and regenerated
9e8d436 Merge branch 'master' of github.com:Azure/autorest into enum
619ce59 Changed raw LROs in Python generator
b6ef4b7 [node.js] Add responseBody as one of the parameters in the callback while processing stream response
e8ad92f Removed raw from Azure LRO
beefee6 Merge pull request #851 from jianghaolu/lazy
b85040d Merge pull request #851 from jianghaolu/lazy
6aed2ce Merge pull request #851 from jianghaolu/lazy
f24b0b6 Merge pull request #864 from jianghaolu/stream
1898038 Reset server change
58648e9 msrest 0.1.3 - msrestazure 0.1.2
26c3d3a Fix NPE
f72eb22 Fix NPE
d47a7df Fix NPE
4d07844 Remove system.err
43ae403 Remove system.err
e5cdce2 Remove system.err
639f69e Change file upload type to java.io.File
1eca766 Change file upload type to java.io.File
8ef1fc6 Change file upload type to java.io.File
9946a01 Fix close() in retry handler
3301f3a Fix close() in retry handler
cfd8472 Fix close() in retry handler
4bbb4a5 add close() to response bodies
524b8c4 add close() to response bodies
f4adb86 add close() to response bodies
6ac47d9 Manually change byte[] to File
815bd1e Manually change byte[] to File
e21f437 Manually change byte[] to File
8238efd Merge branch 'master' of github.com:Azure/AutoRest into lazy
cef40a4 Merge pull request #859 from jianghaolu/stream
0dfd694 Merge pull request #856 from lmazuel/master
8ae1e78 Merge pull request #861 from lmazuel/generic_deserialization
d1d64d7 Add missing javadoc
ea0f751 Add missing javadoc
2b47ec9 Add missing javadoc
ec5a338 Re-generate
689ff03 Add more laziness to PagedList
510be3f Add more laziness to PagedList
3ab0c6a Add more laziness to PagedList
3b9f993 Fix PythonSDK bug 544
17485d7 Reset unnecessary changes
bebc9e8 Fix incorrect content type
fe83a2e Merge pull request #858 from NiklasGustafsson/master
7031098 Merge pull request #860 from amarzavery/enum
f8a4da6 Merge branch 'enum' of github.com:amarzavery/AutoRest into enum
542d576 Merge branch 'master' of github.com:Azure/autorest into enum
71d5bd2 Fix python test
c6153ea Add missing multipart declarations
ca2ac16 Merge branch 'master' of github.com:Azure/autorest into enum
07a49c1 fixes #782 for node.js and JSON.stringify of null value during serialization
7b7b334 Remove invalid formdata parameter
b457065 Add support for file uploading
77408ae 1) Implementing synchronous and HTTP-response-free operation methods for Ruby. This will lead to silent breaking changes in any generated libraries as the type returned will have changed for all non-LRO operations. 2) Modified tests to use the '_async' methods, except for LRO tests. 3) Added 'x-ms-client-name' to Swagger extensions schema.
e2c8d09 Merge pull request #852 from NiklasGustafsson/master
45733bd Wait() must raises Exception if query failed
f4307d2 Fix iterator and add tests for PagedList
227bea7 Fix iterator and add tests for PagedList
b439852 Fix iterator and add tests for PagedList
7932d97 published 1.11.0 version of nodejs runtime
1189e2d Merge pull request #853 from yaxia/master
c78174c Merge branch 'master' of https://github.com/NiklasGustafsson/autorest
8254303 Merge pull request #11 from NiklasGustafsson/merged
baa5088 Fixed tests that depended on constant parameters not being supported.
4cc03f7 Merge pull request #10 from NiklasGustafsson/master
2b9f18a Added synchronous method versions for each operation.
943e073 Fix error message in serializer
31794ef Add lazy behavior in get()
c0c49bc Add lazy behavior in get()
fb0db57 Add lazy behavior in get()
6fc1dd9 Add Javadoc and cleanup
30d986f Add Javadoc and cleanup
a48a647 Add Javadoc and cleanup
9d24b97 Merge pull request #9 from Azure/master
2fed13f Fixed byte-array-to-string conversion logic.
5fa2ff1 Merge pull request #850 from annatisch/optional_param
6aa18d7 Adjusted Ruby tests for the new constant parameter logic.
b1e5619 A working solution for lazy initiliazed paging
61447f3 A working solution for lazy initiliazed paging
724ea5a A working solution for lazy initiliazed paging
c5ab686 Merge branch 'master' of https://github.com/NiklasGustafsson/autorest
3beff93 Ruby pays attention to constancy of parameters.
cb48887 Merge pull request #8 from Azure/master
abbaf81 Regenerated Python tests
afd0528 Fixed optional body parameter bug
13323c2 Merge remote-tracking branch 'refs/remotes/Azure/master'
3a88ef7 Merge pull request #848 from amarzavery/enum
bf70f23 exported USGov envt.
23ac4ba added support for default Errors for stream response in node.js
b5fd67a updated nodejs enum check
749e8e7 Fixed issue #847 for C# and node.js
68ea21c Merge pull request #846 from annatisch/SwaggerModelerBugFix
b96e980 Bug fix
2515e68 Merge remote-tracking branch 'refs/remotes/Azure/master' into docstring_formatting
3db1c62 Merge pull request #832 from devigned/fix/unit_const_rb
9c9e7f6 generate require module_definition when namespace is present
e67a8f8 Merge pull request #841 from begoldsm/master
a12d73e Merge pull request #844 from jianghaolu/const
5667e2d Add missing declarations in interfaces
86f25b8 Add overloads without optional parameters
3546e52 Remove composite lazy initialization for now
7e7a4fe Fix tests in Azure as well
e425151 Support constant values
10c8f40 Merge pull request #842 from lmazuel/master
8c9c8d3 Release msrest 0.1.2
bbe5f85 Remove accidental empty line.
8d5a0fa Merge pull request #840 from annatisch/docstring_formatting
58292d8 Make code analysis happy.
d4bccbd Safer parse.
3f07b14 Change to the Azure code generator to pass settings
fd1492c More C# cleanups
e60a95e Merge pull request #829 from jianghaolu/baseresource
f865082 C# code analysis fixes
af63d63 Merge remote-tracking branch 'refs/remotes/Azure/master' into docstring_formatting
151f80c formatting fix
40a6d12 Merge pull request #839 from Azure/devigned-patch-1
d577042 Docstring change cleanups
bb35608 #838 add document relative $ref path
6a2033e Regenerated Python tests
687c451 Merge pull request #7 from Azure/master
99908b7 Merge pull request #830 from lmazuel/msrestdoc
8f3f697 Resources don't extend com.microsoft.azure.Resource
afd7864 More docstring touchups
cc87632 Address code analysis errors
7bc5b64 Model classes import the runtime Resource & SubResource
5e04616 Use 1.0.0-SNAPSHOT for new dev phase
1eb3988 Use 1.0.0-SNAPSHOT for new dev phase
a8dddd8 Use 1.0.0-SNAPSHOT for new dev phase
97b7174 Unify resources in runtime
f681c43 Unify resources in runtime
66e0bf7 Unify resources in runtime
14f9234 Merge remote-tracking branch 'refs/remotes/Azure/master' into docstring_formatting
d66ba97 Improved sphinx references in docstrings
dab0418 Do not flask8 the doc configuration
750abb8 add msrest to mrestazure requirements
beecc7a Basic doc
645f383 Merge pull request #828 from amarzavery/enum
bc5ef85 Adding test generation changes
e3aa58f Merge branch 'master' of github.com:Azure/autorest into enum
9fb8544 optional single enum will not be treated as a constant
5d88aaf Merge pull request #827 from begoldsm/master
ab14e38 Merge pull request #818 from devigned/fix/resource-serialization
5467ffb Adding examples of x-ms-parameterized-host to documentation
1d029fa add suppressions
89c3525 Merge pull request #6 from Azure/master
305c958 Merge pull request #817 from jhancock93/partialinit2
22f4c66 Merge pull request #810 from brodyberg/xunitversion
056297d Merge pull request #826 from annatisch/urllib_fix
9370ea5 Merge pull request #801 from NiklasGustafsson/master
2b6b6a2 Fixed missing test
b9b93fc Fix for urllib bug
d34ebf6 resource and sub-resource serialization fix for ruby
8b4c10a Update cli.md
b8117a0 Merge pull request #5 from Azure/master
0e78508 Fix the client-name implementation. Added tests.
5071471 Merge pull request #821 from jianghaolu/moredev
5a68c4d Merge pull request #821 from jianghaolu/moredev
523d79e Merge pull request #821 from jianghaolu/moredev
d75ac2c parameter.getClass() -> parameterType
edf5caf parameter.getClass() -> parameterType
c6b8393 parameter.getClass() -> parameterType
aa043b7 Fix recursive validation
a2b7aa0 Fix recursive validation
59d204e Fix recursive validation
04c19cd Merge pull request #749 from jhancock93/nullresponse
8bca5cb Fixed reference in MD file.
2727c44 Merge pull request #4 from Azure/master
a015249 CSharp: Add partial method CustomInitialize to client initialization
f90395d Merge pull request #814 from devigned/fix/version-dependency
1149348 fix version dependency for ms_rest
beb9f19 Merge pull request #813 from devigned/chore/bump-versions
ee4633b bump rb gem versions to 0.2.1
c3c4501 Merge pull request #812 from devigned/bug/path-template
d4eb3d4 check path templates and add user agent
46dc5c9 add Running to long running states
76aec4f Add Uuid to NodeJs dictionary to avoid analysis warning
e96ada3 Fix warning about xunit build version
6e2c21c Merge remote-tracking branch 'upstream/master'
d236a3f Change docs to be more clear about build flavor
492b2b8 Fixes problem with null response content in CSharp generator for non-documented codes
391a2e0 Added documentation for x-ms-client-name.
5de974d Merge pull request #807 from amarzavery/release-0.15.0
20b7f10 Merge pull request #808 from lmazuel/revert-799-malnick/fix_setup
0a66583 Revert "Setup.py references a file that does not exist"
2faa42e Restructured x-ms-client-name support
09365a1 Merge pull request #800 from lmazuel/master
ac8a5a5 Merge pull request #799 from malnick/malnick/fix_setup
1f13aa5 Merge pull request #803 from jianghaolu/moredev
f6c2f7c Merge pull request #803 from jianghaolu/moredev
bbe6ec5 Merge pull request #803 from jianghaolu/moredev
9bc89f1 Update building-code.md
07c0a66 Update README.md
da5e7ea bumped autorest version
c46de70 Update ChangeLog.md
688c538 Merge pull request #804 from Azure/release-0.15.0
93862a8 Update building-code.md
8dcfa4b Update ChangeLog.md
4456e9f Update building-code.md
896d0d2 Update ChangeLog.md
5ea42fd Update ChangeLog.md
5b68453 ChangeLog 0.1.1
1e66161 Fix MANIFEST issue again
667ddc9 Merge pull request #798 from Azure/master
231e596 Correcting comments and description in Swagger test file.
75f320b Setup.py references a file that does not exist
86aefd6 Merge branch 'Azure-master'
7e59f37 Manual merge
939a90d Implemented ClientName on model properties, added more tests.
eea487d Merge pull request #795 from devigned/chore/gem-version
a857359 Merge pull request #797 from stankovski/escapedot
2232196 Merge pull request #796 from stankovski/master
fdf5ea4 escape dots in serialized name if present in the property name
a7fa96a Merge pull request #793 from annatisch/PythonLogging
3b7f02e Fixed fxcop issue
86daf21 provide the gem-version information when generating
73a65fa Merge pull request #784 from jhancock93/uuid2
26a89bd Add Assert.fail() in new java test
f2988f4 Merge pull request #773 from jianghaolu/master
d44df63 Fix credentials test
bd1a7e4 Fix credentials test
ac2175d Fix credentials test
a02d30c Merge pull request #794 from stankovski/release-0.15.0
d85fe59 Merge pull request #1 from amarzavery/uuid
714be24 Merge branch 'master' of https://github.com/Azure/AutoRest into release-0.15.0
5db8a35 Merge pull request #791 from stankovski/master
a376290 Added test fixes for logging changes
cdd9616 Fixed Python constants tests
b54f623 Merge remote-tracking branch 'refs/remotes/lmazuel/master' into PythonLogging
2b0fb7e Merge remote-tracking branch 'refs/remotes/Azure/master'
3f50788 Merge remote-tracking branch 'refs/remotes/Azure/master'
efd505f New simple log system
309b3a2 Improved NodeJS support for uuid
115c762 Merge branch 'master' of https://github.com/Azure/AutoRest
98e13ff Merge pull request #790 from xingwu1/arg_defaults
be03738 Added support for ClientName on properties. Added unit tests for client properties and parameters.
bcab638 Regenerated code and fixed tests
4c97607 ServiceClient null check
c1ce2de Add more info to revision file
29e57b8 Add more info to revision file
d031031 Add more info to revision file
7b3a479 Added cultureinfo
54f180a Add gradle task to generate git revision
3405154 Add gradle task to generate git revision
8d37635 Add gradle task to generate git revision
f21af20 Updated readme
0910a29 Merge pull request #792 from devigned/bug/rb-lros
0735c94 fix long running operations in ruby
ebda362 Change constant behavior to not initialize parent of child is a constant #782
c28a3cf Regenerated tests
04b87c6 Updated test cases
c73b362 Added model **kwargs
0101efd Merge remote-tracking branch 'refs/remotes/Azure/master' into arg_defaults
8735578 Merge pull request #788 from devigned/feature/rb-cleaner-code
75a8271 Added validationerror to generated exceptions
607598b Replaced ValueError with ValidationError
52170aa Updated runtime version history
021f448 regen samples
9af9db9 Replaced Python None with constant
43caf6a move skipUrlEncoding to generic ruby
f6edb1b Regenerated java fixtures to fix merge issue
045a370 cleaner ms-rest lib and code generation
466c7b7 Model uuid format with Guid in CSharp, UUID in Java
71deef2 Restructured body validation
d24ff9a Restructured generated validation
25554ee Started reworking model validation
6f8539e Cleaned up ValidationError
d761a79 Merge pull request #780 from annatisch/test-reformat
ebed0bb Regenerated
d3f3abd Merge pull request #779 from stankovski/release-0.15.0
15899df custom uri test reformat
d307ddc Merge remote-tracking branch 'refs/remotes/Azure/master'
8ee8d12 Merge branch 'master' of https://github.com/Azure/AutoRest into release-0.15.0
46c5ba0 Merge pull request #778 from amarzavery/readonly
a5f284e update
f410906 Merge branch 'readonly' of github.com:amarzavery/AutoRest into readonly
bcd6b2e updated readme for ms-rest-azure
2dc5805 updated readme for ms-rest-azure
8cbc5d3 updated README for ms-rest
1bb5892 Fix for #633 - C# generator emits some empty classes
81c1f31 append query parameetrs correctly for partial nextLink
5a2a726 Merge branch 'release-0.15.0' of github.com:Azure/autorest into readonly
567c771 nodejs release versioning
53ff42d Cleaned up param validation
6d6492f Merge branch 'master' of https://github.com/Azure/AutoRest into release-0.15.0
9a37902 Merge pull request #777 from amarzavery/readonly
ff32fbf small fix
9171816 generated code
a13e603 Merge branch 'master' of github.com:Azure/autorest into readonly
240bd7e check for '?' in the url and append query parameters accordingly
a585257 Regenerated tests
854ea71 Review feedback
f7f9103 review feedback
39bc0e8 Implemented request validation
9062b1f Support x-ms-client-name for parameters.
3734c93 Update building-code.md
03d3782 Update building-code.md
89fa58f Merge pull request #772 from stankovski/master
90e4160 Updated documentation
51ca2f0 Update README.md
df2ddf1 Merge pull request #765 from stankovski/release-0.15.0
6b40d06 Merge pull request #771 from stankovski/master
541631d Updated swagger extensions schema
705495a Merge pull request #2 from Azure/master
23b9424 Fix flattening and bump up to 1.0.0-beta1
81ccae9 Fix flattening and bump up to 1.0.0-beta1
ba87677 Fix flattening and bump up to 1.0.0-beta1
77613e4 Merge pull request #766 from stankovski/master
4fd8504 Fix for issue #762 - composite Swagger client compilation fails due to a lower case parameter name
2904f93 Fix for issue #762 - composite Swagger client compilation fails due to a lower case parameter name
c166d99 Added release notes for 0.15.0 release
d5f1998 Merge pull request #764 from devigned/chore/rb-versions
d25e28a Merge pull request #763 from begoldsm/master
762e518 Merge pull request #720 from stankovski/flattening
6a1dd49 update the gem dependencies
b350e49 bump versions for rb client libs
23bb817 Merge pull request #7 from jianghaolu/flattening
32af735 Fix interface import when there is parameter mapping
05227ba Enable the Azure version of the tests as well.
0f6d1a1 Merge pull request #6 from jianghaolu/flattening
eebe17c Fix input mappings in Java
d125d7a Moved ruby resource flattening tests under generic code gen
0fccf94 Merge branch 'flattening' of https://github.com/stankovski/AutoRest into flattening
b6b7223 Merge pull request #5 from jianghaolu/flattening
9fa5f9f Merge pull request #5 from jianghaolu/flattening
0d1a5f5 Merge pull request #5 from jianghaolu/flattening
bd8413e Merge pull request #761 from lmazuel/master
3001234 Merge branch 'master' of https://github.com/Azure/autorest
ffb25e4 Add simple support for const properties in Java
10e61fd Updated Ruby based on the latest code gen changes
b16c9c8 Minor change to the pyproj to include the customBaseUri tests
80e868b Merge branch 'master' of https://github.com/Azure/AutoRest into flattening
064dbb5 Merge pull request #758 from devigned/bug/ruby-val-deserial
ab11f34 Regenerated tests
6133292 Add 2 more tests for Java
aea3ce6 Add 2 more tests for Java
81b6118 Fixed potential arg ordering bug
3e3d9a2 Merge pull request #4 from annatisch/py-flattening
8bcb13e Added validation tests
b404113 Extended defaults to required parameters
b014bf3 Fixed missing Error import statement
3c0682e Merge pull request #1 from Azure/master
dd35d89 Merge remote-tracking branch 'refs/remotes/stankovski/flattening' into py-flattening
2b74f27 Skipped tests pending constant support
e6f78f0 Precompiled split regex
342b0c8 msrest 0.0.3 - msrestazure 0.0.2
160e1b7 Merge branch 'master' of https://github.com/Azure/AutoRest into flattening
a3276af Merge pull request #760 from stankovski/docker
fa97b10 add supressions
27cf3ec Added dockerfile for tool execution
484d00b Merge pull request #757 from jianghaolu/master
f37d2bb fix code analysis issues
83dfb83 Fixed flattened serialization
a231a2f Added flattening tests and regenerated
4a2492f Fixed bug in python generator
34fec02 Corrected and regenerated Azure Python
2167735 switch to ERB url_encoding rather than URI.escape
c4c5b70 refacotr azure method template model for params, path and urls
03b8f29 the uri test for validity would fail on the URI.parse
3345133 odata is case sensitive -- correct $orderBy
021db0c refactor faraday usage for url and query params and url_prefix
763e83d improve variable naming and newline char
54f9391 better error messages and less reliance on full urls (backcompat)
945b4d7 brought back HttpOperationResponse as it is required in LRO
85d9361 removed unnecessary dependencies
2bcce1f Merge branch 'flattening' of github.com:stankovski/AutoRest into readonly
ce89638 Added missing date serialization tests
40a4e5c Merge pull request #755 from stankovski/master
287cb90 Merge branch 'master' of https://github.com/Azure/AutoRest
f49dde1 Merge pull request #756 from devigned/feature/packaging
1d9d0dd Fixed tests and fxcop issues
146ddf5 Add IllegalArgumentException throws on Async methods
0deeea8 Merge pull request #2 from amarzavery/readonly
6409d38 Remove constructors w/o credentials when required
dffd229 add in version and package name to ruby generator
a2c7240 Regenerate from master branch
35d7abe resolved conflicts and made test modifications
5abbdf5 Sorted parameters and generators in help
c60a85b Merge branch 'flattening' of https://github.com/stankovski/AutoRest into readonly
0ece56c Merge branch 'flattening' of https://github.com/stankovski/AutoRest into readonly
1cfd7b0 Merge branch 'flattening' of https://github.com/stankovski/AutoRest into readonly
82a8026 All Languages: provide a listing of code generators with their custom settings #753
21516d0 Merge branch 'master' of github.com:Azure/autorest into readonly
a657654 fix jshint issues and a failing serialization scenario
13feba3 Merge pull request #3 from jianghaolu/flattening
8778c0e Support escaped dots in deserializer
3d3f0fe Support escaped dots in deserializer
c06ced5 Unify initializations of JacksonMapperAdapter
0746708 Unify initializations of JacksonMapperAdapter
a1ba79e Move flattening serializer to generic runtime
64012f1 Move flattening serializer to generic runtime
ed2a757 Merge pull request #754 from stankovski/master
3df3eb5 Undo dotnet change
e94fbd7 Added auto-generated samples
12acbbb readonly property supported in nodejs
558952a Merge pull request #750 from devigned/bug/ruby-enums
b838ac0 updated msrest readme
58eab5f warn on enum deserialization in ruby
70e8f88 Updated readme
a26bba1 Bumped versions
ca85e0e Merge pull request #732 from lmazuel/master
105261e Merge pull request #748 from stankovski/master
4f66d24 Merge branch 'flattening' of https://github.com/stankovski/AutoRest into readonly
39469cf Merge branch 'master' of github.com:Azure/autorest into rf
41f9979 Merge pull request #737 from jianghaolu/lrobegin
5e5e74b Merge pull request #737 from jianghaolu/lrobegin
1705578 Temporarily removed Java test code - will add back once #720 PR is merged
0b753cb Merge pull request #724 from devigned/bug/portable-post303
d640fe5 Fixed duplicate local variables when flattening parameters #730
0430d22 Move flattening deserializer to generic runtime
49c4ca2 Move flattening deserializer to generic runtime
c3892f3 Merge remote-tracking branch 'refs/remotes/Azure/master' into arg_defaults
16bfd31 Regenerated tests
ddcce32 Added version generator to proj file
a72a560 Merge pull request #740 from stankovski/master
d7feabe Fixed serialization tests
da706f1 Generate separate version file
07abc73 Paging inherits from iterable
1b3450e Command line help is not properly formatted when built in mono #738
fd7c08f Address code analysis errors
b40b887 Unify method interface generation
9c58d07 Paging operations return updated ServiceCall
22535b3 Paging operations return updated ServiceCall
986ebd9 Moved Java tests
83a0fcf Added tests to C# for model flattening
de8a280 fixed nodejs breaking tests
83782d2 nodejs model flattening works
5303175 Add Service call to allow LRO cancellation
7feab06 Add Service call to allow LRO cancellation
2743be2 Move Retrofit service to impls
d0bca99 Treat odata filters as strings
49f6ba8 Add begin methods to LRO
381174b Merge pull request #725 from BurtBiel/AuthVerifySetting
ca90bb9 Merge branch 'flattening' of https://github.com/stankovski/AutoRest into rf
accf2bf Merge pull request #728 from haocs/master
102b8c8 model flattening for node.js partially done
cbe9129 resolve merge conflict
629e0b2 resolve merge conflict
d342d0c regenerated
bc050cc Merge pull request #727 from jianghaolu/objectserialize
8fcb754 Merge pull request #727 from jianghaolu/objectserialize
26ede53 Issue #718 - Manifest must be in capital letters
e073080 fix typo
468599c Validate all complex parameters
07a5780 regenerated after moving resource flattening tests to generic and renaming it to model flattening
48d6763 Added fxcop suppression for AddParameterGroups
d3b4aab Fixed style check errors
ddaa7e8 Implemented flattening in Java
09d4c88 Merge pull request #2 from annatisch/python_custom_base_uri
e6020d5 Skip putComplexReadOnlyPropertyValid test for node
b506747 Merge pull request #726 from amarzavery/rf
5f83d53 Adding 2 more calls to check verify setting
22870b2 Update unit test to check verify setting is propogated
9c47e05 Bumped msrestaszure version
41c60a6 Changed version updates
f7694b4 Added readonly property tests for C#
e90ed76 Updated nodejs and python to escape backslash and other special characters
bcab81d Added documentation
c824b81 Added 'putComplexReadOnlyPropertyValid' coverage
3cab694 Added support for method argument flattening
cac2cca Added tests for ReadOnlyPropertyObject
b67c097 Added annotation in model
7761aa7 Added t…
  • Loading branch information
jianghaolu committed Aug 10, 2016
1 parent aedc877 commit 28bc124
Show file tree
Hide file tree
Showing 9 changed files with 365 additions and 121 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
language: android
android:
components:
- build-tools-23.0.1
- android-23
- platform-tools
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository
- build-tools-23.0.1
- android-23
- platform-tools
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository
sudo: false
script:
- mvn clean install
- mvn checkstyle:check
- cd ./azure-android-client-authentication && ./gradlew check
- mvn clean install
- mvn checkstyle:check
- cd ./azure-android-client-authentication && ./gradlew check
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ public <T, THeader> ServiceResponseWithHeaders<T, THeader> getPutOrPatchResultWi
*/
public <T> AsyncPollingTask<T> getPutOrPatchResultAsync(Response<ResponseBody> response, Type resourceType, ServiceCall<T> serviceCall, ServiceCallback<T> callback) {
if (response == null) {
callback.failure(new ServiceException("response is null."));
CloudException t = new CloudException("response is null.");
if (callback != null) {
callback.failure(t);
}
serviceCall.failure(t);
return null;
}

Expand All @@ -178,15 +182,21 @@ public <T> AsyncPollingTask<T> getPutOrPatchResultAsync(Response<ResponseBody> r
responseBody.close();
}
} catch (Exception e) { /* ignore serialization errors on top of service errors */ }
callback.failure(exception);
if (callback != null) {
callback.failure(exception);
}
serviceCall.failure(exception);
return null;
}

PollingState<T> pollingState;
try {
pollingState = new PollingState<>(response, this.getLongRunningOperationRetryTimeout(), resourceType, restClient().mapperAdapter());
} catch (IOException e) {
callback.failure(e);
if (callback != null) {
callback.failure(e);
}
serviceCall.failure(e);
return null;
}
String url = response.raw().request().url().toString();
Expand Down Expand Up @@ -215,17 +225,24 @@ public <T, THeader> AsyncPollingTask<T> getPutOrPatchResultWithHeadersAsync(Resp
return this.getPutOrPatchResultAsync(response, resourceType, serviceCall, new ServiceCallback<T>() {
@Override
public void failure(Throwable t) {
callback.failure(t);
if (callback != null) {
callback.failure(t);
}
serviceCall.failure(t);
}

@Override
public void success(ServiceResponse<T> result) {
try {
callback.success(new ServiceResponseWithHeaders<>(
ServiceResponseWithHeaders<T, THeader> clientResponse = new ServiceResponseWithHeaders<>(
result.getBody(),
restClient().mapperAdapter().<THeader>deserialize(restClient().mapperAdapter().serialize(result.getResponse().headers()), headerType),
result.getResponse()
));
);
if (callback != null) {
callback.success(clientResponse);
}
serviceCall.success(clientResponse);
} catch (IOException e) {
failure(e);
}
Expand Down Expand Up @@ -331,7 +348,11 @@ public <T, THeader> ServiceResponseWithHeaders<T, THeader> getPostOrDeleteResult
*/
public <T> AsyncPollingTask<T> getPostOrDeleteResultAsync(Response<ResponseBody> response, Type resourceType, ServiceCall<T> serviceCall, ServiceCallback<T> callback) {
if (response == null) {
callback.failure(new ServiceException("response is null."));
CloudException t = new CloudException("response is null.");
if (callback != null) {
callback.failure(t);
}
serviceCall.failure(t);
return null;
}

Expand All @@ -351,15 +372,21 @@ public <T> AsyncPollingTask<T> getPostOrDeleteResultAsync(Response<ResponseBody>
responseBody.close();
}
} catch (Exception e) { /* ignore serialization errors on top of service errors */ }
callback.failure(exception);
if (callback != null) {
callback.failure(exception);
}
serviceCall.failure(exception);
return null;
}

PollingState<T> pollingState;
try {
pollingState = new PollingState<>(response, this.getLongRunningOperationRetryTimeout(), resourceType, restClient().mapperAdapter());
} catch (IOException e) {
callback.failure(e);
if (callback != null) {
callback.failure(e);
}
serviceCall.failure(e);
return null;
}

Expand Down Expand Up @@ -387,17 +414,24 @@ public <T, THeader> AsyncPollingTask<T> getPostOrDeleteResultWithHeadersAsync(Re
return this.getPostOrDeleteResultAsync(response, resourceType, serviceCall, new ServiceCallback<T>() {
@Override
public void failure(Throwable t) {
callback.failure(t);
if (callback != null) {
callback.failure(t);
}
serviceCall.failure(t);
}

@Override
public void success(ServiceResponse<T> result) {
try {
callback.success(new ServiceResponseWithHeaders<>(
ServiceResponseWithHeaders<T, THeader> clientResponse = new ServiceResponseWithHeaders<>(
result.getBody(),
restClient().mapperAdapter().<THeader>deserialize(restClient().mapperAdapter().serialize(result.getResponse().headers()), headerType),
result.getResponse()
));
);
if (callback != null) {
callback.success(clientResponse);
}
serviceCall.success(clientResponse);
} catch (IOException e) {
failure(e);
}
Expand Down Expand Up @@ -534,22 +568,34 @@ private <T> void updateStateFromGetResourceOperation(PollingState<T> pollingStat
*
* @param pollingState the polling state for the current operation.
* @param url the url to poll from
* @param serviceCall the future based service call
* @param callback the user callback to call when operation terminates.
* @param <T> the return type of the caller.
* @return the task describing the asynchronous polling.
*/
private <T> Call<ResponseBody> updateStateFromGetResourceOperationAsync(final PollingState<T> pollingState, String url, final ServiceCallback<T> callback) {
private <T> Call<ResponseBody> updateStateFromGetResourceOperationAsync(final PollingState<T> pollingState, String url, final ServiceCall<T> serviceCall, final ServiceCallback<T> callback) {
return pollAsync(url, new ServiceCallback<ResponseBody>() {
@Override
public void failure(Throwable t) {
callback.failure(t);
if (callback != null) {
callback.failure(t);
}
if (serviceCall != null) {
serviceCall.failure(t);
}
}

@Override
public void success(ServiceResponse<ResponseBody> result) {
try {
pollingState.updateFromResponseOnPutPatch(result.getResponse());
callback.success(new ServiceResponse<>(pollingState.getResource(), pollingState.getResponse()));
ServiceResponse<T> clientResponse = new ServiceResponse<>(pollingState.getResource(), pollingState.getResponse());
if (callback != null) {
callback.success(clientResponse);
}
if (serviceCall != null) {
serviceCall.success(clientResponse);
}
} catch (Throwable t) {
failure(t);
}
Expand Down Expand Up @@ -784,7 +830,10 @@ class PutPatchPollingTask<T> extends AsyncPollingTask<T> {
this.pollingCallback = new ServiceCallback<T>() {
@Override
public void failure(Throwable t) {
clientCallback.failure(t);
if (clientCallback != null) {
clientCallback.failure(t);
}
serviceCall.failure(t);
}

@Override
Expand All @@ -806,15 +855,23 @@ public void run() {
&& !pollingState.getLocationHeaderLink().isEmpty()) {
this.serviceCall.newCall(updateStateFromLocationHeaderOnPutAsync(pollingState, pollingCallback));
} else {
this.serviceCall.newCall(updateStateFromGetResourceOperationAsync(pollingState, url, pollingCallback));
this.serviceCall.newCall(updateStateFromGetResourceOperationAsync(pollingState, url, null, pollingCallback));
}
} else {
if (AzureAsyncOperation.SUCCESS_STATUS.equals(pollingState.getStatus()) && pollingState.getResource() == null) {
this.serviceCall.newCall(updateStateFromGetResourceOperationAsync(pollingState, url, clientCallback));
this.serviceCall.newCall(updateStateFromGetResourceOperationAsync(pollingState, url, serviceCall, clientCallback));
} else if (AzureAsyncOperation.getFailedStatuses().contains(pollingState.getStatus())) {
clientCallback.failure(new ServiceException("Async operation failed"));
ServiceException t = new ServiceException("Async operation failed");
if (clientCallback != null) {
clientCallback.failure(t);
}
serviceCall.failure(t);
} else {
clientCallback.success(new ServiceResponse<>(pollingState.getResource(), pollingState.getResponse()));
ServiceResponse<T> clientResponse = new ServiceResponse<>(pollingState.getResource(), pollingState.getResponse());
if (clientCallback != null) {
clientCallback.success(clientResponse);
}
serviceCall.success(clientResponse);
}
}
}
Expand All @@ -840,7 +897,10 @@ class PostDeletePollingTask<T> extends AsyncPollingTask<T> {
this.pollingCallback = new ServiceCallback<T>() {
@Override
public void failure(Throwable t) {
clientCallback.failure(t);
if (clientCallback != null) {
clientCallback.failure(t);
}
serviceCall.failure(t);
}

@Override
Expand All @@ -863,17 +923,20 @@ public void run() {
} else {
ServiceException serviceException = new ServiceException("No async header in response");
pollingCallback.failure(serviceException);
serviceCall.failure(serviceException);
}
} else {
// Check if operation failed
if (AzureAsyncOperation.getFailedStatuses().contains(pollingState.getStatus())) {
ServiceException serviceException = new ServiceException("Async operation failed");
clientCallback.failure(serviceException);
if (clientCallback != null) {
clientCallback.failure(serviceException);
}
serviceCall.failure(serviceException);
} else {
ServiceResponse<T> serviceResponse = new ServiceResponse<>(pollingState.getResource(), pollingState.getResponse());
clientCallback.success(serviceResponse);
if (clientCallback != null) {
clientCallback.success(serviceResponse);
}
serviceCall.success(serviceResponse);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.locks.ReentrantLock;

/**
* The type representing node in a {@link DAGraph}.
Expand All @@ -20,6 +21,7 @@ public class DAGNode<T> extends Node<T> {
private List<String> dependentKeys;
private int toBeResolved;
private boolean isPreparer;
private ReentrantLock lock;

/**
* Creates a DAG node.
Expand All @@ -30,6 +32,14 @@ public class DAGNode<T> extends Node<T> {
public DAGNode(String key, T data) {
super(key, data);
dependentKeys = new ArrayList<>();
lock = new ReentrantLock();
}

/**
* @return the lock to be used while performing thread safe operation on this node.
*/
public ReentrantLock lock() {
return this.lock;
}

/**
Expand Down
36 changes: 25 additions & 11 deletions azure-client-runtime/src/main/java/com/microsoft/azure/DAGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@

package com.microsoft.azure;

import java.util.ArrayDeque;
import java.util.Map;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;

/**
* Type representing a DAG (directed acyclic graph).
Expand All @@ -20,7 +19,7 @@
* @param <U> the type of the nodes in the graph
*/
public class DAGraph<T, U extends DAGNode<T>> extends Graph<T, U> {
private Queue<String> queue;
private ConcurrentLinkedQueue<String> queue;
private boolean hasParent;
private U rootNode;

Expand All @@ -31,7 +30,7 @@ public class DAGraph<T, U extends DAGNode<T>> extends Graph<T, U> {
*/
public DAGraph(U rootNode) {
this.rootNode = rootNode;
this.queue = new ArrayDeque<>();
this.queue = new ConcurrentLinkedQueue<>();
this.rootNode.setPreparer(true);
this.addNode(rootNode);
}
Expand Down Expand Up @@ -103,10 +102,14 @@ public void prepare() {
* Gets next node in the DAG which has no dependency or all of it's dependencies are resolved and
* ready to be consumed.
*
* @return next node or null if all the nodes have been explored
* @return next node or null if all the nodes have been explored or no node is available at this moment.
*/
public U getNext() {
return graph.get(queue.poll());
String nextItemKey = queue.poll();
if (nextItemKey == null) {
return null;
}
return graph.get(nextItemKey);
}

/**
Expand All @@ -129,9 +132,14 @@ public void reportedCompleted(U completed) {
String dependency = completed.key();
for (String dependentKey : graph.get(dependency).dependentKeys()) {
DAGNode<T> dependent = graph.get(dependentKey);
dependent.reportResolved(dependency);
if (dependent.hasAllResolved()) {
queue.add(dependent.key());
dependent.lock().lock();
try {
dependent.reportResolved(dependency);
if (dependent.hasAllResolved()) {
queue.add(dependent.key());
}
} finally {
dependent.lock().unlock();
}
}
}
Expand All @@ -145,9 +153,8 @@ public void reportedCompleted(U completed) {
*/
private void initializeDependentKeys() {
visit(new Visitor<U>() {
// This 'visit' will be called only once per each node.
@Override
public void visit(U node) {
public void visitNode(U node) {
if (node.dependencyKeys().isEmpty()) {
return;
}
Expand All @@ -158,6 +165,13 @@ public void visit(U node) {
.addDependent(dependentKey);
}
}

@Override
public void visitEdge(String fromKey, String toKey, EdgeType edgeType) {
if (edgeType == EdgeType.BACK) {
throw new IllegalStateException("Detected circular dependency: " + findPath(fromKey, toKey));
}
}
});
}

Expand Down
Loading

0 comments on commit 28bc124

Please sign in to comment.