[csharp] Regenerate sample client

In this commit, FormatTest.cs was modified manually. Unrelated to this
commit, a Guid with default parameter of null was not marked nullable.
This commit is contained in:
Jim Schubert
2016-05-01 20:28:50 -04:00
parent 7d8df7ef93
commit aa778edbd8
11 changed files with 49 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012 # Visual Studio 2012
VisualStudioVersion = 12.0.0.0 VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1 MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{C22D7F6C-D698-469A-A3C9-5A499DE213B8}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{27FD0ED8-0F4A-458A-B564-6BFC0A02B9C9}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject EndProject
@@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C22D7F6C-D698-469A-A3C9-5A499DE213B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {27FD0ED8-0F4A-458A-B564-6BFC0A02B9C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C22D7F6C-D698-469A-A3C9-5A499DE213B8}.Debug|Any CPU.Build.0 = Debug|Any CPU {27FD0ED8-0F4A-458A-B564-6BFC0A02B9C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C22D7F6C-D698-469A-A3C9-5A499DE213B8}.Release|Any CPU.ActiveCfg = Release|Any CPU {27FD0ED8-0F4A-458A-B564-6BFC0A02B9C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C22D7F6C-D698-469A-A3C9-5A499DE213B8}.Release|Any CPU.Build.0 = Release|Any CPU {27FD0ED8-0F4A-458A-B564-6BFC0A02B9C9}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

View File

@@ -6,7 +6,7 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
- API version: 1.0.0 - API version: 1.0.0
- SDK version: 1.0.0 - SDK version: 1.0.0
- Build date: 2016-05-01T19:55:27.477-04:00 - Build date: 2016-05-01T20:17:48.968-04:00
- Build package: class io.swagger.codegen.languages.CSharpClientCodegen - Build package: class io.swagger.codegen.languages.CSharpClientCodegen
## Frameworks supported ## Frameworks supported
@@ -54,7 +54,7 @@ namespace Example
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var number = number_example; // string | None var number = 3.4; // double? | None
var _double = 1.2; // double? | None var _double = 1.2; // double? | None
var _string = _string_example; // string | None var _string = _string_example; // string | None
var _byte = B; // byte[] | None var _byte = B; // byte[] | None

View File

