-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(specs): partial update operation (generated)
algolia/api-clients-automation#3486 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Kai Welke <kai.welke@algolia.com> Co-authored-by: shortcuts <vannicattec@gmail.com> Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
- Loading branch information
1 parent
5357563
commit 475a404
Showing
11 changed files
with
1,018 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
// | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
// | ||
using System; | ||
using System.Text; | ||
using System.Linq; | ||
using System.Text.Json.Serialization; | ||
using System.Collections.Generic; | ||
using Algolia.Search.Serializer; | ||
using System.Text.Json; | ||
|
||
namespace Algolia.Search.Models.Abtesting; | ||
|
||
/// <summary> | ||
/// Error. | ||
/// </summary> | ||
public partial class ErrorBase | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the ErrorBase class. | ||
/// </summary> | ||
public ErrorBase() | ||
{ | ||
AdditionalProperties = new Dictionary<string, object>(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or Sets Message | ||
/// </summary> | ||
[JsonPropertyName("message")] | ||
public string Message { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets additional properties | ||
/// </summary> | ||
[JsonExtensionData] | ||
public IDictionary<string, object> AdditionalProperties { get; set; } | ||
|
||
/// <summary> | ||
/// Returns the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() | ||
{ | ||
StringBuilder sb = new StringBuilder(); | ||
sb.Append("class ErrorBase {\n"); | ||
sb.Append(" Message: ").Append(Message).Append("\n"); | ||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public virtual string ToJson() | ||
{ | ||
return JsonSerializer.Serialize(this, JsonConfig.Options); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if objects are equal | ||
/// </summary> | ||
/// <param name="obj">Object to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public override bool Equals(object obj) | ||
{ | ||
if (obj is not ErrorBase input) | ||
{ | ||
return false; | ||
} | ||
|
||
return | ||
(Message == input.Message || (Message != null && Message.Equals(input.Message))) | ||
&& (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any()); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() | ||
{ | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 41; | ||
if (Message != null) | ||
{ | ||
hashCode = (hashCode * 59) + Message.GetHashCode(); | ||
} | ||
if (AdditionalProperties != null) | ||
{ | ||
hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode(); | ||
} | ||
return hashCode; | ||
} | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.