зеркало из https://github.com/Azure/autorest.git
bump references (#2609)
* bump references * regen * regen * reset * whoops * fix * iced * loosen semver check * regen
This commit is contained in:
Родитель
aad19f331e
Коммит
df7d78ab57
|
@ -15,7 +15,8 @@ Import
|
|||
autorest: (args,done,ignoreexitcode) ->
|
||||
# Run AutoRest from the original current directory.
|
||||
echo info "Queuing up: AutoRest #{args.join(' ')}"
|
||||
execute "node #{basefolder}/src/autorest/dist/app.js #{args.map((a) -> "\"#{a}\"").join(' ')} --clear-output-folder \"--version=#{basefolder}/src/autorest-core\" " , {silent:true, ignoreexitcode: ignoreexitcode || false}, (code,stdout,stderr) ->
|
||||
args = args.concat("--clear-output-folder", "--version=#{basefolder}/src/autorest-core") if args[0] != "--reset"
|
||||
execute "node #{basefolder}/src/autorest/dist/app.js #{args.map((a) -> "\"#{a}\"").join(' ')} " , {silent:true, ignoreexitcode: ignoreexitcode || false}, (code,stdout,stderr) ->
|
||||
return done(code,stdout,stderr)
|
||||
|
||||
typescriptProjectFolders: ()->
|
||||
|
@ -146,6 +147,9 @@ task 'testci', "more", [], (done) ->
|
|||
global.verbose = true
|
||||
await run "test", defer _
|
||||
|
||||
## CLEAN
|
||||
await autorest ["--reset"], defer code,stdout,stderr
|
||||
|
||||
## REGRESSION TEST
|
||||
global.verbose = false
|
||||
# regenerate
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public Category()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public Order()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public Pet()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public Tag()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public User()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore
|
||||
namespace cowstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
@ -17,7 +17,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public Error()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
@ -19,7 +19,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public ListPetsHeadersInner()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
@ -17,7 +17,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public PetInner()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore
|
||||
namespace cowstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore
|
||||
namespace cowstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore
|
||||
namespace cowstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
@ -17,7 +17,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public Error()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
@ -19,7 +19,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public ListPetsHeaders()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore.Models
|
||||
namespace cowstore.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
|
@ -17,7 +17,7 @@ namespace Petstore.Models
|
|||
/// </summary>
|
||||
public Pet()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore
|
||||
namespace cowstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace Petstore
|
||||
namespace cowstore
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Microsoft.Rest.Azure;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore;
|
||||
package cowstore;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore;
|
||||
package cowstore;
|
||||
|
||||
import com.microsoft.rest.RestException;
|
||||
import okhttp3.ResponseBody;
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.implementation;
|
||||
package cowstore.implementation;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.implementation;
|
||||
package cowstore.implementation;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
|
@ -4,9 +4,8 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.implementation;
|
||||
package cowstore.implementation;
|
||||
|
||||
import .ErrorException;
|
||||
import com.google.common.reflect.TypeToken;
|
||||
import com.microsoft.azure.AzureClient;
|
||||
import com.microsoft.azure.AzureServiceClient;
|
||||
|
@ -16,6 +15,7 @@ import com.microsoft.rest.ServiceCallback;
|
|||
import com.microsoft.rest.ServiceFuture;
|
||||
import com.microsoft.rest.ServiceResponse;
|
||||
import com.microsoft.rest.ServiceResponseWithHeaders;
|
||||
import cowstore.ErrorException;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import okhttp3.ResponseBody;
|
||||
|
@ -172,15 +172,15 @@ public class SwaggerPetstoreImpl extends AzureServiceClient {
|
|||
* used by Retrofit to perform actually REST calls.
|
||||
*/
|
||||
interface SwaggerPetstoreService {
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: .SwaggerPetstore listPets" })
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: cowstore.SwaggerPetstore listPets" })
|
||||
@GET("pets")
|
||||
Observable<Response<ResponseBody>> listPets(@Query("limit") Integer limit, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: .SwaggerPetstore createPets" })
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: cowstore.SwaggerPetstore createPets" })
|
||||
@POST("pets")
|
||||
Observable<Response<ResponseBody>> createPets(@Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: .SwaggerPetstore showPetById" })
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: cowstore.SwaggerPetstore showPetById" })
|
||||
@GET("pets/{petId}")
|
||||
Observable<Response<ResponseBody>> showPetById(@Path("petId") String petId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
|
@ -5,4 +5,4 @@
|
|||
/**
|
||||
* This package contains the implementation classes for SwaggerPetstore.
|
||||
*/
|
||||
package petstore.implementation;
|
||||
package cowstore.implementation;
|
|
@ -5,4 +5,4 @@
|
|||
/**
|
||||
* This package contains the classes for SwaggerPetstore.
|
||||
*/
|
||||
package petstore;
|
||||
package cowstore;
|
|
@ -4,17 +4,17 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore;
|
||||
package cowstore;
|
||||
|
||||
import .models.ErrorException;
|
||||
import .models.ListPetsHeaders;
|
||||
import .models.Pet;
|
||||
import com.microsoft.azure.AzureClient;
|
||||
import com.microsoft.rest.RestClient;
|
||||
import com.microsoft.rest.ServiceCallback;
|
||||
import com.microsoft.rest.ServiceFuture;
|
||||
import com.microsoft.rest.ServiceResponse;
|
||||
import com.microsoft.rest.ServiceResponseWithHeaders;
|
||||
import cowstore.models.ErrorException;
|
||||
import cowstore.models.ListPetsHeaders;
|
||||
import cowstore.models.Pet;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import rx.Observable;
|
||||
|
|
|
@ -4,12 +4,8 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.implementation;
|
||||
package cowstore.implementation;
|
||||
|
||||
import .models.ErrorException;
|
||||
import .models.ListPetsHeaders;
|
||||
import .models.Pet;
|
||||
import .SwaggerPetstore;
|
||||
import com.google.common.reflect.TypeToken;
|
||||
import com.microsoft.azure.AzureClient;
|
||||
import com.microsoft.azure.AzureServiceClient;
|
||||
|
@ -19,6 +15,10 @@ import com.microsoft.rest.ServiceCallback;
|
|||
import com.microsoft.rest.ServiceFuture;
|
||||
import com.microsoft.rest.ServiceResponse;
|
||||
import com.microsoft.rest.ServiceResponseWithHeaders;
|
||||
import cowstore.models.ErrorException;
|
||||
import cowstore.models.ListPetsHeaders;
|
||||
import cowstore.models.Pet;
|
||||
import cowstore.SwaggerPetstore;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import okhttp3.ResponseBody;
|
||||
|
@ -175,15 +175,15 @@ public class SwaggerPetstoreImpl extends AzureServiceClient implements SwaggerPe
|
|||
* used by Retrofit to perform actually REST calls.
|
||||
*/
|
||||
interface SwaggerPetstoreService {
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: .SwaggerPetstore listPets" })
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: cowstore.SwaggerPetstore listPets" })
|
||||
@GET("pets")
|
||||
Observable<Response<ResponseBody>> listPets(@Query("limit") Integer limit, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: .SwaggerPetstore createPets" })
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: cowstore.SwaggerPetstore createPets" })
|
||||
@POST("pets")
|
||||
Observable<Response<ResponseBody>> createPets(@Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: .SwaggerPetstore showPetById" })
|
||||
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: cowstore.SwaggerPetstore showPetById" })
|
||||
@GET("pets/{petId}")
|
||||
Observable<Response<ResponseBody>> showPetById(@Path("petId") String petId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
/**
|
||||
* This package contains the implementation classes for SwaggerPetstore.
|
||||
*/
|
||||
package petstore.implementation;
|
||||
package cowstore.implementation;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.models;
|
||||
package cowstore.models;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.models;
|
||||
package cowstore.models;
|
||||
|
||||
import com.microsoft.rest.RestException;
|
||||
import okhttp3.ResponseBody;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.models;
|
||||
package cowstore.models;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* regenerated.
|
||||
*/
|
||||
|
||||
package petstore.models;
|
||||
package cowstore.models;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
/**
|
||||
* This package contains the models classes for SwaggerPetstore.
|
||||
*/
|
||||
package petstore.models;
|
||||
package cowstore.models;
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
/**
|
||||
* This package contains the classes for SwaggerPetstore.
|
||||
*/
|
||||
package petstore;
|
||||
package cowstore;
|
||||
|
|
|
@ -19,7 +19,7 @@ require 'ms_rest'
|
|||
require 'generated/petstore/module_definition'
|
||||
require 'ms_rest_azure'
|
||||
|
||||
module Petstore
|
||||
module cowstore
|
||||
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 cowstore
|
||||
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 cowstore
|
||||
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 cowstore end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Petstore
|
||||
module cowstore
|
||||
#
|
||||
# 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? cowstore::VERSION
|
||||
sdk_information = "#{sdk_information}/#{cowstore::VERSION}"
|
||||
end
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace CSharpNamespace.Models
|
|||
/// </summary>
|
||||
public Error()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace CSharpNamespace.Models
|
|||
/// </summary>
|
||||
public ListPetsHeaders()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace CSharpNamespace.Models
|
|||
/// </summary>
|
||||
public Pet()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Package implements the Azure ARM service API version 1.0.0.
|
||||
// Package cowstore implements the Azure ARM Cowstore service API version 1.0.0.
|
||||
//
|
||||
//
|
||||
package
|
||||
package cowstore
|
||||
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
@ -13,11 +13,11 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
// DefaultBaseURI is the default URI used for the service
|
||||
// DefaultBaseURI is the default URI used for the service Cowstore
|
||||
DefaultBaseURI = "http://petstore.swagger.io/v1"
|
||||
)
|
||||
|
||||
// ManagementClient is the base client for .
|
||||
// ManagementClient is the base client for Cowstore.
|
||||
type ManagementClient struct {
|
||||
autorest.Client
|
||||
BaseURI string
|
||||
|
@ -40,20 +40,20 @@ func New()ManagementClient {
|
|||
func (client ManagementClient) CreatePets() (result autorest.Response, err error) {
|
||||
req, err := client.CreatePetsPreparer()
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "CreatePets", nil , "Failure preparing request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "CreatePets", nil , "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.CreatePetsSender(req)
|
||||
if err != nil {
|
||||
result.Response = resp
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "CreatePets", resp, "Failure sending request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "CreatePets", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.CreatePetsResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "CreatePets", resp, "Failure responding to request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "CreatePets", resp, "Failure responding to request")
|
||||
}
|
||||
|
||||
return
|
||||
|
@ -89,23 +89,23 @@ func New()ManagementClient {
|
|||
// ListPets sends the list pets request.
|
||||
//
|
||||
// limit is how many items to return at one time (max 100)
|
||||
func (client ManagementClient) ListPets(limit *int32) (result ListPetType, err error) {
|
||||
func (client ManagementClient) ListPets(limit *int32) (result ListPet, err error) {
|
||||
req, err := client.ListPetsPreparer(limit)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "ListPets", nil , "Failure preparing request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "ListPets", nil , "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ListPetsSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "ListPets", resp, "Failure sending request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "ListPets", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ListPetsResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "ListPets", resp, "Failure responding to request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "ListPets", resp, "Failure responding to request")
|
||||
}
|
||||
|
||||
return
|
||||
|
@ -135,7 +135,7 @@ func New()ManagementClient {
|
|||
|
||||
// ListPetsResponder handles the response to the ListPets request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ManagementClient) ListPetsResponder(resp *http.Response) (result ListPetType, err error) {
|
||||
func (client ManagementClient) ListPetsResponder(resp *http.Response) (result ListPet, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
|
@ -149,23 +149,23 @@ func New()ManagementClient {
|
|||
// ShowPetByID sends the show pet by id request.
|
||||
//
|
||||
// petID is the id of the pet to retrieve
|
||||
func (client ManagementClient) ShowPetByID(petID string) (result ListPetType, err error) {
|
||||
func (client ManagementClient) ShowPetByID(petID string) (result ListPet, err error) {
|
||||
req, err := client.ShowPetByIDPreparer(petID)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "ShowPetByID", nil , "Failure preparing request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "ShowPetByID", nil , "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
resp, err := client.ShowPetByIDSender(req)
|
||||
if err != nil {
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "ShowPetByID", resp, "Failure sending request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "ShowPetByID", resp, "Failure sending request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.ShowPetByIDResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, ".ManagementClient", "ShowPetByID", resp, "Failure responding to request")
|
||||
err = autorest.NewErrorWithError(err, "cowstore.ManagementClient", "ShowPetByID", resp, "Failure responding to request")
|
||||
}
|
||||
|
||||
return
|
||||
|
@ -192,7 +192,7 @@ func New()ManagementClient {
|
|||
|
||||
// ShowPetByIDResponder handles the response to the ShowPetByID request. The method always
|
||||
// closes the http.Response Body.
|
||||
func (client ManagementClient) ShowPetByIDResponder(resp *http.Response) (result ListPetType, err error) {
|
||||
func (client ManagementClient) ShowPetByIDResponder(resp *http.Response) (result ListPet, err error) {
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package
|
||||
package cowstore
|
||||
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
@ -7,22 +7,22 @@ import (
|
|||
"github.com/Azure/go-autorest/autorest"
|
||||
)
|
||||
|
||||
// ErrorType is
|
||||
type ErrorType struct {
|
||||
Code *int32 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
// Error is
|
||||
type Error struct {
|
||||
Code *int32 `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// ListPetType is
|
||||
type ListPetType struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]PetType `json:"value,omitempty"`
|
||||
// ListPet is
|
||||
type ListPet struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]Pet `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// PetType is
|
||||
type PetType struct {
|
||||
ID *int64 `json:"id,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
// Pet is
|
||||
type Pet struct {
|
||||
ID *int64 `json:"id,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Tag *string `json:"tag,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package
|
||||
package cowstore
|
||||
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
@ -6,7 +6,7 @@ package
|
|||
|
||||
// UserAgent returns the UserAgent string to use when sending http.Requests.
|
||||
func UserAgent() string {
|
||||
return "Azure-SDK-For-Go/0.0.0 arm-/1.0.0"
|
||||
return "Azure-SDK-For-Go/0.0.0 arm-cowstore/1.0.0"
|
||||
}
|
||||
|
||||
// Version returns the semantic version (see http://semver.org) of the client.
|
||||
|
|
|
@ -18,7 +18,7 @@ require 'concurrent'
|
|||
require 'ms_rest'
|
||||
require 'generated/petstore/module_definition'
|
||||
|
||||
module Petstore
|
||||
module cowstore
|
||||
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 cowstore
|
||||
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 cowstore
|
||||
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 cowstore end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Petstore
|
||||
module cowstore
|
||||
#
|
||||
# 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? cowstore::VERSION
|
||||
sdk_information = "#{sdk_information}/#{cowstore::VERSION}"
|
||||
end
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
|
|
|
@ -8,6 +8,7 @@ Note that `github.com` URIs are supported, i.e. their raw content is extracted.
|
|||
|
||||
``` yaml
|
||||
input-file: petstore.yaml
|
||||
namespace: cowstore
|
||||
```
|
||||
|
||||
## Generation
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
(C) 2017 **Microsoft Corporation.**
|
||||
# AutoRest code generation utility.
|
||||
https://aka.ms/autorest
|
||||
WARNING: 5 exported name(s) unnecessarily contains the service name. Please consider removing the service name.
|
||||
WARNING: The name 'CreatePets' unnecessarily contains the service name; the service name will be trimmed.
|
||||
WARNING: The name 'Error' unnecessarily contains the service name; the service name will be trimmed.
|
||||
WARNING: The name 'ListPets' unnecessarily contains the service name; the service name will be trimmed.
|
||||
WARNING: The name 'Pet' unnecessarily contains the service name; the service name will be trimmed.
|
||||
WARNING: The name 'ShowPetByID' unnecessarily contains the service name; the service name will be trimmed.
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public CheckNameAvailabilityResult()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public CorsOptions()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public CustomDomain()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public DataChangeDetectionPolicy()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public DataContainer()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public DataDeletionDetectionPolicy()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public DataSource()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public DataSourceCredentials()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public Endpoints()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public HighWaterMarkChangeDetectionPolicy()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public Index()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public Indexer()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public IndexingParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public ItemError()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public Resource()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public SearchRequestOptions()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public SoftDeleteColumnDeletionDetectionPolicy()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public SqlIntegratedChangeTrackingPolicy()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public StorageAccount()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public StorageAccountCheckNameAvailabilityParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public StorageAccountCreateParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public StorageAccountKeys()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public StorageAccountListResult()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public StorageAccountRegenerateKeyParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public StorageAccountUpdateParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public TagScoringParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public Usage()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public UsageListResult()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace Searchservice.Models
|
|||
/// </summary>
|
||||
public UsageName()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public CheckNameAvailabilityResult()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public CustomDomain()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public Endpoints()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public Resource()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public StorageAccount()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public StorageAccountCheckNameAvailabilityParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public StorageAccountCreateParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public StorageAccountKeys()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public StorageAccountRegenerateKeyParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public StorageAccountUpdateParameters()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public Usage()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public UsageName()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public CheckNameAvailabilityResult()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public CustomDomain()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public Endpoints()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public Resource()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace AwesomeNamespace.Models
|
|||
/// </summary>
|
||||
public StorageAccount()
|
||||
{
|
||||
CustomInit();
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче