mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 11:07:07 +00:00
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:
@@ -8,18 +8,6 @@
|
||||
* 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.
|
||||
*/
|
||||
|
||||
|
||||
@@ -55,7 +43,7 @@ web::json::value ApiResponse::toJson() const
|
||||
{
|
||||
web::json::value val = web::json::value::object();
|
||||
|
||||
if(m_CodeIsSet)
|
||||
if(m_CodeIsSet)
|
||||
{
|
||||
val[U("code")] = ModelBase::toJson(m_Code);
|
||||
}
|
||||
@@ -94,12 +82,12 @@ void ApiResponse::fromJson(web::json::value& val)
|
||||
void ApiResponse::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_CodeIsSet)
|
||||
if(m_CodeIsSet)
|
||||
{
|
||||
multipart->add(ModelBase::toHttpContent(namePrefix + U("code"), m_Code));
|
||||
}
|
||||
@@ -119,10 +107,10 @@ void ApiResponse::toMultipart(std::shared_ptr<MultipartFormData> multipart, cons
|
||||
void ApiResponse::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("code")))
|
||||
{
|
||||
@@ -144,11 +132,11 @@ void ApiResponse::fromMultiPart(std::shared_ptr<MultipartFormData> multipart, co
|
||||
|
||||
int32_t ApiResponse::getCode() const
|
||||
{
|
||||
return m_Code;
|
||||
return m_Code;
|
||||
}
|
||||
void ApiResponse::setCode(int32_t value)
|
||||
{
|
||||
m_Code = value;
|
||||
m_Code = value;
|
||||
m_CodeIsSet = true;
|
||||
}
|
||||
bool ApiResponse::codeIsSet() const
|
||||
@@ -161,11 +149,11 @@ void ApiResponse::unsetCode()
|
||||
}
|
||||
utility::string_t ApiResponse::getType() const
|
||||
{
|
||||
return m_Type;
|
||||
return m_Type;
|
||||
}
|
||||
void ApiResponse::setType(utility::string_t value)
|
||||
{
|
||||
m_Type = value;
|
||||
m_Type = value;
|
||||
m_TypeIsSet = true;
|
||||
}
|
||||
bool ApiResponse::typeIsSet() const
|
||||
@@ -178,11 +166,11 @@ void ApiResponse::unsetType()
|
||||
}
|
||||
utility::string_t ApiResponse::getMessage() const
|
||||
{
|
||||
return m_Message;
|
||||
return m_Message;
|
||||
}
|
||||
void ApiResponse::setMessage(utility::string_t value)
|
||||
{
|
||||
m_Message = value;
|
||||
m_Message = value;
|
||||
m_MessageIsSet = true;
|
||||
}
|
||||
bool ApiResponse::messageIsSet() const
|
||||
|
||||
Reference in New Issue
Block a user