Skip to content

Commit 03fbc8a

Browse files
algolia-botmillotp
andcommitted
feat(specs): add the owner attributes to ingestion resources (generated)
algolia/api-clients-automation#4616 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent cd2c276 commit 03fbc8a

File tree

5 files changed

+65
-0
lines changed

5 files changed

+65
-0
lines changed

algoliasearch/Models/Ingestion/Authentication.cs

+13
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ public Authentication(string authenticationID, AuthenticationType? type, string
6464
[JsonPropertyName("name")]
6565
public string Name { get; set; }
6666

67+
/// <summary>
68+
/// Owner of the resource.
69+
/// </summary>
70+
/// <value>Owner of the resource.</value>
71+
[JsonPropertyName("owner")]
72+
public string Owner { get; set; }
73+
6774
/// <summary>
6875
/// Gets or Sets Input
6976
/// </summary>
@@ -96,6 +103,7 @@ public override string ToString()
96103
sb.Append(" Type: ").Append(Type).Append("\n");
97104
sb.Append(" Name: ").Append(Name).Append("\n");
98105
sb.Append(" Platform: ").Append(Platform).Append("\n");
106+
sb.Append(" Owner: ").Append(Owner).Append("\n");
99107
sb.Append(" Input: ").Append(Input).Append("\n");
100108
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
101109
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
@@ -129,6 +137,7 @@ public override bool Equals(object obj)
129137
(Type == input.Type || Type.Equals(input.Type)) &&
130138
(Name == input.Name || (Name != null && Name.Equals(input.Name))) &&
131139
(Platform == input.Platform || Platform.Equals(input.Platform)) &&
140+
(Owner == input.Owner || (Owner != null && Owner.Equals(input.Owner))) &&
132141
(Input == input.Input || (Input != null && Input.Equals(input.Input))) &&
133142
(CreatedAt == input.CreatedAt || (CreatedAt != null && CreatedAt.Equals(input.CreatedAt))) &&
134143
(UpdatedAt == input.UpdatedAt || (UpdatedAt != null && UpdatedAt.Equals(input.UpdatedAt)));
@@ -153,6 +162,10 @@ public override int GetHashCode()
153162
hashCode = (hashCode * 59) + Name.GetHashCode();
154163
}
155164
hashCode = (hashCode * 59) + Platform.GetHashCode();
165+
if (Owner != null)
166+
{
167+
hashCode = (hashCode * 59) + Owner.GetHashCode();
168+
}
156169
if (Input != null)
157170
{
158171
hashCode = (hashCode * 59) + Input.GetHashCode();

algoliasearch/Models/Ingestion/Destination.cs

+13
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ public Destination(string destinationID, DestinationType? type, string name, Des
5858
[JsonPropertyName("name")]
5959
public string Name { get; set; }
6060

61+
/// <summary>
62+
/// Owner of the resource.
63+
/// </summary>
64+
/// <value>Owner of the resource.</value>
65+
[JsonPropertyName("owner")]
66+
public string Owner { get; set; }
67+
6168
/// <summary>
6269
/// Gets or Sets Input
6370
/// </summary>
@@ -102,6 +109,7 @@ public override string ToString()
102109
sb.Append(" DestinationID: ").Append(DestinationID).Append("\n");
103110
sb.Append(" Type: ").Append(Type).Append("\n");
104111
sb.Append(" Name: ").Append(Name).Append("\n");
112+
sb.Append(" Owner: ").Append(Owner).Append("\n");
105113
sb.Append(" Input: ").Append(Input).Append("\n");
106114
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
107115
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
@@ -136,6 +144,7 @@ public override bool Equals(object obj)
136144
(DestinationID == input.DestinationID || (DestinationID != null && DestinationID.Equals(input.DestinationID))) &&
137145
(Type == input.Type || Type.Equals(input.Type)) &&
138146
(Name == input.Name || (Name != null && Name.Equals(input.Name))) &&
147+
(Owner == input.Owner || (Owner != null && Owner.Equals(input.Owner))) &&
139148
(Input == input.Input || (Input != null && Input.Equals(input.Input))) &&
140149
(CreatedAt == input.CreatedAt || (CreatedAt != null && CreatedAt.Equals(input.CreatedAt))) &&
141150
(UpdatedAt == input.UpdatedAt || (UpdatedAt != null && UpdatedAt.Equals(input.UpdatedAt))) &&
@@ -161,6 +170,10 @@ public override int GetHashCode()
161170
{
162171
hashCode = (hashCode * 59) + Name.GetHashCode();
163172
}
173+
if (Owner != null)
174+
{
175+
hashCode = (hashCode * 59) + Owner.GetHashCode();
176+
}
164177
if (Input != null)
165178
{
166179
hashCode = (hashCode * 59) + Input.GetHashCode();

algoliasearch/Models/Ingestion/IngestionTask.cs

+13
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ public IngestionTask(string taskID, string sourceID, string destinationID, bool
9292
[JsonPropertyName("nextRun")]
9393
public string NextRun { get; set; }
9494

95+
/// <summary>
96+
/// Owner of the resource.
97+
/// </summary>
98+
/// <value>Owner of the resource.</value>
99+
[JsonPropertyName("owner")]
100+
public string Owner { get; set; }
101+
95102
/// <summary>
96103
/// Gets or Sets Input
97104
/// </summary>
@@ -159,6 +166,7 @@ public override string ToString()
159166
sb.Append(" Cron: ").Append(Cron).Append("\n");
160167
sb.Append(" LastRun: ").Append(LastRun).Append("\n");
161168
sb.Append(" NextRun: ").Append(NextRun).Append("\n");
169+
sb.Append(" Owner: ").Append(Owner).Append("\n");
162170
sb.Append(" Input: ").Append(Input).Append("\n");
163171
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
164172
sb.Append(" FailureThreshold: ").Append(FailureThreshold).Append("\n");
@@ -201,6 +209,7 @@ public override bool Equals(object obj)
201209
(Cron == input.Cron || (Cron != null && Cron.Equals(input.Cron))) &&
202210
(LastRun == input.LastRun || (LastRun != null && LastRun.Equals(input.LastRun))) &&
203211
(NextRun == input.NextRun || (NextRun != null && NextRun.Equals(input.NextRun))) &&
212+
(Owner == input.Owner || (Owner != null && Owner.Equals(input.Owner))) &&
204213
(Input == input.Input || (Input != null && Input.Equals(input.Input))) &&
205214
(Enabled == input.Enabled || Enabled.Equals(input.Enabled)) &&
206215
(FailureThreshold == input.FailureThreshold || FailureThreshold.Equals(input.FailureThreshold)) &&
@@ -246,6 +255,10 @@ public override int GetHashCode()
246255
{
247256
hashCode = (hashCode * 59) + NextRun.GetHashCode();
248257
}
258+
if (Owner != null)
259+
{
260+
hashCode = (hashCode * 59) + Owner.GetHashCode();
261+
}
249262
if (Input != null)
250263
{
251264
hashCode = (hashCode * 59) + Input.GetHashCode();

algoliasearch/Models/Ingestion/Source.cs

+13
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ public Source(string sourceID, SourceType? type, string name, string createdAt)
5555
[JsonPropertyName("name")]
5656
public string Name { get; set; }
5757

58+
/// <summary>
59+
/// Owner of the resource.
60+
/// </summary>
61+
/// <value>Owner of the resource.</value>
62+
[JsonPropertyName("owner")]
63+
public string Owner { get; set; }
64+
5865
/// <summary>
5966
/// Gets or Sets Input
6067
/// </summary>
@@ -93,6 +100,7 @@ public override string ToString()
93100
sb.Append(" SourceID: ").Append(SourceID).Append("\n");
94101
sb.Append(" Type: ").Append(Type).Append("\n");
95102
sb.Append(" Name: ").Append(Name).Append("\n");
103+
sb.Append(" Owner: ").Append(Owner).Append("\n");
96104
sb.Append(" Input: ").Append(Input).Append("\n");
97105
sb.Append(" AuthenticationID: ").Append(AuthenticationID).Append("\n");
98106
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
@@ -126,6 +134,7 @@ public override bool Equals(object obj)
126134
(SourceID == input.SourceID || (SourceID != null && SourceID.Equals(input.SourceID))) &&
127135
(Type == input.Type || Type.Equals(input.Type)) &&
128136
(Name == input.Name || (Name != null && Name.Equals(input.Name))) &&
137+
(Owner == input.Owner || (Owner != null && Owner.Equals(input.Owner))) &&
129138
(Input == input.Input || (Input != null && Input.Equals(input.Input))) &&
130139
(AuthenticationID == input.AuthenticationID || (AuthenticationID != null && AuthenticationID.Equals(input.AuthenticationID))) &&
131140
(CreatedAt == input.CreatedAt || (CreatedAt != null && CreatedAt.Equals(input.CreatedAt))) &&
@@ -150,6 +159,10 @@ public override int GetHashCode()
150159
{
151160
hashCode = (hashCode * 59) + Name.GetHashCode();
152161
}
162+
if (Owner != null)
163+
{
164+
hashCode = (hashCode * 59) + Owner.GetHashCode();
165+
}
153166
if (Input != null)
154167
{
155168
hashCode = (hashCode * 59) + Input.GetHashCode();

algoliasearch/Models/Ingestion/Transformation.cs

+13
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public Transformation(string transformationID, string code, string name, string
7171
[JsonPropertyName("description")]
7272
public string Description { get; set; }
7373

74+
/// <summary>
75+
/// Owner of the resource.
76+
/// </summary>
77+
/// <value>Owner of the resource.</value>
78+
[JsonPropertyName("owner")]
79+
public string Owner { get; set; }
80+
7481
/// <summary>
7582
/// Date of creation in RFC 3339 format.
7683
/// </summary>
@@ -98,6 +105,7 @@ public override string ToString()
98105
sb.Append(" Code: ").Append(Code).Append("\n");
99106
sb.Append(" Name: ").Append(Name).Append("\n");
100107
sb.Append(" Description: ").Append(Description).Append("\n");
108+
sb.Append(" Owner: ").Append(Owner).Append("\n");
101109
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
102110
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
103111
sb.Append("}\n");
@@ -131,6 +139,7 @@ public override bool Equals(object obj)
131139
(Code == input.Code || (Code != null && Code.Equals(input.Code))) &&
132140
(Name == input.Name || (Name != null && Name.Equals(input.Name))) &&
133141
(Description == input.Description || (Description != null && Description.Equals(input.Description))) &&
142+
(Owner == input.Owner || (Owner != null && Owner.Equals(input.Owner))) &&
134143
(CreatedAt == input.CreatedAt || (CreatedAt != null && CreatedAt.Equals(input.CreatedAt))) &&
135144
(UpdatedAt == input.UpdatedAt || (UpdatedAt != null && UpdatedAt.Equals(input.UpdatedAt)));
136145
}
@@ -164,6 +173,10 @@ public override int GetHashCode()
164173
{
165174
hashCode = (hashCode * 59) + Description.GetHashCode();
166175
}
176+
if (Owner != null)
177+
{
178+
hashCode = (hashCode * 59) + Owner.GetHashCode();
179+
}
167180
if (CreatedAt != null)
168181
{
169182
hashCode = (hashCode * 59) + CreatedAt.GetHashCode();

0 commit comments

Comments
 (0)