Commit Graph

10 Commits

Author SHA1 Message Date
Sai Cheemalapati b87af01703 Allow automatic method name clash resolution (#605)
If the method name is generated from the request type, there is a
possibility of a clash if two methods take the same request type. For
example, if two unique methods take the request type
"CreateRoleRequest", both methods will be generated with the method name
"create_role", which causes generation to fail with an exception.

This commit resolves that issue by first generating a method name from
the request type of each method, and keeping track of which names are
duplicates. For methods that will generate a duplicate name from the
request type, the name is generated from the method ID instead (the
resulting name is guaranteed to be unique).
2017-08-18 18:35:22 -04:00
Sai Cheemalapati 74c0242266 Make the generator deterministic (#601) 2017-07-18 09:56:05 -07:00
Steve Bazyl bdc903776d Fix inflection for teamdrives, better logging for conflicting names 2017-03-31 11:22:28 -07:00
Steve Bazyl cc80d64a75 Update generator to output conflicting paths when duplicate name generated 2017-03-30 15:32:02 -07:00
Steve Bazyl 95c3cf0b65 Bump version, remove stray puts statements 2016-08-17 10:24:45 -07:00
Steve Bazyl df3e9a3c32 Inflector customizations for codegen 2016-08-08 13:21:22 -07:00
James Healy 4b9a63c086 replace multi_json dependency with regular stdlib JSON
JSON has been part of the ruby stdlib since 1.9.0 (see
https://github.com/ruby/ruby/commit/af1c4167), and the latest version of
google-api-client requires ruby 2.0 or better so we can assume it's available
2016-02-25 13:27:33 +11:00
Steve Bazyl 2533098484 Add option to force passing alt=json for some APIs that return xml by default 2016-01-14 10:48:40 -08:00
Steve Bazyl e399d04d33 Tweak method name generation 2015-12-02 17:09:44 -08:00
Steven Bazyl f584a2cec8 Import refactored library. See MIGRATING.MD for details 2015-06-23 15:15:14 -07:00