зеркало из https://github.com/Azure/autorest.git
Updates, fixes, features (#2189)
* minor simplification * simplifications * Jared's feedback and number fix * parallelization * regenb * sorta improved jsonref/path stuff in json messages * wip * autorest init * sample * default-configuration.md * regen * cleanup * folderize autorest argument if not .md * fixed test * probe * started pipeline abstraction * MORE ABSTRACTION * more pipeline * more pipeline * new output-artifact convention * namespace sanitize * simplified awaiter * more plugins * more abstractness * towards sanity
This commit is contained in:
Родитель
866dd2544b
Коммит
f049afd2a0
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -19,7 +19,7 @@ require 'ms_rest'
|
|||
require 'generated/petstore/module_definition'
|
||||
require 'ms_rest_azure'
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
autoload :SwaggerPetstore, 'generated/petstore/swagger_petstore.rb'
|
||||
|
||||
module Models
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
module Models
|
||||
#
|
||||
# Model object.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
module Models
|
||||
#
|
||||
# Model object.
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore end
|
||||
module Petstore end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
#
|
||||
# A service client - single point of access to the REST API.
|
||||
#
|
||||
|
@ -372,8 +372,8 @@ module petstore
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'petstore'
|
||||
if defined? petstore::VERSION
|
||||
sdk_information = "#{sdk_information}/#{petstore::VERSION}"
|
||||
if defined? Petstore::VERSION
|
||||
sdk_information = "#{sdk_information}/#{Petstore::VERSION}"
|
||||
end
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore.Models
|
||||
namespace Petstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Serialization;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace petstore
|
||||
namespace Petstore
|
||||
{
|
||||
using Models;
|
||||
using System.Collections;
|
||||
|
|
|
@ -18,7 +18,7 @@ require 'concurrent'
|
|||
require 'ms_rest'
|
||||
require 'generated/petstore/module_definition'
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
autoload :SwaggerPetstore, 'generated/petstore/swagger_petstore.rb'
|
||||
|
||||
module Models
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
module Models
|
||||
#
|
||||
# Model object.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
module Models
|
||||
#
|
||||
# Model object.
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore end
|
||||
module Petstore end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module petstore
|
||||
module Petstore
|
||||
#
|
||||
# A service client - single point of access to the REST API.
|
||||
#
|
||||
|
@ -338,8 +338,8 @@ module petstore
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'petstore'
|
||||
if defined? petstore::VERSION
|
||||
sdk_information = "#{sdk_information}/#{petstore::VERSION}"
|
||||
if defined? Petstore::VERSION
|
||||
sdk_information = "#{sdk_information}/#{Petstore::VERSION}"
|
||||
end
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Models;
|
||||
using System.Threading;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Models;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Models;
|
||||
using System.Threading;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Models;
|
||||
using System.Threading;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using System.Linq;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using System.Linq;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Serialization;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Serialization;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Serialization;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice.Models
|
||||
namespace Searchservice.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Serialization;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Models;
|
||||
using System.Threading;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Models;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace searchservice
|
||||
namespace Searchservice
|
||||
{
|
||||
using Models;
|
||||
using System.Threading;
|
||||
|
|
|
@ -37,7 +37,9 @@ output-folder: Artifacts
|
|||
To support tools unable to process multiple OpenAPI definitions or definitions with external references (`$ref: "<URI to another OpenAPI definition>#/definitions/SomeModel"`), AutoRest allows exporting a single, fully resolved OpenAPI definition without any external references that tools should be able to consume.
|
||||
|
||||
``` yaml
|
||||
output-artifact: swagger-document
|
||||
output-artifact:
|
||||
- swagger-document.json
|
||||
- swagger-document.yaml
|
||||
```
|
||||
|
||||
### Source maps
|
||||
|
@ -46,5 +48,7 @@ AutoRest tries to create source maps for output artifacts. These will relate the
|
|||
For example, AutoRest uses the source map internally in order to relate validation messages back to the original files.
|
||||
|
||||
``` yaml
|
||||
output-artifact: swagger-document.map
|
||||
output-artifact:
|
||||
- swagger-document.json.map
|
||||
- swagger-document.yaml.map
|
||||
```
|
|
@ -10,7 +10,7 @@ The following settings have already been introduced in previous examples and are
|
|||
input-file: https://github.com/Azure/azure-rest-api-specs/blob/master/arm-storage/2015-06-15/swagger/storage.json
|
||||
csharp:
|
||||
output-folder: Client
|
||||
output-artifact: swagger-document
|
||||
output-artifact: swagger-document.json
|
||||
```
|
||||
|
||||
## Settings
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage
|
||||
namespace Storage
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage
|
||||
namespace Storage
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage
|
||||
namespace Storage
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage.Models
|
||||
namespace Storage.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage.Models
|
||||
namespace Storage.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage.Models
|
||||
namespace Storage.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage.Models
|
||||
namespace Storage.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
|
||||
namespace storage.Models
|
||||
namespace Storage.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче