Skip to content

Commit

Permalink
update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Mar 3, 2023
1 parent 5bf1233 commit ab9ad3f
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,6 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory

if (files != null)
{
foreach (var file in files)
{
localVarRequestOptions.FileParameters.Add("files", file);
}
}

localVarRequestOptions.Operation = "MultipartApi.MultipartArray";
Expand Down Expand Up @@ -428,10 +424,6 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory

if (files != null)
{
foreach (var file in files)
{
localVarRequestOptions.FileParameters.Add("files", file);
}
}

localVarRequestOptions.Operation = "MultipartApi.MultipartArray";
Expand Down Expand Up @@ -513,7 +505,6 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory
{
localVarRequestOptions.FormParameters.Add("marker", Org.OpenAPITools.Client.ClientUtils.ParameterToString(marker)); // form parameter
}
localVarRequestOptions.FileParameters.Add("file", file);
if (statusArray != null)
{
localVarRequestOptions.FormParameters.Add("statusArray", Org.OpenAPITools.Client.ClientUtils.ParameterToString(statusArray)); // form parameter
Expand Down Expand Up @@ -600,7 +591,6 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory
{
localVarRequestOptions.FormParameters.Add("marker", Org.OpenAPITools.Client.ClientUtils.ParameterToString(marker)); // form parameter
}
localVarRequestOptions.FileParameters.Add("file", file);
if (statusArray != null)
{
localVarRequestOptions.FormParameters.Add("statusArray", Org.OpenAPITools.Client.ClientUtils.ParameterToString(statusArray)); // form parameter
Expand Down Expand Up @@ -670,7 +660,6 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory

if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "MultipartApi.MultipartSingle";
Expand Down Expand Up @@ -739,7 +728,6 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory

if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "MultipartApi.MultipartSingle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public class RequestOptions
/// </summary>
public Dictionary<string, string> FormParameters { get; set; }

/// <summary>
/// File parameters to be sent along with the request.
/// </summary>
public Multimap<string, Stream> FileParameters { get; set; }

/// <summary>
/// Cookies to be sent along with the request.
Expand Down Expand Up @@ -77,7 +73,6 @@ public RequestOptions()
QueryParameters = new Multimap<string, string>();
HeaderParameters = new Multimap<string, string>();
FormParameters = new Dictionary<string, string>();
FileParameters = new Multimap<string, Stream>();
Cookies = new List<Cookie>();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down Expand Up @@ -2483,7 +2482,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2096,7 +2095,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2195,7 +2193,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -2295,7 +2292,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public class RequestOptions
/// </summary>
public Dictionary<string, string> FormParameters { get; set; }

/// <summary>
/// File parameters to be sent along with the request.
/// </summary>
public Multimap<string, Stream> FileParameters { get; set; }

/// <summary>
/// Cookies to be sent along with the request.
Expand Down Expand Up @@ -82,7 +78,6 @@ public RequestOptions()
QueryParameters = new Multimap<string, string>();
HeaderParameters = new Multimap<string, string>();
FormParameters = new Dictionary<string, string>();
FileParameters = new Multimap<string, Stream>();
Cookies = new List<Cookie>();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down Expand Up @@ -2483,7 +2482,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2096,7 +2095,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2195,7 +2193,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -2295,7 +2292,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public class RequestOptions
/// </summary>
public Dictionary<string, string> FormParameters { get; set; }

/// <summary>
/// File parameters to be sent along with the request.
/// </summary>
public Multimap<string, Stream> FileParameters { get; set; }

/// <summary>
/// Cookies to be sent along with the request.
Expand Down Expand Up @@ -82,7 +78,6 @@ public RequestOptions()
QueryParameters = new Multimap<string, string>();
HeaderParameters = new Multimap<string, string>();
FormParameters = new Dictionary<string, string>();
FileParameters = new Multimap<string, Stream>();
Cookies = new List<Cookie>();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down Expand Up @@ -2483,7 +2482,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2096,7 +2095,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2195,7 +2193,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -2295,7 +2292,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public class RequestOptions
/// </summary>
public Dictionary<string, string> FormParameters { get; set; }

/// <summary>
/// File parameters to be sent along with the request.
/// </summary>
public Multimap<string, Stream> FileParameters { get; set; }

/// <summary>
/// Cookies to be sent along with the request.
Expand Down Expand Up @@ -82,7 +78,6 @@ public RequestOptions()
QueryParameters = new Multimap<string, string>();
HeaderParameters = new Multimap<string, string>();
FormParameters = new Dictionary<string, string>();
FileParameters = new Multimap<string, Stream>();
Cookies = new List<Cookie>();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down Expand Up @@ -2483,7 +2482,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2096,7 +2095,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2195,7 +2193,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -2295,7 +2292,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public class RequestOptions
/// </summary>
public Dictionary<string, string> FormParameters { get; set; }

/// <summary>
/// File parameters to be sent along with the request.
/// </summary>
public Multimap<string, Stream> FileParameters { get; set; }

/// <summary>
/// Cookies to be sent along with the request.
Expand Down Expand Up @@ -82,7 +78,6 @@ public RequestOptions()
QueryParameters = new Multimap<string, string>();
HeaderParameters = new Multimap<string, string>();
FormParameters = new Dictionary<string, string>();
FileParameters = new Multimap<string, Stream>();
Cookies = new List<Cookie>();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down Expand Up @@ -2483,7 +2482,6 @@ public Org.OpenAPITools.Client.ApiResponse<ModelClient> TestClientModelWithHttpI
localVarRequestOptions.FormParameters.Add("byte", Org.OpenAPITools.Client.ClientUtils.ParameterToString(_byte)); // form parameter
if (binary != null)
{
localVarRequestOptions.FileParameters.Add("binary", binary);
}
if (date != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2096,7 +2095,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
}
if (file != null)
{
localVarRequestOptions.FileParameters.Add("file", file);
}

localVarRequestOptions.Operation = "PetApi.UploadFile";
Expand Down Expand Up @@ -2195,7 +2193,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down Expand Up @@ -2295,7 +2292,6 @@ public Org.OpenAPITools.Client.ApiResponse<Object> UpdatePetWithHttpInfo(Pet pet
{
localVarRequestOptions.FormParameters.Add("additionalMetadata", Org.OpenAPITools.Client.ClientUtils.ParameterToString(additionalMetadata)); // form parameter
}
localVarRequestOptions.FileParameters.Add("requiredFile", requiredFile);

localVarRequestOptions.Operation = "PetApi.UploadFileWithRequiredFile";
localVarRequestOptions.OperationIndex = operationIndex;
Expand Down
Loading

0 comments on commit ab9ad3f

Please sign in to comment.