Skip to content

Commit 939337c

Browse files
algolia-botsbellonemillotp
committed
feat(specs): add useImagesObjects property in commercetools source input (#5586) (generated) [skip ci]
Co-authored-by: Sylvain Bellone <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 7d189e0 commit 939337c

File tree

25 files changed

+423
-12
lines changed

25 files changed

+423
-12
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/SourceCommercetools.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public SourceCommercetools(string url, string projectKey)
7272
[JsonPropertyName("productQueryPredicate")]
7373
public string ProductQueryPredicate { get; set; }
7474

75+
/// <summary>
76+
/// When set to true, the connector indexes objects with all images attributes instead of only the URLs.
77+
/// </summary>
78+
/// <value>When set to true, the connector indexes objects with all images attributes instead of only the URLs. </value>
79+
[JsonPropertyName("useImagesObjects")]
80+
public bool? UseImagesObjects { get; set; }
81+
7582
/// <summary>
7683
/// Gets or Sets CustomFields
7784
/// </summary>
@@ -92,6 +99,7 @@ public override string ToString()
9299
sb.Append(" ProjectKey: ").Append(ProjectKey).Append("\n");
93100
sb.Append(" FallbackIsInStockValue: ").Append(FallbackIsInStockValue).Append("\n");
94101
sb.Append(" ProductQueryPredicate: ").Append(ProductQueryPredicate).Append("\n");
102+
sb.Append(" UseImagesObjects: ").Append(UseImagesObjects).Append("\n");
95103
sb.Append(" CustomFields: ").Append(CustomFields).Append("\n");
96104
sb.Append("}\n");
97105
return sb.ToString();
@@ -141,6 +149,10 @@ public override bool Equals(object obj)
141149
ProductQueryPredicate != null && ProductQueryPredicate.Equals(input.ProductQueryPredicate)
142150
)
143151
)
152+
&& (
153+
UseImagesObjects == input.UseImagesObjects
154+
|| UseImagesObjects.Equals(input.UseImagesObjects)
155+
)
144156
&& (
145157
CustomFields == input.CustomFields
146158
|| (CustomFields != null && CustomFields.Equals(input.CustomFields))
@@ -177,6 +189,7 @@ public override int GetHashCode()
177189
{
178190
hashCode = (hashCode * 59) + ProductQueryPredicate.GetHashCode();
179191
}
192+
hashCode = (hashCode * 59) + UseImagesObjects.GetHashCode();
180193
if (CustomFields != null)
181194
{
182195
hashCode = (hashCode * 59) + CustomFields.GetHashCode();

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/SourceUpdateCommercetools.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public SourceUpdateCommercetools() { }
5454
[JsonPropertyName("productQueryPredicate")]
5555
public string ProductQueryPredicate { get; set; }
5656

57+
/// <summary>
58+
/// When set to true, the connector indexes objects with all images attributes instead of only the URLs.
59+
/// </summary>
60+
/// <value>When set to true, the connector indexes objects with all images attributes instead of only the URLs. </value>
61+
[JsonPropertyName("useImagesObjects")]
62+
public bool? UseImagesObjects { get; set; }
63+
5764
/// <summary>
5865
/// Gets or Sets CustomFields
5966
/// </summary>
@@ -73,6 +80,7 @@ public override string ToString()
7380
sb.Append(" Url: ").Append(Url).Append("\n");
7481
sb.Append(" FallbackIsInStockValue: ").Append(FallbackIsInStockValue).Append("\n");
7582
sb.Append(" ProductQueryPredicate: ").Append(ProductQueryPredicate).Append("\n");
83+
sb.Append(" UseImagesObjects: ").Append(UseImagesObjects).Append("\n");
7684
sb.Append(" CustomFields: ").Append(CustomFields).Append("\n");
7785
sb.Append("}\n");
7886
return sb.ToString();
@@ -118,6 +126,10 @@ public override bool Equals(object obj)
118126
ProductQueryPredicate != null && ProductQueryPredicate.Equals(input.ProductQueryPredicate)
119127
)
120128
)
129+
&& (
130+
UseImagesObjects == input.UseImagesObjects
131+
|| UseImagesObjects.Equals(input.UseImagesObjects)
132+
)
121133
&& (
122134
CustomFields == input.CustomFields
123135
|| (CustomFields != null && CustomFields.Equals(input.CustomFields))
@@ -150,6 +162,7 @@ public override int GetHashCode()
150162
{
151163
hashCode = (hashCode * 59) + ProductQueryPredicate.GetHashCode();
152164
}
165+
hashCode = (hashCode * 59) + UseImagesObjects.GetHashCode();
153166
if (CustomFields != null)
154167
{
155168
hashCode = (hashCode * 59) + CustomFields.GetHashCode();

clients/algoliasearch-client-go/algolia/ingestion/model_source_commercetools.go

Lines changed: 52 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-go/algolia/ingestion/model_source_update_commercetools.go

Lines changed: 52 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/SourceCommercetools.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public class SourceCommercetools implements SourceInput {
3131
@JsonProperty("productQueryPredicate")
3232
private String productQueryPredicate;
3333

34+
@JsonProperty("useImagesObjects")
35+
private Boolean useImagesObjects;
36+
3437
@JsonProperty("customFields")
3538
private CommercetoolsCustomFields customFields;
3639

@@ -122,6 +125,20 @@ public String getProductQueryPredicate() {
122125
return productQueryPredicate;
123126
}
124127

128+
public SourceCommercetools setUseImagesObjects(Boolean useImagesObjects) {
129+
this.useImagesObjects = useImagesObjects;
130+
return this;
131+
}
132+
133+
/**
134+
* When set to true, the connector indexes objects with all images attributes instead of only the
135+
* URLs.
136+
*/
137+
@javax.annotation.Nullable
138+
public Boolean getUseImagesObjects() {
139+
return useImagesObjects;
140+
}
141+
125142
public SourceCommercetools setCustomFields(CommercetoolsCustomFields customFields) {
126143
this.customFields = customFields;
127144
return this;
@@ -149,13 +166,14 @@ public boolean equals(Object o) {
149166
Objects.equals(this.projectKey, sourceCommercetools.projectKey) &&
150167
Objects.equals(this.fallbackIsInStockValue, sourceCommercetools.fallbackIsInStockValue) &&
151168
Objects.equals(this.productQueryPredicate, sourceCommercetools.productQueryPredicate) &&
169+
Objects.equals(this.useImagesObjects, sourceCommercetools.useImagesObjects) &&
152170
Objects.equals(this.customFields, sourceCommercetools.customFields)
153171
);
154172
}
155173

156174
@Override
157175
public int hashCode() {
158-
return Objects.hash(storeKeys, locales, url, projectKey, fallbackIsInStockValue, productQueryPredicate, customFields);
176+
return Objects.hash(storeKeys, locales, url, projectKey, fallbackIsInStockValue, productQueryPredicate, useImagesObjects, customFields);
159177
}
160178

161179
@Override
@@ -168,6 +186,7 @@ public String toString() {
168186
sb.append(" projectKey: ").append(toIndentedString(projectKey)).append("\n");
169187
sb.append(" fallbackIsInStockValue: ").append(toIndentedString(fallbackIsInStockValue)).append("\n");
170188
sb.append(" productQueryPredicate: ").append(toIndentedString(productQueryPredicate)).append("\n");
189+
sb.append(" useImagesObjects: ").append(toIndentedString(useImagesObjects)).append("\n");
171190
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
172191
sb.append("}");
173192
return sb.toString();

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/SourceUpdateCommercetools.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public class SourceUpdateCommercetools implements SourceUpdateInput {
2828
@JsonProperty("productQueryPredicate")
2929
private String productQueryPredicate;
3030

31+
@JsonProperty("useImagesObjects")
32+
private Boolean useImagesObjects;
33+
3134
@JsonProperty("customFields")
3235
private CommercetoolsCustomFields customFields;
3336

@@ -108,6 +111,20 @@ public String getProductQueryPredicate() {
108111
return productQueryPredicate;
109112
}
110113

114+
public SourceUpdateCommercetools setUseImagesObjects(Boolean useImagesObjects) {
115+
this.useImagesObjects = useImagesObjects;
116+
return this;
117+
}
118+
119+
/**
120+
* When set to true, the connector indexes objects with all images attributes instead of only the
121+
* URLs.
122+
*/
123+
@javax.annotation.Nullable
124+
public Boolean getUseImagesObjects() {
125+
return useImagesObjects;
126+
}
127+
111128
public SourceUpdateCommercetools setCustomFields(CommercetoolsCustomFields customFields) {
112129
this.customFields = customFields;
113130
return this;
@@ -134,13 +151,14 @@ public boolean equals(Object o) {
134151
Objects.equals(this.url, sourceUpdateCommercetools.url) &&
135152
Objects.equals(this.fallbackIsInStockValue, sourceUpdateCommercetools.fallbackIsInStockValue) &&
136153
Objects.equals(this.productQueryPredicate, sourceUpdateCommercetools.productQueryPredicate) &&
154+
Objects.equals(this.useImagesObjects, sourceUpdateCommercetools.useImagesObjects) &&
137155
Objects.equals(this.customFields, sourceUpdateCommercetools.customFields)
138156
);
139157
}
140158

141159
@Override
142160
public int hashCode() {
143-
return Objects.hash(storeKeys, locales, url, fallbackIsInStockValue, productQueryPredicate, customFields);
161+
return Objects.hash(storeKeys, locales, url, fallbackIsInStockValue, productQueryPredicate, useImagesObjects, customFields);
144162
}
145163

146164
@Override
@@ -152,6 +170,7 @@ public String toString() {
152170
sb.append(" url: ").append(toIndentedString(url)).append("\n");
153171
sb.append(" fallbackIsInStockValue: ").append(toIndentedString(fallbackIsInStockValue)).append("\n");
154172
sb.append(" productQueryPredicate: ").append(toIndentedString(productQueryPredicate)).append("\n");
173+
sb.append(" useImagesObjects: ").append(toIndentedString(useImagesObjects)).append("\n");
155174
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
156175
sb.append("}");
157176
return sb.toString();

clients/algoliasearch-client-javascript/packages/ingestion/model/sourceCommercetools.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,10 @@ export type SourceCommercetools = {
2727
*/
2828
productQueryPredicate?: string | undefined;
2929

30+
/**
31+
* When set to true, the connector indexes objects with all images attributes instead of only the URLs.
32+
*/
33+
useImagesObjects?: boolean | undefined;
34+
3035
customFields?: CommercetoolsCustomFields | undefined;
3136
};

clients/algoliasearch-client-javascript/packages/ingestion/model/sourceUpdateCommercetools.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ export type SourceUpdateCommercetools = {
2525
*/
2626
productQueryPredicate?: string | undefined;
2727

28+
/**
29+
* When set to true, the connector indexes objects with all images attributes instead of only the URLs.
30+
*/
31+
useImagesObjects?: boolean | undefined;
32+
2833
customFields?: CommercetoolsCustomFields | undefined;
2934
};

0 commit comments

Comments
 (0)