@@ -8,7 +8,7 @@ Method | HTTP request | Description
# **TestEndpointParameters** # **TestEndpointParameters**
> void TestEndpointParameters (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null) > void TestEndpointParameters (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
Fake endpoint for testing various parameters Fake endpoint for testing various parameters
@@ -30,7 +30,7 @@ namespace Example
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var number = number_example; // string | None var number = 3.4; // double? | None
var _double = 1.2; // double? | None var _double = 1.2; // double? | None
var _string = _string_example; // string | None var _string = _string_example; // string | None
var _byte = B; // byte[] | None var _byte = B; // byte[] | None
@@ -61,7 +61,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**number** | **string**| None | **number** | **double?**| None |
**_double** | **double?**| None | **_double** | **double?**| None |
**_string** | **string**| None | **_string** | **string**| None |
**_byte** | **byte[]**| None | **_byte** | **byte[]**| None |

View File

@@ -14,6 +14,7 @@ Name | Type | Description | Notes
**Binary** | **byte[]** | | [optional] **Binary** | **byte[]** | | [optional]
**Date** | **DateTime?** | | **Date** | **DateTime?** | |
**DateTime** | **DateTime?** | | [optional] **DateTime** | **DateTime?** | | [optional]
**Uuid** | **Guid** | | [optional]
**Password** | **string** | | **Password** | **string** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -8,12 +8,12 @@ git_repo_id=$2
release_note=$3 release_note=$3
if [ "$git_user_id" = "" ]; then if [ "$git_user_id" = "" ]; then
git_user_id="YOUR_GIT_USR_ID" git_user_id="GIT_USER_ID"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi fi
if [ "$git_repo_id" = "" ]; then if [ "$git_repo_id" = "" ]; then
git_repo_id="YOUR_GIT_REPO_ID" git_repo_id="GIT_REPO_ID"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi fi

View File

@@ -59,7 +59,7 @@ namespace IO.Swagger.Test
public void TestEndpointParametersTest() public void TestEndpointParametersTest()
{ {
// TODO: add unit test for the method 'TestEndpointParameters' // TODO: add unit test for the method 'TestEndpointParameters'
string number = null; // TODO: replace null with proper value double? number = null; // TODO: replace null with proper value
double? _double = null; // TODO: replace null with proper value double? _double = null; // TODO: replace null with proper value
string _string = null; // TODO: replace null with proper value string _string = null; // TODO: replace null with proper value
byte[] _byte = null; // TODO: replace null with proper value byte[] _byte = null; // TODO: replace null with proper value

View File

@@ -65,7 +65,7 @@
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj"> <ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj">
<Project>{C22D7F6C-D698-469A-A3C9-5A499DE213B8}</Project> <Project>{27FD0ED8-0F4A-458A-B564-6BFC0A02B9C9}</Project>
<Name>IO.Swagger</Name> <Name>IO.Swagger</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>

View File

@@ -139,6 +139,14 @@ namespace IO.Swagger.Test
// TODO: unit test for the property 'DateTime' // TODO: unit test for the property 'DateTime'
} }
/// <summary> /// <summary>
/// Test the property 'Uuid'
/// </summary>
[Test]
public void UuidTest()
{
// TODO: unit test for the property 'Uuid'
}
/// <summary>
/// Test the property 'Password' /// Test the property 'Password'
/// </summary> /// </summary>
[Test] [Test]

View File

@@ -33,7 +33,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns></returns> /// <returns></returns>
void TestEndpointParameters (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null); void TestEndpointParameters (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
/// <summary> /// <summary>
/// Fake endpoint for testing various parameters /// Fake endpoint for testing various parameters
@@ -55,7 +55,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestEndpointParametersWithHttpInfo (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null); ApiResponse<Object> TestEndpointParametersWithHttpInfo (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
#endregion Synchronous Operations #endregion Synchronous Operations
#region Asynchronous Operations #region Asynchronous Operations
/// <summary> /// <summary>
@@ -78,7 +78,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestEndpointParametersAsync (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null); System.Threading.Tasks.Task TestEndpointParametersAsync (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
/// <summary> /// <summary>
/// Fake endpoint for testing various parameters /// Fake endpoint for testing various parameters
@@ -100,7 +100,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null); System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null);
#endregion Asynchronous Operations #endregion Asynchronous Operations
} }
@@ -208,7 +208,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns></returns> /// <returns></returns>
public void TestEndpointParameters (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null) public void TestEndpointParameters (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
{ {
TestEndpointParametersWithHttpInfo(number, _double, _string, _byte, integer, int32, int64, _float, binary, date, dateTime, password); TestEndpointParametersWithHttpInfo(number, _double, _string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
} }
@@ -230,7 +230,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> TestEndpointParametersWithHttpInfo (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null) public ApiResponse<Object> TestEndpointParametersWithHttpInfo (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
{ {
// verify the required parameter 'number' is set // verify the required parameter 'number' is set
if (number == null) if (number == null)
@@ -319,7 +319,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
public async System.Threading.Tasks.Task TestEndpointParametersAsync (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null) public async System.Threading.Tasks.Task TestEndpointParametersAsync (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
{ {
await TestEndpointParametersAsyncWithHttpInfo(number, _double, _string, _byte, integer, int32, int64, _float, binary, date, dateTime, password); await TestEndpointParametersAsyncWithHttpInfo(number, _double, _string, _byte, integer, int32, int64, _float, binary, date, dateTime, password);
@@ -342,7 +342,7 @@ namespace IO.Swagger.Api
/// <param name="dateTime">None (optional)</param> /// <param name="dateTime">None (optional)</param>
/// <param name="password">None (optional)</param> /// <param name="password">None (optional)</param>
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (string number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null) public async System.Threading.Tasks.Task<ApiResponse<Object>> TestEndpointParametersAsyncWithHttpInfo (double? number, double? _double, string _string, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null)
{ {
// verify the required parameter 'number' is set // verify the required parameter 'number' is set
if (number == null) if (number == null)

View File

@@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C22D7F6C-D698-469A-A3C9-5A499DE213B8}</ProjectGuid> <ProjectGuid>{27FD0ED8-0F4A-458A-B564-6BFC0A02B9C9}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Swagger Library</RootNamespace> <RootNamespace>Swagger Library</RootNamespace>

View File

@@ -33,9 +33,10 @@ namespace IO.Swagger.Model
/// <param name="Binary">Binary.</param> /// <param name="Binary">Binary.</param>
/// <param name="Date">Date (required).</param> /// <param name="Date">Date (required).</param>
/// <param name="DateTime">DateTime.</param> /// <param name="DateTime">DateTime.</param>
/// <param name="Uuid">Uuid.</param>
/// <param name="Password">Password (required).</param> /// <param name="Password">Password (required).</param>
public FormatTest(int? Integer = null, int? Int32 = null, long? Int64 = null, double? Number = null, float? _Float = null, double? _Double = null, string _String = null, byte[] _Byte = null, byte[] Binary = null, DateTime? Date = null, DateTime? DateTime = null, string Password = null) public FormatTest(int? Integer = null, int? Int32 = null, long? Int64 = null, double? Number = null, float? _Float = null, double? _Double = null, string _String = null, byte[] _Byte = null, byte[] Binary = null, DateTime? Date = null, DateTime? DateTime = null, Guid? Uuid = null, string Password = null)
{ {
// to ensure "Number" is required (not null) // to ensure "Number" is required (not null)
if (Number == null) if (Number == null)
@@ -81,6 +82,7 @@ namespace IO.Swagger.Model
this._String = _String; this._String = _String;
this.Binary = Binary; this.Binary = Binary;
this.DateTime = DateTime; this.DateTime = DateTime;
this.Uuid = Uuid;
} }
@@ -151,6 +153,12 @@ namespace IO.Swagger.Model
[DataMember(Name="dateTime", EmitDefaultValue=false)] [DataMember(Name="dateTime", EmitDefaultValue=false)]
public DateTime? DateTime { get; set; } public DateTime? DateTime { get; set; }
/// <summary>
/// Gets or Sets Uuid
/// </summary>
[DataMember(Name="uuid", EmitDefaultValue=false)]
public Guid? Uuid { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Password /// Gets or Sets Password
/// </summary> /// </summary>
@@ -176,6 +184,7 @@ namespace IO.Swagger.Model
sb.Append(" Binary: ").Append(Binary).Append("\n"); sb.Append(" Binary: ").Append(Binary).Append("\n");
sb.Append(" Date: ").Append(Date).Append("\n"); sb.Append(" Date: ").Append(Date).Append("\n");
sb.Append(" DateTime: ").Append(DateTime).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
sb.Append(" Password: ").Append(Password).Append("\n"); sb.Append(" Password: ").Append(Password).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
@@ -268,6 +277,11 @@ namespace IO.Swagger.Model
this.DateTime != null && this.DateTime != null &&
this.DateTime.Equals(other.DateTime) this.DateTime.Equals(other.DateTime)
) && ) &&
(
this.Uuid == other.Uuid ||
this.Uuid != null &&
this.Uuid.Equals(other.Uuid)
) &&
( (
this.Password == other.Password || this.Password == other.Password ||
this.Password != null && this.Password != null &&
@@ -308,6 +322,8 @@ namespace IO.Swagger.Model
hash = hash * 59 + this.Date.GetHashCode(); hash = hash * 59 + this.Date.GetHashCode();
if (this.DateTime != null) if (this.DateTime != null)
hash = hash * 59 + this.DateTime.GetHashCode(); hash = hash * 59 + this.DateTime.GetHashCode();
if (this.Uuid != null)
hash = hash * 59 + this.Uuid.GetHashCode();
if (this.Password != null) if (this.Password != null)
hash = hash * 59 + this.Password.GetHashCode(); hash = hash * 59 + this.Password.GetHashCode();
return hash; return hash;