Remove Apache license from API client generators (#4197)

* remove php apache license

* remove apache license from C#

* remove apache license in objc code

* remove license from swift 3 code

* remove apache license from perl code

* remove license from scala code

* remove license from ts, go, android, cpp, scala

* remove license from java api client

* restore clojure petstore files

* remove license from travis file

* clean up apache-related terms in php, ruby, python mustache tempaltes

* remove license from JS API cilent
This commit is contained in:
wing328
2016-11-16 21:44:49 +08:00
committed by GitHub
parent 39ffc0ae62
commit 90512e6326
993 changed files with 2705 additions and 24008 deletions

View File

@@ -1,25 +1,13 @@
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@@ -56,7 +44,7 @@ web::json::value Pet::toJson() const
{
web::json::value val = web::json::value::object();
if(m_IdIsSet)
if(m_IdIsSet)
{
val[U("id")] = ModelBase::toJson(m_Id);
}
@@ -153,12 +141,12 @@ void Pet::fromJson(web::json::value& val)
void Pet::toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& prefix) const
{
utility::string_t namePrefix = prefix;
if(namePrefix.size() > 0 && namePrefix[namePrefix.size() - 1] != U('.'))
{
namePrefix += U(".");
}
if(namePrefix.size() > 0 && namePrefix[namePrefix.size() - 1] != U('.'))
{
namePrefix += U(".");
}
if(m_IdIsSet)
if(m_IdIsSet)
{
multipart->add(ModelBase::toHttpContent(namePrefix + U("id"), m_Id));
}
@@ -202,10 +190,10 @@ void Pet::toMultipart(std::shared_ptr<MultipartFormData> multipart, const utilit
void Pet::fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& prefix)
{
utility::string_t namePrefix = prefix;
if(namePrefix.size() > 0 && namePrefix[namePrefix.size() - 1] != U('.'))
{
namePrefix += U(".");
}
if(namePrefix.size() > 0 && namePrefix[namePrefix.size() - 1] != U('.'))
{
namePrefix += U(".");
}
if(multipart->hasContent(U("id")))
{
@@ -266,11 +254,11 @@ void Pet::fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const util
int64_t Pet::getId() const
{
return m_Id;
return m_Id;
}
void Pet::setId(int64_t value)
{
m_Id = value;
m_Id = value;
m_IdIsSet = true;
}
bool Pet::idIsSet() const
@@ -283,11 +271,11 @@ void Pet::unsetId()
}
std::shared_ptr<Category> Pet::getCategory() const
{
return m_Category;
return m_Category;
}
void Pet::setCategory(std::shared_ptr<Category> value)
{
m_Category = value;
m_Category = value;
m_CategoryIsSet = true;
}
bool Pet::categoryIsSet() const
@@ -300,20 +288,20 @@ void Pet::unsetCategory()
}
utility::string_t Pet::getName() const
{
return m_Name;
return m_Name;
}
void Pet::setName(utility::string_t value)
{
m_Name = value;
m_Name = value;
}
std::vector<utility::string_t>& Pet::getPhotoUrls()
{
return m_PhotoUrls;
return m_PhotoUrls;
}
std::vector<std::shared_ptr<Tag>>& Pet::getTags()
{
return m_Tags;
return m_Tags;
}
bool Pet::tagsIsSet() const
{
@@ -325,11 +313,11 @@ void Pet::unsetTags()
}
utility::string_t Pet::getStatus() const
{
return m_Status;
return m_Status;
}
void Pet::setStatus(utility::string_t value)
{
m_Status = value;
m_Status = value;
m_StatusIsSet = true;
}
bool Pet::statusIsSet() const